]>
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 |
47aaa820 | 749 | GNUSTEP_CONFIG |
c823f118 | 750 | CY_OBJECTIVEC |
309b0535 | 751 | LIBFFI_LIBS |
35fa52c0 | 752 | LIBFFI_CFLAGS |
3fd51f51 | 753 | CY_EXECUTE |
35fa52c0 DWT |
754 | WEBKIT_LIBS |
755 | WEBKIT_CFLAGS | |
35fa52c0 DWT |
756 | LTLIBICONV |
757 | LIBICONV | |
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 | |
e9c9a47c DWT |
766 | GNUTAR |
767 | INSTALL_DATA | |
768 | INSTALL_SCRIPT | |
769 | INSTALL_PROGRAM | |
770 | GPERF | |
771 | FLEX | |
772 | BISON | |
773 | TIME | |
774 | _BASH | |
790e5246 | 775 | GMAKE |
632b71ea | 776 | ifGNUmake |
3fd51f51 | 777 | PKG_CONFIG |
9c60689e DWT |
778 | CPP |
779 | OTOOL64 | |
780 | OTOOL | |
781 | LIPO | |
782 | NMEDIT | |
783 | DSYMUTIL | |
784 | lt_ECHO | |
785 | RANLIB | |
786 | STRIP | |
787 | AR | |
788 | OBJDUMP | |
789 | LN_S | |
790 | NM | |
791 | ac_ct_DUMPBIN | |
792 | DUMPBIN | |
793 | LD | |
794 | FGREP | |
795 | EGREP | |
796 | GREP | |
797 | SED | |
35fa52c0 DWT |
798 | OBJEXT |
799 | EXEEXT | |
800 | ac_ct_CC | |
801 | CPPFLAGS | |
802 | LDFLAGS | |
803 | CFLAGS | |
804 | CC | |
9c60689e DWT |
805 | host_os |
806 | host_vendor | |
807 | host_cpu | |
808 | host | |
809 | build_os | |
810 | build_vendor | |
811 | build_cpu | |
812 | build | |
813 | LIBTOOL | |
dbadc56a | 814 | target_alias |
c7aa54aa DWT |
815 | host_alias |
816 | build_alias | |
817 | LIBS | |
818 | ECHO_T | |
819 | ECHO_N | |
820 | ECHO_C | |
821 | DEFS | |
822 | mandir | |
823 | localedir | |
824 | libdir | |
825 | psdir | |
826 | pdfdir | |
827 | dvidir | |
828 | htmldir | |
829 | infodir | |
830 | docdir | |
831 | oldincludedir | |
832 | includedir | |
833 | localstatedir | |
834 | sharedstatedir | |
835 | sysconfdir | |
836 | datadir | |
837 | datarootdir | |
838 | libexecdir | |
839 | sbindir | |
840 | bindir | |
841 | program_transform_name | |
842 | prefix | |
843 | exec_prefix | |
844 | PACKAGE_URL | |
845 | PACKAGE_BUGREPORT | |
846 | PACKAGE_STRING | |
847 | PACKAGE_VERSION | |
848 | PACKAGE_TARNAME | |
849 | PACKAGE_NAME | |
850 | PATH_SEPARATOR | |
851 | SHELL' | |
852 | ac_subst_files='' | |
853 | ac_user_opts=' | |
854 | enable_option_checking | |
9c60689e | 855 | enable_static |
549f29b5 | 856 | enable_shared |
9c60689e DWT |
857 | with_pic |
858 | enable_fast_install | |
35fa52c0 | 859 | with_gnu_ld |
9c60689e | 860 | enable_libtool_lock |
632b71ea | 861 | with_frameworks |
9c60689e | 862 | with_apr |
35fa52c0 DWT |
863 | enable_rpath |
864 | with_libiconv_prefix | |
b66977f1 | 865 | enable_javascript |
c7aa54aa DWT |
866 | ' |
867 | ac_precious_vars='build_alias | |
868 | host_alias | |
dbadc56a | 869 | target_alias |
35fa52c0 DWT |
870 | CC |
871 | CFLAGS | |
dbadc56a DWT |
872 | LDFLAGS |
873 | LIBS | |
874 | CPPFLAGS | |
9c60689e | 875 | CPP |
3fd51f51 | 876 | PKG_CONFIG |
e9c9a47c DWT |
877 | BISON |
878 | FLEX | |
879 | GPERF | |
35fa52c0 DWT |
880 | CXX |
881 | CXXFLAGS | |
882 | CCC | |
9c60689e | 883 | CXXCPP |
632b71ea DWT |
884 | OBJCXX |
885 | OBJCXXFLAGS | |
35fa52c0 DWT |
886 | WEBKIT_CFLAGS |
887 | WEBKIT_LIBS | |
a667869d | 888 | LIBFFI_CFLAGS |
790e5246 DWT |
889 | LIBFFI_LIBS |
890 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
891 | |
892 | ||
893 | # Initialize some variables set by options. | |
894 | ac_init_help= | |
895 | ac_init_version=false | |
896 | ac_unrecognized_opts= | |
897 | ac_unrecognized_sep= | |
898 | # The variables have the same names as the options, with | |
899 | # dashes changed to underlines. | |
900 | cache_file=/dev/null | |
901 | exec_prefix=NONE | |
902 | no_create= | |
903 | no_recursion= | |
904 | prefix=NONE | |
905 | program_prefix=NONE | |
906 | program_suffix=NONE | |
907 | program_transform_name=s,x,x, | |
908 | silent= | |
909 | site= | |
910 | srcdir= | |
911 | verbose= | |
912 | x_includes=NONE | |
913 | x_libraries=NONE | |
914 | ||
915 | # Installation directory options. | |
916 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
917 | # and all the variables that are supposed to be based on exec_prefix | |
918 | # by default will actually change. | |
919 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
920 | # (The list follows the same order as the GNU Coding Standards.) | |
921 | bindir='${exec_prefix}/bin' | |
922 | sbindir='${exec_prefix}/sbin' | |
923 | libexecdir='${exec_prefix}/libexec' | |
924 | datarootdir='${prefix}/share' | |
925 | datadir='${datarootdir}' | |
926 | sysconfdir='${prefix}/etc' | |
927 | sharedstatedir='${prefix}/com' | |
928 | localstatedir='${prefix}/var' | |
929 | includedir='${prefix}/include' | |
930 | oldincludedir='/usr/include' | |
931 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
932 | infodir='${datarootdir}/info' | |
933 | htmldir='${docdir}' | |
934 | dvidir='${docdir}' | |
935 | pdfdir='${docdir}' | |
936 | psdir='${docdir}' | |
937 | libdir='${exec_prefix}/lib' | |
938 | localedir='${datarootdir}/locale' | |
939 | mandir='${datarootdir}/man' | |
940 | ||
941 | ac_prev= | |
942 | ac_dashdash= | |
943 | for ac_option | |
944 | do | |
945 | # If the previous option needs an argument, assign it. | |
946 | if test -n "$ac_prev"; then | |
947 | eval $ac_prev=\$ac_option | |
948 | ac_prev= | |
949 | continue | |
950 | fi | |
951 | ||
952 | case $ac_option in | |
953 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
954 | *) ac_optarg=yes ;; | |
955 | esac | |
956 | ||
957 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
958 | ||
959 | case $ac_dashdash$ac_option in | |
960 | --) | |
961 | ac_dashdash=yes ;; | |
962 | ||
963 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
964 | ac_prev=bindir ;; | |
965 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
966 | bindir=$ac_optarg ;; | |
967 | ||
968 | -build | --build | --buil | --bui | --bu) | |
969 | ac_prev=build_alias ;; | |
970 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
971 | build_alias=$ac_optarg ;; | |
972 | ||
973 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
974 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
975 | ac_prev=cache_file ;; | |
976 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
977 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
978 | cache_file=$ac_optarg ;; | |
979 | ||
980 | --config-cache | -C) | |
981 | cache_file=config.cache ;; | |
982 | ||
983 | -datadir | --datadir | --datadi | --datad) | |
984 | ac_prev=datadir ;; | |
985 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
986 | datadir=$ac_optarg ;; | |
987 | ||
988 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
989 | | --dataroo | --dataro | --datar) | |
990 | ac_prev=datarootdir ;; | |
991 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
992 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
993 | datarootdir=$ac_optarg ;; | |
994 | ||
995 | -disable-* | --disable-*) | |
996 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
997 | # Reject names that are not valid shell variable names. | |
998 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
999 | as_fn_error "invalid feature name: $ac_useropt" | |
1000 | ac_useropt_orig=$ac_useropt | |
1001 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1002 | case $ac_user_opts in | |
1003 | *" | |
1004 | "enable_$ac_useropt" | |
1005 | "*) ;; | |
1006 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1007 | ac_unrecognized_sep=', ';; | |
1008 | esac | |
1009 | eval enable_$ac_useropt=no ;; | |
1010 | ||
1011 | -docdir | --docdir | --docdi | --doc | --do) | |
1012 | ac_prev=docdir ;; | |
1013 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1014 | docdir=$ac_optarg ;; | |
1015 | ||
1016 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1017 | ac_prev=dvidir ;; | |
1018 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1019 | dvidir=$ac_optarg ;; | |
1020 | ||
1021 | -enable-* | --enable-*) | |
1022 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1023 | # Reject names that are not valid shell variable names. | |
1024 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1025 | as_fn_error "invalid feature name: $ac_useropt" | |
1026 | ac_useropt_orig=$ac_useropt | |
1027 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1028 | case $ac_user_opts in | |
1029 | *" | |
1030 | "enable_$ac_useropt" | |
1031 | "*) ;; | |
1032 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1033 | ac_unrecognized_sep=', ';; | |
1034 | esac | |
1035 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1036 | ||
1037 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1038 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1039 | | --exec | --exe | --ex) | |
1040 | ac_prev=exec_prefix ;; | |
1041 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1042 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1043 | | --exec=* | --exe=* | --ex=*) | |
1044 | exec_prefix=$ac_optarg ;; | |
1045 | ||
1046 | -gas | --gas | --ga | --g) | |
1047 | # Obsolete; use --with-gas. | |
1048 | with_gas=yes ;; | |
1049 | ||
1050 | -help | --help | --hel | --he | -h) | |
1051 | ac_init_help=long ;; | |
1052 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1053 | ac_init_help=recursive ;; | |
1054 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1055 | ac_init_help=short ;; | |
1056 | ||
1057 | -host | --host | --hos | --ho) | |
1058 | ac_prev=host_alias ;; | |
1059 | -host=* | --host=* | --hos=* | --ho=*) | |
1060 | host_alias=$ac_optarg ;; | |
1061 | ||
1062 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1063 | ac_prev=htmldir ;; | |
1064 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1065 | | --ht=*) | |
1066 | htmldir=$ac_optarg ;; | |
1067 | ||
1068 | -includedir | --includedir | --includedi | --included | --include \ | |
1069 | | --includ | --inclu | --incl | --inc) | |
1070 | ac_prev=includedir ;; | |
1071 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1072 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1073 | includedir=$ac_optarg ;; | |
1074 | ||
1075 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1076 | ac_prev=infodir ;; | |
1077 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1078 | infodir=$ac_optarg ;; | |
1079 | ||
1080 | -libdir | --libdir | --libdi | --libd) | |
1081 | ac_prev=libdir ;; | |
1082 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1083 | libdir=$ac_optarg ;; | |
1084 | ||
1085 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1086 | | --libexe | --libex | --libe) | |
1087 | ac_prev=libexecdir ;; | |
1088 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1089 | | --libexe=* | --libex=* | --libe=*) | |
1090 | libexecdir=$ac_optarg ;; | |
1091 | ||
1092 | -localedir | --localedir | --localedi | --localed | --locale) | |
1093 | ac_prev=localedir ;; | |
1094 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1095 | localedir=$ac_optarg ;; | |
1096 | ||
1097 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1098 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1099 | ac_prev=localstatedir ;; | |
1100 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1101 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1102 | localstatedir=$ac_optarg ;; | |
1103 | ||
1104 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1105 | ac_prev=mandir ;; | |
1106 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1107 | mandir=$ac_optarg ;; | |
1108 | ||
1109 | -nfp | --nfp | --nf) | |
1110 | # Obsolete; use --without-fp. | |
1111 | with_fp=no ;; | |
1112 | ||
1113 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1114 | | --no-cr | --no-c | -n) | |
1115 | no_create=yes ;; | |
1116 | ||
1117 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1118 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1119 | no_recursion=yes ;; | |
1120 | ||
1121 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1122 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1123 | | --oldin | --oldi | --old | --ol | --o) | |
1124 | ac_prev=oldincludedir ;; | |
1125 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1126 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1127 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1128 | oldincludedir=$ac_optarg ;; | |
1129 | ||
1130 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1131 | ac_prev=prefix ;; | |
1132 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1133 | prefix=$ac_optarg ;; | |
1134 | ||
1135 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1136 | | --program-pre | --program-pr | --program-p) | |
1137 | ac_prev=program_prefix ;; | |
1138 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1139 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1140 | program_prefix=$ac_optarg ;; | |
1141 | ||
1142 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1143 | | --program-suf | --program-su | --program-s) | |
1144 | ac_prev=program_suffix ;; | |
1145 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1146 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1147 | program_suffix=$ac_optarg ;; | |
1148 | ||
1149 | -program-transform-name | --program-transform-name \ | |
1150 | | --program-transform-nam | --program-transform-na \ | |
1151 | | --program-transform-n | --program-transform- \ | |
1152 | | --program-transform | --program-transfor \ | |
1153 | | --program-transfo | --program-transf \ | |
1154 | | --program-trans | --program-tran \ | |
1155 | | --progr-tra | --program-tr | --program-t) | |
1156 | ac_prev=program_transform_name ;; | |
1157 | -program-transform-name=* | --program-transform-name=* \ | |
1158 | | --program-transform-nam=* | --program-transform-na=* \ | |
1159 | | --program-transform-n=* | --program-transform-=* \ | |
1160 | | --program-transform=* | --program-transfor=* \ | |
1161 | | --program-transfo=* | --program-transf=* \ | |
1162 | | --program-trans=* | --program-tran=* \ | |
1163 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1164 | program_transform_name=$ac_optarg ;; | |
1165 | ||
1166 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1167 | ac_prev=pdfdir ;; | |
1168 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1169 | pdfdir=$ac_optarg ;; | |
1170 | ||
1171 | -psdir | --psdir | --psdi | --psd | --ps) | |
1172 | ac_prev=psdir ;; | |
1173 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1174 | psdir=$ac_optarg ;; | |
1175 | ||
1176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1177 | | -silent | --silent | --silen | --sile | --sil) | |
1178 | silent=yes ;; | |
1179 | ||
1180 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1181 | ac_prev=sbindir ;; | |
1182 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1183 | | --sbi=* | --sb=*) | |
1184 | sbindir=$ac_optarg ;; | |
1185 | ||
1186 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1187 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1188 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1189 | | --sha | --sh) | |
1190 | ac_prev=sharedstatedir ;; | |
1191 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1192 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1193 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1194 | | --sha=* | --sh=*) | |
1195 | sharedstatedir=$ac_optarg ;; | |
1196 | ||
1197 | -site | --site | --sit) | |
1198 | ac_prev=site ;; | |
1199 | -site=* | --site=* | --sit=*) | |
1200 | site=$ac_optarg ;; | |
1201 | ||
1202 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1203 | ac_prev=srcdir ;; | |
1204 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1205 | srcdir=$ac_optarg ;; | |
1206 | ||
1207 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1208 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1209 | ac_prev=sysconfdir ;; | |
1210 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1211 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1212 | sysconfdir=$ac_optarg ;; | |
1213 | ||
1214 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1215 | ac_prev=target_alias ;; | |
1216 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1217 | target_alias=$ac_optarg ;; | |
1218 | ||
1219 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1220 | verbose=yes ;; | |
1221 | ||
1222 | -version | --version | --versio | --versi | --vers | -V) | |
1223 | ac_init_version=: ;; | |
1224 | ||
1225 | -with-* | --with-*) | |
1226 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1227 | # Reject names that are not valid shell variable names. | |
1228 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1229 | as_fn_error "invalid package name: $ac_useropt" | |
1230 | ac_useropt_orig=$ac_useropt | |
1231 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1232 | case $ac_user_opts in | |
1233 | *" | |
1234 | "with_$ac_useropt" | |
1235 | "*) ;; | |
1236 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1237 | ac_unrecognized_sep=', ';; | |
1238 | esac | |
1239 | eval with_$ac_useropt=\$ac_optarg ;; | |
1240 | ||
1241 | -without-* | --without-*) | |
1242 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1243 | # Reject names that are not valid shell variable names. | |
1244 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1245 | as_fn_error "invalid package name: $ac_useropt" | |
1246 | ac_useropt_orig=$ac_useropt | |
1247 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1248 | case $ac_user_opts in | |
1249 | *" | |
1250 | "with_$ac_useropt" | |
1251 | "*) ;; | |
1252 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1253 | ac_unrecognized_sep=', ';; | |
1254 | esac | |
1255 | eval with_$ac_useropt=no ;; | |
1256 | ||
1257 | --x) | |
1258 | # Obsolete; use --with-x. | |
1259 | with_x=yes ;; | |
1260 | ||
1261 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1262 | | --x-incl | --x-inc | --x-in | --x-i) | |
1263 | ac_prev=x_includes ;; | |
1264 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1265 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1266 | x_includes=$ac_optarg ;; | |
1267 | ||
1268 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1269 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1270 | ac_prev=x_libraries ;; | |
1271 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1272 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1273 | x_libraries=$ac_optarg ;; | |
1274 | ||
1275 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1276 | Try \`$0 --help' for more information." | |
1277 | ;; | |
1278 | ||
1279 | *=*) | |
1280 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1281 | # Reject names that are not valid shell variable names. | |
1282 | case $ac_envvar in #( | |
1283 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1284 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1285 | esac | |
1286 | eval $ac_envvar=\$ac_optarg | |
1287 | export $ac_envvar ;; | |
1288 | ||
1289 | *) | |
1290 | # FIXME: should be removed in autoconf 3.0. | |
1291 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1292 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1293 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1294 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1295 | ;; | |
1296 | ||
1297 | esac | |
1298 | done | |
1299 | ||
1300 | if test -n "$ac_prev"; then | |
1301 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1302 | as_fn_error "missing argument to $ac_option" | |
1303 | fi | |
1304 | ||
1305 | if test -n "$ac_unrecognized_opts"; then | |
1306 | case $enable_option_checking in | |
1307 | no) ;; | |
1308 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1309 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1310 | esac | |
1311 | fi | |
1312 | ||
1313 | # Check all directory arguments for consistency. | |
1314 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1315 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1316 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1317 | libdir localedir mandir | |
1318 | do | |
1319 | eval ac_val=\$$ac_var | |
1320 | # Remove trailing slashes. | |
1321 | case $ac_val in | |
1322 | */ ) | |
1323 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1324 | eval $ac_var=\$ac_val;; | |
1325 | esac | |
1326 | # Be sure to have absolute directory names. | |
1327 | case $ac_val in | |
1328 | [\\/$]* | ?:[\\/]* ) continue;; | |
1329 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1330 | esac | |
1331 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1332 | done | |
1333 | ||
1334 | # There might be people who depend on the old broken behavior: `$host' | |
1335 | # used to hold the argument of --host etc. | |
1336 | # FIXME: To remove some day. | |
1337 | build=$build_alias | |
1338 | host=$host_alias | |
1339 | target=$target_alias | |
1340 | ||
1341 | # FIXME: To remove some day. | |
1342 | if test "x$host_alias" != x; then | |
1343 | if test "x$build_alias" = x; then | |
1344 | cross_compiling=maybe | |
1345 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1346 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1347 | elif test "x$build_alias" != "x$host_alias"; then | |
1348 | cross_compiling=yes | |
1349 | fi | |
1350 | fi | |
1351 | ||
1352 | ac_tool_prefix= | |
1353 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1354 | ||
1355 | test "$silent" = yes && exec 6>/dev/null | |
1356 | ||
1357 | ||
1358 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1359 | ac_ls_di=`ls -di .` && | |
1360 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1361 | as_fn_error "working directory cannot be determined" | |
1362 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1363 | as_fn_error "pwd does not report name of working directory" | |
1364 | ||
1365 | ||
1366 | # Find the source files, if location was not specified. | |
1367 | if test -z "$srcdir"; then | |
1368 | ac_srcdir_defaulted=yes | |
1369 | # Try the directory containing this script, then the parent directory. | |
1370 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1371 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1372 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1373 | X"$as_myself" : 'X\(//\)$' \| \ | |
1374 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1375 | $as_echo X"$as_myself" | | |
1376 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\/\)[^/].*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)$/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\).*/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | s/.*/./; q'` | |
1393 | srcdir=$ac_confdir | |
1394 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1395 | srcdir=.. | |
1396 | fi | |
1397 | else | |
1398 | ac_srcdir_defaulted=no | |
1399 | fi | |
1400 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1401 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1402 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1403 | fi | |
1404 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1405 | ac_abs_confdir=`( | |
1406 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1407 | pwd)` | |
1408 | # When building in place, set srcdir=. | |
1409 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1410 | srcdir=. | |
1411 | fi | |
1412 | # Remove unnecessary trailing slashes from srcdir. | |
1413 | # Double slashes in file names in object file debugging info | |
1414 | # mess up M-x gdb in Emacs. | |
1415 | case $srcdir in | |
1416 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1417 | esac | |
1418 | for ac_var in $ac_precious_vars; do | |
1419 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1420 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1421 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1422 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1423 | done | |
1424 | ||
1425 | # | |
1426 | # Report the --help message. | |
1427 | # | |
1428 | if test "$ac_init_help" = "long"; then | |
1429 | # Omit some internal or obsolete options to make the list less imposing. | |
1430 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1431 | cat <<_ACEOF | |
1432 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1433 | ||
1434 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1435 | ||
1436 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1437 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1438 | ||
1439 | Defaults for the options are specified in brackets. | |
1440 | ||
1441 | Configuration: | |
1442 | -h, --help display this help and exit | |
1443 | --help=short display options specific to this package | |
1444 | --help=recursive display the short help of all the included packages | |
1445 | -V, --version display version information and exit | |
1446 | -q, --quiet, --silent do not print \`checking...' messages | |
1447 | --cache-file=FILE cache test results in FILE [disabled] | |
1448 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1449 | -n, --no-create do not create output files | |
1450 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1451 | ||
1452 | Installation directories: | |
1453 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1454 | [$ac_default_prefix] | |
1455 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1456 | [PREFIX] | |
1457 | ||
1458 | By default, \`make install' will install all the files in | |
1459 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1460 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1461 | for instance \`--prefix=\$HOME'. | |
1462 | ||
1463 | For better control, use the options below. | |
1464 | ||
1465 | Fine tuning of the installation directories: | |
1466 | --bindir=DIR user executables [EPREFIX/bin] | |
1467 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1468 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1469 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1470 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1471 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1472 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1473 | --includedir=DIR C header files [PREFIX/include] | |
1474 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1475 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1476 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1477 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1478 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1479 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1480 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1481 | --htmldir=DIR html documentation [DOCDIR] | |
1482 | --dvidir=DIR dvi documentation [DOCDIR] | |
1483 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1484 | --psdir=DIR ps documentation [DOCDIR] | |
1485 | _ACEOF | |
1486 | ||
1487 | cat <<\_ACEOF | |
35fa52c0 DWT |
1488 | |
1489 | System types: | |
1490 | --build=BUILD configure for building on BUILD [guessed] | |
1491 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1492 | _ACEOF |
1493 | fi | |
1494 | ||
1495 | if test -n "$ac_init_help"; then | |
1496 | case $ac_init_help in | |
1497 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1498 | esac | |
1499 | cat <<\_ACEOF | |
1500 | ||
35fa52c0 DWT |
1501 | Optional Features: |
1502 | --disable-option-checking ignore unrecognized --enable/--with options | |
1503 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1504 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1505 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1506 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1507 | --enable-fast-install[=PKGS] |
1508 | optimize for fast installation [default=yes] | |
1509 | --disable-libtool-lock avoid locking (might break parallel builds) | |
35fa52c0 | 1510 | --disable-rpath do not hardcode runtime library paths |
b66977f1 | 1511 | --enable-javascript[=ENGINE] |
790e5246 | 1512 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1513 | available option for ENGINE is JavaScriptCore) |
1514 | [default=yes] | |
35fa52c0 DWT |
1515 | |
1516 | Optional Packages: | |
1517 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1518 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1519 | --with-pic try to use only PIC/non-PIC objects [default=use |
1520 | both] | |
1521 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
632b71ea DWT |
1522 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1523 | path for frameworks with -F | |
309b0535 DWT |
1524 | --with-apr=PATH prefix for installed APR or the full path to |
1525 | apr-config | |
35fa52c0 DWT |
1526 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1527 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1528 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1529 | ||
dbadc56a | 1530 | Some influential environment variables: |
35fa52c0 DWT |
1531 | CC C compiler command |
1532 | CFLAGS C compiler flags | |
dbadc56a DWT |
1533 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1534 | nonstandard directory <lib dir> | |
1535 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1536 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1537 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1538 | CPP C preprocessor |
3fd51f51 | 1539 | PKG_CONFIG path to pkg-config utility |
e9c9a47c DWT |
1540 | BISON GNU Project parser generator (yacc replacement) |
1541 | FLEX the fast lexical analyser generator | |
1542 | GPERF perfect hash function generator | |
47aaa820 DWT |
1543 | CXX C++ compiler command |
1544 | CXXFLAGS C++ compiler flags | |
1545 | CXXCPP C++ preprocessor | |
632b71ea DWT |
1546 | OBJCXX Objective C++ compiler command |
1547 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1548 | WEBKIT_CFLAGS |
1549 | C compiler flags for WEBKIT, overriding pkg-config | |
1550 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1551 | LIBFFI_CFLAGS | |
1552 | C compiler flags for LIBFFI, overriding pkg-config | |
1553 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1554 | GNUSTEP_CONFIG |
1555 | prints information about the current gnustep installation | |
dbadc56a DWT |
1556 | |
1557 | Use these variables to override the choices made by `configure' or to help | |
1558 | it to find libraries and programs with nonstandard names/locations. | |
1559 | ||
c7aa54aa DWT |
1560 | Report bugs to <saurik@saurik.com>. |
1561 | Cycript home page: <http://www.cycript.org/>. | |
1562 | _ACEOF | |
1563 | ac_status=$? | |
1564 | fi | |
1565 | ||
1566 | if test "$ac_init_help" = "recursive"; then | |
1567 | # If there are subdirs, report their specific --help. | |
1568 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1569 | test -d "$ac_dir" || | |
1570 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1571 | continue | |
1572 | ac_builddir=. | |
1573 | ||
1574 | case "$ac_dir" in | |
1575 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1576 | *) | |
1577 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1578 | # A ".." for each directory in $ac_dir_suffix. | |
1579 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1580 | case $ac_top_builddir_sub in | |
1581 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1582 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1583 | esac ;; | |
1584 | esac | |
1585 | ac_abs_top_builddir=$ac_pwd | |
1586 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1587 | # for backward compatibility: | |
1588 | ac_top_builddir=$ac_top_build_prefix | |
1589 | ||
1590 | case $srcdir in | |
1591 | .) # We are building in place. | |
1592 | ac_srcdir=. | |
1593 | ac_top_srcdir=$ac_top_builddir_sub | |
1594 | ac_abs_top_srcdir=$ac_pwd ;; | |
1595 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1596 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1597 | ac_top_srcdir=$srcdir | |
1598 | ac_abs_top_srcdir=$srcdir ;; | |
1599 | *) # Relative name. | |
1600 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1601 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1602 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1603 | esac | |
1604 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1605 | ||
1606 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1607 | # Check for guested configure. | |
1608 | if test -f "$ac_srcdir/configure.gnu"; then | |
1609 | echo && | |
1610 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1611 | elif test -f "$ac_srcdir/configure"; then | |
1612 | echo && | |
1613 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1614 | else | |
1615 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1616 | fi || ac_status=$? | |
1617 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1618 | done | |
1619 | fi | |
1620 | ||
1621 | test -n "$ac_init_help" && exit $ac_status | |
1622 | if $ac_init_version; then | |
1623 | cat <<\_ACEOF | |
1624 | Cycript configure 0.9 | |
9c60689e | 1625 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1626 | |
1627 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1628 | This configure script is free software; the Free Software Foundation | |
1629 | gives unlimited permission to copy, distribute and modify it. | |
1630 | _ACEOF | |
1631 | exit | |
1632 | fi | |
1633 | ||
1634 | ## ------------------------ ## | |
1635 | ## Autoconf initialization. ## | |
1636 | ## ------------------------ ## | |
dbadc56a | 1637 | |
35fa52c0 DWT |
1638 | # ac_fn_c_try_compile LINENO |
1639 | # -------------------------- | |
1640 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1641 | ac_fn_c_try_compile () | |
1642 | { | |
1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1644 | rm -f conftest.$ac_objext | |
1645 | if { { ac_try="$ac_compile" | |
1646 | case "(($ac_try" in | |
1647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1648 | *) ac_try_echo=$ac_try;; | |
1649 | esac | |
1650 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1651 | $as_echo "$ac_try_echo"; } >&5 | |
1652 | (eval "$ac_compile") 2>conftest.err | |
1653 | ac_status=$? | |
1654 | if test -s conftest.err; then | |
1655 | grep -v '^ *+' conftest.err >conftest.er1 | |
1656 | cat conftest.er1 >&5 | |
1657 | mv -f conftest.er1 conftest.err | |
1658 | fi | |
1659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1660 | test $ac_status = 0; } && { | |
1661 | test -z "$ac_c_werror_flag" || | |
1662 | test ! -s conftest.err | |
1663 | } && test -s conftest.$ac_objext; then : | |
1664 | ac_retval=0 | |
1665 | else | |
1666 | $as_echo "$as_me: failed program was:" >&5 | |
1667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1668 | ||
1669 | ac_retval=1 | |
1670 | fi | |
1671 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1672 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1673 | |
1674 | } # ac_fn_c_try_compile | |
1675 | ||
1676 | # ac_fn_c_try_link LINENO | |
1677 | # ----------------------- | |
1678 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1679 | ac_fn_c_try_link () | |
1680 | { | |
1681 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1683 | if { { ac_try="$ac_link" | |
1684 | case "(($ac_try" in | |
1685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1686 | *) ac_try_echo=$ac_try;; | |
1687 | esac | |
1688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1689 | $as_echo "$ac_try_echo"; } >&5 | |
1690 | (eval "$ac_link") 2>conftest.err | |
1691 | ac_status=$? | |
1692 | if test -s conftest.err; then | |
1693 | grep -v '^ *+' conftest.err >conftest.er1 | |
1694 | cat conftest.er1 >&5 | |
1695 | mv -f conftest.er1 conftest.err | |
1696 | fi | |
1697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1698 | test $ac_status = 0; } && { | |
1699 | test -z "$ac_c_werror_flag" || | |
1700 | test ! -s conftest.err | |
1701 | } && test -s conftest$ac_exeext && { | |
1702 | test "$cross_compiling" = yes || | |
1703 | $as_test_x conftest$ac_exeext | |
1704 | }; then : | |
1705 | ac_retval=0 | |
1706 | else | |
1707 | $as_echo "$as_me: failed program was:" >&5 | |
1708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1709 | ||
1710 | ac_retval=1 | |
1711 | fi | |
1712 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1713 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1714 | # interfere with the next link command; also delete a directory that is | |
1715 | # left behind by Apple's compiler. We do this before executing the actions. | |
1716 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1717 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1718 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1719 | |
1720 | } # ac_fn_c_try_link | |
1721 | ||
9c60689e DWT |
1722 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1723 | # ------------------------------------------------------- | |
1724 | # Tests whether HEADER exists and can be compiled using the include files in | |
1725 | # INCLUDES, setting the cache variable VAR accordingly. | |
1726 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1727 | { |
1728 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1730 | $as_echo_n "checking for $2... " >&6; } | |
1731 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1732 | $as_echo_n "(cached) " >&6 | |
1733 | else | |
1734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1735 | /* end confdefs.h. */ | |
1736 | $4 | |
1737 | #include <$2> | |
1738 | _ACEOF | |
1739 | if ac_fn_c_try_compile "$LINENO"; then : | |
1740 | eval "$3=yes" | |
1741 | else | |
1742 | eval "$3=no" | |
1743 | fi | |
1744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1745 | fi | |
1746 | eval ac_res=\$$3 | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1748 | $as_echo "$ac_res" >&6; } | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | ||
1751 | } # ac_fn_c_check_header_compile | |
1752 | ||
1753 | # ac_fn_c_try_cpp LINENO | |
1754 | # ---------------------- | |
1755 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1756 | ac_fn_c_try_cpp () | |
1757 | { | |
1758 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1760 | case "(($ac_try" in |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1767 | ac_status=$? |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1774 | test $ac_status = 0; } >/dev/null && { |
1775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1776 | test ! -s conftest.err |
9c60689e | 1777 | }; then : |
dbadc56a DWT |
1778 | ac_retval=0 |
1779 | else | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1782 | ||
9c60689e | 1783 | ac_retval=1 |
dbadc56a DWT |
1784 | fi |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1786 | as_fn_set_status $ac_retval |
dbadc56a | 1787 | |
9c60689e | 1788 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1789 | |
1790 | # ac_fn_c_try_run LINENO | |
1791 | # ---------------------- | |
1792 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1793 | # that executables *can* be run. | |
1794 | ac_fn_c_try_run () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | if { { ac_try="$ac_link" | |
1798 | case "(($ac_try" in | |
1799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1800 | *) ac_try_echo=$ac_try;; | |
1801 | esac | |
1802 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1803 | $as_echo "$ac_try_echo"; } >&5 | |
1804 | (eval "$ac_link") 2>&5 | |
1805 | ac_status=$? | |
1806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1807 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1808 | { { case "(($ac_try" in | |
1809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1810 | *) ac_try_echo=$ac_try;; | |
1811 | esac | |
1812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1813 | $as_echo "$ac_try_echo"; } >&5 | |
1814 | (eval "$ac_try") 2>&5 | |
1815 | ac_status=$? | |
1816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1817 | test $ac_status = 0; }; }; then : | |
1818 | ac_retval=0 | |
1819 | else | |
1820 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1821 | $as_echo "$as_me: failed program was:" >&5 | |
1822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1823 | ||
1824 | ac_retval=$ac_status | |
1825 | fi | |
1826 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1827 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1828 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1829 | |
1830 | } # ac_fn_c_try_run | |
6b66678a | 1831 | |
9c60689e DWT |
1832 | # ac_fn_c_check_func LINENO FUNC VAR |
1833 | # ---------------------------------- | |
1834 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1835 | ac_fn_c_check_func () | |
6b66678a DWT |
1836 | { |
1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1839 | $as_echo_n "checking for $2... " >&6; } | |
1840 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1841 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1842 | else |
9c60689e DWT |
1843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1844 | /* end confdefs.h. */ | |
1845 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1847 | #define $2 innocuous_$2 | |
6b66678a | 1848 | |
9c60689e DWT |
1849 | /* System header to define __stub macros and hopefully few prototypes, |
1850 | which can conflict with char $2 (); below. | |
1851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1852 | <limits.h> exists even on freestanding compilers. */ | |
1853 | ||
1854 | #ifdef __STDC__ | |
1855 | # include <limits.h> | |
1856 | #else | |
1857 | # include <assert.h> | |
1858 | #endif | |
1859 | ||
1860 | #undef $2 | |
1861 | ||
1862 | /* Override any GCC internal prototype to avoid an error. | |
1863 | Use char because int might match the return type of a GCC | |
1864 | builtin and then its argument prototype would still apply. */ | |
1865 | #ifdef __cplusplus | |
1866 | extern "C" | |
1867 | #endif | |
1868 | char $2 (); | |
1869 | /* The GNU C library defines this for functions which it implements | |
1870 | to always fail with ENOSYS. Some functions are actually named | |
1871 | something starting with __ and the normal name is an alias. */ | |
1872 | #if defined __stub_$2 || defined __stub___$2 | |
1873 | choke me | |
1874 | #endif | |
1875 | ||
1876 | int | |
1877 | main () | |
1878 | { | |
1879 | return $2 (); | |
1880 | ; | |
1881 | return 0; | |
1882 | } | |
1883 | _ACEOF | |
1884 | if ac_fn_c_try_link "$LINENO"; then : | |
1885 | eval "$3=yes" | |
1886 | else | |
1887 | eval "$3=no" | |
1888 | fi | |
1889 | rm -f core conftest.err conftest.$ac_objext \ | |
1890 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1891 | fi |
9c60689e DWT |
1892 | eval ac_res=\$$3 |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1894 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1895 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1896 | |
9c60689e | 1897 | } # ac_fn_c_check_func |
6b66678a | 1898 | |
9c60689e DWT |
1899 | # ac_fn_cxx_try_compile LINENO |
1900 | # ---------------------------- | |
1901 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1902 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1903 | { |
1904 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1905 | rm -f conftest.$ac_objext |
1906 | if { { ac_try="$ac_compile" | |
1907 | case "(($ac_try" in | |
1908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1909 | *) ac_try_echo=$ac_try;; | |
1910 | esac | |
1911 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1912 | $as_echo "$ac_try_echo"; } >&5 | |
1913 | (eval "$ac_compile") 2>conftest.err | |
1914 | ac_status=$? | |
1915 | if test -s conftest.err; then | |
1916 | grep -v '^ *+' conftest.err >conftest.er1 | |
1917 | cat conftest.er1 >&5 | |
1918 | mv -f conftest.er1 conftest.err | |
1919 | fi | |
1920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1921 | test $ac_status = 0; } && { | |
1922 | test -z "$ac_cxx_werror_flag" || | |
1923 | test ! -s conftest.err | |
1924 | } && test -s conftest.$ac_objext; then : | |
1925 | ac_retval=0 | |
1926 | else | |
1927 | $as_echo "$as_me: failed program was:" >&5 | |
1928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1929 | ||
1930 | ac_retval=1 | |
1931 | fi | |
1932 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1933 | as_fn_set_status $ac_retval | |
1934 | ||
1935 | } # ac_fn_cxx_try_compile | |
1936 | ||
1937 | # ac_fn_cxx_try_cpp LINENO | |
1938 | # ------------------------ | |
1939 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1940 | ac_fn_cxx_try_cpp () | |
1941 | { | |
1942 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1943 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1944 | case "(($ac_try" in | |
1945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1946 | *) ac_try_echo=$ac_try;; | |
1947 | esac | |
1948 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1949 | $as_echo "$ac_try_echo"; } >&5 | |
1950 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1951 | ac_status=$? | |
1952 | if test -s conftest.err; then | |
1953 | grep -v '^ *+' conftest.err >conftest.er1 | |
1954 | cat conftest.er1 >&5 | |
1955 | mv -f conftest.er1 conftest.err | |
1956 | fi | |
1957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1958 | test $ac_status = 0; } >/dev/null && { | |
1959 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1960 | test ! -s conftest.err | |
1961 | }; then : | |
1962 | ac_retval=0 | |
1963 | else | |
1964 | $as_echo "$as_me: failed program was:" >&5 | |
1965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1966 | ||
1967 | ac_retval=1 | |
1968 | fi | |
1969 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1970 | as_fn_set_status $ac_retval | |
1971 | ||
1972 | } # ac_fn_cxx_try_cpp | |
1973 | ||
1974 | # ac_fn_cxx_try_link LINENO | |
1975 | # ------------------------- | |
1976 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1977 | ac_fn_cxx_try_link () | |
1978 | { | |
1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1981 | if { { ac_try="$ac_link" | |
1982 | case "(($ac_try" in | |
1983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1984 | *) ac_try_echo=$ac_try;; | |
1985 | esac | |
1986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1987 | $as_echo "$ac_try_echo"; } >&5 | |
1988 | (eval "$ac_link") 2>conftest.err | |
1989 | ac_status=$? | |
1990 | if test -s conftest.err; then | |
1991 | grep -v '^ *+' conftest.err >conftest.er1 | |
1992 | cat conftest.er1 >&5 | |
1993 | mv -f conftest.er1 conftest.err | |
1994 | fi | |
1995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1996 | test $ac_status = 0; } && { | |
1997 | test -z "$ac_cxx_werror_flag" || | |
1998 | test ! -s conftest.err | |
1999 | } && test -s conftest$ac_exeext && { | |
2000 | test "$cross_compiling" = yes || | |
2001 | $as_test_x conftest$ac_exeext | |
2002 | }; then : | |
2003 | ac_retval=0 | |
2004 | else | |
2005 | $as_echo "$as_me: failed program was:" >&5 | |
2006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2007 | ||
2008 | ac_retval=1 | |
2009 | fi | |
2010 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2011 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2012 | # interfere with the next link command; also delete a directory that is | |
2013 | # left behind by Apple's compiler. We do this before executing the actions. | |
2014 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2015 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2016 | as_fn_set_status $ac_retval | |
2017 | ||
2018 | } # ac_fn_cxx_try_link | |
2019 | ||
632b71ea DWT |
2020 | # ac_fn_objcxx_try_compile LINENO |
2021 | # ------------------------------- | |
2022 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2023 | ac_fn_objcxx_try_compile () | |
2024 | { | |
2025 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2026 | rm -f conftest.$ac_objext | |
2027 | if { { ac_try="$ac_compile" | |
2028 | case "(($ac_try" in | |
2029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2030 | *) ac_try_echo=$ac_try;; | |
2031 | esac | |
2032 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2033 | $as_echo "$ac_try_echo"; } >&5 | |
2034 | (eval "$ac_compile") 2>conftest.err | |
2035 | ac_status=$? | |
2036 | if test -s conftest.err; then | |
2037 | grep -v '^ *+' conftest.err >conftest.er1 | |
2038 | cat conftest.er1 >&5 | |
2039 | mv -f conftest.er1 conftest.err | |
2040 | fi | |
2041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2042 | test $ac_status = 0; } && { | |
2043 | test -z "$ac_objcxx_werror_flag" || | |
2044 | test ! -s conftest.err | |
2045 | } && test -s conftest.$ac_objext; then : | |
2046 | ac_retval=0 | |
2047 | else | |
2048 | $as_echo "$as_me: failed program was:" >&5 | |
2049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2050 | ||
2051 | ac_retval=1 | |
2052 | fi | |
2053 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2054 | as_fn_set_status $ac_retval | |
2055 | ||
2056 | } # ac_fn_objcxx_try_compile | |
2057 | ||
47aaa820 DWT |
2058 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2059 | # --------------------------------------------------------- | |
2060 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2061 | # the include files in INCLUDES and setting the cache variable VAR | |
2062 | # accordingly. | |
2063 | ac_fn_cxx_check_header_mongrel () | |
2064 | { | |
2065 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2066 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2068 | $as_echo_n "checking for $2... " >&6; } | |
2069 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2070 | $as_echo_n "(cached) " >&6 | |
2071 | fi | |
2072 | eval ac_res=\$$3 | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2074 | $as_echo "$ac_res" >&6; } | |
2075 | else | |
2076 | # Is the header compilable? | |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2078 | $as_echo_n "checking $2 usability... " >&6; } | |
2079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2080 | /* end confdefs.h. */ | |
2081 | $4 | |
2082 | #include <$2> | |
2083 | _ACEOF | |
2084 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2085 | ac_header_compiler=yes | |
2086 | else | |
2087 | ac_header_compiler=no | |
2088 | fi | |
2089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2091 | $as_echo "$ac_header_compiler" >&6; } | |
2092 | ||
2093 | # Is the header present? | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2095 | $as_echo_n "checking $2 presence... " >&6; } | |
2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2097 | /* end confdefs.h. */ | |
2098 | #include <$2> | |
2099 | _ACEOF | |
2100 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2101 | ac_header_preproc=yes | |
2102 | else | |
2103 | ac_header_preproc=no | |
2104 | fi | |
2105 | rm -f conftest.err conftest.$ac_ext | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2107 | $as_echo "$ac_header_preproc" >&6; } | |
2108 | ||
2109 | # So? What about this header? | |
2110 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2111 | yes:no: ) | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2113 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2115 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2116 | ;; | |
2117 | no:yes:* ) | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2119 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2121 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2123 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2125 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2127 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2128 | ( cat <<\_ASBOX | |
2129 | ## -------------------------------- ## | |
2130 | ## Report this to saurik@saurik.com ## | |
2131 | ## -------------------------------- ## | |
2132 | _ASBOX | |
2133 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2134 | ;; | |
2135 | esac | |
2136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2137 | $as_echo_n "checking for $2... " >&6; } | |
2138 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2139 | $as_echo_n "(cached) " >&6 | |
2140 | else | |
2141 | eval "$3=\$ac_header_compiler" | |
2142 | fi | |
2143 | eval ac_res=\$$3 | |
2144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2145 | $as_echo "$ac_res" >&6; } | |
2146 | fi | |
2147 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2148 | ||
2149 | } # ac_fn_cxx_check_header_mongrel | |
2150 | ||
c823f118 DWT |
2151 | # ac_fn_objcxx_try_link LINENO |
2152 | # ---------------------------- | |
2153 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2154 | ac_fn_objcxx_try_link () | |
2155 | { | |
2156 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2158 | if { { ac_try="$ac_link" | |
2159 | case "(($ac_try" in | |
2160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2161 | *) ac_try_echo=$ac_try;; | |
2162 | esac | |
2163 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2164 | $as_echo "$ac_try_echo"; } >&5 | |
2165 | (eval "$ac_link") 2>conftest.err | |
2166 | ac_status=$? | |
2167 | if test -s conftest.err; then | |
2168 | grep -v '^ *+' conftest.err >conftest.er1 | |
2169 | cat conftest.er1 >&5 | |
2170 | mv -f conftest.er1 conftest.err | |
2171 | fi | |
2172 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2173 | test $ac_status = 0; } && { | |
2174 | test -z "$ac_objcxx_werror_flag" || | |
2175 | test ! -s conftest.err | |
2176 | } && test -s conftest$ac_exeext && { | |
2177 | test "$cross_compiling" = yes || | |
2178 | $as_test_x conftest$ac_exeext | |
2179 | }; then : | |
2180 | ac_retval=0 | |
2181 | else | |
2182 | $as_echo "$as_me: failed program was:" >&5 | |
2183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2184 | ||
2185 | ac_retval=1 | |
2186 | fi | |
2187 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2188 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2189 | # interfere with the next link command; also delete a directory that is | |
2190 | # left behind by Apple's compiler. We do this before executing the actions. | |
2191 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2192 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2193 | as_fn_set_status $ac_retval | |
2194 | ||
2195 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2196 | cat >config.log <<_ACEOF |
2197 | This file contains any messages produced by compilers while | |
2198 | running configure, to aid debugging if configure makes a mistake. | |
2199 | ||
2200 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2201 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2202 | |
2203 | $ $0 $@ | |
2204 | ||
2205 | _ACEOF | |
2206 | exec 5>>config.log | |
2207 | { | |
2208 | cat <<_ASUNAME | |
2209 | ## --------- ## | |
2210 | ## Platform. ## | |
2211 | ## --------- ## | |
2212 | ||
2213 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2214 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2215 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2216 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2217 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2218 | ||
2219 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2220 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2221 | ||
2222 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2223 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2224 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2225 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2226 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2227 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2228 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2229 | ||
2230 | _ASUNAME | |
2231 | ||
2232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2233 | for as_dir in $PATH | |
2234 | do | |
2235 | IFS=$as_save_IFS | |
2236 | test -z "$as_dir" && as_dir=. | |
2237 | $as_echo "PATH: $as_dir" | |
2238 | done | |
2239 | IFS=$as_save_IFS | |
2240 | ||
2241 | } >&5 | |
2242 | ||
2243 | cat >&5 <<_ACEOF | |
2244 | ||
2245 | ||
2246 | ## ----------- ## | |
2247 | ## Core tests. ## | |
2248 | ## ----------- ## | |
2249 | ||
2250 | _ACEOF | |
2251 | ||
2252 | ||
2253 | # Keep a trace of the command line. | |
2254 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2255 | # Strip out --silent because we don't want to record it for future runs. | |
2256 | # Also quote any args containing shell meta-characters. | |
2257 | # Make two passes to allow for proper duplicate-argument suppression. | |
2258 | ac_configure_args= | |
2259 | ac_configure_args0= | |
2260 | ac_configure_args1= | |
2261 | ac_must_keep_next=false | |
2262 | for ac_pass in 1 2 | |
2263 | do | |
2264 | for ac_arg | |
2265 | do | |
2266 | case $ac_arg in | |
2267 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2268 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2269 | | -silent | --silent | --silen | --sile | --sil) | |
2270 | continue ;; | |
2271 | *\'*) | |
2272 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2273 | esac | |
2274 | case $ac_pass in | |
2275 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2276 | 2) | |
2277 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2278 | if test $ac_must_keep_next = true; then | |
2279 | ac_must_keep_next=false # Got value, back to normal. | |
2280 | else | |
2281 | case $ac_arg in | |
2282 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2283 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2284 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2285 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2286 | case "$ac_configure_args0 " in | |
2287 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2288 | esac | |
2289 | ;; | |
2290 | -* ) ac_must_keep_next=true ;; | |
2291 | esac | |
2292 | fi | |
2293 | as_fn_append ac_configure_args " '$ac_arg'" | |
2294 | ;; | |
2295 | esac | |
2296 | done | |
2297 | done | |
2298 | { ac_configure_args0=; unset ac_configure_args0;} | |
2299 | { ac_configure_args1=; unset ac_configure_args1;} | |
2300 | ||
2301 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2302 | # config.log. We remove comments because anyway the quotes in there | |
2303 | # would cause problems or look ugly. | |
2304 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2305 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2306 | trap 'exit_status=$? | |
2307 | # Save into config.log some information that might help in debugging. | |
2308 | { | |
2309 | echo | |
2310 | ||
2311 | cat <<\_ASBOX | |
2312 | ## ---------------- ## | |
2313 | ## Cache variables. ## | |
2314 | ## ---------------- ## | |
2315 | _ASBOX | |
2316 | echo | |
2317 | # The following way of writing the cache mishandles newlines in values, | |
2318 | ( | |
2319 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2320 | eval ac_val=\$$ac_var | |
2321 | case $ac_val in #( | |
2322 | *${as_nl}*) | |
2323 | case $ac_var in #( | |
2324 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2325 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2326 | esac | |
2327 | case $ac_var in #( | |
2328 | _ | IFS | as_nl) ;; #( | |
2329 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2330 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2331 | esac ;; | |
2332 | esac | |
2333 | done | |
2334 | (set) 2>&1 | | |
2335 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2336 | *${as_nl}ac_space=\ *) | |
2337 | sed -n \ | |
2338 | "s/'\''/'\''\\\\'\'''\''/g; | |
2339 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2340 | ;; #( | |
2341 | *) | |
2342 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2343 | ;; | |
2344 | esac | | |
2345 | sort | |
2346 | ) | |
2347 | echo | |
2348 | ||
2349 | cat <<\_ASBOX | |
2350 | ## ----------------- ## | |
2351 | ## Output variables. ## | |
2352 | ## ----------------- ## | |
2353 | _ASBOX | |
2354 | echo | |
2355 | for ac_var in $ac_subst_vars | |
2356 | do | |
2357 | eval ac_val=\$$ac_var | |
2358 | case $ac_val in | |
2359 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2360 | esac | |
2361 | $as_echo "$ac_var='\''$ac_val'\''" | |
2362 | done | sort | |
2363 | echo | |
2364 | ||
2365 | if test -n "$ac_subst_files"; then | |
2366 | cat <<\_ASBOX | |
2367 | ## ------------------- ## | |
2368 | ## File substitutions. ## | |
2369 | ## ------------------- ## | |
2370 | _ASBOX | |
2371 | echo | |
2372 | for ac_var in $ac_subst_files | |
2373 | do | |
2374 | eval ac_val=\$$ac_var | |
2375 | case $ac_val in | |
2376 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2377 | esac | |
2378 | $as_echo "$ac_var='\''$ac_val'\''" | |
2379 | done | sort | |
2380 | echo | |
2381 | fi | |
2382 | ||
2383 | if test -s confdefs.h; then | |
2384 | cat <<\_ASBOX | |
2385 | ## ----------- ## | |
2386 | ## confdefs.h. ## | |
2387 | ## ----------- ## | |
2388 | _ASBOX | |
2389 | echo | |
2390 | cat confdefs.h | |
2391 | echo | |
2392 | fi | |
2393 | test "$ac_signal" != 0 && | |
2394 | $as_echo "$as_me: caught signal $ac_signal" | |
2395 | $as_echo "$as_me: exit $exit_status" | |
2396 | } >&5 | |
2397 | rm -f core *.core core.conftest.* && | |
2398 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2399 | exit $exit_status | |
2400 | ' 0 | |
2401 | for ac_signal in 1 2 13 15; do | |
2402 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2403 | done | |
2404 | ac_signal=0 | |
2405 | ||
2406 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2407 | rm -f -r conftest* confdefs.h | |
2408 | ||
2409 | $as_echo "/* confdefs.h */" > confdefs.h | |
2410 | ||
2411 | # Predefined preprocessor variables. | |
2412 | ||
2413 | cat >>confdefs.h <<_ACEOF | |
2414 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2415 | _ACEOF | |
2416 | ||
2417 | cat >>confdefs.h <<_ACEOF | |
2418 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2419 | _ACEOF | |
2420 | ||
2421 | cat >>confdefs.h <<_ACEOF | |
2422 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2423 | _ACEOF | |
2424 | ||
2425 | cat >>confdefs.h <<_ACEOF | |
2426 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2427 | _ACEOF | |
2428 | ||
2429 | cat >>confdefs.h <<_ACEOF | |
2430 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2431 | _ACEOF | |
2432 | ||
2433 | cat >>confdefs.h <<_ACEOF | |
2434 | #define PACKAGE_URL "$PACKAGE_URL" | |
2435 | _ACEOF | |
2436 | ||
2437 | ||
2438 | # Let the site file select an alternate cache file if it wants to. | |
2439 | # Prefer an explicitly selected file to automatically selected ones. | |
2440 | ac_site_file1=NONE | |
2441 | ac_site_file2=NONE | |
2442 | if test -n "$CONFIG_SITE"; then | |
2443 | ac_site_file1=$CONFIG_SITE | |
2444 | elif test "x$prefix" != xNONE; then | |
2445 | ac_site_file1=$prefix/share/config.site | |
2446 | ac_site_file2=$prefix/etc/config.site | |
2447 | else | |
2448 | ac_site_file1=$ac_default_prefix/share/config.site | |
2449 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2450 | fi | |
2451 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2452 | do | |
2453 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2454 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2456 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2457 | sed 's/^/| /' "$ac_site_file" >&5 | |
2458 | . "$ac_site_file" | |
2459 | fi | |
2460 | done | |
2461 | ||
2462 | if test -r "$cache_file"; then | |
9c60689e DWT |
2463 | # Some versions of bash will fail to source /dev/null (special files |
2464 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2465 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2467 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2468 | case $cache_file in | |
2469 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2470 | *) . "./$cache_file";; | |
2471 | esac | |
2472 | fi | |
2473 | else | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2475 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2476 | >$cache_file | |
2477 | fi | |
2478 | ||
2479 | # Check that the precious variables saved in the cache have kept the same | |
2480 | # value. | |
2481 | ac_cache_corrupted=false | |
2482 | for ac_var in $ac_precious_vars; do | |
2483 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2484 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2485 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2486 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2487 | case $ac_old_set,$ac_new_set in | |
2488 | set,) | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2490 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2491 | ac_cache_corrupted=: ;; | |
2492 | ,set) | |
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2494 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2495 | ac_cache_corrupted=: ;; | |
2496 | ,);; | |
2497 | *) | |
2498 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2499 | # differences in whitespace do not lead to failure. | |
2500 | ac_old_val_w=`echo x $ac_old_val` | |
2501 | ac_new_val_w=`echo x $ac_new_val` | |
2502 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2504 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2505 | ac_cache_corrupted=: | |
2506 | else | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2508 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2509 | eval $ac_var=\$ac_old_val | |
2510 | fi | |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2512 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2514 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2515 | fi;; | |
2516 | esac | |
2517 | # Pass precious variables to config.status. | |
2518 | if test "$ac_new_set" = set; then | |
2519 | case $ac_new_val in | |
2520 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2521 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2522 | esac | |
2523 | case " $ac_configure_args " in | |
2524 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2525 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2526 | esac | |
2527 | fi | |
2528 | done | |
2529 | if $ac_cache_corrupted; then | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2531 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2533 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2534 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2535 | fi | |
2536 | ## -------------------- ## | |
2537 | ## Main body of script. ## | |
2538 | ## -------------------- ## | |
2539 | ||
2540 | ac_ext=c | |
2541 | ac_cpp='$CPP $CPPFLAGS' | |
2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2545 | ||
2546 | ||
35fa52c0 | 2547 | |
6b66678a DWT |
2548 | ac_aux_dir= |
2549 | for ac_dir in . "$srcdir"/.; do | |
2550 | for ac_t in install-sh install.sh shtool; do | |
2551 | if test -f "$ac_dir/$ac_t"; then | |
2552 | ac_aux_dir=$ac_dir | |
2553 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2554 | break 2 | |
2555 | fi | |
2556 | done | |
2557 | done | |
2558 | if test -z "$ac_aux_dir"; then | |
2559 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2560 | fi | |
2561 | ||
2562 | # These three variables are undocumented and unsupported, | |
2563 | # and are intended to be withdrawn in a future Autoconf release. | |
2564 | # They can cause serious problems if a builder's source tree is in a directory | |
2565 | # whose full name contains unusual characters. | |
2566 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2567 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2568 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2569 | ||
2570 | ||
9c60689e DWT |
2571 | case `pwd` in |
2572 | *\ * | *\ *) | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2574 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2575 | esac | |
2576 | ||
2577 | ||
2578 | ||
2579 | macro_version='2.2.6b' | |
2580 | macro_revision='1.3017' | |
2581 | ||
2582 | ||
2583 | ||
2584 | ||
2585 | ||
2586 | ||
2587 | ||
2588 | ||
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ltmain="$ac_aux_dir/ltmain.sh" | |
2595 | ||
2596 | # Make sure we can run config.sub. | |
2597 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2598 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2599 | ||
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2601 | $as_echo_n "checking build system type... " >&6; } | |
2602 | if test "${ac_cv_build+set}" = set; then : | |
2603 | $as_echo_n "(cached) " >&6 | |
2604 | else | |
2605 | ac_build_alias=$build_alias | |
2606 | test "x$ac_build_alias" = x && | |
2607 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2608 | test "x$ac_build_alias" = x && | |
2609 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2610 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2611 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2612 | ||
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2615 | $as_echo "$ac_cv_build" >&6; } | |
2616 | case $ac_cv_build in | |
2617 | *-*-*) ;; | |
2618 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2619 | esac | |
2620 | build=$ac_cv_build | |
2621 | ac_save_IFS=$IFS; IFS='-' | |
2622 | set x $ac_cv_build | |
2623 | shift | |
2624 | build_cpu=$1 | |
2625 | build_vendor=$2 | |
2626 | shift; shift | |
2627 | # Remember, the first character of IFS is used to create $*, | |
2628 | # except with old shells: | |
2629 | build_os=$* | |
2630 | IFS=$ac_save_IFS | |
2631 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2632 | ||
2633 | ||
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2635 | $as_echo_n "checking host system type... " >&6; } | |
2636 | if test "${ac_cv_host+set}" = set; then : | |
2637 | $as_echo_n "(cached) " >&6 | |
2638 | else | |
2639 | if test "x$host_alias" = x; then | |
2640 | ac_cv_host=$ac_cv_build | |
2641 | else | |
2642 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2643 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2644 | fi | |
2645 | ||
2646 | fi | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2648 | $as_echo "$ac_cv_host" >&6; } | |
2649 | case $ac_cv_host in | |
2650 | *-*-*) ;; | |
2651 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2652 | esac | |
2653 | host=$ac_cv_host | |
2654 | ac_save_IFS=$IFS; IFS='-' | |
2655 | set x $ac_cv_host | |
2656 | shift | |
2657 | host_cpu=$1 | |
2658 | host_vendor=$2 | |
2659 | shift; shift | |
2660 | # Remember, the first character of IFS is used to create $*, | |
2661 | # except with old shells: | |
2662 | host_os=$* | |
2663 | IFS=$ac_save_IFS | |
2664 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2665 | ||
2666 | ||
2667 | ac_ext=c | |
2668 | ac_cpp='$CPP $CPPFLAGS' | |
2669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2672 | if test -n "$ac_tool_prefix"; then | |
2673 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2674 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2676 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2677 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2678 | $as_echo_n "(cached) " >&6 |
2679 | else | |
9c60689e DWT |
2680 | if test -n "$CC"; then |
2681 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2682 | else |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 | for as_dir in $PATH | |
2685 | do | |
2686 | IFS=$as_save_IFS | |
2687 | test -z "$as_dir" && as_dir=. | |
2688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2690 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2692 | break 2 | |
2693 | fi | |
2694 | done | |
2695 | done | |
2696 | IFS=$as_save_IFS | |
2697 | ||
2698 | fi | |
2699 | fi | |
9c60689e DWT |
2700 | CC=$ac_cv_prog_CC |
2701 | if test -n "$CC"; then | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2703 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2704 | else |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2706 | $as_echo "no" >&6; } | |
2707 | fi | |
2708 | ||
2709 | ||
2710 | fi | |
2711 | if test -z "$ac_cv_prog_CC"; then | |
2712 | ac_ct_CC=$CC | |
2713 | # Extract the first word of "gcc", so it can be a program name with args. | |
2714 | set dummy gcc; ac_word=$2 | |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2716 | $as_echo_n "checking for $ac_word... " >&6; } | |
2717 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2718 | $as_echo_n "(cached) " >&6 | |
2719 | else | |
2720 | if test -n "$ac_ct_CC"; then | |
2721 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2722 | else | |
2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2724 | for as_dir in $PATH | |
2725 | do | |
2726 | IFS=$as_save_IFS | |
2727 | test -z "$as_dir" && as_dir=. | |
2728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2730 | ac_cv_prog_ac_ct_CC="gcc" | |
2731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2732 | break 2 | |
2733 | fi | |
2734 | done | |
2735 | done | |
2736 | IFS=$as_save_IFS | |
2737 | ||
2738 | fi | |
2739 | fi | |
2740 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2741 | if test -n "$ac_ct_CC"; then | |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2743 | $as_echo "$ac_ct_CC" >&6; } | |
2744 | else | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2746 | $as_echo "no" >&6; } | |
2747 | fi | |
2748 | ||
2749 | if test "x$ac_ct_CC" = x; then | |
2750 | CC="" | |
2751 | else | |
2752 | case $cross_compiling:$ac_tool_warned in | |
2753 | yes:) | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2756 | ac_tool_warned=yes ;; | |
2757 | esac | |
2758 | CC=$ac_ct_CC | |
2759 | fi | |
2760 | else | |
2761 | CC="$ac_cv_prog_CC" | |
2762 | fi | |
2763 | ||
2764 | if test -z "$CC"; then | |
2765 | if test -n "$ac_tool_prefix"; then | |
2766 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2767 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2769 | $as_echo_n "checking for $ac_word... " >&6; } | |
2770 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2771 | $as_echo_n "(cached) " >&6 | |
2772 | else | |
2773 | if test -n "$CC"; then | |
2774 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2775 | else | |
2776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2777 | for as_dir in $PATH | |
2778 | do | |
2779 | IFS=$as_save_IFS | |
2780 | test -z "$as_dir" && as_dir=. | |
2781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2783 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2785 | break 2 | |
2786 | fi | |
2787 | done | |
2788 | done | |
2789 | IFS=$as_save_IFS | |
2790 | ||
2791 | fi | |
2792 | fi | |
2793 | CC=$ac_cv_prog_CC | |
2794 | if test -n "$CC"; then | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2796 | $as_echo "$CC" >&6; } | |
2797 | else | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2799 | $as_echo "no" >&6; } | |
2800 | fi | |
2801 | ||
2802 | ||
2803 | fi | |
2804 | fi | |
2805 | if test -z "$CC"; then | |
2806 | # Extract the first word of "cc", so it can be a program name with args. | |
2807 | set dummy cc; ac_word=$2 | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2809 | $as_echo_n "checking for $ac_word... " >&6; } | |
2810 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2811 | $as_echo_n "(cached) " >&6 | |
2812 | else | |
2813 | if test -n "$CC"; then | |
2814 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2815 | else | |
2816 | ac_prog_rejected=no | |
2817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2818 | for as_dir in $PATH | |
2819 | do | |
2820 | IFS=$as_save_IFS | |
2821 | test -z "$as_dir" && as_dir=. | |
2822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2824 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2825 | ac_prog_rejected=yes | |
2826 | continue | |
2827 | fi | |
2828 | ac_cv_prog_CC="cc" | |
2829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2830 | break 2 | |
2831 | fi | |
2832 | done | |
2833 | done | |
2834 | IFS=$as_save_IFS | |
2835 | ||
2836 | if test $ac_prog_rejected = yes; then | |
2837 | # We found a bogon in the path, so make sure we never use it. | |
2838 | set dummy $ac_cv_prog_CC | |
2839 | shift | |
2840 | if test $# != 0; then | |
2841 | # We chose a different compiler from the bogus one. | |
2842 | # However, it has the same basename, so the bogon will be chosen | |
2843 | # first if we set CC to just the basename; use the full file name. | |
2844 | shift | |
2845 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2846 | fi | |
2847 | fi | |
2848 | fi | |
2849 | fi | |
2850 | CC=$ac_cv_prog_CC | |
2851 | if test -n "$CC"; then | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2853 | $as_echo "$CC" >&6; } | |
2854 | else | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2856 | $as_echo "no" >&6; } | |
2857 | fi | |
2858 | ||
2859 | ||
2860 | fi | |
2861 | if test -z "$CC"; then | |
2862 | if test -n "$ac_tool_prefix"; then | |
2863 | for ac_prog in cl.exe | |
2864 | do | |
2865 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2866 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2868 | $as_echo_n "checking for $ac_word... " >&6; } | |
2869 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2870 | $as_echo_n "(cached) " >&6 | |
2871 | else | |
2872 | if test -n "$CC"; then | |
2873 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2874 | else | |
2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2876 | for as_dir in $PATH | |
2877 | do | |
2878 | IFS=$as_save_IFS | |
2879 | test -z "$as_dir" && as_dir=. | |
2880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2881 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2882 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2884 | break 2 | |
2885 | fi | |
2886 | done | |
2887 | done | |
2888 | IFS=$as_save_IFS | |
2889 | ||
2890 | fi | |
2891 | fi | |
2892 | CC=$ac_cv_prog_CC | |
2893 | if test -n "$CC"; then | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2895 | $as_echo "$CC" >&6; } | |
2896 | else | |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2898 | $as_echo "no" >&6; } | |
2899 | fi | |
2900 | ||
2901 | ||
2902 | test -n "$CC" && break | |
2903 | done | |
2904 | fi | |
2905 | if test -z "$CC"; then | |
2906 | ac_ct_CC=$CC | |
2907 | for ac_prog in cl.exe | |
2908 | do | |
2909 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2910 | set dummy $ac_prog; ac_word=$2 | |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2912 | $as_echo_n "checking for $ac_word... " >&6; } | |
2913 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2914 | $as_echo_n "(cached) " >&6 | |
2915 | else | |
2916 | if test -n "$ac_ct_CC"; then | |
2917 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2918 | else | |
2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2920 | for as_dir in $PATH | |
2921 | do | |
2922 | IFS=$as_save_IFS | |
2923 | test -z "$as_dir" && as_dir=. | |
2924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2926 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2928 | break 2 | |
2929 | fi | |
2930 | done | |
2931 | done | |
2932 | IFS=$as_save_IFS | |
2933 | ||
2934 | fi | |
2935 | fi | |
2936 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2937 | if test -n "$ac_ct_CC"; then | |
2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2939 | $as_echo "$ac_ct_CC" >&6; } | |
2940 | else | |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2942 | $as_echo "no" >&6; } | |
2943 | fi | |
2944 | ||
2945 | ||
2946 | test -n "$ac_ct_CC" && break | |
2947 | done | |
2948 | ||
2949 | if test "x$ac_ct_CC" = x; then | |
2950 | CC="" | |
2951 | else | |
2952 | case $cross_compiling:$ac_tool_warned in | |
2953 | yes:) | |
2954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2955 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2956 | ac_tool_warned=yes ;; | |
2957 | esac | |
2958 | CC=$ac_ct_CC | |
2959 | fi | |
2960 | fi | |
2961 | ||
2962 | fi | |
2963 | ||
2964 | ||
2965 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2967 | as_fn_error "no acceptable C compiler found in \$PATH | |
2968 | See \`config.log' for more details." "$LINENO" 5; } | |
2969 | ||
2970 | # Provide some information about the compiler. | |
2971 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2972 | set X $ac_compile | |
2973 | ac_compiler=$2 | |
2974 | for ac_option in --version -v -V -qversion; do | |
2975 | { { ac_try="$ac_compiler $ac_option >&5" | |
2976 | case "(($ac_try" in | |
2977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2978 | *) ac_try_echo=$ac_try;; | |
2979 | esac | |
2980 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2981 | $as_echo "$ac_try_echo"; } >&5 | |
2982 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2983 | ac_status=$? | |
2984 | if test -s conftest.err; then | |
2985 | sed '10a\ | |
2986 | ... rest of stderr output deleted ... | |
2987 | 10q' conftest.err >conftest.er1 | |
2988 | cat conftest.er1 >&5 | |
35fa52c0 | 2989 | fi |
9c60689e | 2990 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
2991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2992 | test $ac_status = 0; } | |
2993 | done | |
2994 | ||
2995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2996 | /* end confdefs.h. */ | |
9c60689e | 2997 | |
35fa52c0 DWT |
2998 | int |
2999 | main () | |
3000 | { | |
35fa52c0 DWT |
3001 | |
3002 | ; | |
3003 | return 0; | |
3004 | } | |
3005 | _ACEOF | |
3006 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3007 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3008 | # Try to create an executable without -o first, disregard a.out. |
3009 | # It will help us diagnose broken compilers, and finding out an intuition | |
3010 | # of exeext. | |
9c60689e DWT |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3012 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3013 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3014 | ||
3015 | # The possible output files: | |
3016 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3017 | ||
3018 | ac_rmfiles= | |
3019 | for ac_file in $ac_files | |
3020 | do | |
3021 | case $ac_file in | |
3022 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3023 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3024 | esac | |
3025 | done | |
3026 | rm -f $ac_rmfiles | |
3027 | ||
3028 | if { { ac_try="$ac_link_default" | |
3029 | case "(($ac_try" in | |
3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3031 | *) ac_try_echo=$ac_try;; | |
3032 | esac | |
3033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3034 | $as_echo "$ac_try_echo"; } >&5 | |
3035 | (eval "$ac_link_default") 2>&5 | |
3036 | ac_status=$? | |
3037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3038 | test $ac_status = 0; }; then : | |
3039 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3040 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3041 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3042 | # so that the user can short-circuit this test for compilers unknown to | |
3043 | # Autoconf. | |
3044 | for ac_file in $ac_files '' | |
3045 | do | |
3046 | test -f "$ac_file" || continue | |
3047 | case $ac_file in | |
3048 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3049 | ;; | |
3050 | [ab].out ) | |
3051 | # We found the default executable, but exeext='' is most | |
3052 | # certainly right. | |
3053 | break;; | |
3054 | *.* ) | |
3055 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3056 | then :; else | |
3057 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3058 | fi | |
3059 | # We set ac_cv_exeext here because the later test for it is not | |
3060 | # safe: cross compilers may not add the suffix if given an `-o' | |
3061 | # argument, so we may need to know it at that point already. | |
3062 | # Even if this section looks crufty: it has the advantage of | |
3063 | # actually working. | |
3064 | break;; | |
3065 | * ) | |
3066 | break;; | |
3067 | esac | |
3068 | done | |
3069 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3070 | ||
3071 | else | |
3072 | ac_file='' | |
3073 | fi | |
35fa52c0 | 3074 | if test -z "$ac_file"; then : |
9c60689e DWT |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3076 | $as_echo "no" >&6; } | |
3077 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 |
3079 | ||
3080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3082 | { as_fn_set_status 77 | |
3083 | as_fn_error "C compiler cannot create executables | |
3084 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3085 | else |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3087 | $as_echo "yes" >&6; } | |
35fa52c0 | 3088 | fi |
9c60689e DWT |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3090 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3092 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3093 | ac_exeext=$ac_cv_exeext |
3094 | ||
9c60689e | 3095 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3096 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3098 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3099 | if { { ac_try="$ac_link" | |
3100 | case "(($ac_try" in | |
3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3102 | *) ac_try_echo=$ac_try;; | |
3103 | esac | |
3104 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3105 | $as_echo "$ac_try_echo"; } >&5 | |
3106 | (eval "$ac_link") 2>&5 | |
3107 | ac_status=$? | |
3108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3109 | test $ac_status = 0; }; then : | |
3110 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3111 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3112 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3113 | # `rm'. | |
3114 | for ac_file in conftest.exe conftest conftest.*; do | |
3115 | test -f "$ac_file" || continue | |
3116 | case $ac_file in | |
3117 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3118 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3119 | break;; | |
3120 | * ) break;; | |
3121 | esac | |
3122 | done | |
3123 | else | |
3124 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3125 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3126 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3127 | See \`config.log' for more details." "$LINENO" 5; } | |
3128 | fi | |
9c60689e | 3129 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3131 | $as_echo "$ac_cv_exeext" >&6; } | |
3132 | ||
3133 | rm -f conftest.$ac_ext | |
3134 | EXEEXT=$ac_cv_exeext | |
3135 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3137 | /* end confdefs.h. */ | |
3138 | #include <stdio.h> | |
3139 | int | |
3140 | main () | |
3141 | { | |
3142 | FILE *f = fopen ("conftest.out", "w"); | |
3143 | return ferror (f) || fclose (f) != 0; | |
3144 | ||
3145 | ; | |
3146 | return 0; | |
3147 | } | |
3148 | _ACEOF | |
3149 | ac_clean_files="$ac_clean_files conftest.out" | |
3150 | # Check that the compiler produces executables we can run. If not, either | |
3151 | # the compiler is broken, or we cross compile. | |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3153 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3154 | if test "$cross_compiling" != yes; then | |
3155 | { { ac_try="$ac_link" | |
3156 | case "(($ac_try" in | |
3157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3158 | *) ac_try_echo=$ac_try;; | |
3159 | esac | |
3160 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3161 | $as_echo "$ac_try_echo"; } >&5 | |
3162 | (eval "$ac_link") 2>&5 | |
3163 | ac_status=$? | |
3164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3165 | test $ac_status = 0; } | |
3166 | if { ac_try='./conftest$ac_cv_exeext' | |
3167 | { { case "(($ac_try" in | |
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3169 | *) ac_try_echo=$ac_try;; | |
3170 | esac | |
3171 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3172 | $as_echo "$ac_try_echo"; } >&5 | |
3173 | (eval "$ac_try") 2>&5 | |
3174 | ac_status=$? | |
3175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3176 | test $ac_status = 0; }; }; then | |
3177 | cross_compiling=no | |
3178 | else | |
3179 | if test "$cross_compiling" = maybe; then | |
3180 | cross_compiling=yes | |
3181 | else | |
3182 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3183 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3184 | as_fn_error "cannot run C compiled programs. | |
3185 | If you meant to cross compile, use \`--host'. | |
3186 | See \`config.log' for more details." "$LINENO" 5; } | |
3187 | fi | |
3188 | fi | |
3189 | fi | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3191 | $as_echo "$cross_compiling" >&6; } | |
3192 | ||
3193 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3194 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3196 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3197 | if test "${ac_cv_objext+set}" = set; then : | |
3198 | $as_echo_n "(cached) " >&6 | |
3199 | else | |
3200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3201 | /* end confdefs.h. */ | |
3202 | ||
3203 | int | |
3204 | main () | |
3205 | { | |
3206 | ||
3207 | ; | |
3208 | return 0; | |
3209 | } | |
3210 | _ACEOF | |
3211 | rm -f conftest.o conftest.obj | |
3212 | if { { ac_try="$ac_compile" | |
3213 | case "(($ac_try" in | |
3214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3215 | *) ac_try_echo=$ac_try;; | |
3216 | esac | |
3217 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3218 | $as_echo "$ac_try_echo"; } >&5 | |
3219 | (eval "$ac_compile") 2>&5 | |
3220 | ac_status=$? | |
3221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3222 | test $ac_status = 0; }; then : | |
3223 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3224 | test -f "$ac_file" || continue; | |
3225 | case $ac_file in | |
3226 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3227 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3228 | break;; | |
3229 | esac | |
3230 | done | |
3231 | else | |
3232 | $as_echo "$as_me: failed program was:" >&5 | |
3233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3234 | ||
3235 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3236 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3237 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3238 | See \`config.log' for more details." "$LINENO" 5; } | |
3239 | fi | |
3240 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3241 | fi | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3243 | $as_echo "$ac_cv_objext" >&6; } | |
3244 | OBJEXT=$ac_cv_objext | |
3245 | ac_objext=$OBJEXT | |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3247 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3248 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3249 | $as_echo_n "(cached) " >&6 | |
3250 | else | |
3251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3252 | /* end confdefs.h. */ | |
3253 | ||
3254 | int | |
3255 | main () | |
3256 | { | |
3257 | #ifndef __GNUC__ | |
3258 | choke me | |
3259 | #endif | |
3260 | ||
3261 | ; | |
3262 | return 0; | |
3263 | } | |
3264 | _ACEOF | |
3265 | if ac_fn_c_try_compile "$LINENO"; then : | |
3266 | ac_compiler_gnu=yes | |
3267 | else | |
3268 | ac_compiler_gnu=no | |
3269 | fi | |
3270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3271 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3272 | ||
3273 | fi | |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3275 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3276 | if test $ac_compiler_gnu = yes; then | |
3277 | GCC=yes | |
3278 | else | |
3279 | GCC= | |
3280 | fi | |
3281 | ac_test_CFLAGS=${CFLAGS+set} | |
3282 | ac_save_CFLAGS=$CFLAGS | |
3283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3284 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3285 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3286 | $as_echo_n "(cached) " >&6 | |
3287 | else | |
3288 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3289 | ac_c_werror_flag=yes | |
3290 | ac_cv_prog_cc_g=no | |
3291 | CFLAGS="-g" | |
3292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3293 | /* end confdefs.h. */ | |
3294 | ||
3295 | int | |
3296 | main () | |
3297 | { | |
3298 | ||
3299 | ; | |
3300 | return 0; | |
3301 | } | |
3302 | _ACEOF | |
3303 | if ac_fn_c_try_compile "$LINENO"; then : | |
3304 | ac_cv_prog_cc_g=yes | |
3305 | else | |
3306 | CFLAGS="" | |
3307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3308 | /* end confdefs.h. */ | |
3309 | ||
3310 | int | |
3311 | main () | |
3312 | { | |
3313 | ||
3314 | ; | |
3315 | return 0; | |
3316 | } | |
3317 | _ACEOF | |
3318 | if ac_fn_c_try_compile "$LINENO"; then : | |
3319 | ||
3320 | else | |
3321 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3322 | CFLAGS="-g" | |
3323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3324 | /* end confdefs.h. */ | |
3325 | ||
3326 | int | |
3327 | main () | |
3328 | { | |
3329 | ||
3330 | ; | |
3331 | return 0; | |
3332 | } | |
3333 | _ACEOF | |
3334 | if ac_fn_c_try_compile "$LINENO"; then : | |
3335 | ac_cv_prog_cc_g=yes | |
3336 | fi | |
3337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
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 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3343 | fi | |
3344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3345 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3346 | if test "$ac_test_CFLAGS" = set; then | |
3347 | CFLAGS=$ac_save_CFLAGS | |
3348 | elif test $ac_cv_prog_cc_g = yes; then | |
3349 | if test "$GCC" = yes; then | |
3350 | CFLAGS="-g -O2" | |
3351 | else | |
3352 | CFLAGS="-g" | |
3353 | fi | |
3354 | else | |
3355 | if test "$GCC" = yes; then | |
3356 | CFLAGS="-O2" | |
3357 | else | |
3358 | CFLAGS= | |
3359 | fi | |
3360 | fi | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3362 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3363 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3364 | $as_echo_n "(cached) " >&6 | |
3365 | else | |
3366 | ac_cv_prog_cc_c89=no | |
3367 | ac_save_CC=$CC | |
3368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3369 | /* end confdefs.h. */ | |
3370 | #include <stdarg.h> | |
3371 | #include <stdio.h> | |
3372 | #include <sys/types.h> | |
3373 | #include <sys/stat.h> | |
3374 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3375 | struct buf { int x; }; | |
3376 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3377 | static char *e (p, i) | |
3378 | char **p; | |
3379 | int i; | |
3380 | { | |
3381 | return p[i]; | |
3382 | } | |
3383 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3384 | { | |
3385 | char *s; | |
3386 | va_list v; | |
3387 | va_start (v,p); | |
3388 | s = g (p, va_arg (v,int)); | |
3389 | va_end (v); | |
3390 | return s; | |
3391 | } | |
3392 | ||
3393 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3394 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3395 | These don't provoke an error unfortunately, instead are silently treated | |
3396 | as 'x'. The following induces an error, until -std is added to get | |
3397 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3398 | array size at least. It's necessary to write '\x00'==0 to get something | |
3399 | that's true only with -std. */ | |
3400 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3401 | ||
3402 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3403 | inside strings and character constants. */ | |
3404 | #define FOO(x) 'x' | |
3405 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3406 | ||
3407 | int test (int i, double x); | |
3408 | struct s1 {int (*f) (int a);}; | |
3409 | struct s2 {int (*f) (double a);}; | |
3410 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3411 | int argc; | |
3412 | char **argv; | |
3413 | int | |
3414 | main () | |
3415 | { | |
3416 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3417 | ; | |
3418 | return 0; | |
3419 | } | |
3420 | _ACEOF | |
3421 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3422 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3423 | do | |
3424 | CC="$ac_save_CC $ac_arg" | |
3425 | if ac_fn_c_try_compile "$LINENO"; then : | |
3426 | ac_cv_prog_cc_c89=$ac_arg | |
3427 | fi | |
3428 | rm -f core conftest.err conftest.$ac_objext | |
3429 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3430 | done | |
3431 | rm -f conftest.$ac_ext | |
3432 | CC=$ac_save_CC | |
3433 | ||
3434 | fi | |
3435 | # AC_CACHE_VAL | |
3436 | case "x$ac_cv_prog_cc_c89" in | |
3437 | x) | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3439 | $as_echo "none needed" >&6; } ;; | |
3440 | xno) | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3442 | $as_echo "unsupported" >&6; } ;; | |
3443 | *) | |
3444 | CC="$CC $ac_cv_prog_cc_c89" | |
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3446 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3447 | esac | |
3448 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3449 | ||
3450 | fi | |
3451 | ||
3452 | ac_ext=c | |
3453 | ac_cpp='$CPP $CPPFLAGS' | |
3454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3457 | ||
9c60689e DWT |
3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3459 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3460 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3461 | $as_echo_n "(cached) " >&6 |
3462 | else | |
9c60689e DWT |
3463 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3464 | for ac_i in 1 2 3 4 5 6 7; do | |
3465 | ac_script="$ac_script$as_nl$ac_script" | |
3466 | done | |
3467 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3468 | { ac_script=; unset ac_script;} | |
3469 | if test -z "$SED"; then | |
3470 | ac_path_SED_found=false | |
3471 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3473 | for as_dir in $PATH |
3474 | do | |
3475 | IFS=$as_save_IFS | |
3476 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3477 | for ac_prog in sed gsed; do |
35fa52c0 | 3478 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3479 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3480 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3481 | # Check for GNU ac_path_SED and select it if it is found. | |
3482 | # Check for GNU $ac_path_SED | |
3483 | case `"$ac_path_SED" --version 2>&1` in | |
3484 | *GNU*) | |
3485 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3486 | *) | |
3487 | ac_count=0 | |
3488 | $as_echo_n 0123456789 >"conftest.in" | |
3489 | while : | |
3490 | do | |
3491 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3492 | mv "conftest.tmp" "conftest.in" | |
3493 | cp "conftest.in" "conftest.nl" | |
3494 | $as_echo '' >> "conftest.nl" | |
3495 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3496 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3497 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3498 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3499 | # Best one so far, save it but keep looking for a better one | |
3500 | ac_cv_path_SED="$ac_path_SED" | |
3501 | ac_path_SED_max=$ac_count | |
3502 | fi | |
3503 | # 10*(2^10) chars as input seems more than enough | |
3504 | test $ac_count -gt 10 && break | |
35fa52c0 | 3505 | done |
9c60689e DWT |
3506 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3507 | esac | |
35fa52c0 | 3508 | |
9c60689e DWT |
3509 | $ac_path_SED_found && break 3 |
3510 | done | |
3511 | done | |
3512 | done | |
3513 | IFS=$as_save_IFS | |
3514 | if test -z "$ac_cv_path_SED"; then | |
3515 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3516 | fi | |
35fa52c0 | 3517 | else |
9c60689e | 3518 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3519 | fi |
3520 | ||
9c60689e DWT |
3521 | fi |
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3523 | $as_echo "$ac_cv_path_SED" >&6; } | |
3524 | SED="$ac_cv_path_SED" | |
3525 | rm -f conftest.sed | |
35fa52c0 | 3526 | |
9c60689e DWT |
3527 | test -z "$SED" && SED=sed |
3528 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3529 | |
35fa52c0 | 3530 | |
35fa52c0 | 3531 | |
35fa52c0 | 3532 | |
35fa52c0 | 3533 | |
35fa52c0 DWT |
3534 | |
3535 | ||
35fa52c0 | 3536 | |
35fa52c0 | 3537 | |
35fa52c0 | 3538 | |
35fa52c0 | 3539 | |
9c60689e DWT |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3541 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3542 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3543 | $as_echo_n "(cached) " >&6 | |
3544 | else | |
3545 | if test -z "$GREP"; then | |
3546 | ac_path_GREP_found=false | |
3547 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3549 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3550 | do | |
3551 | IFS=$as_save_IFS | |
3552 | test -z "$as_dir" && as_dir=. | |
3553 | for ac_prog in grep ggrep; do | |
3554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3555 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3556 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3557 | # Check for GNU ac_path_GREP and select it if it is found. | |
3558 | # Check for GNU $ac_path_GREP | |
3559 | case `"$ac_path_GREP" --version 2>&1` in | |
3560 | *GNU*) | |
3561 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3562 | *) | |
3563 | ac_count=0 | |
3564 | $as_echo_n 0123456789 >"conftest.in" | |
3565 | while : | |
3566 | do | |
3567 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3568 | mv "conftest.tmp" "conftest.in" | |
3569 | cp "conftest.in" "conftest.nl" | |
3570 | $as_echo 'GREP' >> "conftest.nl" | |
3571 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3572 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3573 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3574 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3575 | # Best one so far, save it but keep looking for a better one | |
3576 | ac_cv_path_GREP="$ac_path_GREP" | |
3577 | ac_path_GREP_max=$ac_count | |
3578 | fi | |
3579 | # 10*(2^10) chars as input seems more than enough | |
3580 | test $ac_count -gt 10 && break | |
3581 | done | |
3582 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3583 | esac | |
6b66678a | 3584 | |
9c60689e DWT |
3585 | $ac_path_GREP_found && break 3 |
3586 | done | |
3587 | done | |
3588 | done | |
3589 | IFS=$as_save_IFS | |
3590 | if test -z "$ac_cv_path_GREP"; then | |
3591 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3592 | fi | |
3593 | else | |
3594 | ac_cv_path_GREP=$GREP | |
3595 | fi | |
6b66678a | 3596 | |
9c60689e DWT |
3597 | fi |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3599 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3600 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3601 | |
3602 | ||
9c60689e DWT |
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3604 | $as_echo_n "checking for egrep... " >&6; } | |
3605 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3606 | $as_echo_n "(cached) " >&6 |
3607 | else | |
9c60689e DWT |
3608 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3609 | then ac_cv_path_EGREP="$GREP -E" | |
3610 | else | |
3611 | if test -z "$EGREP"; then | |
3612 | ac_path_EGREP_found=false | |
3613 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3615 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3616 | do | |
3617 | IFS=$as_save_IFS | |
3618 | test -z "$as_dir" && as_dir=. | |
3619 | for ac_prog in egrep; do | |
3620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3621 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3622 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3623 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3624 | # Check for GNU $ac_path_EGREP | |
3625 | case `"$ac_path_EGREP" --version 2>&1` in | |
3626 | *GNU*) | |
3627 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3628 | *) | |
3629 | ac_count=0 | |
3630 | $as_echo_n 0123456789 >"conftest.in" | |
3631 | while : | |
3632 | do | |
3633 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3634 | mv "conftest.tmp" "conftest.in" | |
3635 | cp "conftest.in" "conftest.nl" | |
3636 | $as_echo 'EGREP' >> "conftest.nl" | |
3637 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3638 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3639 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3640 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3641 | # Best one so far, save it but keep looking for a better one | |
3642 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3643 | ac_path_EGREP_max=$ac_count | |
3644 | fi | |
3645 | # 10*(2^10) chars as input seems more than enough | |
3646 | test $ac_count -gt 10 && break | |
3647 | done | |
3648 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3649 | esac | |
3650 | ||
3651 | $ac_path_EGREP_found && break 3 | |
3652 | done | |
3653 | done | |
3654 | done | |
3655 | IFS=$as_save_IFS | |
3656 | if test -z "$ac_cv_path_EGREP"; then | |
3657 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3658 | fi | |
3659 | else | |
3660 | ac_cv_path_EGREP=$EGREP | |
3661 | fi | |
6b66678a | 3662 | |
9c60689e DWT |
3663 | fi |
3664 | fi | |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3666 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3667 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3668 | |
6b66678a | 3669 | |
9c60689e DWT |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3671 | $as_echo_n "checking for fgrep... " >&6; } | |
3672 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3673 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3674 | else |
9c60689e DWT |
3675 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3676 | then ac_cv_path_FGREP="$GREP -F" | |
3677 | else | |
3678 | if test -z "$FGREP"; then | |
3679 | ac_path_FGREP_found=false | |
3680 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3682 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3683 | do | |
3684 | IFS=$as_save_IFS | |
3685 | test -z "$as_dir" && as_dir=. | |
3686 | for ac_prog in fgrep; do | |
3687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3688 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3689 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3690 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3691 | # Check for GNU $ac_path_FGREP | |
3692 | case `"$ac_path_FGREP" --version 2>&1` in | |
3693 | *GNU*) | |
3694 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3695 | *) | |
3696 | ac_count=0 | |
3697 | $as_echo_n 0123456789 >"conftest.in" | |
3698 | while : | |
3699 | do | |
3700 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3701 | mv "conftest.tmp" "conftest.in" | |
3702 | cp "conftest.in" "conftest.nl" | |
3703 | $as_echo 'FGREP' >> "conftest.nl" | |
3704 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3705 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3706 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3707 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3708 | # Best one so far, save it but keep looking for a better one | |
3709 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3710 | ac_path_FGREP_max=$ac_count | |
3711 | fi | |
3712 | # 10*(2^10) chars as input seems more than enough | |
3713 | test $ac_count -gt 10 && break | |
3714 | done | |
3715 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3716 | esac | |
6b66678a | 3717 | |
9c60689e DWT |
3718 | $ac_path_FGREP_found && break 3 |
3719 | done | |
3720 | done | |
3721 | done | |
3722 | IFS=$as_save_IFS | |
3723 | if test -z "$ac_cv_path_FGREP"; then | |
3724 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3725 | fi | |
3726 | else | |
3727 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3728 | fi |
3729 | ||
9c60689e | 3730 | fi |
6b66678a | 3731 | fi |
9c60689e DWT |
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3733 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3734 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3735 | |
35fa52c0 | 3736 | |
9c60689e | 3737 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3738 | |
309b0535 | 3739 | |
35fa52c0 | 3740 | |
6b66678a | 3741 | |
6b66678a DWT |
3742 | |
3743 | ||
6b66678a | 3744 | |
6b66678a | 3745 | |
35fa52c0 | 3746 | |
35fa52c0 | 3747 | |
309b0535 | 3748 | |
309b0535 | 3749 | |
309b0535 | 3750 | |
309b0535 | 3751 | |
309b0535 | 3752 | |
309b0535 | 3753 | |
309b0535 | 3754 | |
309b0535 | 3755 | |
309b0535 | 3756 | |
9c60689e DWT |
3757 | # Check whether --with-gnu-ld was given. |
3758 | if test "${with_gnu_ld+set}" = set; then : | |
3759 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3760 | else |
9c60689e DWT |
3761 | with_gnu_ld=no |
3762 | fi | |
309b0535 | 3763 | |
9c60689e DWT |
3764 | ac_prog=ld |
3765 | if test "$GCC" = yes; then | |
3766 | # Check if gcc -print-prog-name=ld gives a path. | |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3768 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3769 | case $host in | |
3770 | *-*-mingw*) | |
3771 | # gcc leaves a trailing carriage return which upsets mingw | |
3772 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3773 | *) | |
3774 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3775 | esac | |
3776 | case $ac_prog in | |
3777 | # Accept absolute paths. | |
3778 | [\\/]* | ?:[\\/]*) | |
3779 | re_direlt='/[^/][^/]*/\.\./' | |
3780 | # Canonicalize the pathname of ld | |
3781 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3782 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3783 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3784 | done |
9c60689e DWT |
3785 | test -z "$LD" && LD="$ac_prog" |
3786 | ;; | |
3787 | "") | |
3788 | # If it fails, then pretend we aren't using GCC. | |
3789 | ac_prog=ld | |
3790 | ;; | |
3791 | *) | |
3792 | # If it is relative, then search for the first ld in PATH. | |
3793 | with_gnu_ld=unknown | |
3794 | ;; | |
3795 | esac | |
3796 | elif test "$with_gnu_ld" = yes; then | |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3798 | $as_echo_n "checking for GNU ld... " >&6; } | |
3799 | else | |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3801 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3802 | fi | |
3803 | if test "${lt_cv_path_LD+set}" = set; then : | |
3804 | $as_echo_n "(cached) " >&6 | |
3805 | else | |
3806 | if test -z "$LD"; then | |
3807 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3808 | for ac_dir in $PATH; do | |
3809 | IFS="$lt_save_ifs" | |
3810 | test -z "$ac_dir" && ac_dir=. | |
3811 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3812 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3813 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3814 | # but apparently some variants of GNU ld only accept -v. | |
3815 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3816 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3817 | *GNU* | *'with BFD'*) | |
3818 | test "$with_gnu_ld" != no && break | |
3819 | ;; | |
3820 | *) | |
3821 | test "$with_gnu_ld" != yes && break | |
3822 | ;; | |
309b0535 | 3823 | esac |
309b0535 | 3824 | fi |
9c60689e DWT |
3825 | done |
3826 | IFS="$lt_save_ifs" | |
3827 | else | |
3828 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3829 | fi | |
3830 | fi | |
309b0535 | 3831 | |
9c60689e DWT |
3832 | LD="$lt_cv_path_LD" |
3833 | if test -n "$LD"; then | |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3835 | $as_echo "$LD" >&6; } | |
3836 | else | |
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3838 | $as_echo "no" >&6; } | |
3839 | fi | |
3840 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3842 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3843 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3844 | $as_echo_n "(cached) " >&6 | |
3845 | else | |
3846 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3847 | case `$LD -v 2>&1 </dev/null` in | |
3848 | *GNU* | *'with BFD'*) | |
3849 | lt_cv_prog_gnu_ld=yes | |
3850 | ;; | |
3851 | *) | |
3852 | lt_cv_prog_gnu_ld=no | |
3853 | ;; | |
3854 | esac | |
309b0535 | 3855 | fi |
9c60689e DWT |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3857 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3858 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3859 | |
3860 | ||
309b0535 | 3861 | |
309b0535 DWT |
3862 | |
3863 | ||
309b0535 | 3864 | |
309b0535 | 3865 | |
9c60689e DWT |
3866 | |
3867 | ||
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3869 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3870 | if test "${lt_cv_path_NM+set}" = set; then : | |
3871 | $as_echo_n "(cached) " >&6 | |
3872 | else | |
3873 | if test -n "$NM"; then | |
3874 | # Let the user override the test. | |
3875 | lt_cv_path_NM="$NM" | |
3876 | else | |
3877 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3878 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3879 | lt_nm_to_check="$lt_nm_to_check nm" | |
3880 | fi | |
3881 | for lt_tmp_nm in $lt_nm_to_check; do | |
3882 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3883 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3884 | IFS="$lt_save_ifs" | |
3885 | test -z "$ac_dir" && ac_dir=. | |
3886 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3887 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3888 | # Check to see if the nm accepts a BSD-compat flag. | |
3889 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3890 | # nm: unknown option "B" ignored | |
3891 | # Tru64's nm complains that /dev/null is an invalid object file | |
3892 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3893 | */dev/null* | *'Invalid file or object type'*) | |
3894 | lt_cv_path_NM="$tmp_nm -B" | |
3895 | break | |
3896 | ;; | |
3897 | *) | |
3898 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3899 | */dev/null*) | |
3900 | lt_cv_path_NM="$tmp_nm -p" | |
3901 | break | |
3902 | ;; | |
3903 | *) | |
3904 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3905 | continue # so that we can try to find one that supports BSD flags | |
3906 | ;; | |
3907 | esac | |
3908 | ;; | |
3909 | esac | |
309b0535 DWT |
3910 | fi |
3911 | done | |
9c60689e | 3912 | IFS="$lt_save_ifs" |
309b0535 | 3913 | done |
9c60689e DWT |
3914 | : ${lt_cv_path_NM=no} |
3915 | fi | |
3916 | fi | |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3918 | $as_echo "$lt_cv_path_NM" >&6; } | |
3919 | if test "$lt_cv_path_NM" != "no"; then | |
3920 | NM="$lt_cv_path_NM" | |
3921 | else | |
3922 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3923 | if test -n "$ac_tool_prefix"; then | |
3924 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3925 | do |
3926 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3927 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3929 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3930 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3931 | $as_echo_n "(cached) " >&6 |
3932 | else | |
9c60689e DWT |
3933 | if test -n "$DUMPBIN"; then |
3934 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3935 | else |
3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3937 | for as_dir in $PATH | |
3938 | do | |
3939 | IFS=$as_save_IFS | |
3940 | test -z "$as_dir" && as_dir=. | |
3941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3943 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3945 | break 2 | |
3946 | fi | |
3947 | done | |
3948 | done | |
3949 | IFS=$as_save_IFS | |
3950 | ||
3951 | fi | |
3952 | fi | |
9c60689e DWT |
3953 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3954 | if test -n "$DUMPBIN"; then | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3956 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3957 | else |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3959 | $as_echo "no" >&6; } | |
3960 | fi | |
3961 | ||
3962 | ||
9c60689e | 3963 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3964 | done |
3965 | fi | |
9c60689e DWT |
3966 | if test -z "$DUMPBIN"; then |
3967 | ac_ct_DUMPBIN=$DUMPBIN | |
3968 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3969 | do |
3970 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3971 | set dummy $ac_prog; ac_word=$2 | |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3973 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3974 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3975 | $as_echo_n "(cached) " >&6 |
3976 | else | |
9c60689e DWT |
3977 | if test -n "$ac_ct_DUMPBIN"; then |
3978 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3979 | else |
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3981 | for as_dir in $PATH | |
3982 | do | |
3983 | IFS=$as_save_IFS | |
3984 | test -z "$as_dir" && as_dir=. | |
3985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3987 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
3988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3989 | break 2 | |
3990 | fi | |
3991 | done | |
3992 | done | |
3993 | IFS=$as_save_IFS | |
3994 | ||
3995 | fi | |
3996 | fi | |
9c60689e DWT |
3997 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
3998 | if test -n "$ac_ct_DUMPBIN"; then | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4000 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4001 | else |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4003 | $as_echo "no" >&6; } | |
4004 | fi | |
4005 | ||
4006 | ||
9c60689e | 4007 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4008 | done |
4009 | ||
9c60689e DWT |
4010 | if test "x$ac_ct_DUMPBIN" = x; then |
4011 | DUMPBIN=":" | |
35fa52c0 DWT |
4012 | else |
4013 | case $cross_compiling:$ac_tool_warned in | |
4014 | yes:) | |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4016 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4017 | ac_tool_warned=yes ;; | |
4018 | esac | |
9c60689e | 4019 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4020 | fi |
4021 | fi | |
4022 | ||
9c60689e DWT |
4023 | |
4024 | if test "$DUMPBIN" != ":"; then | |
4025 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4026 | fi |
4027 | fi | |
9c60689e | 4028 | test -z "$NM" && NM=nm |
35fa52c0 | 4029 | |
35fa52c0 | 4030 | |
35fa52c0 | 4031 | |
35fa52c0 | 4032 | |
9c60689e DWT |
4033 | |
4034 | ||
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4036 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4037 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4038 | $as_echo_n "(cached) " >&6 | |
4039 | else | |
4040 | lt_cv_nm_interface="BSD nm" | |
4041 | echo "int some_variable = 0;" > conftest.$ac_ext | |
e9c9a47c | 4042 | (eval echo "\"\$as_me:4042: $ac_compile\"" >&5) |
9c60689e DWT |
4043 | (eval "$ac_compile" 2>conftest.err) |
4044 | cat conftest.err >&5 | |
e9c9a47c | 4045 | (eval echo "\"\$as_me:4045: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4046 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4047 | cat conftest.err >&5 | |
e9c9a47c | 4048 | (eval echo "\"\$as_me:4048: output\"" >&5) |
9c60689e DWT |
4049 | cat conftest.out >&5 |
4050 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4051 | lt_cv_nm_interface="MS dumpbin" | |
4052 | fi | |
4053 | rm -f conftest* | |
35fa52c0 | 4054 | fi |
9c60689e DWT |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4056 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4057 | ||
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4059 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4060 | LN_S=$as_ln_s | |
4061 | if test "$LN_S" = "ln -s"; then | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4063 | $as_echo "yes" >&6; } | |
35fa52c0 | 4064 | else |
9c60689e DWT |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4066 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4067 | fi |
9c60689e DWT |
4068 | |
4069 | # find the maximum length of command line arguments | |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4071 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4072 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4073 | $as_echo_n "(cached) " >&6 |
4074 | else | |
9c60689e DWT |
4075 | i=0 |
4076 | teststring="ABCD" | |
4077 | ||
4078 | case $build_os in | |
4079 | msdosdjgpp*) | |
4080 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4081 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4082 | # during glob expansion). Even if it were fixed, the result of this | |
4083 | # check would be larger than it should be. | |
4084 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4085 | ;; | |
35fa52c0 | 4086 | |
9c60689e DWT |
4087 | gnu*) |
4088 | # Under GNU Hurd, this test is not required because there is | |
4089 | # no limit to the length of command line arguments. | |
4090 | # Libtool will interpret -1 as no limit whatsoever | |
4091 | lt_cv_sys_max_cmd_len=-1; | |
4092 | ;; | |
35fa52c0 | 4093 | |
9c60689e DWT |
4094 | cygwin* | mingw* | cegcc*) |
4095 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4096 | # about 5 minutes as the teststring grows exponentially. | |
4097 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4098 | # you end up with a "frozen" computer, even though with patience | |
4099 | # the test eventually succeeds (with a max line length of 256k). | |
4100 | # Instead, let's just punt: use the minimum linelength reported by | |
4101 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4102 | lt_cv_sys_max_cmd_len=8192; | |
4103 | ;; | |
35fa52c0 | 4104 | |
9c60689e DWT |
4105 | amigaos*) |
4106 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4107 | # So we just punt and use a minimum line length of 8192. | |
4108 | lt_cv_sys_max_cmd_len=8192; | |
4109 | ;; | |
35fa52c0 | 4110 | |
9c60689e DWT |
4111 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4112 | # This has been around since 386BSD, at least. Likely further. | |
4113 | if test -x /sbin/sysctl; then | |
4114 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4115 | elif test -x /usr/sbin/sysctl; then | |
4116 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4117 | else | |
4118 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4119 | fi | |
4120 | # And add a safety zone | |
4121 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4122 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4123 | ;; | |
35fa52c0 | 4124 | |
9c60689e DWT |
4125 | interix*) |
4126 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4127 | lt_cv_sys_max_cmd_len=196608 | |
4128 | ;; | |
35fa52c0 | 4129 | |
9c60689e DWT |
4130 | osf*) |
4131 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4132 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4133 | # nice to cause kernel panics so lets avoid the loop below. | |
4134 | # First set a reasonable default. | |
4135 | lt_cv_sys_max_cmd_len=16384 | |
4136 | # | |
4137 | if test -x /sbin/sysconfig; then | |
4138 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4139 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4140 | esac | |
4141 | fi | |
4142 | ;; | |
4143 | sco3.2v5*) | |
4144 | lt_cv_sys_max_cmd_len=102400 | |
4145 | ;; | |
4146 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4147 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4148 | if test -n "$kargmax"; then | |
4149 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4150 | else | |
4151 | lt_cv_sys_max_cmd_len=32768 | |
4152 | fi | |
4153 | ;; | |
4154 | *) | |
4155 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4156 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4157 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4158 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4159 | else | |
4160 | # Make teststring a little bigger before we do anything with it. | |
4161 | # a 1K string should be a reasonable start. | |
4162 | for i in 1 2 3 4 5 6 7 8 ; do | |
4163 | teststring=$teststring$teststring | |
4164 | done | |
4165 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4166 | # If test is not a shell built-in, we'll probably end up computing a | |
4167 | # maximum length that is only half of the actual maximum length, but | |
4168 | # we can't tell. | |
4169 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4170 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4171 | test $i != 17 # 1/2 MB should be enough | |
4172 | do | |
4173 | i=`expr $i + 1` | |
4174 | teststring=$teststring$teststring | |
4175 | done | |
4176 | # Only check the string length outside the loop. | |
4177 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4178 | teststring= | |
4179 | # Add a significant safety factor because C++ compilers can tack on | |
4180 | # massive amounts of additional arguments before passing them to the | |
4181 | # linker. It appears as though 1/2 is a usable value. | |
4182 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4183 | fi | |
4184 | ;; | |
4185 | esac | |
35fa52c0 | 4186 | |
35fa52c0 | 4187 | fi |
9c60689e DWT |
4188 | |
4189 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4191 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4192 | else |
9c60689e DWT |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4194 | $as_echo "none" >&6; } | |
35fa52c0 | 4195 | fi |
9c60689e | 4196 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4197 | |
9c60689e DWT |
4198 | |
4199 | ||
4200 | ||
4201 | ||
4202 | ||
4203 | : ${CP="cp -f"} | |
4204 | : ${MV="mv -f"} | |
4205 | : ${RM="rm -f"} | |
4206 | ||
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4208 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4209 | # Try some XSI features | |
4210 | xsi_shell=no | |
4211 | ( _lt_dummy="a/b/c" | |
4212 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4213 | = c,a/b,, \ | |
4214 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4215 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4216 | && xsi_shell=yes | |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4218 | $as_echo "$xsi_shell" >&6; } | |
4219 | ||
4220 | ||
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4222 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4223 | lt_shell_append=no | |
4224 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4225 | >/dev/null 2>&1 \ | |
4226 | && lt_shell_append=yes | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4228 | $as_echo "$lt_shell_append" >&6; } | |
4229 | ||
4230 | ||
4231 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4232 | lt_unset=unset | |
35fa52c0 | 4233 | else |
9c60689e DWT |
4234 | lt_unset=false |
4235 | fi | |
4236 | ||
4237 | ||
4238 | ||
4239 | ||
4240 | ||
4241 | # test EBCDIC or ASCII | |
4242 | case `echo X|tr X '\101'` in | |
4243 | A) # ASCII based system | |
4244 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4245 | lt_SP2NL='tr \040 \012' | |
4246 | lt_NL2SP='tr \015\012 \040\040' | |
4247 | ;; | |
4248 | *) # EBCDIC based system | |
4249 | lt_SP2NL='tr \100 \n' | |
4250 | lt_NL2SP='tr \r\n \100\100' | |
4251 | ;; | |
35fa52c0 DWT |
4252 | esac |
4253 | ||
35fa52c0 | 4254 | |
35fa52c0 | 4255 | |
35fa52c0 | 4256 | |
35fa52c0 | 4257 | |
35fa52c0 | 4258 | |
35fa52c0 | 4259 | |
35fa52c0 | 4260 | |
9c60689e DWT |
4261 | |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4263 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4264 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4265 | $as_echo_n "(cached) " >&6 |
4266 | else | |
9c60689e | 4267 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4268 | fi |
9c60689e DWT |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4270 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4271 | reload_flag=$lt_cv_ld_reload_flag | |
4272 | case $reload_flag in | |
4273 | "" | " "*) ;; | |
4274 | *) reload_flag=" $reload_flag" ;; | |
4275 | esac | |
4276 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4277 | case $host_os in | |
4278 | darwin*) | |
4279 | if test "$GCC" = yes; then | |
4280 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4281 | else | |
4282 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4283 | fi | |
4284 | ;; | |
35fa52c0 | 4285 | esac |
35fa52c0 DWT |
4286 | |
4287 | ||
9c60689e DWT |
4288 | |
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | ||
4295 | if test -n "$ac_tool_prefix"; then | |
4296 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4297 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4299 | $as_echo_n "checking for $ac_word... " >&6; } | |
4300 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4301 | $as_echo_n "(cached) " >&6 |
4302 | else | |
9c60689e DWT |
4303 | if test -n "$OBJDUMP"; then |
4304 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4305 | else |
9c60689e DWT |
4306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4307 | for as_dir in $PATH | |
4308 | do | |
4309 | IFS=$as_save_IFS | |
4310 | test -z "$as_dir" && as_dir=. | |
4311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4313 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4315 | break 2 | |
35fa52c0 | 4316 | fi |
9c60689e DWT |
4317 | done |
4318 | done | |
4319 | IFS=$as_save_IFS | |
35fa52c0 | 4320 | |
35fa52c0 | 4321 | fi |
35fa52c0 | 4322 | fi |
9c60689e DWT |
4323 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4324 | if test -n "$OBJDUMP"; then | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4326 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4327 | else |
9c60689e DWT |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4329 | $as_echo "no" >&6; } | |
35fa52c0 | 4330 | fi |
9c60689e DWT |
4331 | |
4332 | ||
4333 | fi | |
4334 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4335 | ac_ct_OBJDUMP=$OBJDUMP | |
4336 | # Extract the first word of "objdump", so it can be a program name with args. | |
4337 | set dummy objdump; ac_word=$2 | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4339 | $as_echo_n "checking for $ac_word... " >&6; } | |
4340 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4341 | $as_echo_n "(cached) " >&6 |
4342 | else | |
9c60689e DWT |
4343 | if test -n "$ac_ct_OBJDUMP"; then |
4344 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4345 | else |
9c60689e DWT |
4346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4347 | for as_dir in $PATH | |
4348 | do | |
4349 | IFS=$as_save_IFS | |
4350 | test -z "$as_dir" && as_dir=. | |
4351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4353 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4355 | break 2 | |
4356 | fi | |
4357 | done | |
4358 | done | |
4359 | IFS=$as_save_IFS | |
4360 | ||
35fa52c0 DWT |
4361 | fi |
4362 | fi | |
9c60689e DWT |
4363 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4364 | if test -n "$ac_ct_OBJDUMP"; then | |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4366 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4367 | else |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4369 | $as_echo "no" >&6; } | |
4370 | fi | |
9c60689e DWT |
4371 | |
4372 | if test "x$ac_ct_OBJDUMP" = x; then | |
4373 | OBJDUMP="false" | |
4374 | else | |
4375 | case $cross_compiling:$ac_tool_warned in | |
4376 | yes:) | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4378 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4379 | ac_tool_warned=yes ;; | |
35fa52c0 | 4380 | esac |
9c60689e DWT |
4381 | OBJDUMP=$ac_ct_OBJDUMP |
4382 | fi | |
4383 | else | |
4384 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4385 | fi |
35fa52c0 | 4386 | |
9c60689e | 4387 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4388 | |
4389 | ||
35fa52c0 | 4390 | |
35fa52c0 | 4391 | |
35fa52c0 DWT |
4392 | |
4393 | ||
4394 | ||
35fa52c0 DWT |
4395 | |
4396 | ||
9c60689e DWT |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4398 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4399 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4400 | $as_echo_n "(cached) " >&6 | |
4401 | else | |
4402 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4403 | lt_cv_file_magic_test_file= | |
4404 | lt_cv_deplibs_check_method='unknown' | |
4405 | # Need to set the preceding variable on all platforms that support | |
4406 | # interlibrary dependencies. | |
4407 | # 'none' -- dependencies not supported. | |
4408 | # `unknown' -- same as none, but documents that we really don't know. | |
4409 | # 'pass_all' -- all dependencies passed with no checks. | |
4410 | # 'test_compile' -- check by making test program. | |
4411 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4412 | # which responds to the $file_magic_cmd with a given extended regex. | |
4413 | # If you have `file' or equivalent on your system and you're not sure | |
4414 | # whether `pass_all' will *always* work, you probably want this one. | |
4415 | ||
4416 | case $host_os in | |
4417 | aix[4-9]*) | |
4418 | lt_cv_deplibs_check_method=pass_all | |
4419 | ;; | |
35fa52c0 | 4420 | |
9c60689e DWT |
4421 | beos*) |
4422 | lt_cv_deplibs_check_method=pass_all | |
4423 | ;; | |
35fa52c0 | 4424 | |
9c60689e DWT |
4425 | bsdi[45]*) |
4426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4427 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4428 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4429 | ;; | |
35fa52c0 | 4430 | |
9c60689e DWT |
4431 | cygwin*) |
4432 | # func_win32_libid is a shell function defined in ltmain.sh | |
4433 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4434 | lt_cv_file_magic_cmd='func_win32_libid' | |
4435 | ;; | |
35fa52c0 | 4436 | |
9c60689e DWT |
4437 | mingw* | pw32*) |
4438 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4439 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4440 | # unless we find 'file', for example because we are cross-compiling. | |
4441 | if ( file / ) >/dev/null 2>&1; then | |
4442 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4443 | lt_cv_file_magic_cmd='func_win32_libid' | |
4444 | else | |
4445 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4446 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4447 | fi | |
4448 | ;; | |
35fa52c0 | 4449 | |
9c60689e DWT |
4450 | cegcc) |
4451 | # use the weaker test based on 'objdump'. See mingw*. | |
4452 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4453 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4454 | ;; | |
35fa52c0 | 4455 | |
9c60689e DWT |
4456 | darwin* | rhapsody*) |
4457 | lt_cv_deplibs_check_method=pass_all | |
4458 | ;; | |
35fa52c0 | 4459 | |
9c60689e DWT |
4460 | freebsd* | dragonfly*) |
4461 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4462 | case $host_cpu in | |
4463 | i*86 ) | |
4464 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4465 | # Let's accept both of them until this is cleared up. | |
4466 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4467 | lt_cv_file_magic_cmd=/usr/bin/file | |
4468 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4469 | ;; | |
4470 | esac | |
4471 | else | |
4472 | lt_cv_deplibs_check_method=pass_all | |
4473 | fi | |
4474 | ;; | |
35fa52c0 | 4475 | |
9c60689e DWT |
4476 | gnu*) |
4477 | lt_cv_deplibs_check_method=pass_all | |
4478 | ;; | |
35fa52c0 | 4479 | |
9c60689e DWT |
4480 | hpux10.20* | hpux11*) |
4481 | lt_cv_file_magic_cmd=/usr/bin/file | |
4482 | case $host_cpu in | |
4483 | ia64*) | |
4484 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4485 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4486 | ;; | |
4487 | hppa*64*) | |
4488 | 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]' | |
4489 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4490 | ;; | |
4491 | *) | |
4492 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4493 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4494 | ;; | |
4495 | esac | |
4496 | ;; | |
35fa52c0 | 4497 | |
9c60689e DWT |
4498 | interix[3-9]*) |
4499 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4500 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4501 | ;; | |
35fa52c0 | 4502 | |
9c60689e DWT |
4503 | irix5* | irix6* | nonstopux*) |
4504 | case $LD in | |
4505 | *-32|*"-32 ") libmagic=32-bit;; | |
4506 | *-n32|*"-n32 ") libmagic=N32;; | |
4507 | *-64|*"-64 ") libmagic=64-bit;; | |
4508 | *) libmagic=never-match;; | |
4509 | esac | |
4510 | lt_cv_deplibs_check_method=pass_all | |
4511 | ;; | |
35fa52c0 | 4512 | |
9c60689e DWT |
4513 | # This must be Linux ELF. |
4514 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4515 | lt_cv_deplibs_check_method=pass_all | |
4516 | ;; | |
35fa52c0 | 4517 | |
9c60689e DWT |
4518 | netbsd* | netbsdelf*-gnu) |
4519 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4520 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4521 | else | |
4522 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4523 | fi | |
4524 | ;; | |
35fa52c0 | 4525 | |
9c60689e DWT |
4526 | newos6*) |
4527 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4528 | lt_cv_file_magic_cmd=/usr/bin/file | |
4529 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4530 | ;; | |
35fa52c0 | 4531 | |
9c60689e DWT |
4532 | *nto* | *qnx*) |
4533 | lt_cv_deplibs_check_method=pass_all | |
4534 | ;; | |
35fa52c0 | 4535 | |
9c60689e DWT |
4536 | openbsd*) |
4537 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4538 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4539 | else | |
4540 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4541 | fi | |
4542 | ;; | |
4543 | ||
4544 | osf3* | osf4* | osf5*) | |
4545 | lt_cv_deplibs_check_method=pass_all | |
4546 | ;; | |
4547 | ||
4548 | rdos*) | |
4549 | lt_cv_deplibs_check_method=pass_all | |
4550 | ;; | |
4551 | ||
4552 | solaris*) | |
4553 | lt_cv_deplibs_check_method=pass_all | |
4554 | ;; | |
4555 | ||
4556 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4557 | lt_cv_deplibs_check_method=pass_all | |
4558 | ;; | |
4559 | ||
4560 | sysv4 | sysv4.3*) | |
4561 | case $host_vendor in | |
4562 | motorola) | |
4563 | 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]' | |
4564 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4565 | ;; | |
4566 | ncr) | |
4567 | lt_cv_deplibs_check_method=pass_all | |
4568 | ;; | |
4569 | sequent) | |
4570 | lt_cv_file_magic_cmd='/bin/file' | |
4571 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4572 | ;; | |
4573 | sni) | |
4574 | lt_cv_file_magic_cmd='/bin/file' | |
4575 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4576 | lt_cv_file_magic_test_file=/lib/libc.so | |
4577 | ;; | |
4578 | siemens) | |
4579 | lt_cv_deplibs_check_method=pass_all | |
4580 | ;; | |
4581 | pc) | |
4582 | lt_cv_deplibs_check_method=pass_all | |
4583 | ;; | |
4584 | esac | |
4585 | ;; | |
4586 | ||
4587 | tpf*) | |
4588 | lt_cv_deplibs_check_method=pass_all | |
4589 | ;; | |
4590 | esac | |
35fa52c0 DWT |
4591 | |
4592 | fi | |
9c60689e DWT |
4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4594 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4595 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4596 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4597 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4598 | |
35fa52c0 | 4599 | |
35fa52c0 | 4600 | |
35fa52c0 | 4601 | |
35fa52c0 | 4602 | |
35fa52c0 | 4603 | |
35fa52c0 | 4604 | |
35fa52c0 | 4605 | |
35fa52c0 | 4606 | |
35fa52c0 | 4607 | |
35fa52c0 | 4608 | |
9c60689e DWT |
4609 | |
4610 | if test -n "$ac_tool_prefix"; then | |
4611 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4612 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4614 | $as_echo_n "checking for $ac_word... " >&6; } | |
4615 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4616 | $as_echo_n "(cached) " >&6 | |
4617 | else | |
4618 | if test -n "$AR"; then | |
4619 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4620 | else | |
4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4622 | for as_dir in $PATH | |
4623 | do | |
4624 | IFS=$as_save_IFS | |
4625 | test -z "$as_dir" && as_dir=. | |
4626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4628 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4630 | break 2 | |
4631 | fi | |
4632 | done | |
35fa52c0 | 4633 | done |
9c60689e DWT |
4634 | IFS=$as_save_IFS |
4635 | ||
4636 | fi | |
4637 | fi | |
4638 | AR=$ac_cv_prog_AR | |
4639 | if test -n "$AR"; then | |
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4641 | $as_echo "$AR" >&6; } | |
4642 | else | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4644 | $as_echo "no" >&6; } | |
4645 | fi | |
4646 | ||
4647 | ||
4648 | fi | |
4649 | if test -z "$ac_cv_prog_AR"; then | |
4650 | ac_ct_AR=$AR | |
4651 | # Extract the first word of "ar", so it can be a program name with args. | |
4652 | set dummy ar; ac_word=$2 | |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4654 | $as_echo_n "checking for $ac_word... " >&6; } | |
4655 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4656 | $as_echo_n "(cached) " >&6 | |
4657 | else | |
4658 | if test -n "$ac_ct_AR"; then | |
4659 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4660 | else | |
4661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4662 | for as_dir in $PATH | |
4663 | do | |
4664 | IFS=$as_save_IFS | |
4665 | test -z "$as_dir" && as_dir=. | |
4666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4668 | ac_cv_prog_ac_ct_AR="ar" | |
4669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4670 | break 2 | |
35fa52c0 | 4671 | fi |
9c60689e DWT |
4672 | done |
4673 | done | |
4674 | IFS=$as_save_IFS | |
4675 | ||
4676 | fi | |
4677 | fi | |
4678 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4679 | if test -n "$ac_ct_AR"; then | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4681 | $as_echo "$ac_ct_AR" >&6; } | |
4682 | else | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4684 | $as_echo "no" >&6; } | |
4685 | fi | |
4686 | ||
4687 | if test "x$ac_ct_AR" = x; then | |
4688 | AR="false" | |
4689 | else | |
4690 | case $cross_compiling:$ac_tool_warned in | |
4691 | yes:) | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4693 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4694 | ac_tool_warned=yes ;; | |
4695 | esac | |
4696 | AR=$ac_ct_AR | |
4697 | fi | |
4698 | else | |
4699 | AR="$ac_cv_prog_AR" | |
4700 | fi | |
4701 | ||
4702 | test -z "$AR" && AR=ar | |
4703 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | if test -n "$ac_tool_prefix"; then | |
4716 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4717 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4719 | $as_echo_n "checking for $ac_word... " >&6; } | |
4720 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4721 | $as_echo_n "(cached) " >&6 | |
4722 | else | |
4723 | if test -n "$STRIP"; then | |
4724 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4725 | else | |
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4727 | for as_dir in $PATH | |
4728 | do | |
4729 | IFS=$as_save_IFS | |
4730 | test -z "$as_dir" && as_dir=. | |
4731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4733 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4735 | break 2 | |
35fa52c0 | 4736 | fi |
9c60689e DWT |
4737 | done |
4738 | done | |
4739 | IFS=$as_save_IFS | |
4740 | ||
4741 | fi | |
4742 | fi | |
4743 | STRIP=$ac_cv_prog_STRIP | |
4744 | if test -n "$STRIP"; then | |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4746 | $as_echo "$STRIP" >&6; } | |
4747 | else | |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4749 | $as_echo "no" >&6; } | |
4750 | fi | |
4751 | ||
4752 | ||
4753 | fi | |
4754 | if test -z "$ac_cv_prog_STRIP"; then | |
4755 | ac_ct_STRIP=$STRIP | |
4756 | # Extract the first word of "strip", so it can be a program name with args. | |
4757 | set dummy strip; ac_word=$2 | |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4759 | $as_echo_n "checking for $ac_word... " >&6; } | |
4760 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4761 | $as_echo_n "(cached) " >&6 | |
4762 | else | |
4763 | if test -n "$ac_ct_STRIP"; then | |
4764 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4765 | else | |
4766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4767 | for as_dir in $PATH | |
4768 | do | |
4769 | IFS=$as_save_IFS | |
4770 | test -z "$as_dir" && as_dir=. | |
4771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4773 | ac_cv_prog_ac_ct_STRIP="strip" | |
4774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4775 | break 2 | |
4776 | fi | |
4777 | done | |
4778 | done | |
4779 | IFS=$as_save_IFS | |
4780 | ||
4781 | fi | |
4782 | fi | |
4783 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4784 | if test -n "$ac_ct_STRIP"; then | |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4786 | $as_echo "$ac_ct_STRIP" >&6; } | |
4787 | else | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4789 | $as_echo "no" >&6; } | |
4790 | fi | |
4791 | ||
4792 | if test "x$ac_ct_STRIP" = x; then | |
4793 | STRIP=":" | |
4794 | else | |
4795 | case $cross_compiling:$ac_tool_warned in | |
4796 | yes:) | |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4798 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4799 | ac_tool_warned=yes ;; | |
4800 | esac | |
4801 | STRIP=$ac_ct_STRIP | |
4802 | fi | |
4803 | else | |
4804 | STRIP="$ac_cv_prog_STRIP" | |
4805 | fi | |
4806 | ||
4807 | test -z "$STRIP" && STRIP=: | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | ||
4814 | if test -n "$ac_tool_prefix"; then | |
4815 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4816 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4818 | $as_echo_n "checking for $ac_word... " >&6; } | |
4819 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4820 | $as_echo_n "(cached) " >&6 | |
4821 | else | |
4822 | if test -n "$RANLIB"; then | |
4823 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4824 | else | |
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4826 | for as_dir in $PATH | |
4827 | do | |
4828 | IFS=$as_save_IFS | |
4829 | test -z "$as_dir" && as_dir=. | |
4830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4832 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4834 | break 2 | |
4835 | fi | |
4836 | done | |
4837 | done | |
4838 | IFS=$as_save_IFS | |
4839 | ||
4840 | fi | |
4841 | fi | |
4842 | RANLIB=$ac_cv_prog_RANLIB | |
4843 | if test -n "$RANLIB"; then | |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4845 | $as_echo "$RANLIB" >&6; } | |
4846 | else | |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4848 | $as_echo "no" >&6; } | |
4849 | fi | |
4850 | ||
4851 | ||
4852 | fi | |
4853 | if test -z "$ac_cv_prog_RANLIB"; then | |
4854 | ac_ct_RANLIB=$RANLIB | |
4855 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4856 | set dummy ranlib; ac_word=$2 | |
4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4858 | $as_echo_n "checking for $ac_word... " >&6; } | |
4859 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4860 | $as_echo_n "(cached) " >&6 | |
4861 | else | |
4862 | if test -n "$ac_ct_RANLIB"; then | |
4863 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4864 | else | |
4865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4866 | for as_dir in $PATH | |
4867 | do | |
4868 | IFS=$as_save_IFS | |
4869 | test -z "$as_dir" && as_dir=. | |
4870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4872 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4874 | break 2 | |
4875 | fi | |
4876 | done | |
4877 | done | |
4878 | IFS=$as_save_IFS | |
4879 | ||
4880 | fi | |
4881 | fi | |
4882 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4883 | if test -n "$ac_ct_RANLIB"; then | |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4885 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4886 | else | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4888 | $as_echo "no" >&6; } | |
4889 | fi | |
4890 | ||
4891 | if test "x$ac_ct_RANLIB" = x; then | |
4892 | RANLIB=":" | |
4893 | else | |
4894 | case $cross_compiling:$ac_tool_warned in | |
4895 | yes:) | |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4897 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4898 | ac_tool_warned=yes ;; | |
4899 | esac | |
4900 | RANLIB=$ac_ct_RANLIB | |
4901 | fi | |
4902 | else | |
4903 | RANLIB="$ac_cv_prog_RANLIB" | |
4904 | fi | |
4905 | ||
4906 | test -z "$RANLIB" && RANLIB=: | |
4907 | ||
4908 | ||
4909 | ||
4910 | ||
4911 | ||
4912 | ||
4913 | # Determine commands to create old-style static archives. | |
4914 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4915 | old_postinstall_cmds='chmod 644 $oldlib' | |
4916 | old_postuninstall_cmds= | |
4917 | ||
4918 | if test -n "$RANLIB"; then | |
4919 | case $host_os in | |
4920 | openbsd*) | |
4921 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4922 | ;; | |
4923 | *) | |
4924 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4925 | ;; | |
4926 | esac | |
4927 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4928 | fi | |
4929 | ||
4930 | ||
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 | # If no C compiler was specified, use CC. | |
4964 | LTCC=${LTCC-"$CC"} | |
4965 | ||
4966 | # If no C compiler flags were specified, use CFLAGS. | |
4967 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4968 | ||
4969 | # Allow CC to be a program name with arguments. | |
4970 | compiler=$CC | |
4971 | ||
4972 | ||
4973 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4975 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4976 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4977 | $as_echo_n "(cached) " >&6 | |
4978 | else | |
4979 | ||
4980 | # These are sane defaults that work on at least a few old systems. | |
4981 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4982 | ||
4983 | # Character class describing NM global symbol codes. | |
4984 | symcode='[BCDEGRST]' | |
4985 | ||
4986 | # Regexp to match symbols that can be accessed directly from C. | |
4987 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4988 | ||
4989 | # Define system-specific variables. | |
4990 | case $host_os in | |
4991 | aix*) | |
4992 | symcode='[BCDT]' | |
4993 | ;; | |
4994 | cygwin* | mingw* | pw32* | cegcc*) | |
4995 | symcode='[ABCDGISTW]' | |
4996 | ;; | |
4997 | hpux*) | |
4998 | if test "$host_cpu" = ia64; then | |
4999 | symcode='[ABCDEGRST]' | |
5000 | fi | |
5001 | ;; | |
5002 | irix* | nonstopux*) | |
5003 | symcode='[BCDEGRST]' | |
5004 | ;; | |
5005 | osf*) | |
5006 | symcode='[BCDEGQRST]' | |
5007 | ;; | |
5008 | solaris*) | |
5009 | symcode='[BDRT]' | |
5010 | ;; | |
5011 | sco3.2v5*) | |
5012 | symcode='[DT]' | |
5013 | ;; | |
5014 | sysv4.2uw2*) | |
5015 | symcode='[DT]' | |
5016 | ;; | |
5017 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5018 | symcode='[ABDT]' | |
5019 | ;; | |
5020 | sysv4) | |
5021 | symcode='[DFNSTU]' | |
5022 | ;; | |
5023 | esac | |
5024 | ||
5025 | # If we're using GNU nm, then use its standard symbol codes. | |
5026 | case `$NM -V 2>&1` in | |
5027 | *GNU* | *'with BFD'*) | |
5028 | symcode='[ABCDGIRSTW]' ;; | |
5029 | esac | |
5030 | ||
5031 | # Transform an extracted symbol line into a proper C declaration. | |
5032 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5033 | # so use this general approach. | |
5034 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5035 | ||
5036 | # Transform an extracted symbol line into symbol name and symbol address | |
5037 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5038 | 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'" | |
5039 | ||
5040 | # Handle CRLF in mingw tool chain | |
5041 | opt_cr= | |
5042 | case $build_os in | |
5043 | mingw*) | |
5044 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5045 | ;; | |
5046 | esac | |
5047 | ||
5048 | # Try without a prefix underscore, then with it. | |
5049 | for ac_symprfx in "" "_"; do | |
5050 | ||
5051 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5052 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5053 | ||
5054 | # Write the raw and C identifiers. | |
5055 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5056 | # Fake it for dumpbin and say T for any non-static function | |
5057 | # and D for any global variable. | |
5058 | # Also find C++ and __fastcall symbols from MSVC++, | |
5059 | # which start with @ or ?. | |
5060 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5061 | " {last_section=section; section=\$ 3};"\ | |
5062 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5063 | " \$ 0!~/External *\|/{next};"\ | |
5064 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5065 | " {if(hide[section]) next};"\ | |
5066 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5067 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5068 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5069 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5070 | " ' prfx=^$ac_symprfx" | |
5071 | else | |
5072 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5073 | fi | |
5074 | ||
5075 | # Check to see that the pipe works correctly. | |
5076 | pipe_works=no | |
5077 | ||
5078 | rm -f conftest* | |
5079 | cat > conftest.$ac_ext <<_LT_EOF | |
5080 | #ifdef __cplusplus | |
5081 | extern "C" { | |
5082 | #endif | |
5083 | char nm_test_var; | |
5084 | void nm_test_func(void); | |
5085 | void nm_test_func(void){} | |
5086 | #ifdef __cplusplus | |
5087 | } | |
5088 | #endif | |
5089 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5090 | _LT_EOF | |
5091 | ||
5092 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5093 | (eval $ac_compile) 2>&5 | |
5094 | ac_status=$? | |
5095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5096 | test $ac_status = 0; }; then | |
5097 | # Now try to grab the symbols. | |
5098 | nlist=conftest.nm | |
5099 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5100 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5101 | ac_status=$? | |
5102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5103 | test $ac_status = 0; } && test -s "$nlist"; then | |
5104 | # Try sorting and uniquifying the output. | |
5105 | if sort "$nlist" | uniq > "$nlist"T; then | |
5106 | mv -f "$nlist"T "$nlist" | |
5107 | else | |
5108 | rm -f "$nlist"T | |
5109 | fi | |
5110 | ||
5111 | # Make sure that we snagged all the symbols we need. | |
5112 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5113 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5114 | cat <<_LT_EOF > conftest.$ac_ext | |
5115 | #ifdef __cplusplus | |
5116 | extern "C" { | |
5117 | #endif | |
5118 | ||
5119 | _LT_EOF | |
5120 | # Now generate the symbol file. | |
5121 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5122 | ||
5123 | cat <<_LT_EOF >> conftest.$ac_ext | |
5124 | ||
5125 | /* The mapping between symbol names and symbols. */ | |
5126 | const struct { | |
5127 | const char *name; | |
5128 | void *address; | |
5129 | } | |
5130 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5131 | { | |
5132 | { "@PROGRAM@", (void *) 0 }, | |
5133 | _LT_EOF | |
5134 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5135 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5136 | {0, (void *) 0} | |
5137 | }; | |
5138 | ||
5139 | /* This works around a problem in FreeBSD linker */ | |
5140 | #ifdef FREEBSD_WORKAROUND | |
5141 | static const void *lt_preloaded_setup() { | |
5142 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5143 | } | |
5144 | #endif | |
5145 | ||
5146 | #ifdef __cplusplus | |
5147 | } | |
5148 | #endif | |
5149 | _LT_EOF | |
5150 | # Now try linking the two files. | |
5151 | mv conftest.$ac_objext conftstm.$ac_objext | |
5152 | lt_save_LIBS="$LIBS" | |
5153 | lt_save_CFLAGS="$CFLAGS" | |
5154 | LIBS="conftstm.$ac_objext" | |
5155 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5156 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5157 | (eval $ac_link) 2>&5 | |
5158 | ac_status=$? | |
5159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5160 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5161 | pipe_works=yes | |
5162 | fi | |
5163 | LIBS="$lt_save_LIBS" | |
5164 | CFLAGS="$lt_save_CFLAGS" | |
5165 | else | |
5166 | echo "cannot find nm_test_func in $nlist" >&5 | |
5167 | fi | |
5168 | else | |
5169 | echo "cannot find nm_test_var in $nlist" >&5 | |
5170 | fi | |
5171 | else | |
5172 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5173 | fi | |
5174 | else | |
5175 | echo "$progname: failed program was:" >&5 | |
5176 | cat conftest.$ac_ext >&5 | |
5177 | fi | |
5178 | rm -rf conftest* conftst* | |
5179 | ||
5180 | # Do not use the global_symbol_pipe unless it works. | |
5181 | if test "$pipe_works" = yes; then | |
5182 | break | |
5183 | else | |
5184 | lt_cv_sys_global_symbol_pipe= | |
5185 | fi | |
5186 | done | |
5187 | ||
5188 | fi | |
5189 | ||
5190 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5191 | lt_cv_sys_global_symbol_to_cdecl= | |
5192 | fi | |
5193 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5195 | $as_echo "failed" >&6; } | |
5196 | else | |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5198 | $as_echo "ok" >&6; } | |
5199 | fi | |
5200 | ||
5201 | ||
5202 | ||
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | # Check whether --enable-libtool-lock was given. | |
5224 | if test "${enable_libtool_lock+set}" = set; then : | |
5225 | enableval=$enable_libtool_lock; | |
5226 | fi | |
5227 | ||
5228 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5229 | ||
5230 | # Some flags need to be propagated to the compiler or linker for good | |
5231 | # libtool support. | |
5232 | case $host in | |
5233 | ia64-*-hpux*) | |
5234 | # Find out which ABI we are using. | |
5235 | echo 'int i;' > conftest.$ac_ext | |
5236 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5237 | (eval $ac_compile) 2>&5 | |
5238 | ac_status=$? | |
5239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5240 | test $ac_status = 0; }; then | |
5241 | case `/usr/bin/file conftest.$ac_objext` in | |
5242 | *ELF-32*) | |
5243 | HPUX_IA64_MODE="32" | |
5244 | ;; | |
5245 | *ELF-64*) | |
5246 | HPUX_IA64_MODE="64" | |
5247 | ;; | |
5248 | esac | |
5249 | fi | |
5250 | rm -rf conftest* | |
5251 | ;; | |
5252 | *-*-irix6*) | |
5253 | # Find out which ABI we are using. | |
e9c9a47c | 5254 | echo '#line 5254 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5255 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5256 | (eval $ac_compile) 2>&5 | |
5257 | ac_status=$? | |
5258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5259 | test $ac_status = 0; }; then | |
5260 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5261 | case `/usr/bin/file conftest.$ac_objext` in | |
5262 | *32-bit*) | |
5263 | LD="${LD-ld} -melf32bsmip" | |
5264 | ;; | |
5265 | *N32*) | |
5266 | LD="${LD-ld} -melf32bmipn32" | |
5267 | ;; | |
5268 | *64-bit*) | |
5269 | LD="${LD-ld} -melf64bmip" | |
5270 | ;; | |
5271 | esac | |
5272 | else | |
5273 | case `/usr/bin/file conftest.$ac_objext` in | |
5274 | *32-bit*) | |
5275 | LD="${LD-ld} -32" | |
5276 | ;; | |
5277 | *N32*) | |
5278 | LD="${LD-ld} -n32" | |
5279 | ;; | |
5280 | *64-bit*) | |
5281 | LD="${LD-ld} -64" | |
5282 | ;; | |
5283 | esac | |
5284 | fi | |
5285 | fi | |
5286 | rm -rf conftest* | |
5287 | ;; | |
5288 | ||
5289 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5290 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5291 | # Find out which ABI we are using. | |
5292 | echo 'int i;' > conftest.$ac_ext | |
5293 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5294 | (eval $ac_compile) 2>&5 | |
5295 | ac_status=$? | |
5296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5297 | test $ac_status = 0; }; then | |
5298 | case `/usr/bin/file conftest.o` in | |
5299 | *32-bit*) | |
5300 | case $host in | |
5301 | x86_64-*kfreebsd*-gnu) | |
5302 | LD="${LD-ld} -m elf_i386_fbsd" | |
5303 | ;; | |
5304 | x86_64-*linux*) | |
5305 | LD="${LD-ld} -m elf_i386" | |
5306 | ;; | |
5307 | ppc64-*linux*|powerpc64-*linux*) | |
5308 | LD="${LD-ld} -m elf32ppclinux" | |
5309 | ;; | |
5310 | s390x-*linux*) | |
5311 | LD="${LD-ld} -m elf_s390" | |
5312 | ;; | |
5313 | sparc64-*linux*) | |
5314 | LD="${LD-ld} -m elf32_sparc" | |
5315 | ;; | |
5316 | esac | |
5317 | ;; | |
5318 | *64-bit*) | |
5319 | case $host in | |
5320 | x86_64-*kfreebsd*-gnu) | |
5321 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5322 | ;; | |
5323 | x86_64-*linux*) | |
5324 | LD="${LD-ld} -m elf_x86_64" | |
5325 | ;; | |
5326 | ppc*-*linux*|powerpc*-*linux*) | |
5327 | LD="${LD-ld} -m elf64ppc" | |
5328 | ;; | |
5329 | s390*-*linux*|s390*-*tpf*) | |
5330 | LD="${LD-ld} -m elf64_s390" | |
5331 | ;; | |
5332 | sparc*-*linux*) | |
5333 | LD="${LD-ld} -m elf64_sparc" | |
5334 | ;; | |
5335 | esac | |
5336 | ;; | |
5337 | esac | |
5338 | fi | |
5339 | rm -rf conftest* | |
5340 | ;; | |
5341 | ||
5342 | *-*-sco3.2v5*) | |
5343 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5344 | SAVE_CFLAGS="$CFLAGS" | |
5345 | CFLAGS="$CFLAGS -belf" | |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5347 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5348 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5349 | $as_echo_n "(cached) " >&6 | |
5350 | else | |
5351 | ac_ext=c | |
5352 | ac_cpp='$CPP $CPPFLAGS' | |
5353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5356 | ||
5357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5358 | /* end confdefs.h. */ | |
5359 | ||
5360 | int | |
5361 | main () | |
5362 | { | |
5363 | ||
5364 | ; | |
5365 | return 0; | |
5366 | } | |
5367 | _ACEOF | |
5368 | if ac_fn_c_try_link "$LINENO"; then : | |
5369 | lt_cv_cc_needs_belf=yes | |
5370 | else | |
5371 | lt_cv_cc_needs_belf=no | |
5372 | fi | |
5373 | rm -f core conftest.err conftest.$ac_objext \ | |
5374 | conftest$ac_exeext conftest.$ac_ext | |
5375 | ac_ext=c | |
5376 | ac_cpp='$CPP $CPPFLAGS' | |
5377 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5378 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5379 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5380 | ||
5381 | fi | |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5383 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5384 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5385 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5386 | CFLAGS="$SAVE_CFLAGS" | |
5387 | fi | |
5388 | ;; | |
5389 | sparc*-*solaris*) | |
5390 | # Find out which ABI we are using. | |
5391 | echo 'int i;' > conftest.$ac_ext | |
5392 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5393 | (eval $ac_compile) 2>&5 | |
5394 | ac_status=$? | |
5395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5396 | test $ac_status = 0; }; then | |
5397 | case `/usr/bin/file conftest.o` in | |
5398 | *64-bit*) | |
5399 | case $lt_cv_prog_gnu_ld in | |
5400 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5401 | *) | |
5402 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5403 | LD="${LD-ld} -64" | |
5404 | fi | |
5405 | ;; | |
5406 | esac | |
5407 | ;; | |
5408 | esac | |
5409 | fi | |
5410 | rm -rf conftest* | |
5411 | ;; | |
5412 | esac | |
5413 | ||
5414 | need_locks="$enable_libtool_lock" | |
5415 | ||
5416 | ||
5417 | case $host_os in | |
5418 | rhapsody* | darwin*) | |
5419 | if test -n "$ac_tool_prefix"; then | |
5420 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5421 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5423 | $as_echo_n "checking for $ac_word... " >&6; } | |
5424 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5425 | $as_echo_n "(cached) " >&6 | |
5426 | else | |
5427 | if test -n "$DSYMUTIL"; then | |
5428 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5429 | else | |
5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5431 | for as_dir in $PATH | |
5432 | do | |
5433 | IFS=$as_save_IFS | |
5434 | test -z "$as_dir" && as_dir=. | |
5435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5437 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5439 | break 2 | |
5440 | fi | |
5441 | done | |
5442 | done | |
5443 | IFS=$as_save_IFS | |
5444 | ||
5445 | fi | |
5446 | fi | |
5447 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5448 | if test -n "$DSYMUTIL"; then | |
5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5450 | $as_echo "$DSYMUTIL" >&6; } | |
5451 | else | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5453 | $as_echo "no" >&6; } | |
5454 | fi | |
5455 | ||
5456 | ||
5457 | fi | |
5458 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5459 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5460 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5461 | set dummy dsymutil; ac_word=$2 | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5463 | $as_echo_n "checking for $ac_word... " >&6; } | |
5464 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5465 | $as_echo_n "(cached) " >&6 | |
5466 | else | |
5467 | if test -n "$ac_ct_DSYMUTIL"; then | |
5468 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5469 | else | |
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 | for as_dir in $PATH | |
5472 | do | |
5473 | IFS=$as_save_IFS | |
5474 | test -z "$as_dir" && as_dir=. | |
5475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5477 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5479 | break 2 | |
5480 | fi | |
5481 | done | |
5482 | done | |
5483 | IFS=$as_save_IFS | |
5484 | ||
5485 | fi | |
5486 | fi | |
5487 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5488 | if test -n "$ac_ct_DSYMUTIL"; then | |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5490 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5491 | else | |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5493 | $as_echo "no" >&6; } | |
5494 | fi | |
5495 | ||
5496 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5497 | DSYMUTIL=":" | |
5498 | else | |
5499 | case $cross_compiling:$ac_tool_warned in | |
5500 | yes:) | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5502 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5503 | ac_tool_warned=yes ;; | |
5504 | esac | |
5505 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5506 | fi | |
5507 | else | |
5508 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5509 | fi | |
5510 | ||
5511 | if test -n "$ac_tool_prefix"; then | |
5512 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5513 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5515 | $as_echo_n "checking for $ac_word... " >&6; } | |
5516 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5517 | $as_echo_n "(cached) " >&6 | |
5518 | else | |
5519 | if test -n "$NMEDIT"; then | |
5520 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5521 | else | |
5522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5523 | for as_dir in $PATH | |
5524 | do | |
5525 | IFS=$as_save_IFS | |
5526 | test -z "$as_dir" && as_dir=. | |
5527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5529 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5531 | break 2 | |
5532 | fi | |
5533 | done | |
5534 | done | |
5535 | IFS=$as_save_IFS | |
5536 | ||
5537 | fi | |
5538 | fi | |
5539 | NMEDIT=$ac_cv_prog_NMEDIT | |
5540 | if test -n "$NMEDIT"; then | |
5541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5542 | $as_echo "$NMEDIT" >&6; } | |
5543 | else | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5545 | $as_echo "no" >&6; } | |
5546 | fi | |
5547 | ||
5548 | ||
5549 | fi | |
5550 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5551 | ac_ct_NMEDIT=$NMEDIT | |
5552 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5553 | set dummy nmedit; ac_word=$2 | |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5555 | $as_echo_n "checking for $ac_word... " >&6; } | |
5556 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5557 | $as_echo_n "(cached) " >&6 | |
5558 | else | |
5559 | if test -n "$ac_ct_NMEDIT"; then | |
5560 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5561 | else | |
5562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5563 | for as_dir in $PATH | |
5564 | do | |
5565 | IFS=$as_save_IFS | |
5566 | test -z "$as_dir" && as_dir=. | |
5567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5569 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5571 | break 2 | |
5572 | fi | |
5573 | done | |
5574 | done | |
5575 | IFS=$as_save_IFS | |
5576 | ||
5577 | fi | |
5578 | fi | |
5579 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5580 | if test -n "$ac_ct_NMEDIT"; then | |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5582 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5583 | else | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5585 | $as_echo "no" >&6; } | |
5586 | fi | |
5587 | ||
5588 | if test "x$ac_ct_NMEDIT" = x; then | |
5589 | NMEDIT=":" | |
5590 | else | |
5591 | case $cross_compiling:$ac_tool_warned in | |
5592 | yes:) | |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5594 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5595 | ac_tool_warned=yes ;; | |
5596 | esac | |
5597 | NMEDIT=$ac_ct_NMEDIT | |
5598 | fi | |
5599 | else | |
5600 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5601 | fi | |
5602 | ||
5603 | if test -n "$ac_tool_prefix"; then | |
5604 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5605 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5607 | $as_echo_n "checking for $ac_word... " >&6; } | |
5608 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5609 | $as_echo_n "(cached) " >&6 | |
5610 | else | |
5611 | if test -n "$LIPO"; then | |
5612 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5613 | else | |
5614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5615 | for as_dir in $PATH | |
5616 | do | |
5617 | IFS=$as_save_IFS | |
5618 | test -z "$as_dir" && as_dir=. | |
5619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5621 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5623 | break 2 | |
5624 | fi | |
5625 | done | |
5626 | done | |
5627 | IFS=$as_save_IFS | |
5628 | ||
5629 | fi | |
5630 | fi | |
5631 | LIPO=$ac_cv_prog_LIPO | |
5632 | if test -n "$LIPO"; then | |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5634 | $as_echo "$LIPO" >&6; } | |
5635 | else | |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5637 | $as_echo "no" >&6; } | |
5638 | fi | |
5639 | ||
5640 | ||
5641 | fi | |
5642 | if test -z "$ac_cv_prog_LIPO"; then | |
5643 | ac_ct_LIPO=$LIPO | |
5644 | # Extract the first word of "lipo", so it can be a program name with args. | |
5645 | set dummy lipo; ac_word=$2 | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5647 | $as_echo_n "checking for $ac_word... " >&6; } | |
5648 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5649 | $as_echo_n "(cached) " >&6 | |
5650 | else | |
5651 | if test -n "$ac_ct_LIPO"; then | |
5652 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5653 | else | |
5654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5655 | for as_dir in $PATH | |
5656 | do | |
5657 | IFS=$as_save_IFS | |
5658 | test -z "$as_dir" && as_dir=. | |
5659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5661 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5663 | break 2 | |
5664 | fi | |
5665 | done | |
5666 | done | |
5667 | IFS=$as_save_IFS | |
5668 | ||
5669 | fi | |
5670 | fi | |
5671 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5672 | if test -n "$ac_ct_LIPO"; then | |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5674 | $as_echo "$ac_ct_LIPO" >&6; } | |
5675 | else | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5677 | $as_echo "no" >&6; } | |
5678 | fi | |
5679 | ||
5680 | if test "x$ac_ct_LIPO" = x; then | |
5681 | LIPO=":" | |
5682 | else | |
5683 | case $cross_compiling:$ac_tool_warned in | |
5684 | yes:) | |
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5687 | ac_tool_warned=yes ;; | |
5688 | esac | |
5689 | LIPO=$ac_ct_LIPO | |
5690 | fi | |
5691 | else | |
5692 | LIPO="$ac_cv_prog_LIPO" | |
5693 | fi | |
5694 | ||
5695 | if test -n "$ac_tool_prefix"; then | |
5696 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5697 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5699 | $as_echo_n "checking for $ac_word... " >&6; } | |
5700 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5701 | $as_echo_n "(cached) " >&6 | |
5702 | else | |
5703 | if test -n "$OTOOL"; then | |
5704 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5705 | else | |
5706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5707 | for as_dir in $PATH | |
5708 | do | |
5709 | IFS=$as_save_IFS | |
5710 | test -z "$as_dir" && as_dir=. | |
5711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5713 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5715 | break 2 | |
5716 | fi | |
5717 | done | |
5718 | done | |
5719 | IFS=$as_save_IFS | |
5720 | ||
5721 | fi | |
5722 | fi | |
5723 | OTOOL=$ac_cv_prog_OTOOL | |
5724 | if test -n "$OTOOL"; then | |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5726 | $as_echo "$OTOOL" >&6; } | |
5727 | else | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5729 | $as_echo "no" >&6; } | |
5730 | fi | |
5731 | ||
5732 | ||
5733 | fi | |
5734 | if test -z "$ac_cv_prog_OTOOL"; then | |
5735 | ac_ct_OTOOL=$OTOOL | |
5736 | # Extract the first word of "otool", so it can be a program name with args. | |
5737 | set dummy otool; ac_word=$2 | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5739 | $as_echo_n "checking for $ac_word... " >&6; } | |
5740 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5741 | $as_echo_n "(cached) " >&6 | |
5742 | else | |
5743 | if test -n "$ac_ct_OTOOL"; then | |
5744 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5745 | else | |
5746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5747 | for as_dir in $PATH | |
5748 | do | |
5749 | IFS=$as_save_IFS | |
5750 | test -z "$as_dir" && as_dir=. | |
5751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5753 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5755 | break 2 | |
5756 | fi | |
5757 | done | |
5758 | done | |
5759 | IFS=$as_save_IFS | |
5760 | ||
5761 | fi | |
5762 | fi | |
5763 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5764 | if test -n "$ac_ct_OTOOL"; then | |
5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5766 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5767 | else | |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5769 | $as_echo "no" >&6; } | |
5770 | fi | |
5771 | ||
5772 | if test "x$ac_ct_OTOOL" = x; then | |
5773 | OTOOL=":" | |
5774 | else | |
5775 | case $cross_compiling:$ac_tool_warned in | |
5776 | yes:) | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5778 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5779 | ac_tool_warned=yes ;; | |
5780 | esac | |
5781 | OTOOL=$ac_ct_OTOOL | |
5782 | fi | |
5783 | else | |
5784 | OTOOL="$ac_cv_prog_OTOOL" | |
5785 | fi | |
5786 | ||
5787 | if test -n "$ac_tool_prefix"; then | |
5788 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5789 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5791 | $as_echo_n "checking for $ac_word... " >&6; } | |
5792 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5793 | $as_echo_n "(cached) " >&6 | |
5794 | else | |
5795 | if test -n "$OTOOL64"; then | |
5796 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5797 | else | |
5798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5799 | for as_dir in $PATH | |
5800 | do | |
5801 | IFS=$as_save_IFS | |
5802 | test -z "$as_dir" && as_dir=. | |
5803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5805 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5807 | break 2 | |
5808 | fi | |
5809 | done | |
5810 | done | |
5811 | IFS=$as_save_IFS | |
5812 | ||
5813 | fi | |
5814 | fi | |
5815 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5816 | if test -n "$OTOOL64"; then | |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5818 | $as_echo "$OTOOL64" >&6; } | |
5819 | else | |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5821 | $as_echo "no" >&6; } | |
5822 | fi | |
5823 | ||
5824 | ||
5825 | fi | |
5826 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5827 | ac_ct_OTOOL64=$OTOOL64 | |
5828 | # Extract the first word of "otool64", so it can be a program name with args. | |
5829 | set dummy otool64; ac_word=$2 | |
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5831 | $as_echo_n "checking for $ac_word... " >&6; } | |
5832 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5833 | $as_echo_n "(cached) " >&6 | |
5834 | else | |
5835 | if test -n "$ac_ct_OTOOL64"; then | |
5836 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5837 | else | |
5838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5839 | for as_dir in $PATH | |
5840 | do | |
5841 | IFS=$as_save_IFS | |
5842 | test -z "$as_dir" && as_dir=. | |
5843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5845 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5847 | break 2 | |
5848 | fi | |
5849 | done | |
5850 | done | |
5851 | IFS=$as_save_IFS | |
5852 | ||
5853 | fi | |
5854 | fi | |
5855 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5856 | if test -n "$ac_ct_OTOOL64"; then | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5858 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5859 | else | |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5861 | $as_echo "no" >&6; } | |
5862 | fi | |
5863 | ||
5864 | if test "x$ac_ct_OTOOL64" = x; then | |
5865 | OTOOL64=":" | |
5866 | else | |
5867 | case $cross_compiling:$ac_tool_warned in | |
5868 | yes:) | |
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5871 | ac_tool_warned=yes ;; | |
5872 | esac | |
5873 | OTOOL64=$ac_ct_OTOOL64 | |
5874 | fi | |
5875 | else | |
5876 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5877 | fi | |
5878 | ||
5879 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5906 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5907 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5908 | $as_echo_n "(cached) " >&6 | |
5909 | else | |
5910 | lt_cv_apple_cc_single_mod=no | |
5911 | if test -z "${LT_MULTI_MODULE}"; then | |
5912 | # By default we will add the -single_module flag. You can override | |
5913 | # by either setting the environment variable LT_MULTI_MODULE | |
5914 | # non-empty at configure time, or by adding -multi_module to the | |
5915 | # link flags. | |
5916 | rm -rf libconftest.dylib* | |
5917 | echo "int foo(void){return 1;}" > conftest.c | |
5918 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5919 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5920 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5921 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5922 | _lt_result=$? | |
5923 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5924 | lt_cv_apple_cc_single_mod=yes | |
5925 | else | |
5926 | cat conftest.err >&5 | |
5927 | fi | |
5928 | rm -rf libconftest.dylib* | |
5929 | rm -f conftest.* | |
5930 | fi | |
5931 | fi | |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5933 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5935 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5936 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5937 | $as_echo_n "(cached) " >&6 | |
5938 | else | |
5939 | lt_cv_ld_exported_symbols_list=no | |
5940 | save_LDFLAGS=$LDFLAGS | |
5941 | echo "_main" > conftest.sym | |
5942 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5944 | /* end confdefs.h. */ | |
5945 | ||
5946 | int | |
5947 | main () | |
5948 | { | |
5949 | ||
5950 | ; | |
5951 | return 0; | |
5952 | } | |
5953 | _ACEOF | |
5954 | if ac_fn_c_try_link "$LINENO"; then : | |
5955 | lt_cv_ld_exported_symbols_list=yes | |
5956 | else | |
5957 | lt_cv_ld_exported_symbols_list=no | |
5958 | fi | |
5959 | rm -f core conftest.err conftest.$ac_objext \ | |
5960 | conftest$ac_exeext conftest.$ac_ext | |
5961 | LDFLAGS="$save_LDFLAGS" | |
5962 | ||
5963 | fi | |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5965 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5966 | case $host_os in | |
5967 | rhapsody* | darwin1.[012]) | |
5968 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5969 | darwin1.*) | |
5970 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5971 | darwin*) # darwin 5.x on | |
5972 | # if running on 10.5 or later, the deployment target defaults | |
5973 | # to the OS version, if on x86, and 10.4, the deployment | |
5974 | # target defaults to 10.4. Don't you love it? | |
5975 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5976 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5977 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5978 | 10.[012]*) | |
5979 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5980 | 10.*) | |
5981 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5982 | esac | |
5983 | ;; | |
5984 | esac | |
5985 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5986 | _lt_dar_single_mod='$single_module' | |
5987 | fi | |
5988 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
5989 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
5990 | else | |
5991 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5992 | fi | |
5993 | if test "$DSYMUTIL" != ":"; then | |
5994 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
5995 | else | |
5996 | _lt_dsymutil= | |
5997 | fi | |
5998 | ;; | |
5999 | esac | |
6000 | ||
6001 | ac_ext=c | |
6002 | ac_cpp='$CPP $CPPFLAGS' | |
6003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6007 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6008 | # On Suns, sometimes $CPP names a directory. | |
6009 | if test -n "$CPP" && test -d "$CPP"; then | |
6010 | CPP= | |
6011 | fi | |
6012 | if test -z "$CPP"; then | |
6013 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6014 | $as_echo_n "(cached) " >&6 | |
6015 | else | |
6016 | # Double quotes because CPP needs to be expanded | |
6017 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6018 | do | |
6019 | ac_preproc_ok=false | |
6020 | for ac_c_preproc_warn_flag in '' yes | |
6021 | do | |
6022 | # Use a header file that comes with gcc, so configuring glibc | |
6023 | # with a fresh cross-compiler works. | |
6024 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6025 | # <limits.h> exists even on freestanding compilers. | |
6026 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6027 | # not just through cpp. "Syntax error" is here to catch this case. | |
6028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6029 | /* end confdefs.h. */ | |
6030 | #ifdef __STDC__ | |
6031 | # include <limits.h> | |
6032 | #else | |
6033 | # include <assert.h> | |
6034 | #endif | |
6035 | Syntax error | |
6036 | _ACEOF | |
6037 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6038 | ||
6039 | else | |
6040 | # Broken: fails on valid input. | |
6041 | continue | |
6042 | fi | |
6043 | rm -f conftest.err conftest.$ac_ext | |
6044 | ||
6045 | # OK, works on sane cases. Now check whether nonexistent headers | |
6046 | # can be detected and how. | |
6047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6048 | /* end confdefs.h. */ | |
6049 | #include <ac_nonexistent.h> | |
6050 | _ACEOF | |
6051 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6052 | # Broken: success on invalid input. | |
6053 | continue | |
6054 | else | |
6055 | # Passes both tests. | |
6056 | ac_preproc_ok=: | |
6057 | break | |
6058 | fi | |
6059 | rm -f conftest.err conftest.$ac_ext | |
6060 | ||
6061 | done | |
6062 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6063 | rm -f conftest.err conftest.$ac_ext | |
6064 | if $ac_preproc_ok; then : | |
6065 | break | |
6066 | fi | |
6067 | ||
6068 | done | |
6069 | ac_cv_prog_CPP=$CPP | |
6070 | ||
6071 | fi | |
6072 | CPP=$ac_cv_prog_CPP | |
6073 | else | |
6074 | ac_cv_prog_CPP=$CPP | |
6075 | fi | |
6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6077 | $as_echo "$CPP" >&6; } | |
6078 | ac_preproc_ok=false | |
6079 | for ac_c_preproc_warn_flag in '' yes | |
6080 | do | |
6081 | # Use a header file that comes with gcc, so configuring glibc | |
6082 | # with a fresh cross-compiler works. | |
6083 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6084 | # <limits.h> exists even on freestanding compilers. | |
6085 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6086 | # not just through cpp. "Syntax error" is here to catch this case. | |
6087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6088 | /* end confdefs.h. */ | |
6089 | #ifdef __STDC__ | |
6090 | # include <limits.h> | |
6091 | #else | |
6092 | # include <assert.h> | |
6093 | #endif | |
6094 | Syntax error | |
6095 | _ACEOF | |
6096 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6097 | ||
6098 | else | |
6099 | # Broken: fails on valid input. | |
6100 | continue | |
6101 | fi | |
6102 | rm -f conftest.err conftest.$ac_ext | |
6103 | ||
6104 | # OK, works on sane cases. Now check whether nonexistent headers | |
6105 | # can be detected and how. | |
6106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6107 | /* end confdefs.h. */ | |
6108 | #include <ac_nonexistent.h> | |
6109 | _ACEOF | |
6110 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6111 | # Broken: success on invalid input. | |
6112 | continue | |
6113 | else | |
6114 | # Passes both tests. | |
6115 | ac_preproc_ok=: | |
6116 | break | |
6117 | fi | |
6118 | rm -f conftest.err conftest.$ac_ext | |
6119 | ||
6120 | done | |
6121 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6122 | rm -f conftest.err conftest.$ac_ext | |
6123 | if $ac_preproc_ok; then : | |
6124 | ||
6125 | else | |
6126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6127 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6128 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6129 | See \`config.log' for more details." "$LINENO" 5; } | |
6130 | fi | |
6131 | ||
6132 | ac_ext=c | |
6133 | ac_cpp='$CPP $CPPFLAGS' | |
6134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6137 | ||
6138 | ||
6139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6140 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6141 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6142 | $as_echo_n "(cached) " >&6 | |
6143 | else | |
6144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6145 | /* end confdefs.h. */ | |
6146 | #include <stdlib.h> | |
6147 | #include <stdarg.h> | |
6148 | #include <string.h> | |
6149 | #include <float.h> | |
6150 | ||
6151 | int | |
6152 | main () | |
6153 | { | |
6154 | ||
6155 | ; | |
6156 | return 0; | |
6157 | } | |
6158 | _ACEOF | |
6159 | if ac_fn_c_try_compile "$LINENO"; then : | |
6160 | ac_cv_header_stdc=yes | |
6161 | else | |
6162 | ac_cv_header_stdc=no | |
6163 | fi | |
6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6165 | ||
6166 | if test $ac_cv_header_stdc = yes; then | |
6167 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6169 | /* end confdefs.h. */ | |
6170 | #include <string.h> | |
6171 | ||
6172 | _ACEOF | |
6173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6174 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6175 | ||
6176 | else | |
6177 | ac_cv_header_stdc=no | |
6178 | fi | |
6179 | rm -f conftest* | |
6180 | ||
6181 | fi | |
6182 | ||
6183 | if test $ac_cv_header_stdc = yes; then | |
6184 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6186 | /* end confdefs.h. */ | |
6187 | #include <stdlib.h> | |
6188 | ||
6189 | _ACEOF | |
6190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6191 | $EGREP "free" >/dev/null 2>&1; then : | |
6192 | ||
6193 | else | |
6194 | ac_cv_header_stdc=no | |
6195 | fi | |
6196 | rm -f conftest* | |
6197 | ||
6198 | fi | |
6199 | ||
6200 | if test $ac_cv_header_stdc = yes; then | |
6201 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6202 | if test "$cross_compiling" = yes; then : | |
6203 | : | |
6204 | else | |
6205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6206 | /* end confdefs.h. */ | |
6207 | #include <ctype.h> | |
6208 | #include <stdlib.h> | |
6209 | #if ((' ' & 0x0FF) == 0x020) | |
6210 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6211 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6212 | #else | |
6213 | # define ISLOWER(c) \ | |
6214 | (('a' <= (c) && (c) <= 'i') \ | |
6215 | || ('j' <= (c) && (c) <= 'r') \ | |
6216 | || ('s' <= (c) && (c) <= 'z')) | |
6217 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6218 | #endif | |
6219 | ||
6220 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6221 | int | |
6222 | main () | |
6223 | { | |
6224 | int i; | |
6225 | for (i = 0; i < 256; i++) | |
6226 | if (XOR (islower (i), ISLOWER (i)) | |
6227 | || toupper (i) != TOUPPER (i)) | |
6228 | return 2; | |
6229 | return 0; | |
6230 | } | |
6231 | _ACEOF | |
6232 | if ac_fn_c_try_run "$LINENO"; then : | |
6233 | ||
6234 | else | |
6235 | ac_cv_header_stdc=no | |
6236 | fi | |
6237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6238 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6239 | fi | |
6240 | ||
6241 | fi | |
6242 | fi | |
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6244 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6245 | if test $ac_cv_header_stdc = yes; then | |
6246 | ||
6247 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6248 | ||
6249 | fi | |
6250 | ||
6251 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6252 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6253 | inttypes.h stdint.h unistd.h | |
6254 | do : | |
6255 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6256 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6257 | " | |
6258 | eval as_val=\$$as_ac_Header | |
6259 | if test "x$as_val" = x""yes; then : | |
6260 | cat >>confdefs.h <<_ACEOF | |
6261 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6262 | _ACEOF | |
6263 | ||
6264 | fi | |
6265 | ||
6266 | done | |
6267 | ||
6268 | ||
6269 | for ac_header in dlfcn.h | |
6270 | do : | |
6271 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6272 | " | |
6273 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6274 | cat >>confdefs.h <<_ACEOF | |
6275 | #define HAVE_DLFCN_H 1 | |
6276 | _ACEOF | |
6277 | ||
6278 | fi | |
6279 | ||
6280 | done | |
6281 | ||
6282 | ||
6283 | ||
6284 | # Set options | |
549f29b5 DWT |
6285 | # Check whether --enable-static was given. |
6286 | if test "${enable_static+set}" = set; then : | |
6287 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6288 | case $enableval in |
549f29b5 DWT |
6289 | yes) enable_static=yes ;; |
6290 | no) enable_static=no ;; | |
9c60689e | 6291 | *) |
549f29b5 | 6292 | enable_static=no |
9c60689e DWT |
6293 | # Look at the argument we got. We use all the common list separators. |
6294 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6295 | for pkg in $enableval; do | |
6296 | IFS="$lt_save_ifs" | |
6297 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6298 | enable_static=yes |
9c60689e DWT |
6299 | fi |
6300 | done | |
6301 | IFS="$lt_save_ifs" | |
6302 | ;; | |
6303 | esac | |
6304 | else | |
549f29b5 | 6305 | enable_static=no |
9c60689e DWT |
6306 | fi |
6307 | ||
6308 | ||
6309 | ||
6310 | ||
6311 | ||
6312 | ||
6313 | ||
6314 | ||
6315 | ||
549f29b5 DWT |
6316 | |
6317 | enable_dlopen=no | |
6318 | ||
6319 | ||
6320 | enable_win32_dll=no | |
6321 | ||
6322 | ||
6323 | # Check whether --enable-shared was given. | |
6324 | if test "${enable_shared+set}" = set; then : | |
6325 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6326 | case $enableval in |
549f29b5 DWT |
6327 | yes) enable_shared=yes ;; |
6328 | no) enable_shared=no ;; | |
9c60689e | 6329 | *) |
549f29b5 | 6330 | enable_shared=no |
9c60689e DWT |
6331 | # Look at the argument we got. We use all the common list separators. |
6332 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6333 | for pkg in $enableval; do | |
6334 | IFS="$lt_save_ifs" | |
6335 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6336 | enable_shared=yes |
9c60689e DWT |
6337 | fi |
6338 | done | |
6339 | IFS="$lt_save_ifs" | |
6340 | ;; | |
6341 | esac | |
6342 | else | |
549f29b5 | 6343 | enable_shared=yes |
9c60689e DWT |
6344 | fi |
6345 | ||
6346 | ||
6347 | ||
6348 | ||
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
549f29b5 | 6355 | |
9c60689e DWT |
6356 | # Check whether --with-pic was given. |
6357 | if test "${with_pic+set}" = set; then : | |
6358 | withval=$with_pic; pic_mode="$withval" | |
6359 | else | |
6360 | pic_mode=default | |
6361 | fi | |
6362 | ||
6363 | ||
6364 | test -z "$pic_mode" && pic_mode=default | |
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | # Check whether --enable-fast-install was given. | |
6373 | if test "${enable_fast_install+set}" = set; then : | |
6374 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6375 | case $enableval in | |
6376 | yes) enable_fast_install=yes ;; | |
6377 | no) enable_fast_install=no ;; | |
6378 | *) | |
6379 | enable_fast_install=no | |
6380 | # Look at the argument we got. We use all the common list separators. | |
6381 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6382 | for pkg in $enableval; do | |
6383 | IFS="$lt_save_ifs" | |
6384 | if test "X$pkg" = "X$p"; then | |
6385 | enable_fast_install=yes | |
6386 | fi | |
6387 | done | |
6388 | IFS="$lt_save_ifs" | |
6389 | ;; | |
6390 | esac | |
6391 | else | |
6392 | enable_fast_install=yes | |
6393 | fi | |
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | # This can be used to rebuild libtool when needed | |
6406 | LIBTOOL_DEPS="$ltmain" | |
6407 | ||
6408 | # Always use our own libtool. | |
6409 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | test -z "$LN_S" && LN_S="ln -s" | |
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | if test -n "${ZSH_VERSION+set}" ; then | |
6451 | setopt NO_GLOB_SUBST | |
6452 | fi | |
6453 | ||
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6455 | $as_echo_n "checking for objdir... " >&6; } | |
6456 | if test "${lt_cv_objdir+set}" = set; then : | |
6457 | $as_echo_n "(cached) " >&6 | |
6458 | else | |
6459 | rm -f .libs 2>/dev/null | |
6460 | mkdir .libs 2>/dev/null | |
6461 | if test -d .libs; then | |
6462 | lt_cv_objdir=.libs | |
6463 | else | |
6464 | # MS-DOS does not allow filenames that begin with a dot. | |
6465 | lt_cv_objdir=_libs | |
6466 | fi | |
6467 | rmdir .libs 2>/dev/null | |
6468 | fi | |
6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6470 | $as_echo "$lt_cv_objdir" >&6; } | |
6471 | objdir=$lt_cv_objdir | |
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | cat >>confdefs.h <<_ACEOF | |
6478 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6479 | _ACEOF | |
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | case $host_os in | |
6498 | aix3*) | |
6499 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6500 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6501 | # vanish in a puff of smoke. | |
6502 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6503 | COLLECT_NAMES= | |
6504 | export COLLECT_NAMES | |
6505 | fi | |
6506 | ;; | |
6507 | esac | |
6508 | ||
6509 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6510 | # metacharacters that are still active within double-quoted strings. | |
6511 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6512 | ||
6513 | # Same as above, but do not quote variable references. | |
6514 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6515 | ||
6516 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6517 | # double_quote_subst'ed string. | |
6518 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6519 | ||
6520 | # Sed substitution to delay expansion of an escaped single quote. | |
6521 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6522 | ||
6523 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6524 | no_glob_subst='s/\*/\\\*/g' | |
6525 | ||
6526 | # Global variables: | |
6527 | ofile=libtool | |
6528 | can_build_shared=yes | |
6529 | ||
6530 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6531 | # which needs '.lib'). | |
6532 | libext=a | |
6533 | ||
6534 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6535 | ||
6536 | old_CC="$CC" | |
6537 | old_CFLAGS="$CFLAGS" | |
6538 | ||
6539 | # Set sane defaults for various variables | |
6540 | test -z "$CC" && CC=cc | |
6541 | test -z "$LTCC" && LTCC=$CC | |
6542 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6543 | test -z "$LD" && LD=ld | |
6544 | test -z "$ac_objext" && ac_objext=o | |
6545 | ||
6546 | for cc_temp in $compiler""; do | |
6547 | case $cc_temp in | |
6548 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6549 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6550 | \-*) ;; | |
6551 | *) break;; | |
6552 | esac | |
6553 | done | |
6554 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6555 | ||
6556 | ||
6557 | # Only perform the check for file, if the check method requires it | |
6558 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6559 | case $deplibs_check_method in | |
6560 | file_magic*) | |
6561 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6563 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6564 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6565 | $as_echo_n "(cached) " >&6 | |
6566 | else | |
6567 | case $MAGIC_CMD in | |
6568 | [\\/*] | ?:[\\/]*) | |
6569 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6570 | ;; | |
6571 | *) | |
6572 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6573 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6574 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6575 | for ac_dir in $ac_dummy; do | |
6576 | IFS="$lt_save_ifs" | |
6577 | test -z "$ac_dir" && ac_dir=. | |
6578 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6579 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6580 | if test -n "$file_magic_test_file"; then | |
6581 | case $deplibs_check_method in | |
6582 | "file_magic "*) | |
6583 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6584 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6585 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6586 | $EGREP "$file_magic_regex" > /dev/null; then | |
6587 | : | |
6588 | else | |
6589 | cat <<_LT_EOF 1>&2 | |
6590 | ||
6591 | *** Warning: the command libtool uses to detect shared libraries, | |
6592 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6593 | *** The result is that libtool may fail to recognize shared libraries | |
6594 | *** as such. This will affect the creation of libtool libraries that | |
6595 | *** depend on shared libraries, but programs linked with such libtool | |
6596 | *** libraries will work regardless of this problem. Nevertheless, you | |
6597 | *** may want to report the problem to your system manager and/or to | |
6598 | *** bug-libtool@gnu.org | |
6599 | ||
6600 | _LT_EOF | |
6601 | fi ;; | |
6602 | esac | |
6603 | fi | |
6604 | break | |
6605 | fi | |
6606 | done | |
6607 | IFS="$lt_save_ifs" | |
6608 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6609 | ;; | |
6610 | esac | |
6611 | fi | |
6612 | ||
6613 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6614 | if test -n "$MAGIC_CMD"; then | |
6615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6616 | $as_echo "$MAGIC_CMD" >&6; } | |
6617 | else | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6619 | $as_echo "no" >&6; } | |
6620 | fi | |
6621 | ||
6622 | ||
6623 | ||
6624 | ||
6625 | ||
6626 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6627 | if test -n "$ac_tool_prefix"; then | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6629 | $as_echo_n "checking for file... " >&6; } | |
6630 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6631 | $as_echo_n "(cached) " >&6 | |
6632 | else | |
6633 | case $MAGIC_CMD in | |
6634 | [\\/*] | ?:[\\/]*) | |
6635 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6636 | ;; | |
6637 | *) | |
6638 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6640 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6641 | for ac_dir in $ac_dummy; do | |
6642 | IFS="$lt_save_ifs" | |
6643 | test -z "$ac_dir" && ac_dir=. | |
6644 | if test -f $ac_dir/file; then | |
6645 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6646 | if test -n "$file_magic_test_file"; then | |
6647 | case $deplibs_check_method in | |
6648 | "file_magic "*) | |
6649 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6650 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6651 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6652 | $EGREP "$file_magic_regex" > /dev/null; then | |
6653 | : | |
6654 | else | |
6655 | cat <<_LT_EOF 1>&2 | |
6656 | ||
6657 | *** Warning: the command libtool uses to detect shared libraries, | |
6658 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6659 | *** The result is that libtool may fail to recognize shared libraries | |
6660 | *** as such. This will affect the creation of libtool libraries that | |
6661 | *** depend on shared libraries, but programs linked with such libtool | |
6662 | *** libraries will work regardless of this problem. Nevertheless, you | |
6663 | *** may want to report the problem to your system manager and/or to | |
6664 | *** bug-libtool@gnu.org | |
6665 | ||
6666 | _LT_EOF | |
6667 | fi ;; | |
6668 | esac | |
6669 | fi | |
6670 | break | |
6671 | fi | |
6672 | done | |
6673 | IFS="$lt_save_ifs" | |
6674 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6675 | ;; | |
6676 | esac | |
6677 | fi | |
6678 | ||
6679 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6680 | if test -n "$MAGIC_CMD"; then | |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6682 | $as_echo "$MAGIC_CMD" >&6; } | |
6683 | else | |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6685 | $as_echo "no" >&6; } | |
6686 | fi | |
6687 | ||
6688 | ||
6689 | else | |
6690 | MAGIC_CMD=: | |
6691 | fi | |
6692 | fi | |
6693 | ||
6694 | fi | |
6695 | ;; | |
6696 | esac | |
6697 | ||
6698 | # Use C for the default configuration in the libtool script | |
6699 | ||
6700 | lt_save_CC="$CC" | |
6701 | ac_ext=c | |
6702 | ac_cpp='$CPP $CPPFLAGS' | |
6703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6706 | ||
6707 | ||
6708 | # Source file extension for C test sources. | |
6709 | ac_ext=c | |
6710 | ||
6711 | # Object file extension for compiled C test sources. | |
6712 | objext=o | |
6713 | objext=$objext | |
6714 | ||
6715 | # Code to be used in simple compile tests | |
6716 | lt_simple_compile_test_code="int some_variable = 0;" | |
6717 | ||
6718 | # Code to be used in simple link tests | |
6719 | lt_simple_link_test_code='int main(){return(0);}' | |
6720 | ||
6721 | ||
6722 | ||
6723 | ||
6724 | ||
6725 | ||
6726 | ||
6727 | # If no C compiler was specified, use CC. | |
6728 | LTCC=${LTCC-"$CC"} | |
6729 | ||
6730 | # If no C compiler flags were specified, use CFLAGS. | |
6731 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6732 | ||
6733 | # Allow CC to be a program name with arguments. | |
6734 | compiler=$CC | |
6735 | ||
6736 | # Save the default compiler, since it gets overwritten when the other | |
6737 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6738 | compiler_DEFAULT=$CC | |
6739 | ||
6740 | # save warnings/boilerplate of simple test code | |
6741 | ac_outfile=conftest.$ac_objext | |
6742 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6743 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6744 | _lt_compiler_boilerplate=`cat conftest.err` | |
6745 | $RM conftest* | |
6746 | ||
6747 | ac_outfile=conftest.$ac_objext | |
6748 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6749 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6750 | _lt_linker_boilerplate=`cat conftest.err` | |
6751 | $RM -r conftest* | |
6752 | ||
6753 | ||
6754 | if test -n "$compiler"; then | |
6755 | ||
6756 | lt_prog_compiler_no_builtin_flag= | |
6757 | ||
6758 | if test "$GCC" = yes; then | |
6759 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6760 | ||
6761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6762 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6763 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6764 | $as_echo_n "(cached) " >&6 | |
6765 | else | |
6766 | lt_cv_prog_compiler_rtti_exceptions=no | |
6767 | ac_outfile=conftest.$ac_objext | |
6768 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6769 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6770 | # Insert the option either (1) after the last *FLAGS variable, or | |
6771 | # (2) before a word containing "conftest.", or (3) at the end. | |
6772 | # Note that $ac_compile itself does not contain backslashes and begins | |
6773 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6774 | # The option is referenced via a variable to avoid confusing sed. | |
6775 | lt_compile=`echo "$ac_compile" | $SED \ | |
6776 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6777 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6778 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 6779 | (eval echo "\"\$as_me:6779: $lt_compile\"" >&5) |
9c60689e DWT |
6780 | (eval "$lt_compile" 2>conftest.err) |
6781 | ac_status=$? | |
6782 | cat conftest.err >&5 | |
e9c9a47c | 6783 | echo "$as_me:6783: \$? = $ac_status" >&5 |
9c60689e DWT |
6784 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6785 | # The compiler can only warn and ignore the option if not recognized | |
6786 | # So say no if there are warnings other than the usual output. | |
6787 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6788 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6789 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6790 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6791 | fi | |
6792 | fi | |
6793 | $RM conftest* | |
6794 | ||
6795 | fi | |
6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6797 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6798 | ||
6799 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6800 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6801 | else | |
6802 | : | |
6803 | fi | |
6804 | ||
6805 | fi | |
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | lt_prog_compiler_wl= | |
6813 | lt_prog_compiler_pic= | |
6814 | lt_prog_compiler_static= | |
6815 | ||
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6817 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6818 | ||
6819 | if test "$GCC" = yes; then | |
6820 | lt_prog_compiler_wl='-Wl,' | |
6821 | lt_prog_compiler_static='-static' | |
6822 | ||
6823 | case $host_os in | |
6824 | aix*) | |
6825 | # All AIX code is PIC. | |
6826 | if test "$host_cpu" = ia64; then | |
6827 | # AIX 5 now supports IA64 processor | |
6828 | lt_prog_compiler_static='-Bstatic' | |
6829 | fi | |
6830 | ;; | |
6831 | ||
6832 | amigaos*) | |
6833 | case $host_cpu in | |
6834 | powerpc) | |
6835 | # see comment about AmigaOS4 .so support | |
6836 | lt_prog_compiler_pic='-fPIC' | |
6837 | ;; | |
6838 | m68k) | |
6839 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6840 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6841 | # like `-m68040'. | |
6842 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6843 | ;; | |
6844 | esac | |
6845 | ;; | |
6846 | ||
6847 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6848 | # PIC is the default for these OSes. | |
6849 | ;; | |
6850 | ||
6851 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6852 | # This hack is so that the source file can tell whether it is being | |
6853 | # built for inclusion in a dll (and should export symbols for example). | |
6854 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6855 | # (--disable-auto-import) libraries | |
6856 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6857 | ;; | |
6858 | ||
6859 | darwin* | rhapsody*) | |
6860 | # PIC is the default on this platform | |
6861 | # Common symbols not allowed in MH_DYLIB files | |
6862 | lt_prog_compiler_pic='-fno-common' | |
6863 | ;; | |
6864 | ||
6865 | hpux*) | |
6866 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6867 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6868 | # sets the default TLS model and affects inlining. | |
6869 | case $host_cpu in | |
6870 | hppa*64*) | |
6871 | # +Z the default | |
6872 | ;; | |
6873 | *) | |
6874 | lt_prog_compiler_pic='-fPIC' | |
6875 | ;; | |
6876 | esac | |
6877 | ;; | |
6878 | ||
6879 | interix[3-9]*) | |
6880 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6881 | # Instead, we relocate shared libraries at runtime. | |
6882 | ;; | |
6883 | ||
6884 | msdosdjgpp*) | |
6885 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6886 | # on systems that don't support them. | |
6887 | lt_prog_compiler_can_build_shared=no | |
6888 | enable_shared=no | |
6889 | ;; | |
6890 | ||
6891 | *nto* | *qnx*) | |
6892 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6893 | # it will coredump. | |
6894 | lt_prog_compiler_pic='-fPIC -shared' | |
6895 | ;; | |
6896 | ||
6897 | sysv4*MP*) | |
6898 | if test -d /usr/nec; then | |
6899 | lt_prog_compiler_pic=-Kconform_pic | |
6900 | fi | |
6901 | ;; | |
6902 | ||
6903 | *) | |
6904 | lt_prog_compiler_pic='-fPIC' | |
6905 | ;; | |
6906 | esac | |
6907 | else | |
6908 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6909 | case $host_os in | |
6910 | aix*) | |
6911 | lt_prog_compiler_wl='-Wl,' | |
6912 | if test "$host_cpu" = ia64; then | |
6913 | # AIX 5 now supports IA64 processor | |
6914 | lt_prog_compiler_static='-Bstatic' | |
6915 | else | |
6916 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6917 | fi | |
6918 | ;; | |
6919 | ||
6920 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6921 | # This hack is so that the source file can tell whether it is being | |
6922 | # built for inclusion in a dll (and should export symbols for example). | |
6923 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6924 | ;; | |
6925 | ||
6926 | hpux9* | hpux10* | hpux11*) | |
6927 | lt_prog_compiler_wl='-Wl,' | |
6928 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6929 | # not for PA HP-UX. | |
6930 | case $host_cpu in | |
6931 | hppa*64*|ia64*) | |
6932 | # +Z the default | |
6933 | ;; | |
6934 | *) | |
6935 | lt_prog_compiler_pic='+Z' | |
6936 | ;; | |
6937 | esac | |
6938 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6939 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6940 | ;; | |
6941 | ||
6942 | irix5* | irix6* | nonstopux*) | |
6943 | lt_prog_compiler_wl='-Wl,' | |
6944 | # PIC (with -KPIC) is the default. | |
6945 | lt_prog_compiler_static='-non_shared' | |
6946 | ;; | |
6947 | ||
6948 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6949 | case $cc_basename in | |
6950 | # old Intel for x86_64 which still supported -KPIC. | |
6951 | ecc*) | |
6952 | lt_prog_compiler_wl='-Wl,' | |
6953 | lt_prog_compiler_pic='-KPIC' | |
6954 | lt_prog_compiler_static='-static' | |
6955 | ;; | |
6956 | # icc used to be incompatible with GCC. | |
6957 | # ICC 10 doesn't accept -KPIC any more. | |
6958 | icc* | ifort*) | |
6959 | lt_prog_compiler_wl='-Wl,' | |
6960 | lt_prog_compiler_pic='-fPIC' | |
6961 | lt_prog_compiler_static='-static' | |
6962 | ;; | |
6963 | # Lahey Fortran 8.1. | |
6964 | lf95*) | |
6965 | lt_prog_compiler_wl='-Wl,' | |
6966 | lt_prog_compiler_pic='--shared' | |
6967 | lt_prog_compiler_static='--static' | |
6968 | ;; | |
6969 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6970 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6971 | # which looks to be a dead project) | |
6972 | lt_prog_compiler_wl='-Wl,' | |
6973 | lt_prog_compiler_pic='-fpic' | |
6974 | lt_prog_compiler_static='-Bstatic' | |
6975 | ;; | |
6976 | ccc*) | |
6977 | lt_prog_compiler_wl='-Wl,' | |
6978 | # All Alpha code is PIC. | |
6979 | lt_prog_compiler_static='-non_shared' | |
6980 | ;; | |
6981 | xl*) | |
6982 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6983 | lt_prog_compiler_wl='-Wl,' | |
6984 | lt_prog_compiler_pic='-qpic' | |
6985 | lt_prog_compiler_static='-qstaticlink' | |
6986 | ;; | |
6987 | *) | |
6988 | case `$CC -V 2>&1 | sed 5q` in | |
6989 | *Sun\ C*) | |
6990 | # Sun C 5.9 | |
6991 | lt_prog_compiler_pic='-KPIC' | |
6992 | lt_prog_compiler_static='-Bstatic' | |
6993 | lt_prog_compiler_wl='-Wl,' | |
6994 | ;; | |
6995 | *Sun\ F*) | |
6996 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
6997 | lt_prog_compiler_pic='-KPIC' | |
6998 | lt_prog_compiler_static='-Bstatic' | |
6999 | lt_prog_compiler_wl='' | |
7000 | ;; | |
7001 | esac | |
7002 | ;; | |
7003 | esac | |
7004 | ;; | |
7005 | ||
7006 | newsos6) | |
7007 | lt_prog_compiler_pic='-KPIC' | |
7008 | lt_prog_compiler_static='-Bstatic' | |
7009 | ;; | |
7010 | ||
7011 | *nto* | *qnx*) | |
7012 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7013 | # it will coredump. | |
7014 | lt_prog_compiler_pic='-fPIC -shared' | |
7015 | ;; | |
7016 | ||
7017 | osf3* | osf4* | osf5*) | |
7018 | lt_prog_compiler_wl='-Wl,' | |
7019 | # All OSF/1 code is PIC. | |
7020 | lt_prog_compiler_static='-non_shared' | |
7021 | ;; | |
7022 | ||
7023 | rdos*) | |
7024 | lt_prog_compiler_static='-non_shared' | |
7025 | ;; | |
7026 | ||
7027 | solaris*) | |
7028 | lt_prog_compiler_pic='-KPIC' | |
7029 | lt_prog_compiler_static='-Bstatic' | |
7030 | case $cc_basename in | |
7031 | f77* | f90* | f95*) | |
7032 | lt_prog_compiler_wl='-Qoption ld ';; | |
7033 | *) | |
7034 | lt_prog_compiler_wl='-Wl,';; | |
7035 | esac | |
7036 | ;; | |
7037 | ||
7038 | sunos4*) | |
7039 | lt_prog_compiler_wl='-Qoption ld ' | |
7040 | lt_prog_compiler_pic='-PIC' | |
7041 | lt_prog_compiler_static='-Bstatic' | |
7042 | ;; | |
7043 | ||
7044 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7045 | lt_prog_compiler_wl='-Wl,' | |
7046 | lt_prog_compiler_pic='-KPIC' | |
7047 | lt_prog_compiler_static='-Bstatic' | |
7048 | ;; | |
7049 | ||
7050 | sysv4*MP*) | |
7051 | if test -d /usr/nec ;then | |
7052 | lt_prog_compiler_pic='-Kconform_pic' | |
7053 | lt_prog_compiler_static='-Bstatic' | |
7054 | fi | |
7055 | ;; | |
7056 | ||
7057 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7058 | lt_prog_compiler_wl='-Wl,' | |
7059 | lt_prog_compiler_pic='-KPIC' | |
7060 | lt_prog_compiler_static='-Bstatic' | |
7061 | ;; | |
7062 | ||
7063 | unicos*) | |
7064 | lt_prog_compiler_wl='-Wl,' | |
7065 | lt_prog_compiler_can_build_shared=no | |
7066 | ;; | |
7067 | ||
7068 | uts4*) | |
7069 | lt_prog_compiler_pic='-pic' | |
7070 | lt_prog_compiler_static='-Bstatic' | |
7071 | ;; | |
7072 | ||
7073 | *) | |
7074 | lt_prog_compiler_can_build_shared=no | |
7075 | ;; | |
7076 | esac | |
7077 | fi | |
7078 | ||
7079 | case $host_os in | |
7080 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7081 | *djgpp*) | |
7082 | lt_prog_compiler_pic= | |
7083 | ;; | |
7084 | *) | |
7085 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7086 | ;; | |
7087 | esac | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7089 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7090 | ||
7091 | ||
7092 | ||
7093 | ||
7094 | ||
7095 | ||
7096 | # | |
7097 | # Check to make sure the PIC flag actually works. | |
7098 | # | |
7099 | if test -n "$lt_prog_compiler_pic"; then | |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7101 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7102 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7103 | $as_echo_n "(cached) " >&6 | |
7104 | else | |
7105 | lt_cv_prog_compiler_pic_works=no | |
7106 | ac_outfile=conftest.$ac_objext | |
7107 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7108 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7109 | # Insert the option either (1) after the last *FLAGS variable, or | |
7110 | # (2) before a word containing "conftest.", or (3) at the end. | |
7111 | # Note that $ac_compile itself does not contain backslashes and begins | |
7112 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7113 | # The option is referenced via a variable to avoid confusing sed. | |
7114 | lt_compile=`echo "$ac_compile" | $SED \ | |
7115 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7116 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7117 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 7118 | (eval echo "\"\$as_me:7118: $lt_compile\"" >&5) |
9c60689e DWT |
7119 | (eval "$lt_compile" 2>conftest.err) |
7120 | ac_status=$? | |
7121 | cat conftest.err >&5 | |
e9c9a47c | 7122 | echo "$as_me:7122: \$? = $ac_status" >&5 |
9c60689e DWT |
7123 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7124 | # The compiler can only warn and ignore the option if not recognized | |
7125 | # So say no if there are warnings other than the usual output. | |
7126 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7127 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7128 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7129 | lt_cv_prog_compiler_pic_works=yes | |
7130 | fi | |
7131 | fi | |
7132 | $RM conftest* | |
7133 | ||
7134 | fi | |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7136 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7137 | ||
7138 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7139 | case $lt_prog_compiler_pic in | |
7140 | "" | " "*) ;; | |
7141 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7142 | esac | |
7143 | else | |
7144 | lt_prog_compiler_pic= | |
7145 | lt_prog_compiler_can_build_shared=no | |
7146 | fi | |
7147 | ||
7148 | fi | |
7149 | ||
7150 | ||
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | # | |
7156 | # Check to make sure the static flag actually works. | |
7157 | # | |
7158 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7160 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7161 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7162 | $as_echo_n "(cached) " >&6 | |
7163 | else | |
7164 | lt_cv_prog_compiler_static_works=no | |
7165 | save_LDFLAGS="$LDFLAGS" | |
7166 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7167 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7168 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7169 | # The linker can only warn and ignore the option if not recognized | |
7170 | # So say no if there are warnings | |
7171 | if test -s conftest.err; then | |
7172 | # Append any errors to the config.log. | |
7173 | cat conftest.err 1>&5 | |
7174 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7175 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7176 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7177 | lt_cv_prog_compiler_static_works=yes | |
7178 | fi | |
7179 | else | |
7180 | lt_cv_prog_compiler_static_works=yes | |
7181 | fi | |
7182 | fi | |
7183 | $RM -r conftest* | |
7184 | LDFLAGS="$save_LDFLAGS" | |
7185 | ||
7186 | fi | |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7188 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7189 | ||
7190 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7191 | : | |
7192 | else | |
7193 | lt_prog_compiler_static= | |
7194 | fi | |
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7203 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7204 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7205 | $as_echo_n "(cached) " >&6 | |
7206 | else | |
7207 | lt_cv_prog_compiler_c_o=no | |
7208 | $RM -r conftest 2>/dev/null | |
7209 | mkdir conftest | |
7210 | cd conftest | |
7211 | mkdir out | |
7212 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7213 | ||
7214 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7215 | # Insert the option either (1) after the last *FLAGS variable, or | |
7216 | # (2) before a word containing "conftest.", or (3) at the end. | |
7217 | # Note that $ac_compile itself does not contain backslashes and begins | |
7218 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7219 | lt_compile=`echo "$ac_compile" | $SED \ | |
7220 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7221 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7222 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 7223 | (eval echo "\"\$as_me:7223: $lt_compile\"" >&5) |
9c60689e DWT |
7224 | (eval "$lt_compile" 2>out/conftest.err) |
7225 | ac_status=$? | |
7226 | cat out/conftest.err >&5 | |
e9c9a47c | 7227 | echo "$as_me:7227: \$? = $ac_status" >&5 |
9c60689e DWT |
7228 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7229 | then | |
7230 | # The compiler can only warn and ignore the option if not recognized | |
7231 | # So say no if there are warnings | |
7232 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7233 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7234 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7235 | lt_cv_prog_compiler_c_o=yes | |
7236 | fi | |
7237 | fi | |
7238 | chmod u+w . 2>&5 | |
7239 | $RM conftest* | |
7240 | # SGI C++ compiler will create directory out/ii_files/ for | |
7241 | # template instantiation | |
7242 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7243 | $RM out/* && rmdir out | |
7244 | cd .. | |
7245 | $RM -r conftest | |
7246 | $RM conftest* | |
7247 | ||
7248 | fi | |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7250 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7258 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7259 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7260 | $as_echo_n "(cached) " >&6 | |
7261 | else | |
7262 | lt_cv_prog_compiler_c_o=no | |
7263 | $RM -r conftest 2>/dev/null | |
7264 | mkdir conftest | |
7265 | cd conftest | |
7266 | mkdir out | |
7267 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7268 | ||
7269 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7270 | # Insert the option either (1) after the last *FLAGS variable, or | |
7271 | # (2) before a word containing "conftest.", or (3) at the end. | |
7272 | # Note that $ac_compile itself does not contain backslashes and begins | |
7273 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7274 | lt_compile=`echo "$ac_compile" | $SED \ | |
7275 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7276 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7277 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 7278 | (eval echo "\"\$as_me:7278: $lt_compile\"" >&5) |
9c60689e DWT |
7279 | (eval "$lt_compile" 2>out/conftest.err) |
7280 | ac_status=$? | |
7281 | cat out/conftest.err >&5 | |
e9c9a47c | 7282 | echo "$as_me:7282: \$? = $ac_status" >&5 |
9c60689e DWT |
7283 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7284 | then | |
7285 | # The compiler can only warn and ignore the option if not recognized | |
7286 | # So say no if there are warnings | |
7287 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7288 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7289 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7290 | lt_cv_prog_compiler_c_o=yes | |
7291 | fi | |
7292 | fi | |
7293 | chmod u+w . 2>&5 | |
7294 | $RM conftest* | |
7295 | # SGI C++ compiler will create directory out/ii_files/ for | |
7296 | # template instantiation | |
7297 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7298 | $RM out/* && rmdir out | |
7299 | cd .. | |
7300 | $RM -r conftest | |
7301 | $RM conftest* | |
7302 | ||
7303 | fi | |
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7305 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | hard_links="nottested" | |
7311 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7312 | # do not overwrite the value of need_locks provided by the user | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7314 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7315 | hard_links=yes | |
7316 | $RM conftest* | |
7317 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7318 | touch conftest.a | |
7319 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7320 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7322 | $as_echo "$hard_links" >&6; } | |
7323 | if test "$hard_links" = no; then | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7325 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7326 | need_locks=warn | |
7327 | fi | |
7328 | else | |
7329 | need_locks=no | |
7330 | fi | |
7331 | ||
7332 | ||
7333 | ||
7334 | ||
7335 | ||
7336 | ||
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7338 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7339 | ||
7340 | runpath_var= | |
7341 | allow_undefined_flag= | |
7342 | always_export_symbols=no | |
7343 | archive_cmds= | |
7344 | archive_expsym_cmds= | |
7345 | compiler_needs_object=no | |
7346 | enable_shared_with_static_runtimes=no | |
7347 | export_dynamic_flag_spec= | |
7348 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7349 | hardcode_automatic=no | |
7350 | hardcode_direct=no | |
7351 | hardcode_direct_absolute=no | |
7352 | hardcode_libdir_flag_spec= | |
7353 | hardcode_libdir_flag_spec_ld= | |
7354 | hardcode_libdir_separator= | |
7355 | hardcode_minus_L=no | |
7356 | hardcode_shlibpath_var=unsupported | |
7357 | inherit_rpath=no | |
7358 | link_all_deplibs=unknown | |
7359 | module_cmds= | |
7360 | module_expsym_cmds= | |
7361 | old_archive_from_new_cmds= | |
7362 | old_archive_from_expsyms_cmds= | |
7363 | thread_safe_flag_spec= | |
7364 | whole_archive_flag_spec= | |
7365 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7366 | # included in the symbol list | |
7367 | include_expsyms= | |
7368 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7369 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7370 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7371 | # as well as any symbol that contains `d'. | |
7372 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7373 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7374 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7375 | # the symbol is explicitly referenced. Since portable code cannot | |
7376 | # rely on this symbol name, it's probably fine to never include it in | |
7377 | # preloaded symbol tables. | |
7378 | # Exclude shared library initialization/finalization symbols. | |
7379 | extract_expsyms_cmds= | |
7380 | ||
7381 | case $host_os in | |
7382 | cygwin* | mingw* | pw32* | cegcc*) | |
7383 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7384 | # When not using gcc, we currently assume that we are using | |
7385 | # Microsoft Visual C++. | |
7386 | if test "$GCC" != yes; then | |
7387 | with_gnu_ld=no | |
7388 | fi | |
7389 | ;; | |
7390 | interix*) | |
7391 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7392 | with_gnu_ld=yes | |
7393 | ;; | |
7394 | openbsd*) | |
7395 | with_gnu_ld=no | |
7396 | ;; | |
7397 | linux* | k*bsd*-gnu) | |
7398 | link_all_deplibs=no | |
7399 | ;; | |
7400 | esac | |
7401 | ||
7402 | ld_shlibs=yes | |
7403 | if test "$with_gnu_ld" = yes; then | |
7404 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7405 | wlarc='${wl}' | |
7406 | ||
7407 | # Set some defaults for GNU ld with shared library support. These | |
7408 | # are reset later if shared libraries are not supported. Putting them | |
7409 | # here allows them to be overridden if necessary. | |
7410 | runpath_var=LD_RUN_PATH | |
7411 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7412 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7413 | # ancient GNU ld didn't support --whole-archive et. al. | |
7414 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7415 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7416 | else | |
7417 | whole_archive_flag_spec= | |
7418 | fi | |
7419 | supports_anon_versioning=no | |
7420 | case `$LD -v 2>&1` in | |
7421 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7422 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7423 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7424 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7425 | *\ 2.11.*) ;; # other 2.11 versions | |
7426 | *) supports_anon_versioning=yes ;; | |
7427 | esac | |
7428 | ||
7429 | # See if GNU ld supports shared libraries. | |
7430 | case $host_os in | |
7431 | aix[3-9]*) | |
7432 | # On AIX/PPC, the GNU linker is very broken | |
7433 | if test "$host_cpu" != ia64; then | |
7434 | ld_shlibs=no | |
7435 | cat <<_LT_EOF 1>&2 | |
7436 | ||
7437 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7438 | *** to be unable to reliably create shared libraries on AIX. | |
7439 | *** Therefore, libtool is disabling shared libraries support. If you | |
7440 | *** really care for shared libraries, you may want to modify your PATH | |
7441 | *** so that a non-GNU linker is found, and then restart. | |
7442 | ||
7443 | _LT_EOF | |
7444 | fi | |
7445 | ;; | |
7446 | ||
7447 | amigaos*) | |
7448 | case $host_cpu in | |
7449 | powerpc) | |
7450 | # see comment about AmigaOS4 .so support | |
7451 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7452 | archive_expsym_cmds='' | |
7453 | ;; | |
7454 | m68k) | |
7455 | 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)' | |
7456 | hardcode_libdir_flag_spec='-L$libdir' | |
7457 | hardcode_minus_L=yes | |
7458 | ;; | |
7459 | esac | |
7460 | ;; | |
7461 | ||
7462 | beos*) | |
7463 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7464 | allow_undefined_flag=unsupported | |
7465 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7466 | # support --undefined. This deserves some investigation. FIXME | |
7467 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7468 | else | |
7469 | ld_shlibs=no | |
7470 | fi | |
7471 | ;; | |
7472 | ||
7473 | cygwin* | mingw* | pw32* | cegcc*) | |
7474 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7475 | # as there is no search path for DLLs. | |
7476 | hardcode_libdir_flag_spec='-L$libdir' | |
7477 | allow_undefined_flag=unsupported | |
7478 | always_export_symbols=no | |
7479 | enable_shared_with_static_runtimes=yes | |
7480 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7481 | ||
7482 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7483 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7484 | # If the export-symbols file already is a .def file (1st line | |
7485 | # is EXPORTS), use it as is; otherwise, prepend... | |
7486 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7487 | cp $export_symbols $output_objdir/$soname.def; | |
7488 | else | |
7489 | echo EXPORTS > $output_objdir/$soname.def; | |
7490 | cat $export_symbols >> $output_objdir/$soname.def; | |
7491 | fi~ | |
7492 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7493 | else | |
7494 | ld_shlibs=no | |
7495 | fi | |
7496 | ;; | |
7497 | ||
7498 | interix[3-9]*) | |
7499 | hardcode_direct=no | |
7500 | hardcode_shlibpath_var=no | |
7501 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7502 | export_dynamic_flag_spec='${wl}-E' | |
7503 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7504 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7505 | # default) and relocated if they conflict, which is a slow very memory | |
7506 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7507 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7508 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7509 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7510 | 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' | |
7511 | ;; | |
7512 | ||
7513 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7514 | tmp_diet=no | |
7515 | if test "$host_os" = linux-dietlibc; then | |
7516 | case $cc_basename in | |
7517 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7518 | esac | |
7519 | fi | |
7520 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7521 | && test "$tmp_diet" = no | |
7522 | then | |
7523 | tmp_addflag= | |
7524 | tmp_sharedflag='-shared' | |
7525 | case $cc_basename,$host_cpu in | |
7526 | pgcc*) # Portland Group C compiler | |
7527 | 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' | |
7528 | tmp_addflag=' $pic_flag' | |
7529 | ;; | |
7530 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7531 | 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' | |
7532 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7533 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7534 | tmp_addflag=' -i_dynamic' ;; | |
7535 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7536 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7537 | ifc* | ifort*) # Intel Fortran compiler | |
7538 | tmp_addflag=' -nofor_main' ;; | |
7539 | lf95*) # Lahey Fortran 8.1 | |
7540 | whole_archive_flag_spec= | |
7541 | tmp_sharedflag='--shared' ;; | |
7542 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7543 | tmp_sharedflag='-qmkshrobj' | |
7544 | tmp_addflag= ;; | |
7545 | esac | |
7546 | case `$CC -V 2>&1 | sed 5q` in | |
7547 | *Sun\ C*) # Sun C 5.9 | |
7548 | 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' | |
7549 | compiler_needs_object=yes | |
7550 | tmp_sharedflag='-G' ;; | |
7551 | *Sun\ F*) # Sun Fortran 8.3 | |
7552 | tmp_sharedflag='-G' ;; | |
7553 | esac | |
7554 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7555 | ||
7556 | if test "x$supports_anon_versioning" = xyes; then | |
7557 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7558 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7559 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7560 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7561 | fi | |
7562 | ||
7563 | case $cc_basename in | |
7564 | xlf*) | |
7565 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7566 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7567 | hardcode_libdir_flag_spec= | |
7568 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7569 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7570 | if test "x$supports_anon_versioning" = xyes; then | |
7571 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7572 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7573 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7574 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7575 | fi | |
7576 | ;; | |
7577 | esac | |
7578 | else | |
7579 | ld_shlibs=no | |
7580 | fi | |
7581 | ;; | |
7582 | ||
7583 | netbsd* | netbsdelf*-gnu) | |
7584 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7585 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7586 | wlarc= | |
7587 | else | |
7588 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7589 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7590 | fi | |
7591 | ;; | |
7592 | ||
7593 | solaris*) | |
7594 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7595 | ld_shlibs=no | |
7596 | cat <<_LT_EOF 1>&2 | |
7597 | ||
7598 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7599 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7600 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7601 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7602 | *** your PATH or compiler configuration so that the native linker is | |
7603 | *** used, and then restart. | |
7604 | ||
7605 | _LT_EOF | |
7606 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7607 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7608 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7609 | else | |
7610 | ld_shlibs=no | |
7611 | fi | |
7612 | ;; | |
7613 | ||
7614 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7615 | case `$LD -v 2>&1` in | |
7616 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7617 | ld_shlibs=no | |
7618 | cat <<_LT_EOF 1>&2 | |
7619 | ||
7620 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7621 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7622 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7623 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7624 | *** your PATH or compiler configuration so that the native linker is | |
7625 | *** used, and then restart. | |
7626 | ||
7627 | _LT_EOF | |
7628 | ;; | |
7629 | *) | |
7630 | # For security reasons, it is highly recommended that you always | |
7631 | # use absolute paths for naming shared libraries, and exclude the | |
7632 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7633 | # requires that you compile everything twice, which is a pain. | |
7634 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7635 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7636 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7637 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7638 | else | |
7639 | ld_shlibs=no | |
7640 | fi | |
7641 | ;; | |
7642 | esac | |
7643 | ;; | |
7644 | ||
7645 | sunos4*) | |
7646 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7647 | wlarc= | |
7648 | hardcode_direct=yes | |
7649 | hardcode_shlibpath_var=no | |
7650 | ;; | |
7651 | ||
7652 | *) | |
7653 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7654 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7655 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7656 | else | |
7657 | ld_shlibs=no | |
7658 | fi | |
7659 | ;; | |
7660 | esac | |
7661 | ||
7662 | if test "$ld_shlibs" = no; then | |
7663 | runpath_var= | |
7664 | hardcode_libdir_flag_spec= | |
7665 | export_dynamic_flag_spec= | |
7666 | whole_archive_flag_spec= | |
7667 | fi | |
7668 | else | |
7669 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7670 | case $host_os in | |
7671 | aix3*) | |
7672 | allow_undefined_flag=unsupported | |
7673 | always_export_symbols=yes | |
7674 | 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' | |
7675 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7676 | # are no directories specified by -L. | |
7677 | hardcode_minus_L=yes | |
7678 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7679 | # Neither direct hardcoding nor static linking is supported with a | |
7680 | # broken collect2. | |
7681 | hardcode_direct=unsupported | |
7682 | fi | |
7683 | ;; | |
7684 | ||
7685 | aix[4-9]*) | |
7686 | if test "$host_cpu" = ia64; then | |
7687 | # On IA64, the linker does run time linking by default, so we don't | |
7688 | # have to do anything special. | |
7689 | aix_use_runtimelinking=no | |
7690 | exp_sym_flag='-Bexport' | |
7691 | no_entry_flag="" | |
7692 | else | |
7693 | # If we're using GNU nm, then we don't want the "-C" option. | |
7694 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7695 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7696 | 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' | |
7697 | else | |
7698 | 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' | |
7699 | fi | |
7700 | aix_use_runtimelinking=no | |
7701 | ||
7702 | # Test if we are trying to use run time linking or normal | |
7703 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7704 | # need to do runtime linking. | |
7705 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7706 | for ld_flag in $LDFLAGS; do | |
7707 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7708 | aix_use_runtimelinking=yes | |
7709 | break | |
7710 | fi | |
7711 | done | |
7712 | ;; | |
7713 | esac | |
7714 | ||
7715 | exp_sym_flag='-bexport' | |
7716 | no_entry_flag='-bnoentry' | |
7717 | fi | |
7718 | ||
7719 | # When large executables or shared objects are built, AIX ld can | |
7720 | # have problems creating the table of contents. If linking a library | |
7721 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7722 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7723 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7724 | ||
7725 | archive_cmds='' | |
7726 | hardcode_direct=yes | |
7727 | hardcode_direct_absolute=yes | |
7728 | hardcode_libdir_separator=':' | |
7729 | link_all_deplibs=yes | |
7730 | file_list_spec='${wl}-f,' | |
7731 | ||
7732 | if test "$GCC" = yes; then | |
7733 | case $host_os in aix4.[012]|aix4.[012].*) | |
7734 | # We only want to do this on AIX 4.2 and lower, the check | |
7735 | # below for broken collect2 doesn't work under 4.3+ | |
7736 | collect2name=`${CC} -print-prog-name=collect2` | |
7737 | if test -f "$collect2name" && | |
7738 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7739 | then | |
7740 | # We have reworked collect2 | |
7741 | : | |
7742 | else | |
7743 | # We have old collect2 | |
7744 | hardcode_direct=unsupported | |
7745 | # It fails to find uninstalled libraries when the uninstalled | |
7746 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7747 | # to unsupported forces relinking | |
7748 | hardcode_minus_L=yes | |
7749 | hardcode_libdir_flag_spec='-L$libdir' | |
7750 | hardcode_libdir_separator= | |
7751 | fi | |
7752 | ;; | |
7753 | esac | |
7754 | shared_flag='-shared' | |
7755 | if test "$aix_use_runtimelinking" = yes; then | |
7756 | shared_flag="$shared_flag "'${wl}-G' | |
7757 | fi | |
7758 | link_all_deplibs=no | |
7759 | else | |
7760 | # not using gcc | |
7761 | if test "$host_cpu" = ia64; then | |
7762 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7763 | # chokes on -Wl,-G. The following line is correct: | |
7764 | shared_flag='-G' | |
7765 | else | |
7766 | if test "$aix_use_runtimelinking" = yes; then | |
7767 | shared_flag='${wl}-G' | |
7768 | else | |
7769 | shared_flag='${wl}-bM:SRE' | |
7770 | fi | |
7771 | fi | |
7772 | fi | |
7773 | ||
7774 | export_dynamic_flag_spec='${wl}-bexpall' | |
7775 | # It seems that -bexpall does not export symbols beginning with | |
7776 | # underscore (_), so it is better to generate a list of symbols to export. | |
7777 | always_export_symbols=yes | |
7778 | if test "$aix_use_runtimelinking" = yes; then | |
7779 | # Warning - without using the other runtime loading flags (-brtl), | |
7780 | # -berok will link without error, but may produce a broken library. | |
7781 | allow_undefined_flag='-berok' | |
7782 | # Determine the default libpath from the value encoded in an | |
7783 | # empty executable. | |
7784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7785 | /* end confdefs.h. */ | |
7786 | ||
7787 | int | |
7788 | main () | |
7789 | { | |
7790 | ||
7791 | ; | |
7792 | return 0; | |
7793 | } | |
7794 | _ACEOF | |
7795 | if ac_fn_c_try_link "$LINENO"; then : | |
7796 | ||
7797 | lt_aix_libpath_sed=' | |
7798 | /Import File Strings/,/^$/ { | |
7799 | /^0/ { | |
7800 | s/^0 *\(.*\)$/\1/ | |
7801 | p | |
7802 | } | |
7803 | }' | |
7804 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7805 | # Check for a 64-bit object if we didn't find anything. | |
7806 | if test -z "$aix_libpath"; then | |
7807 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7808 | fi | |
7809 | fi | |
7810 | rm -f core conftest.err conftest.$ac_objext \ | |
7811 | conftest$ac_exeext conftest.$ac_ext | |
7812 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7813 | ||
7814 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7815 | 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" | |
7816 | else | |
7817 | if test "$host_cpu" = ia64; then | |
7818 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7819 | allow_undefined_flag="-z nodefs" | |
7820 | 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" | |
7821 | else | |
7822 | # Determine the default libpath from the value encoded in an | |
7823 | # empty executable. | |
7824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7825 | /* end confdefs.h. */ | |
7826 | ||
7827 | int | |
7828 | main () | |
7829 | { | |
7830 | ||
7831 | ; | |
7832 | return 0; | |
7833 | } | |
7834 | _ACEOF | |
7835 | if ac_fn_c_try_link "$LINENO"; then : | |
7836 | ||
7837 | lt_aix_libpath_sed=' | |
7838 | /Import File Strings/,/^$/ { | |
7839 | /^0/ { | |
7840 | s/^0 *\(.*\)$/\1/ | |
7841 | p | |
7842 | } | |
7843 | }' | |
7844 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7845 | # Check for a 64-bit object if we didn't find anything. | |
7846 | if test -z "$aix_libpath"; then | |
7847 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7848 | fi | |
7849 | fi | |
7850 | rm -f core conftest.err conftest.$ac_objext \ | |
7851 | conftest$ac_exeext conftest.$ac_ext | |
7852 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7853 | ||
7854 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7855 | # Warning - without using the other run time loading flags, | |
7856 | # -berok will link without error, but may produce a broken library. | |
7857 | no_undefined_flag=' ${wl}-bernotok' | |
7858 | allow_undefined_flag=' ${wl}-berok' | |
7859 | # Exported symbols can be pulled into shared objects from archives | |
7860 | whole_archive_flag_spec='$convenience' | |
7861 | archive_cmds_need_lc=yes | |
7862 | # This is similar to how AIX traditionally builds its shared libraries. | |
7863 | 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' | |
7864 | fi | |
7865 | fi | |
7866 | ;; | |
7867 | ||
7868 | amigaos*) | |
7869 | case $host_cpu in | |
7870 | powerpc) | |
7871 | # see comment about AmigaOS4 .so support | |
7872 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7873 | archive_expsym_cmds='' | |
7874 | ;; | |
7875 | m68k) | |
7876 | 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)' | |
7877 | hardcode_libdir_flag_spec='-L$libdir' | |
7878 | hardcode_minus_L=yes | |
7879 | ;; | |
7880 | esac | |
7881 | ;; | |
7882 | ||
7883 | bsdi[45]*) | |
7884 | export_dynamic_flag_spec=-rdynamic | |
7885 | ;; | |
7886 | ||
7887 | cygwin* | mingw* | pw32* | cegcc*) | |
7888 | # When not using gcc, we currently assume that we are using | |
7889 | # Microsoft Visual C++. | |
7890 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7891 | # no search path for DLLs. | |
7892 | hardcode_libdir_flag_spec=' ' | |
7893 | allow_undefined_flag=unsupported | |
7894 | # Tell ltmain to make .lib files, not .a files. | |
7895 | libext=lib | |
7896 | # Tell ltmain to make .dll files, not .so files. | |
7897 | shrext_cmds=".dll" | |
7898 | # FIXME: Setting linknames here is a bad hack. | |
7899 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7900 | # The linker will automatically build a .lib file if we build a DLL. | |
7901 | old_archive_from_new_cmds='true' | |
7902 | # FIXME: Should let the user specify the lib program. | |
7903 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7904 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7905 | enable_shared_with_static_runtimes=yes | |
7906 | ;; | |
7907 | ||
7908 | darwin* | rhapsody*) | |
7909 | ||
7910 | ||
7911 | archive_cmds_need_lc=no | |
7912 | hardcode_direct=no | |
7913 | hardcode_automatic=yes | |
7914 | hardcode_shlibpath_var=unsupported | |
7915 | whole_archive_flag_spec='' | |
7916 | link_all_deplibs=yes | |
7917 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7918 | case $cc_basename in | |
7919 | ifort*) _lt_dar_can_shared=yes ;; | |
7920 | *) _lt_dar_can_shared=$GCC ;; | |
7921 | esac | |
7922 | if test "$_lt_dar_can_shared" = "yes"; then | |
7923 | output_verbose_link_cmd=echo | |
7924 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7925 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7926 | 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}" | |
7927 | 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}" | |
7928 | ||
7929 | else | |
7930 | ld_shlibs=no | |
7931 | fi | |
7932 | ||
7933 | ;; | |
7934 | ||
7935 | dgux*) | |
7936 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7937 | hardcode_libdir_flag_spec='-L$libdir' | |
7938 | hardcode_shlibpath_var=no | |
7939 | ;; | |
7940 | ||
7941 | freebsd1*) | |
7942 | ld_shlibs=no | |
7943 | ;; | |
7944 | ||
7945 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7946 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7947 | # does not break anything, and helps significantly (at the cost of a little | |
7948 | # extra space). | |
7949 | freebsd2.2*) | |
7950 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7951 | hardcode_libdir_flag_spec='-R$libdir' | |
7952 | hardcode_direct=yes | |
7953 | hardcode_shlibpath_var=no | |
7954 | ;; | |
7955 | ||
7956 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7957 | freebsd2*) | |
7958 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7959 | hardcode_direct=yes | |
7960 | hardcode_minus_L=yes | |
7961 | hardcode_shlibpath_var=no | |
7962 | ;; | |
7963 | ||
7964 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7965 | freebsd* | dragonfly*) | |
7966 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7967 | hardcode_libdir_flag_spec='-R$libdir' | |
7968 | hardcode_direct=yes | |
7969 | hardcode_shlibpath_var=no | |
7970 | ;; | |
7971 | ||
7972 | hpux9*) | |
7973 | if test "$GCC" = yes; then | |
7974 | 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' | |
7975 | else | |
7976 | 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' | |
7977 | fi | |
7978 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7979 | hardcode_libdir_separator=: | |
7980 | hardcode_direct=yes | |
7981 | ||
7982 | # hardcode_minus_L: Not really in the search PATH, | |
7983 | # but as the default location of the library. | |
7984 | hardcode_minus_L=yes | |
7985 | export_dynamic_flag_spec='${wl}-E' | |
7986 | ;; | |
7987 | ||
7988 | hpux10*) | |
7989 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7990 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7991 | else | |
7992 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7993 | fi | |
7994 | if test "$with_gnu_ld" = no; then | |
7995 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7996 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
7997 | hardcode_libdir_separator=: | |
7998 | hardcode_direct=yes | |
7999 | hardcode_direct_absolute=yes | |
8000 | export_dynamic_flag_spec='${wl}-E' | |
8001 | # hardcode_minus_L: Not really in the search PATH, | |
8002 | # but as the default location of the library. | |
8003 | hardcode_minus_L=yes | |
8004 | fi | |
8005 | ;; | |
8006 | ||
8007 | hpux11*) | |
8008 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8009 | case $host_cpu in | |
8010 | hppa*64*) | |
8011 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8012 | ;; | |
8013 | ia64*) | |
8014 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8015 | ;; | |
8016 | *) | |
8017 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8018 | ;; | |
8019 | esac | |
8020 | else | |
8021 | case $host_cpu in | |
8022 | hppa*64*) | |
8023 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8024 | ;; | |
8025 | ia64*) | |
8026 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8027 | ;; | |
8028 | *) | |
8029 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8030 | ;; | |
8031 | esac | |
8032 | fi | |
8033 | if test "$with_gnu_ld" = no; then | |
8034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8035 | hardcode_libdir_separator=: | |
8036 | ||
8037 | case $host_cpu in | |
8038 | hppa*64*|ia64*) | |
8039 | hardcode_direct=no | |
8040 | hardcode_shlibpath_var=no | |
8041 | ;; | |
8042 | *) | |
8043 | hardcode_direct=yes | |
8044 | hardcode_direct_absolute=yes | |
8045 | export_dynamic_flag_spec='${wl}-E' | |
8046 | ||
8047 | # hardcode_minus_L: Not really in the search PATH, | |
8048 | # but as the default location of the library. | |
8049 | hardcode_minus_L=yes | |
8050 | ;; | |
8051 | esac | |
8052 | fi | |
8053 | ;; | |
8054 | ||
8055 | irix5* | irix6* | nonstopux*) | |
8056 | if test "$GCC" = yes; then | |
8057 | 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' | |
8058 | # Try to use the -exported_symbol ld option, if it does not | |
8059 | # work, assume that -exports_file does not work either and | |
8060 | # implicitly export all symbols. | |
8061 | save_LDFLAGS="$LDFLAGS" | |
8062 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8064 | /* end confdefs.h. */ | |
8065 | int foo(void) {} | |
8066 | _ACEOF | |
8067 | if ac_fn_c_try_link "$LINENO"; then : | |
8068 | 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' | |
8069 | ||
8070 | fi | |
8071 | rm -f core conftest.err conftest.$ac_objext \ | |
8072 | conftest$ac_exeext conftest.$ac_ext | |
8073 | LDFLAGS="$save_LDFLAGS" | |
8074 | else | |
8075 | 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' | |
8076 | 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' | |
8077 | fi | |
8078 | archive_cmds_need_lc='no' | |
8079 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8080 | hardcode_libdir_separator=: | |
8081 | inherit_rpath=yes | |
8082 | link_all_deplibs=yes | |
8083 | ;; | |
8084 | ||
8085 | netbsd* | netbsdelf*-gnu) | |
8086 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8087 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8088 | else | |
8089 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8090 | fi | |
8091 | hardcode_libdir_flag_spec='-R$libdir' | |
8092 | hardcode_direct=yes | |
8093 | hardcode_shlibpath_var=no | |
8094 | ;; | |
8095 | ||
8096 | newsos6) | |
8097 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8098 | hardcode_direct=yes | |
8099 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8100 | hardcode_libdir_separator=: | |
8101 | hardcode_shlibpath_var=no | |
8102 | ;; | |
8103 | ||
8104 | *nto* | *qnx*) | |
8105 | ;; | |
8106 | ||
8107 | openbsd*) | |
8108 | if test -f /usr/libexec/ld.so; then | |
8109 | hardcode_direct=yes | |
8110 | hardcode_shlibpath_var=no | |
8111 | hardcode_direct_absolute=yes | |
8112 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8113 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8114 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8115 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8116 | export_dynamic_flag_spec='${wl}-E' | |
8117 | else | |
8118 | case $host_os in | |
8119 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8120 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8121 | hardcode_libdir_flag_spec='-R$libdir' | |
8122 | ;; | |
8123 | *) | |
8124 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8125 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8126 | ;; | |
8127 | esac | |
8128 | fi | |
8129 | else | |
8130 | ld_shlibs=no | |
8131 | fi | |
8132 | ;; | |
8133 | ||
8134 | os2*) | |
8135 | hardcode_libdir_flag_spec='-L$libdir' | |
8136 | hardcode_minus_L=yes | |
8137 | allow_undefined_flag=unsupported | |
8138 | 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' | |
8139 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8140 | ;; | |
8141 | ||
8142 | osf3*) | |
8143 | if test "$GCC" = yes; then | |
8144 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8145 | 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' | |
8146 | else | |
8147 | allow_undefined_flag=' -expect_unresolved \*' | |
8148 | 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' | |
8149 | fi | |
8150 | archive_cmds_need_lc='no' | |
8151 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8152 | hardcode_libdir_separator=: | |
8153 | ;; | |
8154 | ||
8155 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8156 | if test "$GCC" = yes; then | |
8157 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8158 | 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' | |
8159 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8160 | else | |
8161 | allow_undefined_flag=' -expect_unresolved \*' | |
8162 | 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' | |
8163 | 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~ | |
8164 | $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' | |
8165 | ||
8166 | # Both c and cxx compiler support -rpath directly | |
8167 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8168 | fi | |
8169 | archive_cmds_need_lc='no' | |
8170 | hardcode_libdir_separator=: | |
8171 | ;; | |
8172 | ||
8173 | solaris*) | |
8174 | no_undefined_flag=' -z defs' | |
8175 | if test "$GCC" = yes; then | |
8176 | wlarc='${wl}' | |
8177 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8178 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8179 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8180 | else | |
8181 | case `$CC -V 2>&1` in | |
8182 | *"Compilers 5.0"*) | |
8183 | wlarc='' | |
8184 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8185 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8186 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8187 | ;; | |
8188 | *) | |
8189 | wlarc='${wl}' | |
8190 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8191 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8192 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8193 | ;; | |
8194 | esac | |
8195 | fi | |
8196 | hardcode_libdir_flag_spec='-R$libdir' | |
8197 | hardcode_shlibpath_var=no | |
8198 | case $host_os in | |
8199 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8200 | *) | |
8201 | # The compiler driver will combine and reorder linker options, | |
8202 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8203 | # but is careful enough not to reorder. | |
8204 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8205 | if test "$GCC" = yes; then | |
8206 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8207 | else | |
8208 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8209 | fi | |
8210 | ;; | |
8211 | esac | |
8212 | link_all_deplibs=yes | |
8213 | ;; | |
8214 | ||
8215 | sunos4*) | |
8216 | if test "x$host_vendor" = xsequent; then | |
8217 | # Use $CC to link under sequent, because it throws in some extra .o | |
8218 | # files that make .init and .fini sections work. | |
8219 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8220 | else | |
8221 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8222 | fi | |
8223 | hardcode_libdir_flag_spec='-L$libdir' | |
8224 | hardcode_direct=yes | |
8225 | hardcode_minus_L=yes | |
8226 | hardcode_shlibpath_var=no | |
8227 | ;; | |
8228 | ||
8229 | sysv4) | |
8230 | case $host_vendor in | |
8231 | sni) | |
8232 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8233 | hardcode_direct=yes # is this really true??? | |
8234 | ;; | |
8235 | siemens) | |
8236 | ## LD is ld it makes a PLAMLIB | |
8237 | ## CC just makes a GrossModule. | |
8238 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8239 | reload_cmds='$CC -r -o $output$reload_objs' | |
8240 | hardcode_direct=no | |
8241 | ;; | |
8242 | motorola) | |
8243 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8244 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8245 | ;; | |
8246 | esac | |
8247 | runpath_var='LD_RUN_PATH' | |
8248 | hardcode_shlibpath_var=no | |
8249 | ;; | |
8250 | ||
8251 | sysv4.3*) | |
8252 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8253 | hardcode_shlibpath_var=no | |
8254 | export_dynamic_flag_spec='-Bexport' | |
8255 | ;; | |
8256 | ||
8257 | sysv4*MP*) | |
8258 | if test -d /usr/nec; then | |
8259 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8260 | hardcode_shlibpath_var=no | |
8261 | runpath_var=LD_RUN_PATH | |
8262 | hardcode_runpath_var=yes | |
8263 | ld_shlibs=yes | |
8264 | fi | |
8265 | ;; | |
8266 | ||
8267 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8268 | no_undefined_flag='${wl}-z,text' | |
8269 | archive_cmds_need_lc=no | |
8270 | hardcode_shlibpath_var=no | |
8271 | runpath_var='LD_RUN_PATH' | |
8272 | ||
8273 | if test "$GCC" = yes; then | |
8274 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8275 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8276 | else | |
8277 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8278 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8279 | fi | |
8280 | ;; | |
8281 | ||
8282 | sysv5* | sco3.2v5* | sco5v6*) | |
8283 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8284 | # link with -lc, and that would cause any symbols used from libc to | |
8285 | # always be unresolved, which means just about no library would | |
8286 | # ever link correctly. If we're not using GNU ld we use -z text | |
8287 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8288 | # as -z defs. | |
8289 | no_undefined_flag='${wl}-z,text' | |
8290 | allow_undefined_flag='${wl}-z,nodefs' | |
8291 | archive_cmds_need_lc=no | |
8292 | hardcode_shlibpath_var=no | |
8293 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8294 | hardcode_libdir_separator=':' | |
8295 | link_all_deplibs=yes | |
8296 | export_dynamic_flag_spec='${wl}-Bexport' | |
8297 | runpath_var='LD_RUN_PATH' | |
8298 | ||
8299 | if test "$GCC" = yes; then | |
8300 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8301 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8302 | else | |
8303 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8304 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8305 | fi | |
8306 | ;; | |
8307 | ||
8308 | uts4*) | |
8309 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8310 | hardcode_libdir_flag_spec='-L$libdir' | |
8311 | hardcode_shlibpath_var=no | |
8312 | ;; | |
8313 | ||
8314 | *) | |
8315 | ld_shlibs=no | |
8316 | ;; | |
8317 | esac | |
8318 | ||
8319 | if test x$host_vendor = xsni; then | |
8320 | case $host in | |
8321 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8322 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8323 | ;; | |
8324 | esac | |
8325 | fi | |
8326 | fi | |
8327 | ||
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8329 | $as_echo "$ld_shlibs" >&6; } | |
8330 | test "$ld_shlibs" = no && can_build_shared=no | |
8331 | ||
8332 | with_gnu_ld=$with_gnu_ld | |
8333 | ||
8334 | ||
8335 | ||
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | # | |
8349 | # Do we need to explicitly link libc? | |
8350 | # | |
8351 | case "x$archive_cmds_need_lc" in | |
8352 | x|xyes) | |
8353 | # Assume -lc should be added | |
8354 | archive_cmds_need_lc=yes | |
8355 | ||
8356 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8357 | case $archive_cmds in | |
8358 | *'~'*) | |
8359 | # FIXME: we may have to deal with multi-command sequences. | |
8360 | ;; | |
8361 | '$CC '*) | |
8362 | # Test whether the compiler implicitly links with -lc since on some | |
8363 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8364 | # to ld, don't add -lc before -lgcc. | |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8366 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8367 | $RM conftest* | |
8368 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8369 | ||
8370 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8371 | (eval $ac_compile) 2>&5 | |
8372 | ac_status=$? | |
8373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8374 | test $ac_status = 0; } 2>conftest.err; then | |
8375 | soname=conftest | |
8376 | lib=conftest | |
8377 | libobjs=conftest.$ac_objext | |
8378 | deplibs= | |
8379 | wl=$lt_prog_compiler_wl | |
8380 | pic_flag=$lt_prog_compiler_pic | |
8381 | compiler_flags=-v | |
8382 | linker_flags=-v | |
8383 | verstring= | |
8384 | output_objdir=. | |
8385 | libname=conftest | |
8386 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8387 | allow_undefined_flag= | |
8388 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8389 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8390 | ac_status=$? | |
8391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8392 | test $ac_status = 0; } | |
8393 | then | |
8394 | archive_cmds_need_lc=no | |
8395 | else | |
8396 | archive_cmds_need_lc=yes | |
8397 | fi | |
8398 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8399 | else | |
8400 | cat conftest.err 1>&5 | |
8401 | fi | |
8402 | $RM conftest* | |
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8404 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8405 | ;; | |
8406 | esac | |
8407 | fi | |
8408 | ;; | |
8409 | esac | |
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 | ||
8565 | ||
8566 | ||
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8568 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8569 | ||
8570 | if test "$GCC" = yes; then | |
8571 | case $host_os in | |
8572 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8573 | *) lt_awk_arg="/^libraries:/" ;; | |
8574 | esac | |
8575 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8576 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8577 | # if the path contains ";" then we assume it to be the separator | |
8578 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8579 | # assumed that no part of a normal pathname contains ";" but that should | |
8580 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8581 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8582 | else | |
8583 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8584 | fi | |
8585 | # Ok, now we have the path, separated by spaces, we can step through it | |
8586 | # and add multilib dir if necessary. | |
8587 | lt_tmp_lt_search_path_spec= | |
8588 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8589 | for lt_sys_path in $lt_search_path_spec; do | |
8590 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8591 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8592 | else | |
8593 | test -d "$lt_sys_path" && \ | |
8594 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8595 | fi | |
8596 | done | |
8597 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8598 | BEGIN {RS=" "; FS="/|\n";} { | |
8599 | lt_foo=""; | |
8600 | lt_count=0; | |
8601 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8602 | if ($lt_i != "" && $lt_i != ".") { | |
8603 | if ($lt_i == "..") { | |
8604 | lt_count++; | |
8605 | } else { | |
8606 | if (lt_count == 0) { | |
8607 | lt_foo="/" $lt_i lt_foo; | |
8608 | } else { | |
8609 | lt_count--; | |
8610 | } | |
8611 | } | |
8612 | } | |
8613 | } | |
8614 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8615 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8616 | }'` | |
8617 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8618 | else | |
8619 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8620 | fi | |
8621 | library_names_spec= | |
8622 | libname_spec='lib$name' | |
8623 | soname_spec= | |
8624 | shrext_cmds=".so" | |
8625 | postinstall_cmds= | |
8626 | postuninstall_cmds= | |
8627 | finish_cmds= | |
8628 | finish_eval= | |
8629 | shlibpath_var= | |
8630 | shlibpath_overrides_runpath=unknown | |
8631 | version_type=none | |
8632 | dynamic_linker="$host_os ld.so" | |
8633 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8634 | need_lib_prefix=unknown | |
8635 | hardcode_into_libs=no | |
8636 | ||
8637 | # when you set need_version to no, make sure it does not cause -set_version | |
8638 | # flags to be left without arguments | |
8639 | need_version=unknown | |
8640 | ||
8641 | case $host_os in | |
8642 | aix3*) | |
8643 | version_type=linux | |
8644 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8645 | shlibpath_var=LIBPATH | |
8646 | ||
8647 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8648 | soname_spec='${libname}${release}${shared_ext}$major' | |
8649 | ;; | |
8650 | ||
8651 | aix[4-9]*) | |
8652 | version_type=linux | |
8653 | need_lib_prefix=no | |
8654 | need_version=no | |
8655 | hardcode_into_libs=yes | |
8656 | if test "$host_cpu" = ia64; then | |
8657 | # AIX 5 supports IA64 | |
8658 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8659 | shlibpath_var=LD_LIBRARY_PATH | |
8660 | else | |
8661 | # With GCC up to 2.95.x, collect2 would create an import file | |
8662 | # for dependence libraries. The import file would start with | |
8663 | # the line `#! .'. This would cause the generated library to | |
8664 | # depend on `.', always an invalid library. This was fixed in | |
8665 | # development snapshots of GCC prior to 3.0. | |
8666 | case $host_os in | |
8667 | aix4 | aix4.[01] | aix4.[01].*) | |
8668 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8669 | echo ' yes ' | |
8670 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8671 | : | |
8672 | else | |
8673 | can_build_shared=no | |
8674 | fi | |
8675 | ;; | |
8676 | esac | |
8677 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8678 | # soname into executable. Probably we can add versioning support to | |
8679 | # collect2, so additional links can be useful in future. | |
8680 | if test "$aix_use_runtimelinking" = yes; then | |
8681 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8682 | # instead of lib<name>.a to let people know that these are not | |
8683 | # typical AIX shared libraries. | |
8684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8685 | else | |
8686 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8687 | # and later when we are not doing run time linking. | |
8688 | library_names_spec='${libname}${release}.a $libname.a' | |
8689 | soname_spec='${libname}${release}${shared_ext}$major' | |
8690 | fi | |
8691 | shlibpath_var=LIBPATH | |
8692 | fi | |
8693 | ;; | |
8694 | ||
8695 | amigaos*) | |
8696 | case $host_cpu in | |
8697 | powerpc) | |
8698 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8699 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8701 | ;; | |
8702 | m68k) | |
8703 | library_names_spec='$libname.ixlibrary $libname.a' | |
8704 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8705 | 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' | |
8706 | ;; | |
8707 | esac | |
8708 | ;; | |
8709 | ||
8710 | beos*) | |
8711 | library_names_spec='${libname}${shared_ext}' | |
8712 | dynamic_linker="$host_os ld.so" | |
8713 | shlibpath_var=LIBRARY_PATH | |
8714 | ;; | |
8715 | ||
8716 | bsdi[45]*) | |
8717 | version_type=linux | |
8718 | need_version=no | |
8719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8720 | soname_spec='${libname}${release}${shared_ext}$major' | |
8721 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8722 | shlibpath_var=LD_LIBRARY_PATH | |
8723 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8724 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8725 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8726 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8727 | # libtool to hard-code these into programs | |
8728 | ;; | |
8729 | ||
8730 | cygwin* | mingw* | pw32* | cegcc*) | |
8731 | version_type=windows | |
8732 | shrext_cmds=".dll" | |
8733 | need_version=no | |
8734 | need_lib_prefix=no | |
8735 | ||
8736 | case $GCC,$host_os in | |
8737 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8738 | library_names_spec='$libname.dll.a' | |
8739 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8740 | postinstall_cmds='base_file=`basename \${file}`~ | |
8741 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8742 | dldir=$destdir/`dirname \$dlpath`~ | |
8743 | test -d \$dldir || mkdir -p \$dldir~ | |
8744 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8745 | chmod a+x \$dldir/$dlname~ | |
8746 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8747 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8748 | fi' | |
8749 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8750 | dlpath=$dir/\$dldll~ | |
8751 | $RM \$dlpath' | |
8752 | shlibpath_overrides_runpath=yes | |
8753 | ||
8754 | case $host_os in | |
8755 | cygwin*) | |
8756 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8757 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8758 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8759 | ;; | |
8760 | mingw* | cegcc*) | |
8761 | # MinGW DLLs use traditional 'lib' prefix | |
8762 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8763 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8764 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8765 | # It is most probably a Windows format PATH printed by | |
8766 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8767 | # path with ; separators, and with drive letters. We can handle the | |
8768 | # drive letters (cygwin fileutils understands them), so leave them, | |
8769 | # especially as we might pass files found there to a mingw objdump, | |
8770 | # which wouldn't understand a cygwinified path. Ahh. | |
8771 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8772 | else | |
8773 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8774 | fi | |
8775 | ;; | |
8776 | pw32*) | |
8777 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8778 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8779 | ;; | |
8780 | esac | |
8781 | ;; | |
8782 | ||
8783 | *) | |
8784 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8785 | ;; | |
8786 | esac | |
8787 | dynamic_linker='Win32 ld.exe' | |
8788 | # FIXME: first we should search . and the directory the executable is in | |
8789 | shlibpath_var=PATH | |
8790 | ;; | |
8791 | ||
8792 | darwin* | rhapsody*) | |
8793 | dynamic_linker="$host_os dyld" | |
8794 | version_type=darwin | |
8795 | need_lib_prefix=no | |
8796 | need_version=no | |
8797 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8798 | soname_spec='${libname}${release}${major}$shared_ext' | |
8799 | shlibpath_overrides_runpath=yes | |
8800 | shlibpath_var=DYLD_LIBRARY_PATH | |
8801 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8802 | ||
8803 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8804 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8805 | ;; | |
8806 | ||
8807 | dgux*) | |
8808 | version_type=linux | |
8809 | need_lib_prefix=no | |
8810 | need_version=no | |
8811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8812 | soname_spec='${libname}${release}${shared_ext}$major' | |
8813 | shlibpath_var=LD_LIBRARY_PATH | |
8814 | ;; | |
8815 | ||
8816 | freebsd1*) | |
8817 | dynamic_linker=no | |
8818 | ;; | |
8819 | ||
8820 | freebsd* | dragonfly*) | |
8821 | # DragonFly does not have aout. When/if they implement a new | |
8822 | # versioning mechanism, adjust this. | |
8823 | if test -x /usr/bin/objformat; then | |
8824 | objformat=`/usr/bin/objformat` | |
8825 | else | |
8826 | case $host_os in | |
8827 | freebsd[123]*) objformat=aout ;; | |
8828 | *) objformat=elf ;; | |
8829 | esac | |
8830 | fi | |
8831 | version_type=freebsd-$objformat | |
8832 | case $version_type in | |
8833 | freebsd-elf*) | |
8834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8835 | need_version=no | |
8836 | need_lib_prefix=no | |
8837 | ;; | |
8838 | freebsd-*) | |
8839 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8840 | need_version=yes | |
8841 | ;; | |
8842 | esac | |
8843 | shlibpath_var=LD_LIBRARY_PATH | |
8844 | case $host_os in | |
8845 | freebsd2*) | |
8846 | shlibpath_overrides_runpath=yes | |
8847 | ;; | |
8848 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8849 | shlibpath_overrides_runpath=yes | |
8850 | hardcode_into_libs=yes | |
8851 | ;; | |
8852 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8853 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8854 | shlibpath_overrides_runpath=no | |
8855 | hardcode_into_libs=yes | |
8856 | ;; | |
8857 | *) # from 4.6 on, and DragonFly | |
8858 | shlibpath_overrides_runpath=yes | |
8859 | hardcode_into_libs=yes | |
8860 | ;; | |
8861 | esac | |
8862 | ;; | |
8863 | ||
8864 | gnu*) | |
8865 | version_type=linux | |
8866 | need_lib_prefix=no | |
8867 | need_version=no | |
8868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8869 | soname_spec='${libname}${release}${shared_ext}$major' | |
8870 | shlibpath_var=LD_LIBRARY_PATH | |
8871 | hardcode_into_libs=yes | |
8872 | ;; | |
8873 | ||
8874 | hpux9* | hpux10* | hpux11*) | |
8875 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8876 | # link against other versions. | |
8877 | version_type=sunos | |
8878 | need_lib_prefix=no | |
8879 | need_version=no | |
8880 | case $host_cpu in | |
8881 | ia64*) | |
8882 | shrext_cmds='.so' | |
8883 | hardcode_into_libs=yes | |
8884 | dynamic_linker="$host_os dld.so" | |
8885 | shlibpath_var=LD_LIBRARY_PATH | |
8886 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8888 | soname_spec='${libname}${release}${shared_ext}$major' | |
8889 | if test "X$HPUX_IA64_MODE" = X32; then | |
8890 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8891 | else | |
8892 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8893 | fi | |
8894 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8895 | ;; | |
8896 | hppa*64*) | |
8897 | shrext_cmds='.sl' | |
8898 | hardcode_into_libs=yes | |
8899 | dynamic_linker="$host_os dld.sl" | |
8900 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8901 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8903 | soname_spec='${libname}${release}${shared_ext}$major' | |
8904 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8905 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8906 | ;; | |
8907 | *) | |
8908 | shrext_cmds='.sl' | |
8909 | dynamic_linker="$host_os dld.sl" | |
8910 | shlibpath_var=SHLIB_PATH | |
8911 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8913 | soname_spec='${libname}${release}${shared_ext}$major' | |
8914 | ;; | |
8915 | esac | |
8916 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8917 | postinstall_cmds='chmod 555 $lib' | |
8918 | ;; | |
8919 | ||
8920 | interix[3-9]*) | |
8921 | version_type=linux | |
8922 | need_lib_prefix=no | |
8923 | need_version=no | |
8924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8925 | soname_spec='${libname}${release}${shared_ext}$major' | |
8926 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8927 | shlibpath_var=LD_LIBRARY_PATH | |
8928 | shlibpath_overrides_runpath=no | |
8929 | hardcode_into_libs=yes | |
8930 | ;; | |
8931 | ||
8932 | irix5* | irix6* | nonstopux*) | |
8933 | case $host_os in | |
8934 | nonstopux*) version_type=nonstopux ;; | |
8935 | *) | |
8936 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8937 | version_type=linux | |
8938 | else | |
8939 | version_type=irix | |
8940 | fi ;; | |
8941 | esac | |
8942 | need_lib_prefix=no | |
8943 | need_version=no | |
8944 | soname_spec='${libname}${release}${shared_ext}$major' | |
8945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8946 | case $host_os in | |
8947 | irix5* | nonstopux*) | |
8948 | libsuff= shlibsuff= | |
8949 | ;; | |
8950 | *) | |
8951 | case $LD in # libtool.m4 will add one of these switches to LD | |
8952 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8953 | libsuff= shlibsuff= libmagic=32-bit;; | |
8954 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8955 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8956 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8957 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8958 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8959 | esac | |
8960 | ;; | |
8961 | esac | |
8962 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8963 | shlibpath_overrides_runpath=no | |
8964 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8965 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8966 | hardcode_into_libs=yes | |
8967 | ;; | |
8968 | ||
8969 | # No shared lib support for Linux oldld, aout, or coff. | |
8970 | linux*oldld* | linux*aout* | linux*coff*) | |
8971 | dynamic_linker=no | |
8972 | ;; | |
8973 | ||
8974 | # This must be Linux ELF. | |
8975 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8976 | version_type=linux | |
8977 | need_lib_prefix=no | |
8978 | need_version=no | |
8979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8980 | soname_spec='${libname}${release}${shared_ext}$major' | |
8981 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8982 | shlibpath_var=LD_LIBRARY_PATH | |
8983 | shlibpath_overrides_runpath=no | |
8984 | # Some binutils ld are patched to set DT_RUNPATH | |
8985 | save_LDFLAGS=$LDFLAGS | |
8986 | save_libdir=$libdir | |
8987 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8988 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8990 | /* end confdefs.h. */ | |
8991 | ||
8992 | int | |
8993 | main () | |
8994 | { | |
8995 | ||
8996 | ; | |
8997 | return 0; | |
8998 | } | |
8999 | _ACEOF | |
9000 | if ac_fn_c_try_link "$LINENO"; then : | |
9001 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9002 | shlibpath_overrides_runpath=yes | |
9003 | fi | |
9004 | fi | |
9005 | rm -f core conftest.err conftest.$ac_objext \ | |
9006 | conftest$ac_exeext conftest.$ac_ext | |
9007 | LDFLAGS=$save_LDFLAGS | |
9008 | libdir=$save_libdir | |
9009 | ||
9010 | # This implies no fast_install, which is unacceptable. | |
9011 | # Some rework will be needed to allow for fast_install | |
9012 | # before this can be enabled. | |
9013 | hardcode_into_libs=yes | |
9014 | ||
9015 | # Append ld.so.conf contents to the search path | |
9016 | if test -f /etc/ld.so.conf; then | |
9017 | 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' ' '` | |
9018 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9019 | fi | |
9020 | ||
9021 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9022 | # powerpc, because MkLinux only supported shared libraries with the | |
9023 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9024 | # most powerpc-linux boxes support dynamic linking these days and | |
9025 | # people can always --disable-shared, the test was removed, and we | |
9026 | # assume the GNU/Linux dynamic linker is in use. | |
9027 | dynamic_linker='GNU/Linux ld.so' | |
9028 | ;; | |
9029 | ||
9030 | netbsdelf*-gnu) | |
9031 | version_type=linux | |
9032 | need_lib_prefix=no | |
9033 | need_version=no | |
9034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9035 | soname_spec='${libname}${release}${shared_ext}$major' | |
9036 | shlibpath_var=LD_LIBRARY_PATH | |
9037 | shlibpath_overrides_runpath=no | |
9038 | hardcode_into_libs=yes | |
9039 | dynamic_linker='NetBSD ld.elf_so' | |
9040 | ;; | |
9041 | ||
9042 | netbsd*) | |
9043 | version_type=sunos | |
9044 | need_lib_prefix=no | |
9045 | need_version=no | |
9046 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9049 | dynamic_linker='NetBSD (a.out) ld.so' | |
9050 | else | |
9051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9052 | soname_spec='${libname}${release}${shared_ext}$major' | |
9053 | dynamic_linker='NetBSD ld.elf_so' | |
9054 | fi | |
9055 | shlibpath_var=LD_LIBRARY_PATH | |
9056 | shlibpath_overrides_runpath=yes | |
9057 | hardcode_into_libs=yes | |
9058 | ;; | |
9059 | ||
9060 | newsos6) | |
9061 | version_type=linux | |
9062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9063 | shlibpath_var=LD_LIBRARY_PATH | |
9064 | shlibpath_overrides_runpath=yes | |
9065 | ;; | |
9066 | ||
9067 | *nto* | *qnx*) | |
9068 | version_type=qnx | |
9069 | need_lib_prefix=no | |
9070 | need_version=no | |
9071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9072 | soname_spec='${libname}${release}${shared_ext}$major' | |
9073 | shlibpath_var=LD_LIBRARY_PATH | |
9074 | shlibpath_overrides_runpath=no | |
9075 | hardcode_into_libs=yes | |
9076 | dynamic_linker='ldqnx.so' | |
9077 | ;; | |
9078 | ||
9079 | openbsd*) | |
9080 | version_type=sunos | |
9081 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9082 | need_lib_prefix=no | |
9083 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9084 | case $host_os in | |
9085 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9086 | *) need_version=no ;; | |
9087 | esac | |
9088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9089 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9090 | shlibpath_var=LD_LIBRARY_PATH | |
9091 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9092 | case $host_os in | |
9093 | openbsd2.[89] | openbsd2.[89].*) | |
9094 | shlibpath_overrides_runpath=no | |
9095 | ;; | |
9096 | *) | |
9097 | shlibpath_overrides_runpath=yes | |
9098 | ;; | |
9099 | esac | |
9100 | else | |
9101 | shlibpath_overrides_runpath=yes | |
9102 | fi | |
9103 | ;; | |
9104 | ||
9105 | os2*) | |
9106 | libname_spec='$name' | |
9107 | shrext_cmds=".dll" | |
9108 | need_lib_prefix=no | |
9109 | library_names_spec='$libname${shared_ext} $libname.a' | |
9110 | dynamic_linker='OS/2 ld.exe' | |
9111 | shlibpath_var=LIBPATH | |
9112 | ;; | |
9113 | ||
9114 | osf3* | osf4* | osf5*) | |
9115 | version_type=osf | |
9116 | need_lib_prefix=no | |
9117 | need_version=no | |
9118 | soname_spec='${libname}${release}${shared_ext}$major' | |
9119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9120 | shlibpath_var=LD_LIBRARY_PATH | |
9121 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9122 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9123 | ;; | |
9124 | ||
9125 | rdos*) | |
9126 | dynamic_linker=no | |
9127 | ;; | |
9128 | ||
9129 | solaris*) | |
9130 | version_type=linux | |
9131 | need_lib_prefix=no | |
9132 | need_version=no | |
9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9134 | soname_spec='${libname}${release}${shared_ext}$major' | |
9135 | shlibpath_var=LD_LIBRARY_PATH | |
9136 | shlibpath_overrides_runpath=yes | |
9137 | hardcode_into_libs=yes | |
9138 | # ldd complains unless libraries are executable | |
9139 | postinstall_cmds='chmod +x $lib' | |
9140 | ;; | |
9141 | ||
9142 | sunos4*) | |
9143 | version_type=sunos | |
9144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9145 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9146 | shlibpath_var=LD_LIBRARY_PATH | |
9147 | shlibpath_overrides_runpath=yes | |
9148 | if test "$with_gnu_ld" = yes; then | |
9149 | need_lib_prefix=no | |
9150 | fi | |
9151 | need_version=yes | |
9152 | ;; | |
9153 | ||
9154 | sysv4 | sysv4.3*) | |
9155 | version_type=linux | |
9156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9157 | soname_spec='${libname}${release}${shared_ext}$major' | |
9158 | shlibpath_var=LD_LIBRARY_PATH | |
9159 | case $host_vendor in | |
9160 | sni) | |
9161 | shlibpath_overrides_runpath=no | |
9162 | need_lib_prefix=no | |
9163 | runpath_var=LD_RUN_PATH | |
9164 | ;; | |
9165 | siemens) | |
9166 | need_lib_prefix=no | |
9167 | ;; | |
9168 | motorola) | |
9169 | need_lib_prefix=no | |
9170 | need_version=no | |
9171 | shlibpath_overrides_runpath=no | |
9172 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9173 | ;; | |
9174 | esac | |
9175 | ;; | |
9176 | ||
9177 | sysv4*MP*) | |
9178 | if test -d /usr/nec ;then | |
9179 | version_type=linux | |
9180 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9181 | soname_spec='$libname${shared_ext}.$major' | |
9182 | shlibpath_var=LD_LIBRARY_PATH | |
9183 | fi | |
9184 | ;; | |
9185 | ||
9186 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9187 | version_type=freebsd-elf | |
9188 | need_lib_prefix=no | |
9189 | need_version=no | |
9190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9191 | soname_spec='${libname}${release}${shared_ext}$major' | |
9192 | shlibpath_var=LD_LIBRARY_PATH | |
9193 | shlibpath_overrides_runpath=yes | |
9194 | hardcode_into_libs=yes | |
9195 | if test "$with_gnu_ld" = yes; then | |
9196 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9197 | else | |
9198 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9199 | case $host_os in | |
9200 | sco3.2v5*) | |
9201 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9202 | ;; | |
9203 | esac | |
9204 | fi | |
9205 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9206 | ;; | |
9207 | ||
9208 | tpf*) | |
9209 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9210 | version_type=linux | |
9211 | need_lib_prefix=no | |
9212 | need_version=no | |
9213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9214 | shlibpath_var=LD_LIBRARY_PATH | |
9215 | shlibpath_overrides_runpath=no | |
9216 | hardcode_into_libs=yes | |
9217 | ;; | |
9218 | ||
9219 | uts4*) | |
9220 | version_type=linux | |
9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9222 | soname_spec='${libname}${release}${shared_ext}$major' | |
9223 | shlibpath_var=LD_LIBRARY_PATH | |
9224 | ;; | |
9225 | ||
9226 | *) | |
9227 | dynamic_linker=no | |
9228 | ;; | |
9229 | esac | |
9230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9231 | $as_echo "$dynamic_linker" >&6; } | |
9232 | test "$dynamic_linker" = no && can_build_shared=no | |
9233 | ||
9234 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9235 | if test "$GCC" = yes; then | |
9236 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9237 | fi | |
9238 | ||
9239 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9240 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9241 | fi | |
9242 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9243 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9244 | fi | |
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 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9333 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9334 | hardcode_action= | |
9335 | if test -n "$hardcode_libdir_flag_spec" || | |
9336 | test -n "$runpath_var" || | |
9337 | test "X$hardcode_automatic" = "Xyes" ; then | |
9338 | ||
9339 | # We can hardcode non-existent directories. | |
9340 | if test "$hardcode_direct" != no && | |
9341 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9342 | # have to relink, otherwise we might link with an installed library | |
9343 | # when we should be linking with a yet-to-be-installed one | |
9344 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9345 | test "$hardcode_minus_L" != no; then | |
9346 | # Linking always hardcodes the temporary library directory. | |
9347 | hardcode_action=relink | |
9348 | else | |
9349 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9350 | hardcode_action=immediate | |
9351 | fi | |
9352 | else | |
9353 | # We cannot hardcode anything, or else we can only hardcode existing | |
9354 | # directories. | |
9355 | hardcode_action=unsupported | |
9356 | fi | |
9357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9358 | $as_echo "$hardcode_action" >&6; } | |
9359 | ||
9360 | if test "$hardcode_action" = relink || | |
9361 | test "$inherit_rpath" = yes; then | |
9362 | # Fast installation is not supported | |
9363 | enable_fast_install=no | |
9364 | elif test "$shlibpath_overrides_runpath" = yes || | |
9365 | test "$enable_shared" = no; then | |
9366 | # Fast installation is not necessary | |
9367 | enable_fast_install=needless | |
9368 | fi | |
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | if test "x$enable_dlopen" != xyes; then | |
9376 | enable_dlopen=unknown | |
9377 | enable_dlopen_self=unknown | |
9378 | enable_dlopen_self_static=unknown | |
9379 | else | |
9380 | lt_cv_dlopen=no | |
9381 | lt_cv_dlopen_libs= | |
9382 | ||
9383 | case $host_os in | |
9384 | beos*) | |
9385 | lt_cv_dlopen="load_add_on" | |
9386 | lt_cv_dlopen_libs= | |
9387 | lt_cv_dlopen_self=yes | |
9388 | ;; | |
9389 | ||
9390 | mingw* | pw32* | cegcc*) | |
9391 | lt_cv_dlopen="LoadLibrary" | |
9392 | lt_cv_dlopen_libs= | |
9393 | ;; | |
9394 | ||
9395 | cygwin*) | |
9396 | lt_cv_dlopen="dlopen" | |
9397 | lt_cv_dlopen_libs= | |
9398 | ;; | |
9399 | ||
9400 | darwin*) | |
9401 | # if libdl is installed we need to link against it | |
9402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9403 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9404 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9405 | $as_echo_n "(cached) " >&6 | |
9406 | else | |
9407 | ac_check_lib_save_LIBS=$LIBS | |
9408 | LIBS="-ldl $LIBS" | |
9409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9410 | /* end confdefs.h. */ | |
9411 | ||
9412 | /* Override any GCC internal prototype to avoid an error. | |
9413 | Use char because int might match the return type of a GCC | |
9414 | builtin and then its argument prototype would still apply. */ | |
9415 | #ifdef __cplusplus | |
9416 | extern "C" | |
9417 | #endif | |
9418 | char dlopen (); | |
9419 | int | |
9420 | main () | |
9421 | { | |
9422 | return dlopen (); | |
9423 | ; | |
9424 | return 0; | |
9425 | } | |
9426 | _ACEOF | |
9427 | if ac_fn_c_try_link "$LINENO"; then : | |
9428 | ac_cv_lib_dl_dlopen=yes | |
9429 | else | |
9430 | ac_cv_lib_dl_dlopen=no | |
9431 | fi | |
9432 | rm -f core conftest.err conftest.$ac_objext \ | |
9433 | conftest$ac_exeext conftest.$ac_ext | |
9434 | LIBS=$ac_check_lib_save_LIBS | |
9435 | fi | |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9437 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9438 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9439 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9440 | else | |
9441 | ||
9442 | lt_cv_dlopen="dyld" | |
9443 | lt_cv_dlopen_libs= | |
9444 | lt_cv_dlopen_self=yes | |
9445 | ||
9446 | fi | |
9447 | ||
9448 | ;; | |
9449 | ||
9450 | *) | |
9451 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9452 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9453 | lt_cv_dlopen="shl_load" | |
9454 | else | |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9456 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9457 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9458 | $as_echo_n "(cached) " >&6 | |
9459 | else | |
9460 | ac_check_lib_save_LIBS=$LIBS | |
9461 | LIBS="-ldld $LIBS" | |
9462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9463 | /* end confdefs.h. */ | |
9464 | ||
9465 | /* Override any GCC internal prototype to avoid an error. | |
9466 | Use char because int might match the return type of a GCC | |
9467 | builtin and then its argument prototype would still apply. */ | |
9468 | #ifdef __cplusplus | |
9469 | extern "C" | |
9470 | #endif | |
9471 | char shl_load (); | |
9472 | int | |
9473 | main () | |
9474 | { | |
9475 | return shl_load (); | |
9476 | ; | |
9477 | return 0; | |
9478 | } | |
9479 | _ACEOF | |
9480 | if ac_fn_c_try_link "$LINENO"; then : | |
9481 | ac_cv_lib_dld_shl_load=yes | |
9482 | else | |
9483 | ac_cv_lib_dld_shl_load=no | |
9484 | fi | |
9485 | rm -f core conftest.err conftest.$ac_objext \ | |
9486 | conftest$ac_exeext conftest.$ac_ext | |
9487 | LIBS=$ac_check_lib_save_LIBS | |
9488 | fi | |
9489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9490 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9491 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9492 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9493 | else | |
9494 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9495 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9496 | lt_cv_dlopen="dlopen" | |
9497 | else | |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9499 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9500 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9501 | $as_echo_n "(cached) " >&6 | |
9502 | else | |
9503 | ac_check_lib_save_LIBS=$LIBS | |
9504 | LIBS="-ldl $LIBS" | |
9505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9506 | /* end confdefs.h. */ | |
9507 | ||
9508 | /* Override any GCC internal prototype to avoid an error. | |
9509 | Use char because int might match the return type of a GCC | |
9510 | builtin and then its argument prototype would still apply. */ | |
9511 | #ifdef __cplusplus | |
9512 | extern "C" | |
9513 | #endif | |
9514 | char dlopen (); | |
9515 | int | |
9516 | main () | |
9517 | { | |
9518 | return dlopen (); | |
9519 | ; | |
9520 | return 0; | |
9521 | } | |
9522 | _ACEOF | |
9523 | if ac_fn_c_try_link "$LINENO"; then : | |
9524 | ac_cv_lib_dl_dlopen=yes | |
9525 | else | |
9526 | ac_cv_lib_dl_dlopen=no | |
9527 | fi | |
9528 | rm -f core conftest.err conftest.$ac_objext \ | |
9529 | conftest$ac_exeext conftest.$ac_ext | |
9530 | LIBS=$ac_check_lib_save_LIBS | |
9531 | fi | |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9533 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9534 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9535 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9536 | else | |
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9538 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9539 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9540 | $as_echo_n "(cached) " >&6 | |
9541 | else | |
9542 | ac_check_lib_save_LIBS=$LIBS | |
9543 | LIBS="-lsvld $LIBS" | |
9544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9545 | /* end confdefs.h. */ | |
9546 | ||
9547 | /* Override any GCC internal prototype to avoid an error. | |
9548 | Use char because int might match the return type of a GCC | |
9549 | builtin and then its argument prototype would still apply. */ | |
9550 | #ifdef __cplusplus | |
9551 | extern "C" | |
9552 | #endif | |
9553 | char dlopen (); | |
9554 | int | |
9555 | main () | |
9556 | { | |
9557 | return dlopen (); | |
9558 | ; | |
9559 | return 0; | |
9560 | } | |
9561 | _ACEOF | |
9562 | if ac_fn_c_try_link "$LINENO"; then : | |
9563 | ac_cv_lib_svld_dlopen=yes | |
9564 | else | |
9565 | ac_cv_lib_svld_dlopen=no | |
9566 | fi | |
9567 | rm -f core conftest.err conftest.$ac_objext \ | |
9568 | conftest$ac_exeext conftest.$ac_ext | |
9569 | LIBS=$ac_check_lib_save_LIBS | |
9570 | fi | |
9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9572 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9573 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9574 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9575 | else | |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9577 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9578 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9579 | $as_echo_n "(cached) " >&6 | |
9580 | else | |
9581 | ac_check_lib_save_LIBS=$LIBS | |
9582 | LIBS="-ldld $LIBS" | |
9583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9584 | /* end confdefs.h. */ | |
9585 | ||
9586 | /* Override any GCC internal prototype to avoid an error. | |
9587 | Use char because int might match the return type of a GCC | |
9588 | builtin and then its argument prototype would still apply. */ | |
9589 | #ifdef __cplusplus | |
9590 | extern "C" | |
9591 | #endif | |
9592 | char dld_link (); | |
9593 | int | |
9594 | main () | |
9595 | { | |
9596 | return dld_link (); | |
9597 | ; | |
9598 | return 0; | |
9599 | } | |
9600 | _ACEOF | |
9601 | if ac_fn_c_try_link "$LINENO"; then : | |
9602 | ac_cv_lib_dld_dld_link=yes | |
9603 | else | |
9604 | ac_cv_lib_dld_dld_link=no | |
9605 | fi | |
9606 | rm -f core conftest.err conftest.$ac_objext \ | |
9607 | conftest$ac_exeext conftest.$ac_ext | |
9608 | LIBS=$ac_check_lib_save_LIBS | |
9609 | fi | |
9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9611 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9612 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9613 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9614 | fi | |
9615 | ||
9616 | ||
9617 | fi | |
9618 | ||
9619 | ||
9620 | fi | |
9621 | ||
9622 | ||
9623 | fi | |
9624 | ||
9625 | ||
9626 | fi | |
9627 | ||
9628 | ||
9629 | fi | |
9630 | ||
9631 | ;; | |
9632 | esac | |
9633 | ||
9634 | if test "x$lt_cv_dlopen" != xno; then | |
9635 | enable_dlopen=yes | |
9636 | else | |
9637 | enable_dlopen=no | |
9638 | fi | |
9639 | ||
9640 | case $lt_cv_dlopen in | |
9641 | dlopen) | |
9642 | save_CPPFLAGS="$CPPFLAGS" | |
9643 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9644 | ||
9645 | save_LDFLAGS="$LDFLAGS" | |
9646 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9647 | ||
9648 | save_LIBS="$LIBS" | |
9649 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9650 | ||
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9652 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9653 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9654 | $as_echo_n "(cached) " >&6 | |
9655 | else | |
9656 | if test "$cross_compiling" = yes; then : | |
9657 | lt_cv_dlopen_self=cross | |
9658 | else | |
9659 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9660 | lt_status=$lt_dlunknown | |
9661 | cat > conftest.$ac_ext <<_LT_EOF | |
e9c9a47c | 9662 | #line 9662 "configure" |
9c60689e DWT |
9663 | #include "confdefs.h" |
9664 | ||
9665 | #if HAVE_DLFCN_H | |
9666 | #include <dlfcn.h> | |
9667 | #endif | |
9668 | ||
9669 | #include <stdio.h> | |
9670 | ||
9671 | #ifdef RTLD_GLOBAL | |
9672 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9673 | #else | |
9674 | # ifdef DL_GLOBAL | |
9675 | # define LT_DLGLOBAL DL_GLOBAL | |
9676 | # else | |
9677 | # define LT_DLGLOBAL 0 | |
9678 | # endif | |
9679 | #endif | |
9680 | ||
9681 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9682 | find out it does not work in some platform. */ | |
9683 | #ifndef LT_DLLAZY_OR_NOW | |
9684 | # ifdef RTLD_LAZY | |
9685 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9686 | # else | |
9687 | # ifdef DL_LAZY | |
9688 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9689 | # else | |
9690 | # ifdef RTLD_NOW | |
9691 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9692 | # else | |
9693 | # ifdef DL_NOW | |
9694 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9695 | # else | |
9696 | # define LT_DLLAZY_OR_NOW 0 | |
9697 | # endif | |
9698 | # endif | |
9699 | # endif | |
9700 | # endif | |
9701 | #endif | |
9702 | ||
9703 | void fnord() { int i=42;} | |
9704 | int main () | |
9705 | { | |
9706 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9707 | int status = $lt_dlunknown; | |
9708 | ||
9709 | if (self) | |
9710 | { | |
9711 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9712 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9713 | /* dlclose (self); */ | |
9714 | } | |
9715 | else | |
9716 | puts (dlerror ()); | |
9717 | ||
9718 | return status; | |
9719 | } | |
9720 | _LT_EOF | |
9721 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9722 | (eval $ac_link) 2>&5 | |
9723 | ac_status=$? | |
9724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9725 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9726 | (./conftest; exit; ) >&5 2>/dev/null | |
9727 | lt_status=$? | |
9728 | case x$lt_status in | |
9729 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9730 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9731 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9732 | esac | |
9733 | else : | |
9734 | # compilation failed | |
9735 | lt_cv_dlopen_self=no | |
9736 | fi | |
9737 | fi | |
9738 | rm -fr conftest* | |
9739 | ||
9740 | ||
9741 | fi | |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9743 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9744 | ||
9745 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9746 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9748 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9749 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9750 | $as_echo_n "(cached) " >&6 | |
9751 | else | |
9752 | if test "$cross_compiling" = yes; then : | |
9753 | lt_cv_dlopen_self_static=cross | |
9754 | else | |
9755 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9756 | lt_status=$lt_dlunknown | |
9757 | cat > conftest.$ac_ext <<_LT_EOF | |
e9c9a47c | 9758 | #line 9758 "configure" |
9c60689e DWT |
9759 | #include "confdefs.h" |
9760 | ||
9761 | #if HAVE_DLFCN_H | |
9762 | #include <dlfcn.h> | |
9763 | #endif | |
9764 | ||
9765 | #include <stdio.h> | |
9766 | ||
9767 | #ifdef RTLD_GLOBAL | |
9768 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9769 | #else | |
9770 | # ifdef DL_GLOBAL | |
9771 | # define LT_DLGLOBAL DL_GLOBAL | |
9772 | # else | |
9773 | # define LT_DLGLOBAL 0 | |
9774 | # endif | |
9775 | #endif | |
9776 | ||
9777 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9778 | find out it does not work in some platform. */ | |
9779 | #ifndef LT_DLLAZY_OR_NOW | |
9780 | # ifdef RTLD_LAZY | |
9781 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9782 | # else | |
9783 | # ifdef DL_LAZY | |
9784 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9785 | # else | |
9786 | # ifdef RTLD_NOW | |
9787 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9788 | # else | |
9789 | # ifdef DL_NOW | |
9790 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9791 | # else | |
9792 | # define LT_DLLAZY_OR_NOW 0 | |
9793 | # endif | |
9794 | # endif | |
9795 | # endif | |
9796 | # endif | |
9797 | #endif | |
9798 | ||
9799 | void fnord() { int i=42;} | |
9800 | int main () | |
9801 | { | |
9802 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9803 | int status = $lt_dlunknown; | |
9804 | ||
9805 | if (self) | |
9806 | { | |
9807 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9808 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9809 | /* dlclose (self); */ | |
9810 | } | |
9811 | else | |
9812 | puts (dlerror ()); | |
9813 | ||
9814 | return status; | |
9815 | } | |
9816 | _LT_EOF | |
9817 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9818 | (eval $ac_link) 2>&5 | |
9819 | ac_status=$? | |
9820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9821 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9822 | (./conftest; exit; ) >&5 2>/dev/null | |
9823 | lt_status=$? | |
9824 | case x$lt_status in | |
9825 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9826 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9827 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9828 | esac | |
9829 | else : | |
9830 | # compilation failed | |
9831 | lt_cv_dlopen_self_static=no | |
9832 | fi | |
9833 | fi | |
9834 | rm -fr conftest* | |
9835 | ||
9836 | ||
9837 | fi | |
9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9839 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9840 | fi | |
9841 | ||
9842 | CPPFLAGS="$save_CPPFLAGS" | |
9843 | LDFLAGS="$save_LDFLAGS" | |
9844 | LIBS="$save_LIBS" | |
9845 | ;; | |
9846 | esac | |
9847 | ||
9848 | case $lt_cv_dlopen_self in | |
9849 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9850 | *) enable_dlopen_self=unknown ;; | |
9851 | esac | |
9852 | ||
9853 | case $lt_cv_dlopen_self_static in | |
9854 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9855 | *) enable_dlopen_self_static=unknown ;; | |
9856 | esac | |
9857 | fi | |
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | striplib= | |
9876 | old_striplib= | |
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9878 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9879 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9880 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9881 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9883 | $as_echo "yes" >&6; } | |
9884 | else | |
9885 | # FIXME - insert some real tests, host_os isn't really good enough | |
9886 | case $host_os in | |
9887 | darwin*) | |
9888 | if test -n "$STRIP" ; then | |
9889 | striplib="$STRIP -x" | |
9890 | old_striplib="$STRIP -S" | |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9892 | $as_echo "yes" >&6; } | |
9893 | else | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9895 | $as_echo "no" >&6; } | |
9896 | fi | |
9897 | ;; | |
9898 | *) | |
9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9900 | $as_echo "no" >&6; } | |
9901 | ;; | |
9902 | esac | |
9903 | fi | |
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | # Report which library types will actually be built | |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9918 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9920 | $as_echo "$can_build_shared" >&6; } | |
9921 | ||
9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9923 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9924 | test "$can_build_shared" = "no" && enable_shared=no | |
9925 | ||
9926 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9927 | # are all built from PIC. | |
9928 | case $host_os in | |
9929 | aix3*) | |
9930 | test "$enable_shared" = yes && enable_static=no | |
9931 | if test -n "$RANLIB"; then | |
9932 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9933 | postinstall_cmds='$RANLIB $lib' | |
9934 | fi | |
9935 | ;; | |
9936 | ||
9937 | aix[4-9]*) | |
9938 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9939 | test "$enable_shared" = yes && enable_static=no | |
9940 | fi | |
9941 | ;; | |
9942 | esac | |
9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9944 | $as_echo "$enable_shared" >&6; } | |
9945 | ||
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9947 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9948 | # Make sure either enable_shared or enable_static is yes. | |
9949 | test "$enable_shared" = yes || enable_static=yes | |
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9951 | $as_echo "$enable_static" >&6; } | |
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | fi | |
9957 | ac_ext=c | |
9958 | ac_cpp='$CPP $CPPFLAGS' | |
9959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9962 | ||
9963 | CC="$lt_save_CC" | |
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ac_config_commands="$ac_config_commands libtool" | |
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | # Only expand once: | |
9983 | ||
9984 | ||
3fd51f51 DWT |
9985 | |
9986 | ||
9987 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9988 | if test -n "$ac_tool_prefix"; then | |
9989 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9990 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9992 | $as_echo_n "checking for $ac_word... " >&6; } | |
9993 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
9994 | $as_echo_n "(cached) " >&6 | |
9995 | else | |
9996 | case $PKG_CONFIG in | |
9997 | [\\/]* | ?:[\\/]*) | |
9998 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9999 | ;; | |
10000 | *) | |
10001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10002 | for as_dir in $PATH | |
10003 | do | |
10004 | IFS=$as_save_IFS | |
10005 | test -z "$as_dir" && as_dir=. | |
10006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10008 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10010 | break 2 | |
10011 | fi | |
10012 | done | |
10013 | done | |
10014 | IFS=$as_save_IFS | |
10015 | ||
10016 | ;; | |
10017 | esac | |
10018 | fi | |
10019 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10020 | if test -n "$PKG_CONFIG"; then | |
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10022 | $as_echo "$PKG_CONFIG" >&6; } | |
10023 | else | |
10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10025 | $as_echo "no" >&6; } | |
10026 | fi | |
10027 | ||
10028 | ||
10029 | fi | |
10030 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10031 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10032 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10033 | set dummy pkg-config; ac_word=$2 | |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10035 | $as_echo_n "checking for $ac_word... " >&6; } | |
10036 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10037 | $as_echo_n "(cached) " >&6 | |
10038 | else | |
10039 | case $ac_pt_PKG_CONFIG in | |
10040 | [\\/]* | ?:[\\/]*) | |
10041 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10042 | ;; | |
10043 | *) | |
10044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10045 | for as_dir in $PATH | |
10046 | do | |
10047 | IFS=$as_save_IFS | |
10048 | test -z "$as_dir" && as_dir=. | |
10049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10051 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10053 | break 2 | |
10054 | fi | |
10055 | done | |
10056 | done | |
10057 | IFS=$as_save_IFS | |
10058 | ||
10059 | ;; | |
10060 | esac | |
10061 | fi | |
10062 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10063 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10065 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10066 | else | |
10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10068 | $as_echo "no" >&6; } | |
10069 | fi | |
10070 | ||
10071 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10072 | PKG_CONFIG="" | |
10073 | else | |
10074 | case $cross_compiling:$ac_tool_warned in | |
10075 | yes:) | |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10078 | ac_tool_warned=yes ;; | |
10079 | esac | |
10080 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10081 | fi | |
10082 | else | |
10083 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10084 | fi | |
10085 | ||
10086 | fi | |
10087 | if test -n "$PKG_CONFIG"; then | |
10088 | _pkg_min_version=0.22 | |
10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10090 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10091 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10093 | $as_echo "yes" >&6; } | |
10094 | else | |
10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10096 | $as_echo "no" >&6; } | |
10097 | PKG_CONFIG="" | |
10098 | fi | |
10099 | ||
632b71ea DWT |
10100 | fi |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
10102 | $as_echo_n "checking for GNU make... " >&6; } | |
10103 | if test "${_cv_gnu_make_command+set}" = set; then : | |
10104 | $as_echo_n "(cached) " >&6 | |
10105 | else | |
10106 | _cv_gnu_make_command='' ; | |
10107 | for a in "$MAKE" make gmake gnumake ; do | |
10108 | if test -z "$a" ; then continue ; fi ; | |
10109 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10110 | _cv_gnu_make_command=$a ; | |
10111 | break; | |
10112 | fi | |
10113 | done ; | |
10114 | ||
10115 | fi | |
10116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
10117 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
10118 | if test "x$_cv_gnu_make_command" != "x" ; then | |
10119 | ifGNUmake='' ; | |
10120 | else | |
10121 | ifGNUmake='#' ; | |
10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
10123 | $as_echo "\"Not found\"" >&6; }; | |
10124 | fi | |
10125 | ||
10126 | ||
790e5246 DWT |
10127 | GMAKE=$_cv_gnu_make_command |
10128 | ||
10129 | if test "x$GMAKE" = x; then : | |
632b71ea | 10130 | as_fn_error "You need GNU make" "$LINENO" 5 |
3fd51f51 | 10131 | fi |
e9c9a47c DWT |
10132 | for ac_prog in bash |
10133 | do | |
10134 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10135 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10137 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10138 | if test "${ac_cv_path__BASH+set}" = set; then : |
9c60689e DWT |
10139 | $as_echo_n "(cached) " >&6 |
10140 | else | |
e9c9a47c DWT |
10141 | case $_BASH in |
10142 | [\\/]* | ?:[\\/]*) | |
10143 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
10144 | ;; | |
10145 | *) | |
10146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10147 | for as_dir in $PATH |
10148 | do | |
10149 | IFS=$as_save_IFS | |
10150 | test -z "$as_dir" && as_dir=. | |
10151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10152 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10153 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10155 | break 2 | |
10156 | fi | |
10157 | done | |
10158 | done | |
10159 | IFS=$as_save_IFS | |
10160 | ||
e9c9a47c DWT |
10161 | ;; |
10162 | esac | |
9c60689e | 10163 | fi |
e9c9a47c DWT |
10164 | _BASH=$ac_cv_path__BASH |
10165 | if test -n "$_BASH"; then | |
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
10167 | $as_echo "$_BASH" >&6; } | |
9c60689e DWT |
10168 | else |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10170 | $as_echo "no" >&6; } | |
10171 | fi | |
10172 | ||
10173 | ||
e9c9a47c DWT |
10174 | test -n "$_BASH" && break |
10175 | done | |
10176 | ||
10177 | if test "x$_BASH" = x; then : | |
10178 | as_fn_error "You need GNU bash" "$LINENO" 5 | |
9c60689e | 10179 | fi |
e9c9a47c | 10180 | for ac_prog in time |
9c60689e DWT |
10181 | do |
10182 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10183 | set dummy $ac_prog; ac_word=$2 | |
10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10185 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10186 | if test "${ac_cv_path_TIME+set}" = set; then : |
9c60689e DWT |
10187 | $as_echo_n "(cached) " >&6 |
10188 | else | |
e9c9a47c DWT |
10189 | case $TIME in |
10190 | [\\/]* | ?:[\\/]*) | |
10191 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
10192 | ;; | |
10193 | *) | |
10194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10195 | for as_dir in $PATH |
10196 | do | |
10197 | IFS=$as_save_IFS | |
10198 | test -z "$as_dir" && as_dir=. | |
10199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10201 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10203 | break 2 | |
10204 | fi | |
10205 | done | |
10206 | done | |
10207 | IFS=$as_save_IFS | |
10208 | ||
e9c9a47c DWT |
10209 | ;; |
10210 | esac | |
9c60689e | 10211 | fi |
e9c9a47c DWT |
10212 | TIME=$ac_cv_path_TIME |
10213 | if test -n "$TIME"; then | |
10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
10215 | $as_echo "$TIME" >&6; } | |
9c60689e DWT |
10216 | else |
10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10218 | $as_echo "no" >&6; } | |
10219 | fi | |
10220 | ||
10221 | ||
e9c9a47c | 10222 | test -n "$TIME" && break |
9c60689e DWT |
10223 | done |
10224 | ||
e9c9a47c DWT |
10225 | |
10226 | ||
10227 | ||
10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
10229 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
10230 | if test -z "$BISON"; then | |
10231 | ac_path_BISON_found=false | |
10232 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10234 | for as_dir in $PATH | |
10235 | do | |
10236 | IFS=$as_save_IFS | |
10237 | test -z "$as_dir" && as_dir=. | |
10238 | for ac_prog in bison; do | |
10239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10240 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
10241 | { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue | |
10242 | as_awk_strverscmp=' | |
10243 | # Use only awk features that work with 7th edition Unix awk (1978). | |
10244 | # My, what an old awk you have, Mr. Solaris! | |
10245 | END { | |
10246 | while (length(v1) && length(v2)) { | |
10247 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
10248 | # Normally this is a single character, but if v1 and v2 contain digits, | |
10249 | # compare them as integers and fractions as strverscmp does. | |
10250 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
10251 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
10252 | # and advance v1 and v2 past the leading digit strings. | |
10253 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
10254 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
10255 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
10256 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
10257 | if (d1 ~ /^0/) { | |
10258 | if (d2 ~ /^0/) { | |
10259 | # Compare two fractions. | |
10260 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
10261 | d1 = substr(d1, 2); len1-- | |
10262 | d2 = substr(d2, 2); len2-- | |
10263 | } | |
10264 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
10265 | # The two components differ in length, and the common prefix | |
10266 | # contains only leading zeros. Consider the longer to be less. | |
10267 | d1 = -len1 | |
10268 | d2 = -len2 | |
10269 | } else { | |
10270 | # Otherwise, compare as strings. | |
10271 | d1 = "x" d1 | |
10272 | d2 = "x" d2 | |
10273 | } | |
10274 | } else { | |
10275 | # A fraction is less than an integer. | |
10276 | exit 1 | |
10277 | } | |
10278 | } else { | |
10279 | if (d2 ~ /^0/) { | |
10280 | # An integer is greater than a fraction. | |
10281 | exit 2 | |
10282 | } else { | |
10283 | # Compare two integers. | |
10284 | d1 += 0 | |
10285 | d2 += 0 | |
10286 | } | |
10287 | } | |
10288 | } else { | |
10289 | # The normal case, without worrying about digits. | |
10290 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
10291 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
10292 | } | |
10293 | if (d1 < d2) exit 1 | |
10294 | if (d1 > d2) exit 2 | |
10295 | } | |
10296 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
10297 | # which mishandles some comparisons of empty strings to integers. | |
10298 | if (length(v2)) exit 1 | |
10299 | if (length(v1)) exit 2 | |
10300 | } | |
10301 | ' | |
10302 | as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
10303 | as_arg_v2=2.3 | |
10304 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10305 | case $? in #( | |
10306 | 1) : | |
10307 | ;; #( | |
10308 | 0) : | |
10309 | ac_cv_path_BISON=$ac_path_BISON | |
10310 | ;; #( | |
10311 | 2) : | |
10312 | ac_cv_path_BISON=$ac_path_BISON | |
10313 | ;; #( | |
10314 | *) : | |
10315 | ;; | |
9c60689e | 10316 | esac |
e9c9a47c DWT |
10317 | |
10318 | $ac_path_BISON_found && break 3 | |
10319 | done | |
10320 | done | |
10321 | done | |
10322 | IFS=$as_save_IFS | |
10323 | if test -z "$ac_cv_path_BISON"; then | |
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10325 | $as_echo "not found" >&6; } | |
10326 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 | |
9c60689e | 10327 | |
9c60689e | 10328 | fi |
e9c9a47c DWT |
10329 | else |
10330 | ac_cv_path_BISON=$BISON | |
9c60689e | 10331 | fi |
9c60689e | 10332 | |
e9c9a47c | 10333 | BISON=$ac_cv_path_BISON |
9c60689e | 10334 | |
e9c9a47c DWT |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10336 | $as_echo "$BISON" >&6; } | |
9c60689e | 10337 | |
9c60689e | 10338 | |
9c60689e | 10339 | |
e9c9a47c DWT |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 |
10341 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
10342 | if test -z "$FLEX"; then | |
10343 | ac_path_FLEX_found=false | |
10344 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10346 | for as_dir in $PATH |
10347 | do | |
10348 | IFS=$as_save_IFS | |
10349 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10350 | for ac_prog in flex; do |
9c60689e | 10351 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10352 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
10353 | { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue | |
10354 | as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10355 | as_arg_v2=2.5.33 | |
10356 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10357 | case $? in #( | |
10358 | 1) : | |
10359 | ;; #( | |
10360 | 0) : | |
10361 | ac_cv_path_FLEX=$ac_path_FLEX | |
10362 | ;; #( | |
10363 | 2) : | |
10364 | ac_cv_path_FLEX=$ac_path_FLEX | |
10365 | ;; #( | |
10366 | *) : | |
10367 | ;; | |
10368 | esac | |
10369 | ||
10370 | $ac_path_FLEX_found && break 3 | |
10371 | done | |
10372 | done | |
9c60689e DWT |
10373 | done |
10374 | IFS=$as_save_IFS | |
e9c9a47c DWT |
10375 | if test -z "$ac_cv_path_FLEX"; then |
10376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10377 | $as_echo "not found" >&6; } | |
10378 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
9c60689e | 10379 | |
e9c9a47c | 10380 | fi |
9c60689e | 10381 | else |
e9c9a47c | 10382 | ac_cv_path_FLEX=$FLEX |
9c60689e DWT |
10383 | fi |
10384 | ||
e9c9a47c | 10385 | FLEX=$ac_cv_path_FLEX |
9c60689e | 10386 | |
e9c9a47c DWT |
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10388 | $as_echo "$FLEX" >&6; } | |
10389 | ||
10390 | ||
10391 | ||
10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
10393 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
10394 | if test -z "$GPERF"; then | |
10395 | ac_path_GPERF_found=false | |
10396 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10398 | for as_dir in $PATH |
10399 | do | |
10400 | IFS=$as_save_IFS | |
10401 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10402 | for ac_prog in gperf; do |
9c60689e | 10403 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10404 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" |
10405 | { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue | |
10406 | as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10407 | as_arg_v2=3.0.3 | |
10408 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10409 | case $? in #( | |
10410 | 1) : | |
10411 | ;; #( | |
10412 | 0) : | |
10413 | ac_cv_path_GPERF=$ac_path_GPERF | |
10414 | ;; #( | |
10415 | 2) : | |
10416 | ac_cv_path_GPERF=$ac_path_GPERF | |
10417 | ;; #( | |
10418 | *) : | |
10419 | ;; | |
10420 | esac | |
10421 | ||
10422 | $ac_path_GPERF_found && break 3 | |
10423 | done | |
10424 | done | |
9c60689e DWT |
10425 | done |
10426 | IFS=$as_save_IFS | |
e9c9a47c DWT |
10427 | if test -z "$ac_cv_path_GPERF"; then |
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10429 | $as_echo "not found" >&6; } | |
10430 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
9c60689e | 10431 | |
e9c9a47c | 10432 | fi |
9c60689e | 10433 | else |
e9c9a47c | 10434 | ac_cv_path_GPERF=$GPERF |
9c60689e DWT |
10435 | fi |
10436 | ||
e9c9a47c | 10437 | GPERF=$ac_cv_path_GPERF |
9c60689e | 10438 | |
e9c9a47c DWT |
10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
10440 | $as_echo "$GPERF" >&6; } | |
3fd51f51 | 10441 | |
e9c9a47c DWT |
10442 | # Find a good install program. We prefer a C program (faster), |
10443 | # so one script is as good as another. But avoid the broken or | |
10444 | # incompatible versions: | |
10445 | # SysV /etc/install, /usr/sbin/install | |
10446 | # SunOS /usr/etc/install | |
10447 | # IRIX /sbin/install | |
10448 | # AIX /bin/install | |
10449 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
10450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
10451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
10452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
10453 | # OS/2's system install, which has a completely different semantic | |
10454 | # ./install, which can be erroneously created by make from ./install.sh. | |
10455 | # Reject install programs that cannot install multiple files. | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
10457 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
10458 | if test -z "$INSTALL"; then | |
10459 | if test "${ac_cv_path_install+set}" = set; then : | |
10460 | $as_echo_n "(cached) " >&6 | |
10461 | else | |
10462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10463 | for as_dir in $PATH | |
10464 | do | |
10465 | IFS=$as_save_IFS | |
10466 | test -z "$as_dir" && as_dir=. | |
10467 | # Account for people who put trailing slashes in PATH elements. | |
10468 | case $as_dir/ in #(( | |
10469 | ./ | .// | /[cC]/* | \ | |
10470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10471 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
10472 | /usr/ucb/* ) ;; | |
10473 | *) | |
10474 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10475 | # Don't use installbsd from OSF since it installs stuff as root | |
10476 | # by default. | |
10477 | for ac_prog in ginstall scoinst install; do | |
10478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10479 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
10480 | if test $ac_prog = install && | |
10481 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10482 | # AIX install. It has an incompatible calling convention. | |
10483 | : | |
10484 | elif test $ac_prog = install && | |
10485 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10486 | # program-specific install script used by HP pwplus--don't use. | |
10487 | : | |
10488 | else | |
10489 | rm -rf conftest.one conftest.two conftest.dir | |
10490 | echo one > conftest.one | |
10491 | echo two > conftest.two | |
10492 | mkdir conftest.dir | |
10493 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
10494 | test -s conftest.one && test -s conftest.two && | |
10495 | test -s conftest.dir/conftest.one && | |
10496 | test -s conftest.dir/conftest.two | |
10497 | then | |
10498 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
10499 | break 3 | |
10500 | fi | |
10501 | fi | |
10502 | fi | |
10503 | done | |
10504 | done | |
10505 | ;; | |
10506 | esac | |
10507 | ||
10508 | done | |
10509 | IFS=$as_save_IFS | |
10510 | ||
10511 | rm -rf conftest.one conftest.two conftest.dir | |
10512 | ||
10513 | fi | |
10514 | if test "${ac_cv_path_install+set}" = set; then | |
10515 | INSTALL=$ac_cv_path_install | |
10516 | else | |
10517 | # As a last resort, use the slow shell script. Don't cache a | |
10518 | # value for INSTALL within a source directory, because that will | |
10519 | # break other packages using the cache if that directory is | |
10520 | # removed, or if the value is a relative name. | |
10521 | INSTALL=$ac_install_sh | |
10522 | fi | |
10523 | fi | |
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
10525 | $as_echo "$INSTALL" >&6; } | |
10526 | ||
10527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10528 | # It thinks the first close brace ends the variable substitution. | |
10529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10530 | ||
10531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
10532 | ||
10533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
10534 | ||
10535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar" >&5 | |
10536 | $as_echo_n "checking for GNU tar... " >&6; } | |
10537 | if test -z "$GNUTAR"; then | |
10538 | ac_path_GNUTAR_found=false | |
10539 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10541 | for as_dir in $PATH | |
10542 | do | |
10543 | IFS=$as_save_IFS | |
10544 | test -z "$as_dir" && as_dir=. | |
10545 | for ac_prog in tar gtar gnutar; do | |
10546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10547 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
10548 | { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue | |
10549 | ||
10550 | if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then : | |
10551 | ||
10552 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10553 | ||
10554 | fi | |
10555 | ||
10556 | $ac_path_GNUTAR_found && break 3 | |
10557 | done | |
10558 | done | |
10559 | done | |
10560 | IFS=$as_save_IFS | |
10561 | if test -z "$ac_cv_path_GNUTAR"; then | |
10562 | : | |
10563 | fi | |
10564 | else | |
10565 | ac_cv_path_GNUTAR=$GNUTAR | |
10566 | fi | |
10567 | ||
10568 | if test "x$ac_cv_path_GNUTAR" != x; then : | |
10569 | ||
10570 | GNUTAR=$ac_cv_path_GNUTAR | |
10571 | ||
10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 | |
10573 | $as_echo "$GNUTAR" >&6; } | |
10574 | ||
10575 | else | |
10576 | ||
10577 | GNUTAR=: | |
10578 | ||
10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
10580 | $as_echo "not found" >&6; } | |
10581 | ||
10582 | fi | |
10583 | ac_ext=cpp | |
10584 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10588 | if test -z "$CXX"; then | |
10589 | if test -n "$CCC"; then | |
10590 | CXX=$CCC | |
10591 | else | |
10592 | if test -n "$ac_tool_prefix"; then | |
10593 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10594 | do | |
10595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10598 | $as_echo_n "checking for $ac_word... " >&6; } | |
10599 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10600 | $as_echo_n "(cached) " >&6 | |
10601 | else | |
10602 | if test -n "$CXX"; then | |
10603 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10604 | else | |
10605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10606 | for as_dir in $PATH | |
10607 | do | |
10608 | IFS=$as_save_IFS | |
10609 | test -z "$as_dir" && as_dir=. | |
10610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10612 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10614 | break 2 | |
10615 | fi | |
10616 | done | |
10617 | done | |
10618 | IFS=$as_save_IFS | |
10619 | ||
10620 | fi | |
10621 | fi | |
10622 | CXX=$ac_cv_prog_CXX | |
10623 | if test -n "$CXX"; then | |
10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10625 | $as_echo "$CXX" >&6; } | |
10626 | else | |
10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10628 | $as_echo "no" >&6; } | |
10629 | fi | |
10630 | ||
10631 | ||
10632 | test -n "$CXX" && break | |
10633 | done | |
10634 | fi | |
10635 | if test -z "$CXX"; then | |
10636 | ac_ct_CXX=$CXX | |
10637 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10638 | do | |
10639 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10640 | set dummy $ac_prog; ac_word=$2 | |
10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10642 | $as_echo_n "checking for $ac_word... " >&6; } | |
10643 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10644 | $as_echo_n "(cached) " >&6 | |
10645 | else | |
10646 | if test -n "$ac_ct_CXX"; then | |
10647 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10648 | else | |
10649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10650 | for as_dir in $PATH | |
10651 | do | |
10652 | IFS=$as_save_IFS | |
10653 | test -z "$as_dir" && as_dir=. | |
10654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10656 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10658 | break 2 | |
10659 | fi | |
10660 | done | |
10661 | done | |
10662 | IFS=$as_save_IFS | |
10663 | ||
10664 | fi | |
10665 | fi | |
10666 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10667 | if test -n "$ac_ct_CXX"; then | |
10668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10669 | $as_echo "$ac_ct_CXX" >&6; } | |
10670 | else | |
10671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10672 | $as_echo "no" >&6; } | |
10673 | fi | |
10674 | ||
10675 | ||
10676 | test -n "$ac_ct_CXX" && break | |
10677 | done | |
10678 | ||
10679 | if test "x$ac_ct_CXX" = x; then | |
10680 | CXX="g++" | |
10681 | else | |
10682 | case $cross_compiling:$ac_tool_warned in | |
10683 | yes:) | |
10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10685 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10686 | ac_tool_warned=yes ;; | |
10687 | esac | |
10688 | CXX=$ac_ct_CXX | |
10689 | fi | |
10690 | fi | |
10691 | ||
10692 | fi | |
10693 | fi | |
10694 | # Provide some information about the compiler. | |
10695 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10696 | set X $ac_compile | |
10697 | ac_compiler=$2 | |
10698 | for ac_option in --version -v -V -qversion; do | |
10699 | { { ac_try="$ac_compiler $ac_option >&5" | |
10700 | case "(($ac_try" in | |
10701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10702 | *) ac_try_echo=$ac_try;; | |
10703 | esac | |
47aaa820 DWT |
10704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10705 | $as_echo "$ac_try_echo"; } >&5 | |
10706 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10707 | ac_status=$? | |
10708 | if test -s conftest.err; then | |
10709 | sed '10a\ | |
10710 | ... rest of stderr output deleted ... | |
10711 | 10q' conftest.err >conftest.er1 | |
10712 | cat conftest.er1 >&5 | |
3530897b | 10713 | fi |
47aaa820 DWT |
10714 | rm -f conftest.er1 conftest.err |
10715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10716 | test $ac_status = 0; } | |
3530897b | 10717 | done |
3530897b | 10718 | |
47aaa820 DWT |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10720 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10721 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10722 | $as_echo_n "(cached) " >&6 | |
10723 | else | |
10724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10725 | /* end confdefs.h. */ | |
10726 | ||
10727 | int | |
10728 | main () | |
10729 | { | |
10730 | #ifndef __GNUC__ | |
10731 | choke me | |
10732 | #endif | |
10733 | ||
10734 | ; | |
10735 | return 0; | |
10736 | } | |
10737 | _ACEOF | |
10738 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10739 | ac_compiler_gnu=yes | |
10740 | else | |
10741 | ac_compiler_gnu=no | |
3530897b | 10742 | fi |
47aaa820 DWT |
10743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10744 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10745 | ||
3530897b | 10746 | fi |
47aaa820 DWT |
10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10748 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10749 | if test $ac_compiler_gnu = yes; then | |
10750 | GXX=yes | |
3530897b | 10751 | else |
47aaa820 | 10752 | GXX= |
3530897b | 10753 | fi |
47aaa820 DWT |
10754 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10755 | ac_save_CXXFLAGS=$CXXFLAGS | |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10757 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10758 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10759 | $as_echo_n "(cached) " >&6 | |
10760 | else | |
10761 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10762 | ac_cxx_werror_flag=yes | |
10763 | ac_cv_prog_cxx_g=no | |
10764 | CXXFLAGS="-g" | |
10765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10766 | /* end confdefs.h. */ | |
3530897b | 10767 | |
47aaa820 DWT |
10768 | int |
10769 | main () | |
10770 | { | |
3530897b | 10771 | |
47aaa820 DWT |
10772 | ; |
10773 | return 0; | |
10774 | } | |
10775 | _ACEOF | |
10776 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10777 | ac_cv_prog_cxx_g=yes | |
10778 | else | |
10779 | CXXFLAGS="" | |
10780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10781 | /* end confdefs.h. */ | |
9c60689e | 10782 | |
47aaa820 DWT |
10783 | int |
10784 | main () | |
10785 | { | |
9c60689e | 10786 | |
47aaa820 DWT |
10787 | ; |
10788 | return 0; | |
10789 | } | |
10790 | _ACEOF | |
10791 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10792 | |
47aaa820 DWT |
10793 | else |
10794 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10795 | CXXFLAGS="-g" | |
10796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10797 | /* end confdefs.h. */ | |
9c60689e | 10798 | |
47aaa820 DWT |
10799 | int |
10800 | main () | |
10801 | { | |
9c60689e | 10802 | |
47aaa820 DWT |
10803 | ; |
10804 | return 0; | |
10805 | } | |
10806 | _ACEOF | |
10807 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10808 | ac_cv_prog_cxx_g=yes | |
10809 | fi | |
10810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10811 | fi | |
10812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10813 | fi | |
10814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10815 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10816 | fi | |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10818 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10819 | if test "$ac_test_CXXFLAGS" = set; then | |
10820 | CXXFLAGS=$ac_save_CXXFLAGS | |
10821 | elif test $ac_cv_prog_cxx_g = yes; then | |
10822 | if test "$GXX" = yes; then | |
10823 | CXXFLAGS="-g -O2" | |
10824 | else | |
10825 | CXXFLAGS="-g" | |
10826 | fi | |
10827 | else | |
10828 | if test "$GXX" = yes; then | |
10829 | CXXFLAGS="-O2" | |
10830 | else | |
10831 | CXXFLAGS= | |
10832 | fi | |
10833 | fi | |
10834 | ac_ext=c | |
10835 | ac_cpp='$CPP $CPPFLAGS' | |
10836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10839 | |
e9c9a47c DWT |
10840 | |
10841 | ac_ext=cpp | |
47aaa820 DWT |
10842 | ac_cpp='$CXXCPP $CPPFLAGS' |
10843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e9c9a47c DWT |
10846 | if test -z "$CXX"; then |
10847 | if test -n "$CCC"; then | |
10848 | CXX=$CCC | |
10849 | else | |
10850 | if test -n "$ac_tool_prefix"; then | |
10851 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10852 | do | |
10853 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10854 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10856 | $as_echo_n "checking for $ac_word... " >&6; } | |
10857 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10858 | $as_echo_n "(cached) " >&6 | |
10859 | else | |
10860 | if test -n "$CXX"; then | |
10861 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10862 | else | |
10863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10864 | for as_dir in $PATH | |
47aaa820 | 10865 | do |
e9c9a47c DWT |
10866 | IFS=$as_save_IFS |
10867 | test -z "$as_dir" && as_dir=. | |
10868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10870 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10872 | break 2 | |
10873 | fi | |
10874 | done | |
10875 | done | |
10876 | IFS=$as_save_IFS | |
9c60689e | 10877 | |
9c60689e | 10878 | fi |
47aaa820 | 10879 | fi |
e9c9a47c DWT |
10880 | CXX=$ac_cv_prog_CXX |
10881 | if test -n "$CXX"; then | |
10882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10883 | $as_echo "$CXX" >&6; } | |
10884 | else | |
10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10886 | $as_echo "no" >&6; } | |
47aaa820 | 10887 | fi |
9c60689e | 10888 | |
9c60689e | 10889 | |
e9c9a47c DWT |
10890 | test -n "$CXX" && break |
10891 | done | |
47aaa820 | 10892 | fi |
e9c9a47c DWT |
10893 | if test -z "$CXX"; then |
10894 | ac_ct_CXX=$CXX | |
10895 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10896 | do | |
10897 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10898 | set dummy $ac_prog; ac_word=$2 | |
10899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10900 | $as_echo_n "checking for $ac_word... " >&6; } | |
10901 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10902 | $as_echo_n "(cached) " >&6 | |
9c60689e | 10903 | else |
e9c9a47c DWT |
10904 | if test -n "$ac_ct_CXX"; then |
10905 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10906 | else | |
10907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10908 | for as_dir in $PATH | |
47aaa820 | 10909 | do |
e9c9a47c DWT |
10910 | IFS=$as_save_IFS |
10911 | test -z "$as_dir" && as_dir=. | |
10912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10914 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10916 | break 2 | |
10917 | fi | |
10918 | done | |
10919 | done | |
10920 | IFS=$as_save_IFS | |
9c60689e | 10921 | |
e9c9a47c DWT |
10922 | fi |
10923 | fi | |
10924 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10925 | if test -n "$ac_ct_CXX"; then | |
10926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10927 | $as_echo "$ac_ct_CXX" >&6; } | |
47aaa820 | 10928 | else |
e9c9a47c DWT |
10929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10930 | $as_echo "no" >&6; } | |
9c60689e | 10931 | fi |
9c60689e | 10932 | |
e9c9a47c DWT |
10933 | |
10934 | test -n "$ac_ct_CXX" && break | |
10935 | done | |
10936 | ||
10937 | if test "x$ac_ct_CXX" = x; then | |
10938 | CXX="g++" | |
10939 | else | |
10940 | case $cross_compiling:$ac_tool_warned in | |
10941 | yes:) | |
10942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10943 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10944 | ac_tool_warned=yes ;; | |
10945 | esac | |
10946 | CXX=$ac_ct_CXX | |
10947 | fi | |
9c60689e DWT |
10948 | fi |
10949 | ||
e9c9a47c DWT |
10950 | fi |
10951 | fi | |
10952 | # Provide some information about the compiler. | |
10953 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10954 | set X $ac_compile | |
10955 | ac_compiler=$2 | |
10956 | for ac_option in --version -v -V -qversion; do | |
10957 | { { ac_try="$ac_compiler $ac_option >&5" | |
10958 | case "(($ac_try" in | |
10959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10960 | *) ac_try_echo=$ac_try;; | |
10961 | esac | |
10962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10963 | $as_echo "$ac_try_echo"; } >&5 | |
10964 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10965 | ac_status=$? | |
10966 | if test -s conftest.err; then | |
10967 | sed '10a\ | |
10968 | ... rest of stderr output deleted ... | |
10969 | 10q' conftest.err >conftest.er1 | |
10970 | cat conftest.er1 >&5 | |
10971 | fi | |
10972 | rm -f conftest.er1 conftest.err | |
10973 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10974 | test $ac_status = 0; } | |
9c60689e DWT |
10975 | done |
10976 | ||
e9c9a47c DWT |
10977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10978 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10979 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10980 | $as_echo_n "(cached) " >&6 | |
9c60689e | 10981 | else |
e9c9a47c DWT |
10982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10983 | /* end confdefs.h. */ | |
9c60689e | 10984 | |
e9c9a47c DWT |
10985 | int |
10986 | main () | |
10987 | { | |
10988 | #ifndef __GNUC__ | |
10989 | choke me | |
10990 | #endif | |
9c60689e | 10991 | |
e9c9a47c DWT |
10992 | ; |
10993 | return 0; | |
10994 | } | |
10995 | _ACEOF | |
10996 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10997 | ac_compiler_gnu=yes | |
47aaa820 | 10998 | else |
e9c9a47c | 10999 | ac_compiler_gnu=no |
47aaa820 | 11000 | fi |
e9c9a47c DWT |
11001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11002 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11003 | ||
11004 | fi | |
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11006 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
11007 | if test $ac_compiler_gnu = yes; then | |
11008 | GXX=yes | |
11009 | else | |
11010 | GXX= | |
11011 | fi | |
11012 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11013 | ac_save_CXXFLAGS=$CXXFLAGS | |
11014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
11015 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
11016 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
11017 | $as_echo_n "(cached) " >&6 | |
11018 | else | |
11019 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
11020 | ac_cxx_werror_flag=yes | |
11021 | ac_cv_prog_cxx_g=no | |
11022 | CXXFLAGS="-g" | |
11023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11024 | /* end confdefs.h. */ | |
11025 | ||
11026 | int | |
11027 | main () | |
11028 | { | |
11029 | ||
11030 | ; | |
11031 | return 0; | |
11032 | } | |
11033 | _ACEOF | |
11034 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11035 | ac_cv_prog_cxx_g=yes | |
11036 | else | |
11037 | CXXFLAGS="" | |
11038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11039 | /* end confdefs.h. */ | |
11040 | ||
11041 | int | |
11042 | main () | |
11043 | { | |
11044 | ||
11045 | ; | |
11046 | return 0; | |
11047 | } | |
11048 | _ACEOF | |
11049 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11050 | ||
11051 | else | |
11052 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11053 | CXXFLAGS="-g" | |
11054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11055 | /* end confdefs.h. */ | |
11056 | ||
11057 | int | |
11058 | main () | |
11059 | { | |
11060 | ||
11061 | ; | |
11062 | return 0; | |
11063 | } | |
11064 | _ACEOF | |
11065 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11066 | ac_cv_prog_cxx_g=yes | |
11067 | fi | |
11068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11069 | fi | |
11070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11071 | fi | |
11072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11073 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11074 | fi | |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
11076 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
11077 | if test "$ac_test_CXXFLAGS" = set; then | |
11078 | CXXFLAGS=$ac_save_CXXFLAGS | |
11079 | elif test $ac_cv_prog_cxx_g = yes; then | |
11080 | if test "$GXX" = yes; then | |
11081 | CXXFLAGS="-g -O2" | |
11082 | else | |
11083 | CXXFLAGS="-g" | |
11084 | fi | |
11085 | else | |
11086 | if test "$GXX" = yes; then | |
11087 | CXXFLAGS="-O2" | |
11088 | else | |
11089 | CXXFLAGS= | |
11090 | fi | |
11091 | fi | |
11092 | ac_ext=c | |
11093 | ac_cpp='$CPP $CPPFLAGS' | |
11094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11097 | ||
11098 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11099 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11100 | (test "X$CXX" != "Xg++"))) ; then | |
11101 | ac_ext=cpp | |
11102 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11107 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11108 | if test -z "$CXXCPP"; then | |
11109 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
11110 | $as_echo_n "(cached) " >&6 | |
11111 | else | |
11112 | # Double quotes because CXXCPP needs to be expanded | |
11113 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11114 | do | |
11115 | ac_preproc_ok=false | |
11116 | for ac_cxx_preproc_warn_flag in '' yes | |
11117 | do | |
11118 | # Use a header file that comes with gcc, so configuring glibc | |
11119 | # with a fresh cross-compiler works. | |
11120 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11121 | # <limits.h> exists even on freestanding compilers. | |
11122 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11123 | # not just through cpp. "Syntax error" is here to catch this case. | |
11124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11125 | /* end confdefs.h. */ | |
11126 | #ifdef __STDC__ | |
11127 | # include <limits.h> | |
11128 | #else | |
11129 | # include <assert.h> | |
11130 | #endif | |
11131 | Syntax error | |
11132 | _ACEOF | |
11133 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11134 | ||
11135 | else | |
11136 | # Broken: fails on valid input. | |
11137 | continue | |
11138 | fi | |
11139 | rm -f conftest.err conftest.$ac_ext | |
11140 | ||
11141 | # OK, works on sane cases. Now check whether nonexistent headers | |
11142 | # can be detected and how. | |
11143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11144 | /* end confdefs.h. */ | |
11145 | #include <ac_nonexistent.h> | |
11146 | _ACEOF | |
11147 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11148 | # Broken: success on invalid input. | |
11149 | continue | |
11150 | else | |
11151 | # Passes both tests. | |
11152 | ac_preproc_ok=: | |
11153 | break | |
11154 | fi | |
11155 | rm -f conftest.err conftest.$ac_ext | |
11156 | ||
11157 | done | |
11158 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11159 | rm -f conftest.err conftest.$ac_ext | |
11160 | if $ac_preproc_ok; then : | |
11161 | break | |
11162 | fi | |
11163 | ||
11164 | done | |
11165 | ac_cv_prog_CXXCPP=$CXXCPP | |
11166 | ||
11167 | fi | |
11168 | CXXCPP=$ac_cv_prog_CXXCPP | |
11169 | else | |
11170 | ac_cv_prog_CXXCPP=$CXXCPP | |
11171 | fi | |
11172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11173 | $as_echo "$CXXCPP" >&6; } | |
11174 | ac_preproc_ok=false | |
11175 | for ac_cxx_preproc_warn_flag in '' yes | |
11176 | do | |
11177 | # Use a header file that comes with gcc, so configuring glibc | |
11178 | # with a fresh cross-compiler works. | |
11179 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11180 | # <limits.h> exists even on freestanding compilers. | |
11181 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11182 | # not just through cpp. "Syntax error" is here to catch this case. | |
11183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11184 | /* end confdefs.h. */ | |
11185 | #ifdef __STDC__ | |
11186 | # include <limits.h> | |
11187 | #else | |
11188 | # include <assert.h> | |
11189 | #endif | |
11190 | Syntax error | |
11191 | _ACEOF | |
11192 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11193 | ||
11194 | else | |
11195 | # Broken: fails on valid input. | |
11196 | continue | |
11197 | fi | |
11198 | rm -f conftest.err conftest.$ac_ext | |
11199 | ||
11200 | # OK, works on sane cases. Now check whether nonexistent headers | |
11201 | # can be detected and how. | |
11202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11203 | /* end confdefs.h. */ | |
11204 | #include <ac_nonexistent.h> | |
11205 | _ACEOF | |
11206 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11207 | # Broken: success on invalid input. | |
11208 | continue | |
11209 | else | |
11210 | # Passes both tests. | |
11211 | ac_preproc_ok=: | |
11212 | break | |
11213 | fi | |
11214 | rm -f conftest.err conftest.$ac_ext | |
11215 | ||
11216 | done | |
11217 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11218 | rm -f conftest.err conftest.$ac_ext | |
11219 | if $ac_preproc_ok; then : | |
11220 | ||
11221 | else | |
11222 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11223 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11224 | _lt_caught_CXX_error=yes; } | |
11225 | fi | |
11226 | ||
11227 | ac_ext=c | |
11228 | ac_cpp='$CPP $CPPFLAGS' | |
11229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11232 | ||
11233 | else | |
11234 | _lt_caught_CXX_error=yes | |
11235 | fi | |
11236 | ||
9c60689e | 11237 | |
9c60689e | 11238 | |
9c60689e | 11239 | |
9c60689e DWT |
11240 | ac_ext=cpp |
11241 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11242 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11243 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11244 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 11245 | |
47aaa820 DWT |
11246 | archive_cmds_need_lc_CXX=no |
11247 | allow_undefined_flag_CXX= | |
11248 | always_export_symbols_CXX=no | |
11249 | archive_expsym_cmds_CXX= | |
11250 | compiler_needs_object_CXX=no | |
11251 | export_dynamic_flag_spec_CXX= | |
11252 | hardcode_direct_CXX=no | |
11253 | hardcode_direct_absolute_CXX=no | |
11254 | hardcode_libdir_flag_spec_CXX= | |
11255 | hardcode_libdir_flag_spec_ld_CXX= | |
11256 | hardcode_libdir_separator_CXX= | |
11257 | hardcode_minus_L_CXX=no | |
11258 | hardcode_shlibpath_var_CXX=unsupported | |
11259 | hardcode_automatic_CXX=no | |
11260 | inherit_rpath_CXX=no | |
11261 | module_cmds_CXX= | |
11262 | module_expsym_cmds_CXX= | |
11263 | link_all_deplibs_CXX=unknown | |
11264 | old_archive_cmds_CXX=$old_archive_cmds | |
11265 | no_undefined_flag_CXX= | |
11266 | whole_archive_flag_spec_CXX= | |
11267 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 11268 | |
47aaa820 DWT |
11269 | # Source file extension for C++ test sources. |
11270 | ac_ext=cpp | |
9c60689e | 11271 | |
47aaa820 DWT |
11272 | # Object file extension for compiled C++ test sources. |
11273 | objext=o | |
11274 | objext_CXX=$objext | |
9c60689e | 11275 | |
47aaa820 DWT |
11276 | # No sense in running all these tests if we already determined that |
11277 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11278 | # are currently assumed to apply to all compilers on this platform, | |
11279 | # and will be corrupted by setting them based on a non-working compiler. | |
11280 | if test "$_lt_caught_CXX_error" != yes; then | |
11281 | # Code to be used in simple compile tests | |
11282 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 11283 | |
47aaa820 DWT |
11284 | # Code to be used in simple link tests |
11285 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 11286 | |
47aaa820 | 11287 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 11288 | |
9c60689e | 11289 | |
9c60689e | 11290 | |
9c60689e | 11291 | |
9c60689e | 11292 | |
9c60689e | 11293 | |
47aaa820 DWT |
11294 | # If no C compiler was specified, use CC. |
11295 | LTCC=${LTCC-"$CC"} | |
9c60689e | 11296 | |
47aaa820 DWT |
11297 | # If no C compiler flags were specified, use CFLAGS. |
11298 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 11299 | |
47aaa820 DWT |
11300 | # Allow CC to be a program name with arguments. |
11301 | compiler=$CC | |
9c60689e | 11302 | |
9c60689e | 11303 | |
47aaa820 DWT |
11304 | # save warnings/boilerplate of simple test code |
11305 | ac_outfile=conftest.$ac_objext | |
11306 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11307 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11308 | _lt_compiler_boilerplate=`cat conftest.err` | |
11309 | $RM conftest* | |
9c60689e | 11310 | |
47aaa820 DWT |
11311 | ac_outfile=conftest.$ac_objext |
11312 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11313 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11314 | _lt_linker_boilerplate=`cat conftest.err` | |
11315 | $RM -r conftest* | |
9c60689e | 11316 | |
9c60689e | 11317 | |
47aaa820 DWT |
11318 | # Allow CC to be a program name with arguments. |
11319 | lt_save_CC=$CC | |
11320 | lt_save_LD=$LD | |
11321 | lt_save_GCC=$GCC | |
11322 | GCC=$GXX | |
11323 | lt_save_with_gnu_ld=$with_gnu_ld | |
11324 | lt_save_path_LD=$lt_cv_path_LD | |
11325 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11326 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 11327 | else |
47aaa820 | 11328 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 11329 | fi |
47aaa820 DWT |
11330 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11331 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 11332 | else |
47aaa820 | 11333 | $as_unset lt_cv_path_LD |
9c60689e | 11334 | fi |
47aaa820 DWT |
11335 | test -z "${LDCXX+set}" || LD=$LDCXX |
11336 | CC=${CXX-"c++"} | |
11337 | compiler=$CC | |
11338 | compiler_CXX=$CC | |
11339 | for cc_temp in $compiler""; do | |
11340 | case $cc_temp in | |
11341 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11342 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11343 | \-*) ;; | |
11344 | *) break;; | |
11345 | esac | |
11346 | done | |
11347 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
11348 | |
11349 | ||
47aaa820 DWT |
11350 | if test -n "$compiler"; then |
11351 | # We don't want -fno-exception when compiling C++ code, so set the | |
11352 | # no_builtin_flag separately | |
11353 | if test "$GXX" = yes; then | |
11354 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11355 | else | |
11356 | lt_prog_compiler_no_builtin_flag_CXX= | |
11357 | fi | |
9c60689e | 11358 | |
47aaa820 DWT |
11359 | if test "$GXX" = yes; then |
11360 | # Set up default GNU C++ configuration | |
11361 | ||
11362 | ||
11363 | ||
11364 | # Check whether --with-gnu-ld was given. | |
11365 | if test "${with_gnu_ld+set}" = set; then : | |
11366 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 11367 | else |
47aaa820 | 11368 | with_gnu_ld=no |
9c60689e DWT |
11369 | fi |
11370 | ||
47aaa820 DWT |
11371 | ac_prog=ld |
11372 | if test "$GCC" = yes; then | |
11373 | # Check if gcc -print-prog-name=ld gives a path. | |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11375 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
11376 | case $host in | |
11377 | *-*-mingw*) | |
11378 | # gcc leaves a trailing carriage return which upsets mingw | |
11379 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11380 | *) | |
11381 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11382 | esac | |
11383 | case $ac_prog in | |
11384 | # Accept absolute paths. | |
11385 | [\\/]* | ?:[\\/]*) | |
11386 | re_direlt='/[^/][^/]*/\.\./' | |
11387 | # Canonicalize the pathname of ld | |
11388 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11389 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11390 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11391 | done | |
11392 | test -z "$LD" && LD="$ac_prog" | |
11393 | ;; | |
11394 | "") | |
11395 | # If it fails, then pretend we aren't using GCC. | |
11396 | ac_prog=ld | |
11397 | ;; | |
11398 | *) | |
11399 | # If it is relative, then search for the first ld in PATH. | |
11400 | with_gnu_ld=unknown | |
11401 | ;; | |
11402 | esac | |
11403 | elif test "$with_gnu_ld" = yes; then | |
11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11405 | $as_echo_n "checking for GNU ld... " >&6; } | |
11406 | else | |
11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11408 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 11409 | fi |
47aaa820 | 11410 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
11411 | $as_echo_n "(cached) " >&6 |
11412 | else | |
47aaa820 DWT |
11413 | if test -z "$LD"; then |
11414 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11415 | for ac_dir in $PATH; do | |
11416 | IFS="$lt_save_ifs" | |
11417 | test -z "$ac_dir" && ac_dir=. | |
11418 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11419 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11420 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11421 | # but apparently some variants of GNU ld only accept -v. | |
11422 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11423 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11424 | *GNU* | *'with BFD'*) | |
11425 | test "$with_gnu_ld" != no && break | |
11426 | ;; | |
11427 | *) | |
11428 | test "$with_gnu_ld" != yes && break | |
11429 | ;; | |
11430 | esac | |
11431 | fi | |
9c60689e | 11432 | done |
47aaa820 DWT |
11433 | IFS="$lt_save_ifs" |
11434 | else | |
11435 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11436 | fi |
11437 | fi | |
47aaa820 DWT |
11438 | |
11439 | LD="$lt_cv_path_LD" | |
11440 | if test -n "$LD"; then | |
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11442 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11443 | else |
11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11445 | $as_echo "no" >&6; } | |
11446 | fi | |
47aaa820 DWT |
11447 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11449 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11450 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11451 | $as_echo_n "(cached) " >&6 | |
11452 | else | |
11453 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11454 | case `$LD -v 2>&1 </dev/null` in | |
11455 | *GNU* | *'with BFD'*) | |
11456 | lt_cv_prog_gnu_ld=yes | |
11457 | ;; | |
11458 | *) | |
11459 | lt_cv_prog_gnu_ld=no | |
11460 | ;; | |
11461 | esac | |
11462 | fi | |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11464 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11465 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11466 | |
11467 | ||
9c60689e | 11468 | |
9c60689e | 11469 | |
9c60689e | 11470 | |
9c60689e | 11471 | |
9c60689e | 11472 | |
47aaa820 DWT |
11473 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11474 | # archiving commands below assume that GNU ld is being used. | |
11475 | if test "$with_gnu_ld" = yes; then | |
11476 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11477 | 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 | 11478 | |
47aaa820 DWT |
11479 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11480 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11481 | |
47aaa820 DWT |
11482 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11483 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11484 | # investigate it a little bit more. (MM) | |
11485 | wlarc='${wl}' | |
9c60689e | 11486 | |
47aaa820 DWT |
11487 | # ancient GNU ld didn't support --whole-archive et. al. |
11488 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11489 | $GREP 'no-whole-archive' > /dev/null; then | |
11490 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11491 | else | |
11492 | whole_archive_flag_spec_CXX= | |
11493 | fi | |
11494 | else | |
11495 | with_gnu_ld=no | |
11496 | wlarc= | |
11497 | ||
11498 | # A generic and very simple default shared library creation | |
11499 | # command for GNU C++ for the case where it uses the native | |
11500 | # linker, instead of GNU ld. If possible, this setting should | |
11501 | # overridden to take advantage of the native linker features on | |
11502 | # the platform it is being used on. | |
11503 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11504 | fi | |
11505 | ||
11506 | # Commands to make compiler produce verbose output that lists | |
11507 | # what "hidden" libraries, object files and flags are used when | |
11508 | # linking a shared library. | |
11509 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11510 | ||
11511 | else | |
11512 | GXX=no | |
11513 | with_gnu_ld=no | |
11514 | wlarc= | |
11515 | fi | |
11516 | ||
11517 | # PORTME: fill in a description of your system's C++ link characteristics | |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11519 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11520 | ld_shlibs_CXX=yes | |
11521 | case $host_os in | |
11522 | aix3*) | |
11523 | # FIXME: insert proper C++ library support | |
11524 | ld_shlibs_CXX=no | |
11525 | ;; | |
11526 | aix[4-9]*) | |
11527 | if test "$host_cpu" = ia64; then | |
11528 | # On IA64, the linker does run time linking by default, so we don't | |
11529 | # have to do anything special. | |
11530 | aix_use_runtimelinking=no | |
11531 | exp_sym_flag='-Bexport' | |
11532 | no_entry_flag="" | |
11533 | else | |
11534 | aix_use_runtimelinking=no | |
11535 | ||
11536 | # Test if we are trying to use run time linking or normal | |
11537 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11538 | # need to do runtime linking. | |
11539 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11540 | for ld_flag in $LDFLAGS; do | |
11541 | case $ld_flag in | |
11542 | *-brtl*) | |
11543 | aix_use_runtimelinking=yes | |
11544 | break | |
11545 | ;; | |
11546 | esac | |
11547 | done | |
11548 | ;; | |
11549 | esac | |
11550 | ||
11551 | exp_sym_flag='-bexport' | |
11552 | no_entry_flag='-bnoentry' | |
11553 | fi | |
11554 | ||
11555 | # When large executables or shared objects are built, AIX ld can | |
11556 | # have problems creating the table of contents. If linking a library | |
11557 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11558 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11559 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11560 | ||
11561 | archive_cmds_CXX='' | |
11562 | hardcode_direct_CXX=yes | |
11563 | hardcode_direct_absolute_CXX=yes | |
11564 | hardcode_libdir_separator_CXX=':' | |
11565 | link_all_deplibs_CXX=yes | |
11566 | file_list_spec_CXX='${wl}-f,' | |
11567 | ||
11568 | if test "$GXX" = yes; then | |
11569 | case $host_os in aix4.[012]|aix4.[012].*) | |
11570 | # We only want to do this on AIX 4.2 and lower, the check | |
11571 | # below for broken collect2 doesn't work under 4.3+ | |
11572 | collect2name=`${CC} -print-prog-name=collect2` | |
11573 | if test -f "$collect2name" && | |
11574 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11575 | then | |
11576 | # We have reworked collect2 | |
11577 | : | |
11578 | else | |
11579 | # We have old collect2 | |
11580 | hardcode_direct_CXX=unsupported | |
11581 | # It fails to find uninstalled libraries when the uninstalled | |
11582 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11583 | # to unsupported forces relinking | |
11584 | hardcode_minus_L_CXX=yes | |
11585 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11586 | hardcode_libdir_separator_CXX= | |
11587 | fi | |
11588 | esac | |
11589 | shared_flag='-shared' | |
11590 | if test "$aix_use_runtimelinking" = yes; then | |
11591 | shared_flag="$shared_flag "'${wl}-G' | |
11592 | fi | |
11593 | else | |
11594 | # not using gcc | |
11595 | if test "$host_cpu" = ia64; then | |
11596 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11597 | # chokes on -Wl,-G. The following line is correct: | |
11598 | shared_flag='-G' | |
11599 | else | |
11600 | if test "$aix_use_runtimelinking" = yes; then | |
11601 | shared_flag='${wl}-G' | |
11602 | else | |
11603 | shared_flag='${wl}-bM:SRE' | |
11604 | fi | |
11605 | fi | |
11606 | fi | |
11607 | ||
11608 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11609 | # It seems that -bexpall does not export symbols beginning with | |
11610 | # underscore (_), so it is better to generate a list of symbols to | |
11611 | # export. | |
11612 | always_export_symbols_CXX=yes | |
11613 | if test "$aix_use_runtimelinking" = yes; then | |
11614 | # Warning - without using the other runtime loading flags (-brtl), | |
11615 | # -berok will link without error, but may produce a broken library. | |
11616 | allow_undefined_flag_CXX='-berok' | |
11617 | # Determine the default libpath from the value encoded in an empty | |
11618 | # executable. | |
11619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11620 | /* end confdefs.h. */ |
11621 | ||
11622 | int | |
11623 | main () | |
11624 | { | |
11625 | ||
11626 | ; | |
11627 | return 0; | |
11628 | } | |
11629 | _ACEOF | |
47aaa820 | 11630 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11631 | |
47aaa820 DWT |
11632 | lt_aix_libpath_sed=' |
11633 | /Import File Strings/,/^$/ { | |
11634 | /^0/ { | |
11635 | s/^0 *\(.*\)$/\1/ | |
11636 | p | |
11637 | } | |
11638 | }' | |
11639 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11640 | # Check for a 64-bit object if we didn't find anything. | |
11641 | if test -z "$aix_libpath"; then | |
11642 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11643 | fi | |
11644 | fi | |
11645 | rm -f core conftest.err conftest.$ac_objext \ | |
11646 | conftest$ac_exeext conftest.$ac_ext | |
11647 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11648 | ||
11649 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11650 | ||
11651 | 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" | |
11652 | else | |
11653 | if test "$host_cpu" = ia64; then | |
11654 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11655 | allow_undefined_flag_CXX="-z nodefs" | |
11656 | 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" | |
11657 | else | |
11658 | # Determine the default libpath from the value encoded in an | |
11659 | # empty executable. | |
11660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11661 | /* end confdefs.h. */ |
11662 | ||
11663 | int | |
11664 | main () | |
11665 | { | |
11666 | ||
11667 | ; | |
11668 | return 0; | |
11669 | } | |
11670 | _ACEOF | |
47aaa820 | 11671 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11672 | |
47aaa820 DWT |
11673 | lt_aix_libpath_sed=' |
11674 | /Import File Strings/,/^$/ { | |
11675 | /^0/ { | |
11676 | s/^0 *\(.*\)$/\1/ | |
11677 | p | |
11678 | } | |
11679 | }' | |
11680 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11681 | # Check for a 64-bit object if we didn't find anything. | |
11682 | if test -z "$aix_libpath"; then | |
11683 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11684 | fi |
9c60689e | 11685 | fi |
47aaa820 DWT |
11686 | rm -f core conftest.err conftest.$ac_objext \ |
11687 | conftest$ac_exeext conftest.$ac_ext | |
11688 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11689 | |
47aaa820 DWT |
11690 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11691 | # Warning - without using the other run time loading flags, | |
11692 | # -berok will link without error, but may produce a broken library. | |
11693 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11694 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11695 | # Exported symbols can be pulled into shared objects from archives | |
11696 | whole_archive_flag_spec_CXX='$convenience' | |
11697 | archive_cmds_need_lc_CXX=yes | |
11698 | # This is similar to how AIX traditionally builds its shared | |
11699 | # libraries. | |
11700 | 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' | |
11701 | fi | |
11702 | fi | |
11703 | ;; | |
9c60689e | 11704 | |
47aaa820 DWT |
11705 | beos*) |
11706 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11707 | allow_undefined_flag_CXX=unsupported | |
11708 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11709 | # support --undefined. This deserves some investigation. FIXME | |
11710 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11711 | else | |
11712 | ld_shlibs_CXX=no | |
11713 | fi | |
11714 | ;; | |
9c60689e | 11715 | |
47aaa820 DWT |
11716 | chorus*) |
11717 | case $cc_basename in | |
11718 | *) | |
11719 | # FIXME: insert proper C++ library support | |
11720 | ld_shlibs_CXX=no | |
11721 | ;; | |
11722 | esac | |
11723 | ;; | |
9c60689e | 11724 | |
47aaa820 DWT |
11725 | cygwin* | mingw* | pw32* | cegcc*) |
11726 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11727 | # as there is no search path for DLLs. | |
11728 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11729 | allow_undefined_flag_CXX=unsupported | |
11730 | always_export_symbols_CXX=no | |
11731 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11732 | |
47aaa820 DWT |
11733 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11734 | 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' | |
11735 | # If the export-symbols file already is a .def file (1st line | |
11736 | # is EXPORTS), use it as is; otherwise, prepend... | |
11737 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11738 | cp $export_symbols $output_objdir/$soname.def; | |
11739 | else | |
11740 | echo EXPORTS > $output_objdir/$soname.def; | |
11741 | cat $export_symbols >> $output_objdir/$soname.def; | |
11742 | fi~ | |
11743 | $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' | |
11744 | else | |
11745 | ld_shlibs_CXX=no | |
11746 | fi | |
11747 | ;; | |
11748 | darwin* | rhapsody*) | |
9c60689e | 11749 | |
9c60689e | 11750 | |
47aaa820 DWT |
11751 | archive_cmds_need_lc_CXX=no |
11752 | hardcode_direct_CXX=no | |
11753 | hardcode_automatic_CXX=yes | |
11754 | hardcode_shlibpath_var_CXX=unsupported | |
11755 | whole_archive_flag_spec_CXX='' | |
11756 | link_all_deplibs_CXX=yes | |
11757 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11758 | case $cc_basename in | |
11759 | ifort*) _lt_dar_can_shared=yes ;; | |
11760 | *) _lt_dar_can_shared=$GCC ;; | |
11761 | esac | |
11762 | if test "$_lt_dar_can_shared" = "yes"; then | |
11763 | output_verbose_link_cmd=echo | |
11764 | 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}" | |
11765 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11766 | 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}" | |
11767 | 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}" | |
11768 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11769 | 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}" | |
11770 | 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}" | |
11771 | fi | |
9c60689e | 11772 | |
47aaa820 DWT |
11773 | else |
11774 | ld_shlibs_CXX=no | |
11775 | fi | |
9c60689e | 11776 | |
47aaa820 | 11777 | ;; |
9c60689e | 11778 | |
47aaa820 DWT |
11779 | dgux*) |
11780 | case $cc_basename in | |
11781 | ec++*) | |
11782 | # FIXME: insert proper C++ library support | |
11783 | ld_shlibs_CXX=no | |
11784 | ;; | |
11785 | ghcx*) | |
11786 | # Green Hills C++ Compiler | |
11787 | # FIXME: insert proper C++ library support | |
11788 | ld_shlibs_CXX=no | |
11789 | ;; | |
11790 | *) | |
11791 | # FIXME: insert proper C++ library support | |
11792 | ld_shlibs_CXX=no | |
11793 | ;; | |
11794 | esac | |
11795 | ;; | |
9c60689e | 11796 | |
47aaa820 DWT |
11797 | freebsd[12]*) |
11798 | # C++ shared libraries reported to be fairly broken before | |
11799 | # switch to ELF | |
11800 | ld_shlibs_CXX=no | |
11801 | ;; | |
9c60689e | 11802 | |
47aaa820 DWT |
11803 | freebsd-elf*) |
11804 | archive_cmds_need_lc_CXX=no | |
11805 | ;; | |
9c60689e | 11806 | |
47aaa820 DWT |
11807 | freebsd* | dragonfly*) |
11808 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11809 | # conventions | |
11810 | ld_shlibs_CXX=yes | |
11811 | ;; | |
9c60689e | 11812 | |
47aaa820 DWT |
11813 | gnu*) |
11814 | ;; | |
9c60689e | 11815 | |
47aaa820 DWT |
11816 | hpux9*) |
11817 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11818 | hardcode_libdir_separator_CXX=: | |
11819 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11820 | hardcode_direct_CXX=yes | |
11821 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11822 | # but as the default | |
11823 | # location of the library. | |
9c60689e | 11824 | |
47aaa820 DWT |
11825 | case $cc_basename in |
11826 | CC*) | |
11827 | # FIXME: insert proper C++ library support | |
11828 | ld_shlibs_CXX=no | |
11829 | ;; | |
11830 | aCC*) | |
11831 | 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' | |
11832 | # Commands to make compiler produce verbose output that lists | |
11833 | # what "hidden" libraries, object files and flags are used when | |
11834 | # linking a shared library. | |
11835 | # | |
11836 | # There doesn't appear to be a way to prevent this compiler from | |
11837 | # explicitly linking system object files so we need to strip them | |
11838 | # from the output so that they don't get included in the library | |
11839 | # dependencies. | |
11840 | 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' | |
11841 | ;; | |
11842 | *) | |
11843 | if test "$GXX" = yes; then | |
11844 | 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' | |
11845 | else | |
11846 | # FIXME: insert proper C++ library support | |
11847 | ld_shlibs_CXX=no | |
11848 | fi | |
11849 | ;; | |
11850 | esac | |
11851 | ;; | |
9c60689e | 11852 | |
47aaa820 DWT |
11853 | hpux10*|hpux11*) |
11854 | if test $with_gnu_ld = no; then | |
11855 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11856 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11857 | |
47aaa820 DWT |
11858 | case $host_cpu in |
11859 | hppa*64*|ia64*) | |
11860 | ;; | |
11861 | *) | |
11862 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11863 | ;; | |
11864 | esac | |
11865 | fi | |
11866 | case $host_cpu in | |
11867 | hppa*64*|ia64*) | |
11868 | hardcode_direct_CXX=no | |
11869 | hardcode_shlibpath_var_CXX=no | |
11870 | ;; | |
11871 | *) | |
11872 | hardcode_direct_CXX=yes | |
11873 | hardcode_direct_absolute_CXX=yes | |
11874 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11875 | # but as the default | |
11876 | # location of the library. | |
11877 | ;; | |
11878 | esac | |
9c60689e | 11879 | |
47aaa820 DWT |
11880 | case $cc_basename in |
11881 | CC*) | |
11882 | # FIXME: insert proper C++ library support | |
11883 | ld_shlibs_CXX=no | |
11884 | ;; | |
11885 | aCC*) | |
11886 | case $host_cpu in | |
11887 | hppa*64*) | |
11888 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11889 | ;; | |
11890 | ia64*) | |
11891 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11892 | ;; | |
11893 | *) | |
11894 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11895 | ;; | |
11896 | esac | |
11897 | # Commands to make compiler produce verbose output that lists | |
11898 | # what "hidden" libraries, object files and flags are used when | |
11899 | # linking a shared library. | |
11900 | # | |
11901 | # There doesn't appear to be a way to prevent this compiler from | |
11902 | # explicitly linking system object files so we need to strip them | |
11903 | # from the output so that they don't get included in the library | |
11904 | # dependencies. | |
11905 | 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' | |
11906 | ;; | |
11907 | *) | |
11908 | if test "$GXX" = yes; then | |
11909 | if test $with_gnu_ld = no; then | |
11910 | case $host_cpu in | |
11911 | hppa*64*) | |
11912 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11913 | ;; | |
11914 | ia64*) | |
11915 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11916 | ;; | |
11917 | *) | |
11918 | 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' | |
11919 | ;; | |
11920 | esac | |
11921 | fi | |
11922 | else | |
11923 | # FIXME: insert proper C++ library support | |
11924 | ld_shlibs_CXX=no | |
11925 | fi | |
11926 | ;; | |
11927 | esac | |
11928 | ;; | |
9c60689e | 11929 | |
47aaa820 DWT |
11930 | interix[3-9]*) |
11931 | hardcode_direct_CXX=no | |
11932 | hardcode_shlibpath_var_CXX=no | |
11933 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11934 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11935 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11936 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11937 | # default) and relocated if they conflict, which is a slow very memory | |
11938 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11939 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11940 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11941 | 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' | |
11942 | 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' | |
11943 | ;; | |
11944 | irix5* | irix6*) | |
11945 | case $cc_basename in | |
11946 | CC*) | |
11947 | # SGI C++ | |
11948 | 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 | 11949 | |
47aaa820 DWT |
11950 | # Archives containing C++ object files must be created using |
11951 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11952 | # necessary to make sure instantiated templates are included | |
11953 | # in the archive. | |
11954 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11955 | ;; | |
11956 | *) | |
11957 | if test "$GXX" = yes; then | |
11958 | if test "$with_gnu_ld" = no; then | |
11959 | 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' | |
11960 | else | |
11961 | 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' | |
11962 | fi | |
11963 | fi | |
11964 | link_all_deplibs_CXX=yes | |
11965 | ;; | |
11966 | esac | |
11967 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11968 | hardcode_libdir_separator_CXX=: | |
11969 | inherit_rpath_CXX=yes | |
11970 | ;; | |
9c60689e | 11971 | |
47aaa820 DWT |
11972 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
11973 | case $cc_basename in | |
11974 | KCC*) | |
11975 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11976 | |
47aaa820 DWT |
11977 | # KCC will only create a shared library if the output file |
11978 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11979 | # to its proper name (with version) after linking. | |
11980 | 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' | |
11981 | 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' | |
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 $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 | 11991 | |
47aaa820 DWT |
11992 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11993 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11994 | |
47aaa820 DWT |
11995 | # Archives containing C++ object files must be created using |
11996 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11997 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11998 | ;; | |
11999 | icpc* | ecpc* ) | |
12000 | # Intel C++ | |
12001 | with_gnu_ld=yes | |
12002 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12003 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12004 | # earlier do not add the objects themselves. | |
12005 | case `$CC -V 2>&1` in | |
12006 | *"Version 7."*) | |
12007 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12008 | 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' | |
12009 | ;; | |
12010 | *) # Version 8.0 or newer | |
12011 | tmp_idyn= | |
12012 | case $host_cpu in | |
12013 | ia64*) tmp_idyn=' -i_dynamic';; | |
12014 | esac | |
12015 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12016 | 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' | |
12017 | ;; | |
12018 | esac | |
12019 | archive_cmds_need_lc_CXX=no | |
12020 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12021 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12022 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12023 | ;; | |
12024 | pgCC* | pgcpp*) | |
12025 | # Portland Group C++ compiler | |
12026 | case `$CC -V` in | |
12027 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
12028 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12029 | rm -rf $tpldir~ | |
12030 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12031 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12032 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12033 | rm -rf $tpldir~ | |
12034 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12035 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12036 | $RANLIB $oldlib' | |
12037 | archive_cmds_CXX='tpldir=Template.dir~ | |
12038 | rm -rf $tpldir~ | |
12039 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12040 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12041 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12042 | rm -rf $tpldir~ | |
12043 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12044 | $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' | |
12045 | ;; | |
12046 | *) # Version 6 will use weak symbols | |
12047 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12048 | 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' | |
12049 | ;; | |
12050 | esac | |
9c60689e | 12051 | |
47aaa820 DWT |
12052 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
12053 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12054 | 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' | |
12055 | ;; | |
12056 | cxx*) | |
12057 | # Compaq C++ | |
12058 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12059 | 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 | 12060 | |
47aaa820 DWT |
12061 | runpath_var=LD_RUN_PATH |
12062 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12063 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12064 | |
47aaa820 DWT |
12065 | # Commands to make compiler produce verbose output that lists |
12066 | # what "hidden" libraries, object files and flags are used when | |
12067 | # linking a shared library. | |
12068 | # | |
12069 | # There doesn't appear to be a way to prevent this compiler from | |
12070 | # explicitly linking system object files so we need to strip them | |
12071 | # from the output so that they don't get included in the library | |
12072 | # dependencies. | |
12073 | 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' | |
12074 | ;; | |
12075 | xl*) | |
12076 | # IBM XL 8.0 on PPC, with GNU ld | |
12077 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12078 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12079 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12080 | if test "x$supports_anon_versioning" = xyes; then | |
12081 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12082 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12083 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12084 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12085 | fi | |
12086 | ;; | |
12087 | *) | |
12088 | case `$CC -V 2>&1 | sed 5q` in | |
12089 | *Sun\ C*) | |
12090 | # Sun C++ 5.9 | |
12091 | no_undefined_flag_CXX=' -zdefs' | |
12092 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12093 | 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' | |
12094 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12095 | 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' | |
12096 | compiler_needs_object_CXX=yes | |
9c60689e | 12097 | |
47aaa820 DWT |
12098 | # Not sure whether something based on |
12099 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12100 | # would be better. | |
12101 | output_verbose_link_cmd='echo' | |
9c60689e | 12102 | |
47aaa820 DWT |
12103 | # Archives containing C++ object files must be created using |
12104 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12105 | # necessary to make sure instantiated templates are included | |
12106 | # in the archive. | |
12107 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12108 | ;; | |
12109 | esac | |
12110 | ;; | |
12111 | esac | |
12112 | ;; | |
9c60689e | 12113 | |
47aaa820 DWT |
12114 | lynxos*) |
12115 | # FIXME: insert proper C++ library support | |
12116 | ld_shlibs_CXX=no | |
12117 | ;; | |
9c60689e | 12118 | |
47aaa820 DWT |
12119 | m88k*) |
12120 | # FIXME: insert proper C++ library support | |
12121 | ld_shlibs_CXX=no | |
12122 | ;; | |
9c60689e | 12123 | |
47aaa820 DWT |
12124 | mvs*) |
12125 | case $cc_basename in | |
12126 | cxx*) | |
12127 | # FIXME: insert proper C++ library support | |
12128 | ld_shlibs_CXX=no | |
12129 | ;; | |
12130 | *) | |
12131 | # FIXME: insert proper C++ library support | |
12132 | ld_shlibs_CXX=no | |
12133 | ;; | |
12134 | esac | |
12135 | ;; | |
9c60689e | 12136 | |
47aaa820 DWT |
12137 | netbsd*) |
12138 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12139 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12140 | wlarc= | |
12141 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12142 | hardcode_direct_CXX=yes | |
12143 | hardcode_shlibpath_var_CXX=no | |
12144 | fi | |
12145 | # Workaround some broken pre-1.5 toolchains | |
12146 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 12147 | ;; |
47aaa820 DWT |
12148 | |
12149 | *nto* | *qnx*) | |
12150 | ld_shlibs_CXX=yes | |
9c60689e | 12151 | ;; |
9c60689e | 12152 | |
47aaa820 DWT |
12153 | openbsd2*) |
12154 | # C++ shared libraries are fairly broken | |
12155 | ld_shlibs_CXX=no | |
12156 | ;; | |
9c60689e | 12157 | |
47aaa820 DWT |
12158 | openbsd*) |
12159 | if test -f /usr/libexec/ld.so; then | |
12160 | hardcode_direct_CXX=yes | |
12161 | hardcode_shlibpath_var_CXX=no | |
12162 | hardcode_direct_absolute_CXX=yes | |
12163 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12164 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12165 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12166 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12167 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12168 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12169 | fi | |
12170 | output_verbose_link_cmd=echo | |
12171 | else | |
12172 | ld_shlibs_CXX=no | |
12173 | fi | |
12174 | ;; | |
9c60689e | 12175 | |
47aaa820 DWT |
12176 | osf3* | osf4* | osf5*) |
12177 | case $cc_basename in | |
12178 | KCC*) | |
12179 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12180 | |
47aaa820 DWT |
12181 | # KCC will only create a shared library if the output file |
12182 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12183 | # to its proper name (with version) after linking. | |
12184 | 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 | 12185 | |
47aaa820 DWT |
12186 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12187 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12188 | |
47aaa820 DWT |
12189 | # Archives containing C++ object files must be created using |
12190 | # the KAI C++ compiler. | |
12191 | case $host in | |
12192 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12193 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12194 | esac | |
12195 | ;; | |
12196 | RCC*) | |
12197 | # Rational C++ 2.4.1 | |
12198 | # FIXME: insert proper C++ library support | |
12199 | ld_shlibs_CXX=no | |
12200 | ;; | |
12201 | cxx*) | |
12202 | case $host in | |
12203 | osf3*) | |
12204 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12205 | 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' | |
12206 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12207 | ;; | |
12208 | *) | |
12209 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12210 | 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' | |
12211 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12212 | echo "-hidden">> $lib.exp~ | |
12213 | $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~ | |
12214 | $RM $lib.exp' | |
12215 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12216 | ;; | |
12217 | esac | |
9c60689e | 12218 | |
47aaa820 | 12219 | hardcode_libdir_separator_CXX=: |
9c60689e | 12220 | |
47aaa820 DWT |
12221 | # Commands to make compiler produce verbose output that lists |
12222 | # what "hidden" libraries, object files and flags are used when | |
12223 | # linking a shared library. | |
12224 | # | |
12225 | # There doesn't appear to be a way to prevent this compiler from | |
12226 | # explicitly linking system object files so we need to strip them | |
12227 | # from the output so that they don't get included in the library | |
12228 | # dependencies. | |
12229 | 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' | |
12230 | ;; | |
12231 | *) | |
12232 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12233 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12234 | case $host in | |
12235 | osf3*) | |
12236 | 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' | |
12237 | ;; | |
12238 | *) | |
12239 | 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' | |
12240 | ;; | |
12241 | esac | |
9c60689e | 12242 | |
47aaa820 DWT |
12243 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12244 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12245 | |
47aaa820 DWT |
12246 | # Commands to make compiler produce verbose output that lists |
12247 | # what "hidden" libraries, object files and flags are used when | |
12248 | # linking a shared library. | |
12249 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 12250 | |
47aaa820 DWT |
12251 | else |
12252 | # FIXME: insert proper C++ library support | |
12253 | ld_shlibs_CXX=no | |
12254 | fi | |
12255 | ;; | |
12256 | esac | |
12257 | ;; | |
9c60689e | 12258 | |
47aaa820 | 12259 | psos*) |
9c60689e DWT |
12260 | # FIXME: insert proper C++ library support |
12261 | ld_shlibs_CXX=no | |
12262 | ;; | |
9c60689e | 12263 | |
47aaa820 DWT |
12264 | sunos4*) |
12265 | case $cc_basename in | |
12266 | CC*) | |
12267 | # Sun C++ 4.x | |
12268 | # FIXME: insert proper C++ library support | |
12269 | ld_shlibs_CXX=no | |
9c60689e | 12270 | ;; |
47aaa820 DWT |
12271 | lcc*) |
12272 | # Lucid | |
12273 | # FIXME: insert proper C++ library support | |
12274 | ld_shlibs_CXX=no | |
12275 | ;; | |
12276 | *) | |
12277 | # FIXME: insert proper C++ library support | |
12278 | ld_shlibs_CXX=no | |
12279 | ;; | |
12280 | esac | |
12281 | ;; | |
9c60689e | 12282 | |
47aaa820 DWT |
12283 | solaris*) |
12284 | case $cc_basename in | |
12285 | CC*) | |
12286 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12287 | archive_cmds_need_lc_CXX=yes | |
12288 | no_undefined_flag_CXX=' -zdefs' | |
12289 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12290 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12291 | $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 | 12292 | |
47aaa820 DWT |
12293 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12294 | hardcode_shlibpath_var_CXX=no | |
12295 | case $host_os in | |
12296 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12297 | *) | |
12298 | # The compiler driver will combine and reorder linker options, | |
12299 | # but understands `-z linker_flag'. | |
12300 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12301 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12302 | ;; | |
12303 | esac | |
12304 | link_all_deplibs_CXX=yes | |
9c60689e | 12305 | |
47aaa820 | 12306 | output_verbose_link_cmd='echo' |
9c60689e | 12307 | |
47aaa820 DWT |
12308 | # Archives containing C++ object files must be created using |
12309 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12310 | # necessary to make sure instantiated templates are included | |
12311 | # in the archive. | |
12312 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12313 | ;; | |
12314 | gcx*) | |
12315 | # Green Hills C++ Compiler | |
12316 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 12317 | |
47aaa820 DWT |
12318 | # The C++ compiler must be used to create the archive. |
12319 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12320 | ;; | |
12321 | *) | |
12322 | # GNU C++ compiler with Solaris linker | |
12323 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12324 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12325 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12326 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12327 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12328 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12329 | |
47aaa820 DWT |
12330 | # Commands to make compiler produce verbose output that lists |
12331 | # what "hidden" libraries, object files and flags are used when | |
12332 | # linking a shared library. | |
12333 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12334 | else | |
12335 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12336 | # platform. | |
12337 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12338 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12339 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12340 | |
47aaa820 DWT |
12341 | # Commands to make compiler produce verbose output that lists |
12342 | # what "hidden" libraries, object files and flags are used when | |
12343 | # linking a shared library. | |
12344 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12345 | fi | |
9c60689e | 12346 | |
47aaa820 DWT |
12347 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12348 | case $host_os in | |
12349 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12350 | *) | |
12351 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12352 | ;; | |
12353 | esac | |
12354 | fi | |
12355 | ;; | |
12356 | esac | |
12357 | ;; | |
9c60689e | 12358 | |
47aaa820 DWT |
12359 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12360 | no_undefined_flag_CXX='${wl}-z,text' | |
12361 | archive_cmds_need_lc_CXX=no | |
12362 | hardcode_shlibpath_var_CXX=no | |
12363 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12364 | |
47aaa820 DWT |
12365 | case $cc_basename in |
12366 | CC*) | |
12367 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12368 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12369 | ;; | |
12370 | *) | |
12371 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12372 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12373 | ;; | |
12374 | esac | |
12375 | ;; | |
9c60689e | 12376 | |
47aaa820 DWT |
12377 | sysv5* | sco3.2v5* | sco5v6*) |
12378 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12379 | # link with -lc, and that would cause any symbols used from libc to | |
12380 | # always be unresolved, which means just about no library would | |
12381 | # ever link correctly. If we're not using GNU ld we use -z text | |
12382 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12383 | # as -z defs. | |
12384 | no_undefined_flag_CXX='${wl}-z,text' | |
12385 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12386 | archive_cmds_need_lc_CXX=no | |
12387 | hardcode_shlibpath_var_CXX=no | |
12388 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12389 | hardcode_libdir_separator_CXX=':' | |
12390 | link_all_deplibs_CXX=yes | |
12391 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12392 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12393 | |
47aaa820 DWT |
12394 | case $cc_basename in |
12395 | CC*) | |
12396 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12397 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12398 | ;; | |
12399 | *) | |
12400 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12401 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12402 | ;; | |
12403 | esac | |
12404 | ;; | |
9c60689e | 12405 | |
47aaa820 | 12406 | tandem*) |
9c60689e | 12407 | case $cc_basename in |
47aaa820 DWT |
12408 | NCC*) |
12409 | # NonStop-UX NCC 3.20 | |
12410 | # FIXME: insert proper C++ library support | |
12411 | ld_shlibs_CXX=no | |
12412 | ;; | |
9c60689e | 12413 | *) |
47aaa820 DWT |
12414 | # FIXME: insert proper C++ library support |
12415 | ld_shlibs_CXX=no | |
12416 | ;; | |
9c60689e DWT |
12417 | esac |
12418 | ;; | |
12419 | ||
47aaa820 DWT |
12420 | vxworks*) |
12421 | # FIXME: insert proper C++ library support | |
12422 | ld_shlibs_CXX=no | |
12423 | ;; | |
9c60689e | 12424 | |
47aaa820 DWT |
12425 | *) |
12426 | # FIXME: insert proper C++ library support | |
12427 | ld_shlibs_CXX=no | |
9c60689e | 12428 | ;; |
47aaa820 | 12429 | esac |
9c60689e | 12430 | |
47aaa820 DWT |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12432 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12433 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12434 | |
47aaa820 DWT |
12435 | GCC_CXX="$GXX" |
12436 | LD_CXX="$LD" | |
9c60689e | 12437 | |
47aaa820 DWT |
12438 | ## CAVEAT EMPTOR: |
12439 | ## There is no encapsulation within the following macros, do not change | |
12440 | ## the running order or otherwise move them around unless you know exactly | |
12441 | ## what you are doing... | |
12442 | # Dependencies to place before and after the object being linked: | |
12443 | predep_objects_CXX= | |
12444 | postdep_objects_CXX= | |
12445 | predeps_CXX= | |
12446 | postdeps_CXX= | |
12447 | compiler_lib_search_path_CXX= | |
9c60689e | 12448 | |
47aaa820 DWT |
12449 | cat > conftest.$ac_ext <<_LT_EOF |
12450 | class Foo | |
12451 | { | |
12452 | public: | |
12453 | Foo (void) { a = 0; } | |
12454 | private: | |
12455 | int a; | |
12456 | }; | |
12457 | _LT_EOF | |
9c60689e | 12458 | |
47aaa820 DWT |
12459 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12460 | (eval $ac_compile) 2>&5 | |
12461 | ac_status=$? | |
12462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12463 | test $ac_status = 0; }; then | |
12464 | # Parse the compiler output and extract the necessary | |
12465 | # objects, libraries and library flags. | |
9c60689e | 12466 | |
47aaa820 DWT |
12467 | # Sentinel used to keep track of whether or not we are before |
12468 | # the conftest object file. | |
12469 | pre_test_object_deps_done=no | |
9c60689e | 12470 | |
47aaa820 DWT |
12471 | for p in `eval "$output_verbose_link_cmd"`; do |
12472 | case $p in | |
9c60689e | 12473 | |
47aaa820 DWT |
12474 | -L* | -R* | -l*) |
12475 | # Some compilers place space between "-{L,R}" and the path. | |
12476 | # Remove the space. | |
12477 | if test $p = "-L" || | |
12478 | test $p = "-R"; then | |
12479 | prev=$p | |
12480 | continue | |
12481 | else | |
12482 | prev= | |
12483 | fi | |
9c60689e | 12484 | |
47aaa820 DWT |
12485 | if test "$pre_test_object_deps_done" = no; then |
12486 | case $p in | |
12487 | -L* | -R*) | |
12488 | # Internal compiler library paths should come after those | |
12489 | # provided the user. The postdeps already come after the | |
12490 | # user supplied libs so there is no need to process them. | |
12491 | if test -z "$compiler_lib_search_path_CXX"; then | |
12492 | compiler_lib_search_path_CXX="${prev}${p}" | |
12493 | else | |
12494 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12495 | fi | |
12496 | ;; | |
12497 | # The "-l" case would never come before the object being | |
12498 | # linked, so don't bother handling this case. | |
12499 | esac | |
12500 | else | |
12501 | if test -z "$postdeps_CXX"; then | |
12502 | postdeps_CXX="${prev}${p}" | |
12503 | else | |
12504 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12505 | fi | |
12506 | fi | |
12507 | ;; | |
9c60689e | 12508 | |
47aaa820 DWT |
12509 | *.$objext) |
12510 | # This assumes that the test object file only shows up | |
12511 | # once in the compiler output. | |
12512 | if test "$p" = "conftest.$objext"; then | |
12513 | pre_test_object_deps_done=yes | |
12514 | continue | |
12515 | fi | |
9c60689e | 12516 | |
47aaa820 DWT |
12517 | if test "$pre_test_object_deps_done" = no; then |
12518 | if test -z "$predep_objects_CXX"; then | |
12519 | predep_objects_CXX="$p" | |
12520 | else | |
12521 | predep_objects_CXX="$predep_objects_CXX $p" | |
12522 | fi | |
12523 | else | |
12524 | if test -z "$postdep_objects_CXX"; then | |
12525 | postdep_objects_CXX="$p" | |
12526 | else | |
12527 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12528 | fi | |
12529 | fi | |
12530 | ;; | |
9c60689e | 12531 | |
47aaa820 | 12532 | *) ;; # Ignore the rest. |
9c60689e | 12533 | |
47aaa820 DWT |
12534 | esac |
12535 | done | |
9c60689e | 12536 | |
47aaa820 DWT |
12537 | # Clean up. |
12538 | rm -f a.out a.exe | |
12539 | else | |
12540 | echo "libtool.m4: error: problem compiling CXX test program" | |
12541 | fi | |
9c60689e | 12542 | |
47aaa820 | 12543 | $RM -f confest.$objext |
9c60689e | 12544 | |
47aaa820 DWT |
12545 | # PORTME: override above test on systems where it is broken |
12546 | case $host_os in | |
12547 | interix[3-9]*) | |
12548 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12549 | # hack all around it, let's just trust "g++" to DTRT. | |
12550 | predep_objects_CXX= | |
12551 | postdep_objects_CXX= | |
12552 | postdeps_CXX= | |
12553 | ;; | |
9c60689e | 12554 | |
47aaa820 DWT |
12555 | linux*) |
12556 | case `$CC -V 2>&1 | sed 5q` in | |
12557 | *Sun\ C*) | |
12558 | # Sun C++ 5.9 | |
9c60689e | 12559 | |
47aaa820 DWT |
12560 | # The more standards-conforming stlport4 library is |
12561 | # incompatible with the Cstd library. Avoid specifying | |
12562 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12563 | # -library=stlport4 depends on it. | |
12564 | case " $CXX $CXXFLAGS " in | |
12565 | *" -library=stlport4 "*) | |
12566 | solaris_use_stlport4=yes | |
12567 | ;; | |
12568 | esac | |
9c60689e | 12569 | |
47aaa820 DWT |
12570 | if test "$solaris_use_stlport4" != yes; then |
12571 | postdeps_CXX='-library=Cstd -library=Crun' | |
12572 | fi | |
12573 | ;; | |
12574 | esac | |
12575 | ;; | |
9c60689e | 12576 | |
47aaa820 DWT |
12577 | solaris*) |
12578 | case $cc_basename in | |
12579 | CC*) | |
12580 | # The more standards-conforming stlport4 library is | |
12581 | # incompatible with the Cstd library. Avoid specifying | |
12582 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12583 | # -library=stlport4 depends on it. | |
12584 | case " $CXX $CXXFLAGS " in | |
12585 | *" -library=stlport4 "*) | |
12586 | solaris_use_stlport4=yes | |
12587 | ;; | |
12588 | esac | |
9c60689e | 12589 | |
47aaa820 DWT |
12590 | # Adding this requires a known-good setup of shared libraries for |
12591 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12592 | # archive will be linked into the output, leading to subtle bugs. | |
12593 | if test "$solaris_use_stlport4" != yes; then | |
12594 | postdeps_CXX='-library=Cstd -library=Crun' | |
12595 | fi | |
12596 | ;; | |
12597 | esac | |
12598 | ;; | |
12599 | esac | |
9c60689e | 12600 | |
9c60689e | 12601 | |
47aaa820 DWT |
12602 | case " $postdeps_CXX " in |
12603 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12604 | esac | |
12605 | compiler_lib_search_dirs_CXX= | |
12606 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12607 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12608 | fi | |
9c60689e | 12609 | |
9c60689e | 12610 | |
9c60689e | 12611 | |
9c60689e | 12612 | |
9c60689e | 12613 | |
9c60689e | 12614 | |
9c60689e | 12615 | |
9c60689e | 12616 | |
9c60689e | 12617 | |
9c60689e | 12618 | |
9c60689e | 12619 | |
9c60689e | 12620 | |
9c60689e | 12621 | |
9c60689e | 12622 | |
9c60689e | 12623 | |
9c60689e | 12624 | |
9c60689e | 12625 | |
9c60689e | 12626 | |
9c60689e | 12627 | |
9c60689e | 12628 | |
9c60689e | 12629 | |
9c60689e | 12630 | |
9c60689e | 12631 | |
9c60689e | 12632 | |
9c60689e | 12633 | |
9c60689e | 12634 | |
9c60689e | 12635 | |
9c60689e | 12636 | |
9c60689e | 12637 | |
9c60689e | 12638 | |
9c60689e | 12639 | |
47aaa820 DWT |
12640 | lt_prog_compiler_wl_CXX= |
12641 | lt_prog_compiler_pic_CXX= | |
12642 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12643 | |
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12645 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12646 | ||
12647 | # C++ specific cases for pic, static, wl, etc. | |
12648 | if test "$GXX" = yes; then | |
12649 | lt_prog_compiler_wl_CXX='-Wl,' | |
12650 | lt_prog_compiler_static_CXX='-static' | |
12651 | ||
12652 | case $host_os in | |
12653 | aix*) | |
12654 | # All AIX code is PIC. | |
12655 | if test "$host_cpu" = ia64; then | |
12656 | # AIX 5 now supports IA64 processor | |
12657 | lt_prog_compiler_static_CXX='-Bstatic' | |
12658 | fi | |
12659 | ;; | |
12660 | ||
12661 | amigaos*) | |
12662 | case $host_cpu in | |
12663 | powerpc) | |
12664 | # see comment about AmigaOS4 .so support | |
12665 | lt_prog_compiler_pic_CXX='-fPIC' | |
12666 | ;; | |
12667 | m68k) | |
12668 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12669 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12670 | # like `-m68040'. | |
12671 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12672 | ;; | |
12673 | esac | |
12674 | ;; | |
12675 | ||
12676 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12677 | # PIC is the default for these OSes. | |
12678 | ;; | |
12679 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12680 | # This hack is so that the source file can tell whether it is being | |
12681 | # built for inclusion in a dll (and should export symbols for example). | |
12682 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12683 | # (--disable-auto-import) libraries | |
12684 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12685 | ;; | |
12686 | darwin* | rhapsody*) | |
12687 | # PIC is the default on this platform | |
12688 | # Common symbols not allowed in MH_DYLIB files | |
12689 | lt_prog_compiler_pic_CXX='-fno-common' | |
12690 | ;; | |
12691 | *djgpp*) | |
12692 | # DJGPP does not support shared libraries at all | |
12693 | lt_prog_compiler_pic_CXX= | |
12694 | ;; | |
12695 | interix[3-9]*) | |
12696 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12697 | # Instead, we relocate shared libraries at runtime. | |
12698 | ;; | |
12699 | sysv4*MP*) | |
12700 | if test -d /usr/nec; then | |
12701 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12702 | fi | |
12703 | ;; | |
12704 | hpux*) | |
12705 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12706 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12707 | # sets the default TLS model and affects inlining. | |
12708 | case $host_cpu in | |
12709 | hppa*64*) | |
12710 | ;; | |
12711 | *) | |
12712 | lt_prog_compiler_pic_CXX='-fPIC' | |
12713 | ;; | |
12714 | esac | |
12715 | ;; | |
12716 | *qnx* | *nto*) | |
12717 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12718 | # it will coredump. | |
12719 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12720 | ;; | |
12721 | *) | |
12722 | lt_prog_compiler_pic_CXX='-fPIC' | |
12723 | ;; | |
12724 | esac | |
12725 | else | |
12726 | case $host_os in | |
12727 | aix[4-9]*) | |
12728 | # All AIX code is PIC. | |
12729 | if test "$host_cpu" = ia64; then | |
12730 | # AIX 5 now supports IA64 processor | |
12731 | lt_prog_compiler_static_CXX='-Bstatic' | |
12732 | else | |
12733 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12734 | fi | |
12735 | ;; | |
12736 | chorus*) | |
12737 | case $cc_basename in | |
12738 | cxch68*) | |
12739 | # Green Hills C++ Compiler | |
12740 | # _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" | |
12741 | ;; | |
12742 | esac | |
12743 | ;; | |
12744 | dgux*) | |
12745 | case $cc_basename in | |
12746 | ec++*) | |
12747 | lt_prog_compiler_pic_CXX='-KPIC' | |
12748 | ;; | |
12749 | ghcx*) | |
12750 | # Green Hills C++ Compiler | |
12751 | lt_prog_compiler_pic_CXX='-pic' | |
12752 | ;; | |
12753 | *) | |
12754 | ;; | |
12755 | esac | |
12756 | ;; | |
12757 | freebsd* | dragonfly*) | |
12758 | # FreeBSD uses GNU C++ | |
12759 | ;; | |
12760 | hpux9* | hpux10* | hpux11*) | |
12761 | case $cc_basename in | |
12762 | CC*) | |
12763 | lt_prog_compiler_wl_CXX='-Wl,' | |
12764 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12765 | if test "$host_cpu" != ia64; then | |
12766 | lt_prog_compiler_pic_CXX='+Z' | |
12767 | fi | |
12768 | ;; | |
12769 | aCC*) | |
12770 | lt_prog_compiler_wl_CXX='-Wl,' | |
12771 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12772 | case $host_cpu in | |
12773 | hppa*64*|ia64*) | |
12774 | # +Z the default | |
12775 | ;; | |
12776 | *) | |
12777 | lt_prog_compiler_pic_CXX='+Z' | |
12778 | ;; | |
12779 | esac | |
12780 | ;; | |
12781 | *) | |
12782 | ;; | |
12783 | esac | |
12784 | ;; | |
12785 | interix*) | |
12786 | # This is c89, which is MS Visual C++ (no shared libs) | |
12787 | # Anyone wants to do a port? | |
12788 | ;; | |
12789 | irix5* | irix6* | nonstopux*) | |
12790 | case $cc_basename in | |
12791 | CC*) | |
12792 | lt_prog_compiler_wl_CXX='-Wl,' | |
12793 | lt_prog_compiler_static_CXX='-non_shared' | |
12794 | # CC pic flag -KPIC is the default. | |
12795 | ;; | |
12796 | *) | |
12797 | ;; | |
12798 | esac | |
12799 | ;; | |
12800 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12801 | case $cc_basename in | |
12802 | KCC*) | |
12803 | # KAI C++ Compiler | |
12804 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12805 | lt_prog_compiler_pic_CXX='-fPIC' | |
12806 | ;; | |
12807 | ecpc* ) | |
12808 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12809 | lt_prog_compiler_wl_CXX='-Wl,' | |
12810 | lt_prog_compiler_pic_CXX='-KPIC' | |
12811 | lt_prog_compiler_static_CXX='-static' | |
12812 | ;; | |
12813 | icpc* ) | |
12814 | # Intel C++, used to be incompatible with GCC. | |
12815 | # ICC 10 doesn't accept -KPIC any more. | |
12816 | lt_prog_compiler_wl_CXX='-Wl,' | |
12817 | lt_prog_compiler_pic_CXX='-fPIC' | |
12818 | lt_prog_compiler_static_CXX='-static' | |
12819 | ;; | |
12820 | pgCC* | pgcpp*) | |
12821 | # Portland Group C++ compiler | |
12822 | lt_prog_compiler_wl_CXX='-Wl,' | |
12823 | lt_prog_compiler_pic_CXX='-fpic' | |
12824 | lt_prog_compiler_static_CXX='-Bstatic' | |
12825 | ;; | |
12826 | cxx*) | |
12827 | # Compaq C++ | |
12828 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12829 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12830 | lt_prog_compiler_pic_CXX= | |
12831 | lt_prog_compiler_static_CXX='-non_shared' | |
12832 | ;; | |
12833 | xlc* | xlC*) | |
12834 | # IBM XL 8.0 on PPC | |
12835 | lt_prog_compiler_wl_CXX='-Wl,' | |
12836 | lt_prog_compiler_pic_CXX='-qpic' | |
12837 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12838 | ;; | |
12839 | *) | |
12840 | case `$CC -V 2>&1 | sed 5q` in | |
12841 | *Sun\ C*) | |
12842 | # Sun C++ 5.9 | |
12843 | lt_prog_compiler_pic_CXX='-KPIC' | |
12844 | lt_prog_compiler_static_CXX='-Bstatic' | |
12845 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12846 | ;; | |
12847 | esac | |
12848 | ;; | |
12849 | esac | |
12850 | ;; | |
12851 | lynxos*) | |
12852 | ;; | |
12853 | m88k*) | |
12854 | ;; | |
12855 | mvs*) | |
12856 | case $cc_basename in | |
12857 | cxx*) | |
12858 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12859 | ;; | |
12860 | *) | |
12861 | ;; | |
12862 | esac | |
12863 | ;; | |
12864 | netbsd* | netbsdelf*-gnu) | |
12865 | ;; | |
12866 | *qnx* | *nto*) | |
12867 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12868 | # it will coredump. | |
12869 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12870 | ;; | |
12871 | osf3* | osf4* | osf5*) | |
12872 | case $cc_basename in | |
12873 | KCC*) | |
12874 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12875 | ;; | |
12876 | RCC*) | |
12877 | # Rational C++ 2.4.1 | |
12878 | lt_prog_compiler_pic_CXX='-pic' | |
12879 | ;; | |
12880 | cxx*) | |
12881 | # Digital/Compaq C++ | |
12882 | lt_prog_compiler_wl_CXX='-Wl,' | |
12883 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12884 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12885 | lt_prog_compiler_pic_CXX= | |
12886 | lt_prog_compiler_static_CXX='-non_shared' | |
12887 | ;; | |
12888 | *) | |
12889 | ;; | |
12890 | esac | |
12891 | ;; | |
12892 | psos*) | |
12893 | ;; | |
12894 | solaris*) | |
12895 | case $cc_basename in | |
12896 | CC*) | |
12897 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12898 | lt_prog_compiler_pic_CXX='-KPIC' | |
12899 | lt_prog_compiler_static_CXX='-Bstatic' | |
12900 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12901 | ;; | |
12902 | gcx*) | |
12903 | # Green Hills C++ Compiler | |
12904 | lt_prog_compiler_pic_CXX='-PIC' | |
12905 | ;; | |
12906 | *) | |
12907 | ;; | |
12908 | esac | |
12909 | ;; | |
12910 | sunos4*) | |
12911 | case $cc_basename in | |
12912 | CC*) | |
12913 | # Sun C++ 4.x | |
12914 | lt_prog_compiler_pic_CXX='-pic' | |
12915 | lt_prog_compiler_static_CXX='-Bstatic' | |
12916 | ;; | |
12917 | lcc*) | |
12918 | # Lucid | |
12919 | lt_prog_compiler_pic_CXX='-pic' | |
12920 | ;; | |
12921 | *) | |
12922 | ;; | |
12923 | esac | |
12924 | ;; | |
12925 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12926 | case $cc_basename in | |
12927 | CC*) | |
12928 | lt_prog_compiler_wl_CXX='-Wl,' | |
12929 | lt_prog_compiler_pic_CXX='-KPIC' | |
12930 | lt_prog_compiler_static_CXX='-Bstatic' | |
12931 | ;; | |
12932 | esac | |
12933 | ;; | |
12934 | tandem*) | |
12935 | case $cc_basename in | |
12936 | NCC*) | |
12937 | # NonStop-UX NCC 3.20 | |
12938 | lt_prog_compiler_pic_CXX='-KPIC' | |
12939 | ;; | |
12940 | *) | |
12941 | ;; | |
12942 | esac | |
12943 | ;; | |
12944 | vxworks*) | |
12945 | ;; | |
12946 | *) | |
12947 | lt_prog_compiler_can_build_shared_CXX=no | |
12948 | ;; | |
12949 | esac | |
12950 | fi | |
12951 | ||
12952 | case $host_os in | |
12953 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12954 | *djgpp*) | |
12955 | lt_prog_compiler_pic_CXX= | |
12956 | ;; | |
12957 | *) | |
12958 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12959 | ;; | |
12960 | esac | |
12961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
12962 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
12963 | ||
12964 | ||
12965 | ||
12966 | # | |
12967 | # Check to make sure the PIC flag actually works. | |
12968 | # | |
12969 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12971 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
12972 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
12973 | $as_echo_n "(cached) " >&6 | |
12974 | else | |
12975 | lt_cv_prog_compiler_pic_works_CXX=no | |
12976 | ac_outfile=conftest.$ac_objext | |
12977 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12978 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12979 | # Insert the option either (1) after the last *FLAGS variable, or | |
12980 | # (2) before a word containing "conftest.", or (3) at the end. | |
12981 | # Note that $ac_compile itself does not contain backslashes and begins | |
12982 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12983 | # The option is referenced via a variable to avoid confusing sed. | |
12984 | lt_compile=`echo "$ac_compile" | $SED \ | |
12985 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12986 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12987 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 12988 | (eval echo "\"\$as_me:12988: $lt_compile\"" >&5) |
9c60689e DWT |
12989 | (eval "$lt_compile" 2>conftest.err) |
12990 | ac_status=$? | |
12991 | cat conftest.err >&5 | |
e9c9a47c | 12992 | echo "$as_me:12992: \$? = $ac_status" >&5 |
9c60689e DWT |
12993 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12994 | # The compiler can only warn and ignore the option if not recognized | |
12995 | # So say no if there are warnings other than the usual output. | |
12996 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12997 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12998 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12999 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13000 | fi | |
13001 | fi | |
13002 | $RM conftest* | |
13003 | ||
13004 | fi | |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13006 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13007 | ||
13008 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13009 | case $lt_prog_compiler_pic_CXX in | |
13010 | "" | " "*) ;; | |
13011 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13012 | esac | |
13013 | else | |
13014 | lt_prog_compiler_pic_CXX= | |
13015 | lt_prog_compiler_can_build_shared_CXX=no | |
13016 | fi | |
13017 | ||
13018 | fi | |
13019 | ||
13020 | ||
13021 | ||
47aaa820 DWT |
13022 | # |
13023 | # Check to make sure the static flag actually works. | |
13024 | # | |
13025 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13027 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13028 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13029 | $as_echo_n "(cached) " >&6 | |
13030 | else | |
13031 | lt_cv_prog_compiler_static_works_CXX=no | |
13032 | save_LDFLAGS="$LDFLAGS" | |
13033 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13034 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13035 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13036 | # The linker can only warn and ignore the option if not recognized | |
13037 | # So say no if there are warnings | |
13038 | if test -s conftest.err; then | |
13039 | # Append any errors to the config.log. | |
13040 | cat conftest.err 1>&5 | |
13041 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13042 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13043 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13044 | lt_cv_prog_compiler_static_works_CXX=yes | |
13045 | fi | |
13046 | else | |
13047 | lt_cv_prog_compiler_static_works_CXX=yes | |
13048 | fi | |
13049 | fi | |
13050 | $RM -r conftest* | |
13051 | LDFLAGS="$save_LDFLAGS" | |
13052 | ||
13053 | fi | |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13055 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13056 | ||
13057 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13058 | : | |
13059 | else | |
13060 | lt_prog_compiler_static_CXX= | |
13061 | fi | |
13062 | ||
13063 | ||
13064 | ||
13065 | ||
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13067 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13068 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13069 | $as_echo_n "(cached) " >&6 | |
13070 | else | |
13071 | lt_cv_prog_compiler_c_o_CXX=no | |
13072 | $RM -r conftest 2>/dev/null | |
13073 | mkdir conftest | |
13074 | cd conftest | |
13075 | mkdir out | |
13076 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13077 | ||
13078 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13079 | # Insert the option either (1) after the last *FLAGS variable, or | |
13080 | # (2) before a word containing "conftest.", or (3) at the end. | |
13081 | # Note that $ac_compile itself does not contain backslashes and begins | |
13082 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13083 | lt_compile=`echo "$ac_compile" | $SED \ | |
13084 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13085 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13086 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 13087 | (eval echo "\"\$as_me:13087: $lt_compile\"" >&5) |
47aaa820 DWT |
13088 | (eval "$lt_compile" 2>out/conftest.err) |
13089 | ac_status=$? | |
13090 | cat out/conftest.err >&5 | |
e9c9a47c | 13091 | echo "$as_me:13091: \$? = $ac_status" >&5 |
47aaa820 DWT |
13092 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13093 | then | |
13094 | # The compiler can only warn and ignore the option if not recognized | |
13095 | # So say no if there are warnings | |
13096 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13097 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13098 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13099 | lt_cv_prog_compiler_c_o_CXX=yes | |
13100 | fi | |
13101 | fi | |
13102 | chmod u+w . 2>&5 | |
13103 | $RM conftest* | |
13104 | # SGI C++ compiler will create directory out/ii_files/ for | |
13105 | # template instantiation | |
13106 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13107 | $RM out/* && rmdir out | |
13108 | cd .. | |
13109 | $RM -r conftest | |
13110 | $RM conftest* | |
13111 | ||
13112 | fi | |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13114 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13115 | ||
13116 | ||
13117 | ||
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13119 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13120 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13121 | $as_echo_n "(cached) " >&6 | |
13122 | else | |
13123 | lt_cv_prog_compiler_c_o_CXX=no | |
13124 | $RM -r conftest 2>/dev/null | |
13125 | mkdir conftest | |
13126 | cd conftest | |
13127 | mkdir out | |
13128 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13129 | ||
13130 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13131 | # Insert the option either (1) after the last *FLAGS variable, or | |
13132 | # (2) before a word containing "conftest.", or (3) at the end. | |
13133 | # Note that $ac_compile itself does not contain backslashes and begins | |
13134 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13135 | lt_compile=`echo "$ac_compile" | $SED \ | |
13136 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13137 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13138 | -e 's:$: $lt_compiler_flag:'` | |
e9c9a47c | 13139 | (eval echo "\"\$as_me:13139: $lt_compile\"" >&5) |
47aaa820 DWT |
13140 | (eval "$lt_compile" 2>out/conftest.err) |
13141 | ac_status=$? | |
13142 | cat out/conftest.err >&5 | |
e9c9a47c | 13143 | echo "$as_me:13143: \$? = $ac_status" >&5 |
47aaa820 DWT |
13144 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13145 | then | |
13146 | # The compiler can only warn and ignore the option if not recognized | |
13147 | # So say no if there are warnings | |
13148 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13149 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13150 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13151 | lt_cv_prog_compiler_c_o_CXX=yes | |
13152 | fi | |
13153 | fi | |
13154 | chmod u+w . 2>&5 | |
13155 | $RM conftest* | |
13156 | # SGI C++ compiler will create directory out/ii_files/ for | |
13157 | # template instantiation | |
13158 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13159 | $RM out/* && rmdir out | |
13160 | cd .. | |
13161 | $RM -r conftest | |
13162 | $RM conftest* | |
13163 | ||
13164 | fi | |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13166 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13167 | ||
13168 | ||
13169 | ||
13170 | ||
13171 | hard_links="nottested" | |
13172 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13173 | # do not overwrite the value of need_locks provided by the user | |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13175 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13176 | hard_links=yes | |
13177 | $RM conftest* | |
13178 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13179 | touch conftest.a | |
13180 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13181 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13183 | $as_echo "$hard_links" >&6; } | |
13184 | if test "$hard_links" = no; then | |
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13186 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13187 | need_locks=warn | |
13188 | fi | |
13189 | else | |
13190 | need_locks=no | |
13191 | fi | |
13192 | ||
13193 | ||
13194 | ||
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13196 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13197 | ||
13198 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13199 | case $host_os in | |
13200 | aix[4-9]*) | |
13201 | # If we're using GNU nm, then we don't want the "-C" option. | |
13202 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13203 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13204 | 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' | |
13205 | else | |
13206 | 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' | |
13207 | fi | |
13208 | ;; | |
13209 | pw32*) | |
13210 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13211 | ;; | |
13212 | cygwin* | mingw* | cegcc*) | |
13213 | 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' | |
13214 | ;; | |
13215 | linux* | k*bsd*-gnu) | |
13216 | link_all_deplibs_CXX=no | |
13217 | ;; | |
13218 | *) | |
13219 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13220 | ;; | |
13221 | esac | |
13222 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13223 | ||
13224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13225 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13226 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13227 | ||
13228 | with_gnu_ld_CXX=$with_gnu_ld | |
13229 | ||
13230 | ||
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | # | |
13236 | # Do we need to explicitly link libc? | |
13237 | # | |
13238 | case "x$archive_cmds_need_lc_CXX" in | |
13239 | x|xyes) | |
13240 | # Assume -lc should be added | |
13241 | archive_cmds_need_lc_CXX=yes | |
13242 | ||
13243 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13244 | case $archive_cmds_CXX in | |
13245 | *'~'*) | |
13246 | # FIXME: we may have to deal with multi-command sequences. | |
13247 | ;; | |
13248 | '$CC '*) | |
13249 | # Test whether the compiler implicitly links with -lc since on some | |
13250 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13251 | # to ld, don't add -lc before -lgcc. | |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13253 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13254 | $RM conftest* | |
13255 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13256 | ||
13257 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13258 | (eval $ac_compile) 2>&5 | |
13259 | ac_status=$? | |
13260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13261 | test $ac_status = 0; } 2>conftest.err; then | |
13262 | soname=conftest | |
13263 | lib=conftest | |
13264 | libobjs=conftest.$ac_objext | |
13265 | deplibs= | |
13266 | wl=$lt_prog_compiler_wl_CXX | |
13267 | pic_flag=$lt_prog_compiler_pic_CXX | |
13268 | compiler_flags=-v | |
13269 | linker_flags=-v | |
13270 | verstring= | |
13271 | output_objdir=. | |
13272 | libname=conftest | |
13273 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13274 | allow_undefined_flag_CXX= | |
13275 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13276 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13277 | ac_status=$? | |
13278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13279 | test $ac_status = 0; } | |
13280 | then | |
13281 | archive_cmds_need_lc_CXX=no | |
13282 | else | |
13283 | archive_cmds_need_lc_CXX=yes | |
13284 | fi | |
13285 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13286 | else | |
13287 | cat conftest.err 1>&5 | |
13288 | fi | |
13289 | $RM conftest* | |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
13291 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
13292 | ;; | |
13293 | esac | |
13294 | fi | |
13295 | ;; | |
13296 | esac | |
13297 | ||
13298 | ||
13299 | ||
13300 | ||
13301 | ||
13302 | ||
13303 | ||
13304 | ||
13305 | ||
13306 | ||
13307 | ||
13308 | ||
13309 | ||
13310 | ||
13311 | ||
13312 | ||
13313 | ||
13314 | ||
13315 | ||
13316 | ||
13317 | ||
13318 | ||
13319 | ||
13320 | ||
13321 | ||
13322 | ||
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | ||
13329 | ||
13330 | ||
13331 | ||
13332 | ||
13333 | ||
13334 | ||
13335 | ||
13336 | ||
13337 | ||
13338 | ||
13339 | ||
13340 | ||
13341 | ||
13342 | ||
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | ||
13349 | ||
13350 | ||
13351 | ||
13352 | ||
13353 | ||
13354 | ||
13355 | ||
13356 | ||
13357 | ||
13358 | ||
13359 | ||
13360 | ||
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13362 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13363 | ||
13364 | library_names_spec= | |
13365 | libname_spec='lib$name' | |
13366 | soname_spec= | |
13367 | shrext_cmds=".so" | |
13368 | postinstall_cmds= | |
13369 | postuninstall_cmds= | |
13370 | finish_cmds= | |
13371 | finish_eval= | |
13372 | shlibpath_var= | |
13373 | shlibpath_overrides_runpath=unknown | |
13374 | version_type=none | |
13375 | dynamic_linker="$host_os ld.so" | |
13376 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13377 | need_lib_prefix=unknown | |
13378 | hardcode_into_libs=no | |
13379 | ||
13380 | # when you set need_version to no, make sure it does not cause -set_version | |
13381 | # flags to be left without arguments | |
13382 | need_version=unknown | |
13383 | ||
13384 | case $host_os in | |
13385 | aix3*) | |
13386 | version_type=linux | |
13387 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13388 | shlibpath_var=LIBPATH | |
13389 | ||
13390 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13391 | soname_spec='${libname}${release}${shared_ext}$major' | |
13392 | ;; | |
13393 | ||
13394 | aix[4-9]*) | |
13395 | version_type=linux | |
13396 | need_lib_prefix=no | |
13397 | need_version=no | |
13398 | hardcode_into_libs=yes | |
13399 | if test "$host_cpu" = ia64; then | |
13400 | # AIX 5 supports IA64 | |
13401 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13402 | shlibpath_var=LD_LIBRARY_PATH | |
13403 | else | |
13404 | # With GCC up to 2.95.x, collect2 would create an import file | |
13405 | # for dependence libraries. The import file would start with | |
13406 | # the line `#! .'. This would cause the generated library to | |
13407 | # depend on `.', always an invalid library. This was fixed in | |
13408 | # development snapshots of GCC prior to 3.0. | |
13409 | case $host_os in | |
13410 | aix4 | aix4.[01] | aix4.[01].*) | |
13411 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13412 | echo ' yes ' | |
13413 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13414 | : | |
13415 | else | |
13416 | can_build_shared=no | |
13417 | fi | |
13418 | ;; | |
13419 | esac | |
13420 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13421 | # soname into executable. Probably we can add versioning support to | |
13422 | # collect2, so additional links can be useful in future. | |
13423 | if test "$aix_use_runtimelinking" = yes; then | |
13424 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13425 | # instead of lib<name>.a to let people know that these are not | |
13426 | # typical AIX shared libraries. | |
13427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13428 | else | |
13429 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13430 | # and later when we are not doing run time linking. | |
13431 | library_names_spec='${libname}${release}.a $libname.a' | |
13432 | soname_spec='${libname}${release}${shared_ext}$major' | |
13433 | fi | |
13434 | shlibpath_var=LIBPATH | |
13435 | fi | |
13436 | ;; | |
13437 | ||
13438 | amigaos*) | |
13439 | case $host_cpu in | |
13440 | powerpc) | |
13441 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13442 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13444 | ;; | |
13445 | m68k) | |
13446 | library_names_spec='$libname.ixlibrary $libname.a' | |
13447 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13448 | 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' | |
13449 | ;; | |
13450 | esac | |
13451 | ;; | |
13452 | ||
13453 | beos*) | |
13454 | library_names_spec='${libname}${shared_ext}' | |
13455 | dynamic_linker="$host_os ld.so" | |
13456 | shlibpath_var=LIBRARY_PATH | |
13457 | ;; | |
13458 | ||
13459 | bsdi[45]*) | |
13460 | version_type=linux | |
13461 | need_version=no | |
13462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13463 | soname_spec='${libname}${release}${shared_ext}$major' | |
13464 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13465 | shlibpath_var=LD_LIBRARY_PATH | |
13466 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13467 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13468 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13469 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13470 | # libtool to hard-code these into programs | |
13471 | ;; | |
9c60689e | 13472 | |
47aaa820 DWT |
13473 | cygwin* | mingw* | pw32* | cegcc*) |
13474 | version_type=windows | |
13475 | shrext_cmds=".dll" | |
13476 | need_version=no | |
13477 | need_lib_prefix=no | |
9c60689e | 13478 | |
47aaa820 DWT |
13479 | case $GCC,$host_os in |
13480 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13481 | library_names_spec='$libname.dll.a' | |
13482 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13483 | postinstall_cmds='base_file=`basename \${file}`~ | |
13484 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13485 | dldir=$destdir/`dirname \$dlpath`~ | |
13486 | test -d \$dldir || mkdir -p \$dldir~ | |
13487 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13488 | chmod a+x \$dldir/$dlname~ | |
13489 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13490 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13491 | fi' | |
13492 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13493 | dlpath=$dir/\$dldll~ | |
13494 | $RM \$dlpath' | |
13495 | shlibpath_overrides_runpath=yes | |
9c60689e | 13496 | |
47aaa820 DWT |
13497 | case $host_os in |
13498 | cygwin*) | |
13499 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13500 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13501 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13502 | ;; | |
13503 | mingw* | cegcc*) | |
13504 | # MinGW DLLs use traditional 'lib' prefix | |
13505 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13506 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13507 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13508 | # It is most probably a Windows format PATH printed by | |
13509 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13510 | # path with ; separators, and with drive letters. We can handle the | |
13511 | # drive letters (cygwin fileutils understands them), so leave them, | |
13512 | # especially as we might pass files found there to a mingw objdump, | |
13513 | # which wouldn't understand a cygwinified path. Ahh. | |
13514 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13515 | else | |
13516 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13517 | fi | |
13518 | ;; | |
13519 | pw32*) | |
13520 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13521 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13522 | ;; | |
13523 | esac | |
13524 | ;; | |
9c60689e | 13525 | |
47aaa820 DWT |
13526 | *) |
13527 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13528 | ;; | |
13529 | esac | |
13530 | dynamic_linker='Win32 ld.exe' | |
13531 | # FIXME: first we should search . and the directory the executable is in | |
13532 | shlibpath_var=PATH | |
13533 | ;; | |
9c60689e | 13534 | |
47aaa820 DWT |
13535 | darwin* | rhapsody*) |
13536 | dynamic_linker="$host_os dyld" | |
13537 | version_type=darwin | |
13538 | need_lib_prefix=no | |
13539 | need_version=no | |
13540 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13541 | soname_spec='${libname}${release}${major}$shared_ext' | |
13542 | shlibpath_overrides_runpath=yes | |
13543 | shlibpath_var=DYLD_LIBRARY_PATH | |
13544 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13545 | |
47aaa820 DWT |
13546 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13547 | ;; | |
9c60689e | 13548 | |
47aaa820 DWT |
13549 | dgux*) |
13550 | version_type=linux | |
13551 | need_lib_prefix=no | |
13552 | need_version=no | |
13553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13554 | soname_spec='${libname}${release}${shared_ext}$major' | |
13555 | shlibpath_var=LD_LIBRARY_PATH | |
13556 | ;; | |
9c60689e | 13557 | |
47aaa820 DWT |
13558 | freebsd1*) |
13559 | dynamic_linker=no | |
13560 | ;; | |
9c60689e | 13561 | |
47aaa820 DWT |
13562 | freebsd* | dragonfly*) |
13563 | # DragonFly does not have aout. When/if they implement a new | |
13564 | # versioning mechanism, adjust this. | |
13565 | if test -x /usr/bin/objformat; then | |
13566 | objformat=`/usr/bin/objformat` | |
13567 | else | |
13568 | case $host_os in | |
13569 | freebsd[123]*) objformat=aout ;; | |
13570 | *) objformat=elf ;; | |
13571 | esac | |
13572 | fi | |
13573 | version_type=freebsd-$objformat | |
13574 | case $version_type in | |
13575 | freebsd-elf*) | |
13576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13577 | need_version=no | |
13578 | need_lib_prefix=no | |
13579 | ;; | |
13580 | freebsd-*) | |
13581 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13582 | need_version=yes | |
13583 | ;; | |
13584 | esac | |
13585 | shlibpath_var=LD_LIBRARY_PATH | |
13586 | case $host_os in | |
13587 | freebsd2*) | |
13588 | shlibpath_overrides_runpath=yes | |
13589 | ;; | |
13590 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13591 | shlibpath_overrides_runpath=yes | |
13592 | hardcode_into_libs=yes | |
13593 | ;; | |
13594 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13595 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13596 | shlibpath_overrides_runpath=no | |
13597 | hardcode_into_libs=yes | |
13598 | ;; | |
13599 | *) # from 4.6 on, and DragonFly | |
13600 | shlibpath_overrides_runpath=yes | |
13601 | hardcode_into_libs=yes | |
13602 | ;; | |
13603 | esac | |
13604 | ;; | |
9c60689e | 13605 | |
47aaa820 DWT |
13606 | gnu*) |
13607 | version_type=linux | |
13608 | need_lib_prefix=no | |
13609 | need_version=no | |
13610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13611 | soname_spec='${libname}${release}${shared_ext}$major' | |
13612 | shlibpath_var=LD_LIBRARY_PATH | |
13613 | hardcode_into_libs=yes | |
13614 | ;; | |
9c60689e | 13615 | |
47aaa820 DWT |
13616 | hpux9* | hpux10* | hpux11*) |
13617 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13618 | # link against other versions. | |
13619 | version_type=sunos | |
13620 | need_lib_prefix=no | |
13621 | need_version=no | |
13622 | case $host_cpu in | |
13623 | ia64*) | |
13624 | shrext_cmds='.so' | |
13625 | hardcode_into_libs=yes | |
13626 | dynamic_linker="$host_os dld.so" | |
13627 | shlibpath_var=LD_LIBRARY_PATH | |
13628 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13630 | soname_spec='${libname}${release}${shared_ext}$major' | |
13631 | if test "X$HPUX_IA64_MODE" = X32; then | |
13632 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13633 | else | |
13634 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13635 | fi | |
13636 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13637 | ;; | |
13638 | hppa*64*) | |
13639 | shrext_cmds='.sl' | |
13640 | hardcode_into_libs=yes | |
13641 | dynamic_linker="$host_os dld.sl" | |
13642 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13643 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13645 | soname_spec='${libname}${release}${shared_ext}$major' | |
13646 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13647 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13648 | ;; | |
13649 | *) | |
13650 | shrext_cmds='.sl' | |
13651 | dynamic_linker="$host_os dld.sl" | |
13652 | shlibpath_var=SHLIB_PATH | |
13653 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13655 | soname_spec='${libname}${release}${shared_ext}$major' | |
13656 | ;; | |
13657 | esac | |
13658 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13659 | postinstall_cmds='chmod 555 $lib' | |
13660 | ;; | |
9c60689e | 13661 | |
47aaa820 DWT |
13662 | interix[3-9]*) |
13663 | version_type=linux | |
13664 | need_lib_prefix=no | |
13665 | need_version=no | |
13666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13667 | soname_spec='${libname}${release}${shared_ext}$major' | |
13668 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13669 | shlibpath_var=LD_LIBRARY_PATH | |
13670 | shlibpath_overrides_runpath=no | |
13671 | hardcode_into_libs=yes | |
13672 | ;; | |
9c60689e | 13673 | |
47aaa820 DWT |
13674 | irix5* | irix6* | nonstopux*) |
13675 | case $host_os in | |
13676 | nonstopux*) version_type=nonstopux ;; | |
13677 | *) | |
13678 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13679 | version_type=linux | |
13680 | else | |
13681 | version_type=irix | |
13682 | fi ;; | |
13683 | esac | |
13684 | need_lib_prefix=no | |
13685 | need_version=no | |
13686 | soname_spec='${libname}${release}${shared_ext}$major' | |
13687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13688 | case $host_os in | |
13689 | irix5* | nonstopux*) | |
13690 | libsuff= shlibsuff= | |
13691 | ;; | |
13692 | *) | |
13693 | case $LD in # libtool.m4 will add one of these switches to LD | |
13694 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13695 | libsuff= shlibsuff= libmagic=32-bit;; | |
13696 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13697 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13698 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13699 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13700 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13701 | esac | |
13702 | ;; | |
13703 | esac | |
13704 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13705 | shlibpath_overrides_runpath=no | |
13706 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13707 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13708 | hardcode_into_libs=yes | |
13709 | ;; | |
9c60689e | 13710 | |
47aaa820 DWT |
13711 | # No shared lib support for Linux oldld, aout, or coff. |
13712 | linux*oldld* | linux*aout* | linux*coff*) | |
13713 | dynamic_linker=no | |
13714 | ;; | |
9c60689e | 13715 | |
47aaa820 DWT |
13716 | # This must be Linux ELF. |
13717 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13718 | version_type=linux | |
13719 | need_lib_prefix=no | |
13720 | need_version=no | |
13721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13722 | soname_spec='${libname}${release}${shared_ext}$major' | |
13723 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13724 | shlibpath_var=LD_LIBRARY_PATH | |
13725 | shlibpath_overrides_runpath=no | |
13726 | # Some binutils ld are patched to set DT_RUNPATH | |
13727 | save_LDFLAGS=$LDFLAGS | |
13728 | save_libdir=$libdir | |
13729 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13730 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13732 | /* end confdefs.h. */ | |
9c60689e | 13733 | |
47aaa820 DWT |
13734 | int |
13735 | main () | |
13736 | { | |
9c60689e | 13737 | |
47aaa820 DWT |
13738 | ; |
13739 | return 0; | |
13740 | } | |
13741 | _ACEOF | |
13742 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13743 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13744 | shlibpath_overrides_runpath=yes | |
9c60689e | 13745 | fi |
47aaa820 DWT |
13746 | fi |
13747 | rm -f core conftest.err conftest.$ac_objext \ | |
13748 | conftest$ac_exeext conftest.$ac_ext | |
13749 | LDFLAGS=$save_LDFLAGS | |
13750 | libdir=$save_libdir | |
9c60689e | 13751 | |
47aaa820 DWT |
13752 | # This implies no fast_install, which is unacceptable. |
13753 | # Some rework will be needed to allow for fast_install | |
13754 | # before this can be enabled. | |
13755 | hardcode_into_libs=yes | |
9c60689e | 13756 | |
47aaa820 DWT |
13757 | # Append ld.so.conf contents to the search path |
13758 | if test -f /etc/ld.so.conf; then | |
13759 | 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' ' '` | |
13760 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13761 | fi | |
9c60689e | 13762 | |
47aaa820 DWT |
13763 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13764 | # powerpc, because MkLinux only supported shared libraries with the | |
13765 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13766 | # most powerpc-linux boxes support dynamic linking these days and | |
13767 | # people can always --disable-shared, the test was removed, and we | |
13768 | # assume the GNU/Linux dynamic linker is in use. | |
13769 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13770 | ;; |
47aaa820 DWT |
13771 | |
13772 | netbsdelf*-gnu) | |
13773 | version_type=linux | |
13774 | need_lib_prefix=no | |
13775 | need_version=no | |
13776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13777 | soname_spec='${libname}${release}${shared_ext}$major' | |
13778 | shlibpath_var=LD_LIBRARY_PATH | |
13779 | shlibpath_overrides_runpath=no | |
13780 | hardcode_into_libs=yes | |
13781 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 13782 | ;; |
47aaa820 DWT |
13783 | |
13784 | netbsd*) | |
13785 | version_type=sunos | |
13786 | need_lib_prefix=no | |
13787 | need_version=no | |
13788 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13790 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13791 | dynamic_linker='NetBSD (a.out) ld.so' | |
13792 | else | |
13793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13794 | soname_spec='${libname}${release}${shared_ext}$major' | |
13795 | dynamic_linker='NetBSD ld.elf_so' | |
13796 | fi | |
13797 | shlibpath_var=LD_LIBRARY_PATH | |
13798 | shlibpath_overrides_runpath=yes | |
13799 | hardcode_into_libs=yes | |
9c60689e | 13800 | ;; |
9c60689e | 13801 | |
47aaa820 DWT |
13802 | newsos6) |
13803 | version_type=linux | |
13804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13805 | shlibpath_var=LD_LIBRARY_PATH | |
13806 | shlibpath_overrides_runpath=yes | |
13807 | ;; | |
9c60689e | 13808 | |
47aaa820 DWT |
13809 | *nto* | *qnx*) |
13810 | version_type=qnx | |
13811 | need_lib_prefix=no | |
13812 | need_version=no | |
13813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13814 | soname_spec='${libname}${release}${shared_ext}$major' | |
13815 | shlibpath_var=LD_LIBRARY_PATH | |
13816 | shlibpath_overrides_runpath=no | |
13817 | hardcode_into_libs=yes | |
13818 | dynamic_linker='ldqnx.so' | |
13819 | ;; | |
9c60689e | 13820 | |
47aaa820 DWT |
13821 | openbsd*) |
13822 | version_type=sunos | |
13823 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13824 | need_lib_prefix=no | |
13825 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13826 | case $host_os in | |
13827 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13828 | *) need_version=no ;; | |
13829 | esac | |
13830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13831 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13832 | shlibpath_var=LD_LIBRARY_PATH | |
13833 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13834 | case $host_os in | |
13835 | openbsd2.[89] | openbsd2.[89].*) | |
13836 | shlibpath_overrides_runpath=no | |
13837 | ;; | |
13838 | *) | |
13839 | shlibpath_overrides_runpath=yes | |
13840 | ;; | |
13841 | esac | |
13842 | else | |
13843 | shlibpath_overrides_runpath=yes | |
13844 | fi | |
13845 | ;; | |
9c60689e | 13846 | |
47aaa820 DWT |
13847 | os2*) |
13848 | libname_spec='$name' | |
13849 | shrext_cmds=".dll" | |
13850 | need_lib_prefix=no | |
13851 | library_names_spec='$libname${shared_ext} $libname.a' | |
13852 | dynamic_linker='OS/2 ld.exe' | |
13853 | shlibpath_var=LIBPATH | |
13854 | ;; | |
9c60689e | 13855 | |
47aaa820 DWT |
13856 | osf3* | osf4* | osf5*) |
13857 | version_type=osf | |
13858 | need_lib_prefix=no | |
13859 | need_version=no | |
13860 | soname_spec='${libname}${release}${shared_ext}$major' | |
13861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13862 | shlibpath_var=LD_LIBRARY_PATH | |
13863 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13864 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13865 | ;; | |
9c60689e | 13866 | |
47aaa820 DWT |
13867 | rdos*) |
13868 | dynamic_linker=no | |
13869 | ;; | |
9c60689e | 13870 | |
47aaa820 DWT |
13871 | solaris*) |
13872 | version_type=linux | |
13873 | need_lib_prefix=no | |
13874 | need_version=no | |
13875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13876 | soname_spec='${libname}${release}${shared_ext}$major' | |
13877 | shlibpath_var=LD_LIBRARY_PATH | |
13878 | shlibpath_overrides_runpath=yes | |
13879 | hardcode_into_libs=yes | |
13880 | # ldd complains unless libraries are executable | |
13881 | postinstall_cmds='chmod +x $lib' | |
13882 | ;; | |
9c60689e | 13883 | |
47aaa820 DWT |
13884 | sunos4*) |
13885 | version_type=sunos | |
13886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13887 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13888 | shlibpath_var=LD_LIBRARY_PATH | |
13889 | shlibpath_overrides_runpath=yes | |
13890 | if test "$with_gnu_ld" = yes; then | |
13891 | need_lib_prefix=no | |
13892 | fi | |
13893 | need_version=yes | |
13894 | ;; | |
9c60689e | 13895 | |
47aaa820 DWT |
13896 | sysv4 | sysv4.3*) |
13897 | version_type=linux | |
13898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13899 | soname_spec='${libname}${release}${shared_ext}$major' | |
13900 | shlibpath_var=LD_LIBRARY_PATH | |
13901 | case $host_vendor in | |
13902 | sni) | |
13903 | shlibpath_overrides_runpath=no | |
13904 | need_lib_prefix=no | |
13905 | runpath_var=LD_RUN_PATH | |
9c60689e | 13906 | ;; |
47aaa820 DWT |
13907 | siemens) |
13908 | need_lib_prefix=no | |
9c60689e | 13909 | ;; |
47aaa820 DWT |
13910 | motorola) |
13911 | need_lib_prefix=no | |
13912 | need_version=no | |
13913 | shlibpath_overrides_runpath=no | |
13914 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13915 | ;; | |
13916 | esac | |
9c60689e | 13917 | ;; |
9c60689e | 13918 | |
47aaa820 DWT |
13919 | sysv4*MP*) |
13920 | if test -d /usr/nec ;then | |
13921 | version_type=linux | |
13922 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13923 | soname_spec='$libname${shared_ext}.$major' | |
13924 | shlibpath_var=LD_LIBRARY_PATH | |
13925 | fi | |
13926 | ;; | |
9c60689e | 13927 | |
47aaa820 DWT |
13928 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13929 | version_type=freebsd-elf | |
13930 | need_lib_prefix=no | |
13931 | need_version=no | |
13932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13933 | soname_spec='${libname}${release}${shared_ext}$major' | |
13934 | shlibpath_var=LD_LIBRARY_PATH | |
13935 | shlibpath_overrides_runpath=yes | |
13936 | hardcode_into_libs=yes | |
13937 | if test "$with_gnu_ld" = yes; then | |
13938 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13939 | else | |
13940 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13941 | case $host_os in | |
13942 | sco3.2v5*) | |
13943 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13944 | ;; | |
13945 | esac | |
13946 | fi | |
13947 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13948 | ;; | |
9c60689e | 13949 | |
47aaa820 DWT |
13950 | tpf*) |
13951 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13952 | version_type=linux | |
13953 | need_lib_prefix=no | |
13954 | need_version=no | |
13955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13956 | shlibpath_var=LD_LIBRARY_PATH | |
13957 | shlibpath_overrides_runpath=no | |
13958 | hardcode_into_libs=yes | |
13959 | ;; | |
9c60689e | 13960 | |
47aaa820 DWT |
13961 | uts4*) |
13962 | version_type=linux | |
13963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13964 | soname_spec='${libname}${release}${shared_ext}$major' | |
13965 | shlibpath_var=LD_LIBRARY_PATH | |
13966 | ;; | |
9c60689e | 13967 | |
47aaa820 DWT |
13968 | *) |
13969 | dynamic_linker=no | |
e9c9a47c DWT |
13970 | ;; |
13971 | esac | |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13973 | $as_echo "$dynamic_linker" >&6; } | |
13974 | test "$dynamic_linker" = no && can_build_shared=no | |
13975 | ||
13976 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13977 | if test "$GCC" = yes; then | |
13978 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 13979 | fi |
9c60689e | 13980 | |
e9c9a47c DWT |
13981 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13982 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 13983 | fi |
e9c9a47c DWT |
13984 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
13985 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 13986 | fi |
9c60689e | 13987 | |
9c60689e | 13988 | |
9c60689e | 13989 | |
9c60689e | 13990 | |
47aaa820 | 13991 | |
47aaa820 | 13992 | |
47aaa820 | 13993 | |
9c60689e | 13994 | |
9c60689e | 13995 | |
47aaa820 | 13996 | |
47aaa820 | 13997 | |
47aaa820 | 13998 | |
47aaa820 | 13999 | |
47aaa820 | 14000 | |
47aaa820 | 14001 | |
47aaa820 | 14002 | |
47aaa820 | 14003 | |
9c60689e | 14004 | |
9c60689e | 14005 | |
9c60689e | 14006 | |
9c60689e | 14007 | |
9c60689e | 14008 | |
e9c9a47c DWT |
14009 | |
14010 | ||
14011 | ||
14012 | ||
14013 | ||
14014 | ||
14015 | ||
14016 | ||
14017 | ||
14018 | ||
14019 | ||
14020 | ||
14021 | ||
14022 | ||
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14024 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14025 | hardcode_action_CXX= | |
14026 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14027 | test -n "$runpath_var_CXX" || | |
14028 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14029 | ||
14030 | # We can hardcode non-existent directories. | |
14031 | if test "$hardcode_direct_CXX" != no && | |
14032 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14033 | # have to relink, otherwise we might link with an installed library | |
14034 | # when we should be linking with a yet-to-be-installed one | |
14035 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14036 | test "$hardcode_minus_L_CXX" != no; then | |
14037 | # Linking always hardcodes the temporary library directory. | |
14038 | hardcode_action_CXX=relink | |
14039 | else | |
14040 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14041 | hardcode_action_CXX=immediate | |
14042 | fi | |
14043 | else | |
14044 | # We cannot hardcode anything, or else we can only hardcode existing | |
14045 | # directories. | |
14046 | hardcode_action_CXX=unsupported | |
14047 | fi | |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14049 | $as_echo "$hardcode_action_CXX" >&6; } | |
14050 | ||
14051 | if test "$hardcode_action_CXX" = relink || | |
14052 | test "$inherit_rpath_CXX" = yes; then | |
14053 | # Fast installation is not supported | |
14054 | enable_fast_install=no | |
14055 | elif test "$shlibpath_overrides_runpath" = yes || | |
14056 | test "$enable_shared" = no; then | |
14057 | # Fast installation is not necessary | |
14058 | enable_fast_install=needless | |
47aaa820 | 14059 | fi |
9c60689e | 14060 | |
47aaa820 | 14061 | |
47aaa820 | 14062 | |
e9c9a47c DWT |
14063 | |
14064 | ||
14065 | ||
14066 | ||
14067 | fi # test -n "$compiler" | |
14068 | ||
14069 | CC=$lt_save_CC | |
14070 | LDCXX=$LD | |
14071 | LD=$lt_save_LD | |
14072 | GCC=$lt_save_GCC | |
14073 | with_gnu_ld=$lt_save_with_gnu_ld | |
14074 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14075 | lt_cv_path_LD=$lt_save_path_LD | |
14076 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14077 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14078 | fi # test "$_lt_caught_CXX_error" != yes | |
14079 | ||
14080 | ac_ext=c | |
14081 | ac_cpp='$CPP $CPPFLAGS' | |
14082 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14083 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14084 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14085 | ||
14086 | ||
14087 | ac_ext=mm | |
14088 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
14089 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14090 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14091 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
14092 | if test -n "$ac_tool_prefix"; then | |
14093 | for ac_prog in g++ objc++ objcxx c++ CXX | |
14094 | do | |
14095 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14096 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
632b71ea DWT |
14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14098 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14099 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : |
632b71ea DWT |
14100 | $as_echo_n "(cached) " >&6 |
14101 | else | |
e9c9a47c DWT |
14102 | if test -n "$OBJCXX"; then |
14103 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
632b71ea DWT |
14104 | else |
14105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14106 | for as_dir in $PATH | |
14107 | do | |
14108 | IFS=$as_save_IFS | |
14109 | test -z "$as_dir" && as_dir=. | |
14110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14112 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
632b71ea DWT |
14113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14114 | break 2 | |
14115 | fi | |
14116 | done | |
14117 | done | |
14118 | IFS=$as_save_IFS | |
14119 | ||
14120 | fi | |
14121 | fi | |
e9c9a47c DWT |
14122 | OBJCXX=$ac_cv_prog_OBJCXX |
14123 | if test -n "$OBJCXX"; then | |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
14125 | $as_echo "$OBJCXX" >&6; } | |
632b71ea DWT |
14126 | else |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14128 | $as_echo "no" >&6; } | |
14129 | fi | |
14130 | ||
14131 | ||
e9c9a47c DWT |
14132 | test -n "$OBJCXX" && break |
14133 | done | |
632b71ea | 14134 | fi |
e9c9a47c DWT |
14135 | if test -z "$OBJCXX"; then |
14136 | ac_ct_OBJCXX=$OBJCXX | |
14137 | for ac_prog in g++ objc++ objcxx c++ CXX | |
47aaa820 DWT |
14138 | do |
14139 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14140 | set dummy $ac_prog; ac_word=$2 | |
14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14142 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14143 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : |
47aaa820 DWT |
14144 | $as_echo_n "(cached) " >&6 |
14145 | else | |
e9c9a47c DWT |
14146 | if test -n "$ac_ct_OBJCXX"; then |
14147 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
47aaa820 DWT |
14148 | else |
14149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14150 | for as_dir in $PATH | |
14151 | do | |
14152 | IFS=$as_save_IFS | |
14153 | test -z "$as_dir" && as_dir=. | |
14154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14156 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
47aaa820 DWT |
14157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14158 | break 2 | |
14159 | fi | |
14160 | done | |
14161 | done | |
14162 | IFS=$as_save_IFS | |
9c60689e | 14163 | |
9c60689e | 14164 | fi |
9c60689e | 14165 | fi |
e9c9a47c DWT |
14166 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
14167 | if test -n "$ac_ct_OBJCXX"; then | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
14169 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
47aaa820 DWT |
14170 | else |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14172 | $as_echo "no" >&6; } | |
9c60689e DWT |
14173 | fi |
14174 | ||
14175 | ||
e9c9a47c | 14176 | test -n "$ac_ct_OBJCXX" && break |
47aaa820 | 14177 | done |
e9c9a47c DWT |
14178 | |
14179 | if test "x$ac_ct_OBJCXX" = x; then | |
14180 | OBJCXX="g++" | |
14181 | else | |
14182 | case $cross_compiling:$ac_tool_warned in | |
14183 | yes:) | |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14185 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14186 | ac_tool_warned=yes ;; | |
14187 | esac | |
14188 | OBJCXX=$ac_ct_OBJCXX | |
14189 | fi | |
14190 | fi | |
14191 | ||
14192 | # Provide some information about the compiler. | |
14193 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
14194 | set X $ac_compile | |
14195 | ac_compiler=$2 | |
14196 | for ac_option in --version -v -V -qversion; do | |
14197 | { { ac_try="$ac_compiler $ac_option >&5" | |
632b71ea DWT |
14198 | case "(($ac_try" in |
14199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14200 | *) ac_try_echo=$ac_try;; | |
14201 | esac | |
14202 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14203 | $as_echo "$ac_try_echo"; } >&5 | |
e9c9a47c | 14204 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
632b71ea | 14205 | ac_status=$? |
e9c9a47c DWT |
14206 | if test -s conftest.err; then |
14207 | sed '10a\ | |
14208 | ... rest of stderr output deleted ... | |
14209 | 10q' conftest.err >conftest.er1 | |
14210 | cat conftest.er1 >&5 | |
14211 | fi | |
14212 | rm -f conftest.er1 conftest.err | |
632b71ea DWT |
14213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14214 | test $ac_status = 0; } | |
e9c9a47c | 14215 | done |
9c60689e | 14216 | |
e9c9a47c DWT |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
14218 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
14219 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
632b71ea DWT |
14220 | $as_echo_n "(cached) " >&6 |
14221 | else | |
e9c9a47c | 14222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
632b71ea | 14223 | /* end confdefs.h. */ |
e9c9a47c DWT |
14224 | |
14225 | int | |
14226 | main () | |
14227 | { | |
14228 | #ifndef __GNUC__ | |
14229 | choke me | |
14230 | #endif | |
14231 | ||
14232 | ; | |
14233 | return 0; | |
14234 | } | |
632b71ea | 14235 | _ACEOF |
e9c9a47c DWT |
14236 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
14237 | ac_compiler_gnu=yes | |
14238 | else | |
14239 | ac_compiler_gnu=no | |
632b71ea | 14240 | fi |
e9c9a47c DWT |
14241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14242 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 14243 | |
632b71ea | 14244 | fi |
e9c9a47c DWT |
14245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
14246 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
14247 | if test $ac_compiler_gnu = yes; then | |
14248 | GOBJCXX=yes | |
14249 | else | |
14250 | GOBJCXX= | |
632b71ea | 14251 | fi |
e9c9a47c DWT |
14252 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
14253 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
14255 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
14256 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
632b71ea | 14257 | $as_echo_n "(cached) " >&6 |
47aaa820 | 14258 | else |
e9c9a47c DWT |
14259 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
14260 | ac_objcxx_werror_flag=yes | |
14261 | ac_cv_prog_objcxx_g=no | |
14262 | OBJCXXFLAGS="-g" | |
14263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 14264 | /* end confdefs.h. */ |
9c60689e | 14265 | |
e9c9a47c DWT |
14266 | int |
14267 | main () | |
14268 | { | |
9c60689e | 14269 | |
e9c9a47c DWT |
14270 | ; |
14271 | return 0; | |
14272 | } | |
14273 | _ACEOF | |
14274 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14275 | ac_cv_prog_objcxx_g=yes | |
632b71ea | 14276 | else |
e9c9a47c DWT |
14277 | OBJCXXFLAGS="" |
14278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14279 | /* end confdefs.h. */ | |
9c60689e | 14280 | |
e9c9a47c DWT |
14281 | int |
14282 | main () | |
14283 | { | |
9c60689e | 14284 | |
e9c9a47c DWT |
14285 | ; |
14286 | return 0; | |
14287 | } | |
14288 | _ACEOF | |
14289 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 14290 | |
47aaa820 | 14291 | else |
e9c9a47c DWT |
14292 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
14293 | OBJCXXFLAGS="-g" | |
14294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14295 | /* end confdefs.h. */ | |
9c60689e | 14296 | |
e9c9a47c DWT |
14297 | int |
14298 | main () | |
14299 | { | |
9c60689e | 14300 | |
e9c9a47c DWT |
14301 | ; |
14302 | return 0; | |
14303 | } | |
14304 | _ACEOF | |
14305 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14306 | ac_cv_prog_objcxx_g=yes | |
47aaa820 | 14307 | fi |
e9c9a47c | 14308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14309 | fi |
e9c9a47c | 14310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14311 | fi |
e9c9a47c DWT |
14312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14313 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
790e5246 | 14314 | fi |
e9c9a47c DWT |
14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
14316 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
14317 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
14318 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
14319 | elif test $ac_cv_prog_objcxx_g = yes; then | |
14320 | if test "$GOBJCXX" = yes; then | |
14321 | OBJCXXFLAGS="-g -O2" | |
14322 | else | |
14323 | OBJCXXFLAGS="-g" | |
632b71ea | 14324 | fi |
632b71ea | 14325 | else |
e9c9a47c DWT |
14326 | if test "$GOBJCXX" = yes; then |
14327 | OBJCXXFLAGS="-O2" | |
14328 | else | |
14329 | OBJCXXFLAGS= | |
14330 | fi | |
632b71ea | 14331 | fi |
e9c9a47c DWT |
14332 | ac_ext=c |
14333 | ac_cpp='$CPP $CPPFLAGS' | |
14334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 14337 | |
9c60689e | 14338 | |
e9c9a47c DWT |
14339 | # Check whether --with-frameworks was given. |
14340 | if test "${with_frameworks+set}" = set; then : | |
14341 | withval=$with_frameworks; | |
14342 | for framework in $withval; do | |
9c60689e | 14343 | |
e9c9a47c DWT |
14344 | for element in -F$framework; do |
14345 | haveit= | |
14346 | for x in $CFLAGS; do | |
9c60689e | 14347 | |
e9c9a47c DWT |
14348 | acl_save_prefix="$prefix" |
14349 | prefix="$acl_final_prefix" | |
14350 | acl_save_exec_prefix="$exec_prefix" | |
14351 | exec_prefix="$acl_final_exec_prefix" | |
14352 | eval x=\"$x\" | |
14353 | exec_prefix="$acl_save_exec_prefix" | |
14354 | prefix="$acl_save_prefix" | |
14355 | ||
14356 | if test "X$x" = "X$element"; then | |
14357 | haveit=yes | |
14358 | break | |
14359 | fi | |
14360 | done | |
14361 | if test -z "$haveit"; then | |
14362 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14363 | fi | |
9c60689e | 14364 | done |
9c60689e | 14365 | |
94690cff | 14366 | |
e9c9a47c DWT |
14367 | for element in -F$framework; do |
14368 | haveit= | |
14369 | for x in $CXXFLAGS; do | |
9c60689e | 14370 | |
e9c9a47c DWT |
14371 | acl_save_prefix="$prefix" |
14372 | prefix="$acl_final_prefix" | |
14373 | acl_save_exec_prefix="$exec_prefix" | |
14374 | exec_prefix="$acl_final_exec_prefix" | |
14375 | eval x=\"$x\" | |
14376 | exec_prefix="$acl_save_exec_prefix" | |
14377 | prefix="$acl_save_prefix" | |
9c60689e | 14378 | |
e9c9a47c DWT |
14379 | if test "X$x" = "X$element"; then |
14380 | haveit=yes | |
14381 | break | |
14382 | fi | |
14383 | done | |
14384 | if test -z "$haveit"; then | |
14385 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14386 | fi | |
14387 | done | |
9c60689e | 14388 | |
e9c9a47c DWT |
14389 | |
14390 | for element in -F$framework; do | |
14391 | haveit= | |
14392 | for x in $OBJCCXXFLAGS; do | |
14393 | ||
14394 | acl_save_prefix="$prefix" | |
14395 | prefix="$acl_final_prefix" | |
14396 | acl_save_exec_prefix="$exec_prefix" | |
14397 | exec_prefix="$acl_final_exec_prefix" | |
14398 | eval x=\"$x\" | |
14399 | exec_prefix="$acl_save_exec_prefix" | |
14400 | prefix="$acl_save_prefix" | |
14401 | ||
14402 | if test "X$x" = "X$element"; then | |
14403 | haveit=yes | |
14404 | break | |
14405 | fi | |
14406 | done | |
14407 | if test -z "$haveit"; then | |
14408 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
14409 | fi | |
9c60689e | 14410 | done |
632b71ea | 14411 | |
e9c9a47c | 14412 | done |
9c60689e | 14413 | |
e9c9a47c | 14414 | fi |
9c60689e | 14415 | |
e9c9a47c DWT |
14416 | ac_ext=cpp |
14417 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14418 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14419 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14420 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e DWT |
14421 | |
14422 | ||
632b71ea | 14423 | apr_found="no" |
9c60689e | 14424 | |
632b71ea DWT |
14425 | if test "$target_os" = "os2-emx"; then |
14426 | # Scripts don't pass test -x on OS/2 | |
14427 | TEST_X="test -f" | |
14428 | else | |
14429 | TEST_X="test -x" | |
14430 | fi | |
9c60689e | 14431 | |
632b71ea | 14432 | acceptable_majors="1" |
9c60689e | 14433 | |
632b71ea DWT |
14434 | apr_temp_acceptable_apr_config="" |
14435 | for apr_temp_major in $acceptable_majors | |
14436 | do | |
14437 | case $apr_temp_major in | |
14438 | 0) | |
14439 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14440 | ;; | |
14441 | *) | |
14442 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14443 | ;; | |
14444 | esac | |
14445 | done | |
9c60689e | 14446 | |
632b71ea DWT |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14448 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14449 | |
632b71ea DWT |
14450 | # Check whether --with-apr was given. |
14451 | if test "${with_apr+set}" = set; then : | |
14452 | withval=$with_apr; | |
14453 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14454 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14455 | fi | |
9c60689e | 14456 | |
632b71ea DWT |
14457 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14458 | do | |
14459 | for lookdir in "$withval/bin" "$withval" | |
14460 | do | |
14461 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14462 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14463 | |
632b71ea DWT |
14464 | apr_found="yes" |
14465 | break 2 | |
14466 | fi | |
14467 | done | |
14468 | done | |
9c60689e | 14469 | |
632b71ea DWT |
14470 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14471 | apr_config="$withval" | |
14472 | apr_found="yes" | |
14473 | fi | |
9c60689e | 14474 | |
632b71ea DWT |
14475 | if test "$apr_found" != "yes"; then |
14476 | 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 | |
14477 | fi | |
9c60689e | 14478 | |
632b71ea | 14479 | else |
9c60689e | 14480 | |
632b71ea DWT |
14481 | if test -n "1" && test "1" = "1"; then |
14482 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14483 | do | |
14484 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14485 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14486 | |
632b71ea DWT |
14487 | apr_found="yes" |
14488 | break | |
14489 | else | |
14490 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14491 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14492 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14493 | |
632b71ea DWT |
14494 | apr_found="yes" |
14495 | break 2 | |
14496 | fi | |
14497 | done | |
14498 | fi | |
14499 | done | |
14500 | fi | |
14501 | if test "$apr_found" = "no" && test -d ""; then | |
14502 | apr_temp_abs_srcdir="`cd && pwd`" | |
14503 | apr_found="reconfig" | |
14504 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14505 | case $apr_bundled_major in | |
14506 | "") | |
14507 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14508 | ;; | |
14509 | 0) | |
14510 | apr_temp_apr_config_file="apr-config" | |
14511 | ;; | |
14512 | *) | |
14513 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14514 | ;; | |
14515 | esac | |
14516 | if test -n ""; then | |
14517 | apr_config="/$apr_temp_apr_config_file" | |
14518 | else | |
14519 | apr_config="/$apr_temp_apr_config_file" | |
14520 | fi | |
14521 | fi | |
9c60689e | 14522 | |
632b71ea | 14523 | fi |
9c60689e | 14524 | |
9c60689e | 14525 | |
632b71ea DWT |
14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14527 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14528 | |
632b71ea DWT |
14529 | case $apr_found in #( |
14530 | yes) : | |
9c60689e DWT |
14531 | |
14532 | ||
632b71ea DWT |
14533 | for element in `$apr_config --includes`; do |
14534 | haveit= | |
14535 | for x in $CPPFLAGS; do | |
9c60689e DWT |
14536 | |
14537 | acl_save_prefix="$prefix" | |
14538 | prefix="$acl_final_prefix" | |
14539 | acl_save_exec_prefix="$exec_prefix" | |
14540 | exec_prefix="$acl_final_exec_prefix" | |
632b71ea | 14541 | eval x=\"$x\" |
9c60689e DWT |
14542 | exec_prefix="$acl_save_exec_prefix" |
14543 | prefix="$acl_save_prefix" | |
14544 | ||
632b71ea DWT |
14545 | if test "X$x" = "X$element"; then |
14546 | haveit=yes | |
14547 | break | |
9c60689e | 14548 | fi |
632b71ea DWT |
14549 | done |
14550 | if test -z "$haveit"; then | |
14551 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9c60689e | 14552 | fi |
632b71ea | 14553 | done |
9c60689e | 14554 | |
632b71ea | 14555 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 14556 | |
632b71ea DWT |
14557 | ;; #( |
14558 | *) : | |
14559 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14560 | esac | |
14561 | ||
14562 | ||
14563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
14564 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
14565 | if test "${vl_cv_lib_readline+set}" = set; then : | |
14566 | $as_echo_n "(cached) " >&6 | |
14567 | else | |
14568 | ||
14569 | ORIG_LIBS="$LIBS" | |
14570 | for readline_lib in readline edit editline; do | |
14571 | for termcap_lib in "" termcap curses ncurses; do | |
14572 | if test -z "$termcap_lib"; then | |
14573 | TRY_LIB="-l$readline_lib" | |
14574 | else | |
14575 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
14576 | fi | |
14577 | LIBS="$ORIG_LIBS $TRY_LIB" | |
14578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14579 | /* end confdefs.h. */ | |
14580 | ||
14581 | /* Override any GCC internal prototype to avoid an error. | |
14582 | Use char because int might match the return type of a GCC | |
14583 | builtin and then its argument prototype would still apply. */ | |
14584 | #ifdef __cplusplus | |
14585 | extern "C" | |
14586 | #endif | |
14587 | char readline (); | |
14588 | int | |
14589 | main () | |
14590 | { | |
14591 | return readline (); | |
14592 | ; | |
14593 | return 0; | |
14594 | } | |
14595 | _ACEOF | |
14596 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14597 | vl_cv_lib_readline="$TRY_LIB" | |
14598 | fi | |
14599 | rm -f core conftest.err conftest.$ac_objext \ | |
14600 | conftest$ac_exeext conftest.$ac_ext | |
14601 | if test -n "$vl_cv_lib_readline"; then | |
9c60689e DWT |
14602 | break |
14603 | fi | |
14604 | done | |
632b71ea DWT |
14605 | if test -n "$vl_cv_lib_readline"; then |
14606 | break | |
14607 | fi | |
14608 | done | |
14609 | if test -z "$vl_cv_lib_readline"; then | |
14610 | vl_cv_lib_readline="no" | |
14611 | LIBS="$ORIG_LIBS" | |
14612 | fi | |
9c60689e | 14613 | |
632b71ea DWT |
14614 | fi |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
14616 | $as_echo "$vl_cv_lib_readline" >&6; } | |
9c60689e | 14617 | |
632b71ea | 14618 | if test "$vl_cv_lib_readline" != "no"; then |
9c60689e | 14619 | |
632b71ea | 14620 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
9c60689e | 14621 | |
632b71ea DWT |
14622 | for ac_header in readline.h readline/readline.h |
14623 | do : | |
14624 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14625 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14626 | eval as_val=\$$as_ac_Header | |
14627 | if test "x$as_val" = x""yes; then : | |
14628 | cat >>confdefs.h <<_ACEOF | |
14629 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14630 | _ACEOF | |
9c60689e | 14631 | |
632b71ea | 14632 | fi |
9c60689e | 14633 | |
632b71ea | 14634 | done |
9c60689e | 14635 | |
632b71ea DWT |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 |
14637 | $as_echo_n "checking whether readline supports history... " >&6; } | |
14638 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
14639 | $as_echo_n "(cached) " >&6 | |
14640 | else | |
9c60689e | 14641 | |
632b71ea DWT |
14642 | vl_cv_lib_readline_history="no" |
14643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14644 | /* end confdefs.h. */ | |
9c60689e | 14645 | |
632b71ea DWT |
14646 | /* Override any GCC internal prototype to avoid an error. |
14647 | Use char because int might match the return type of a GCC | |
14648 | builtin and then its argument prototype would still apply. */ | |
14649 | #ifdef __cplusplus | |
14650 | extern "C" | |
14651 | #endif | |
14652 | char add_history (); | |
14653 | int | |
14654 | main () | |
14655 | { | |
14656 | return add_history (); | |
14657 | ; | |
14658 | return 0; | |
14659 | } | |
14660 | _ACEOF | |
14661 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14662 | vl_cv_lib_readline_history="yes" | |
14663 | fi | |
14664 | rm -f core conftest.err conftest.$ac_objext \ | |
14665 | conftest$ac_exeext conftest.$ac_ext | |
9c60689e | 14666 | |
632b71ea DWT |
14667 | fi |
14668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
14669 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
14670 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
9c60689e | 14671 | |
632b71ea | 14672 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
9c60689e | 14673 | |
632b71ea DWT |
14674 | for ac_header in history.h readline/history.h |
14675 | do : | |
14676 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14677 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14678 | eval as_val=\$$as_ac_Header | |
14679 | if test "x$as_val" = x""yes; then : | |
14680 | cat >>confdefs.h <<_ACEOF | |
14681 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14682 | _ACEOF | |
9c60689e | 14683 | |
632b71ea | 14684 | fi |
9c60689e | 14685 | |
632b71ea | 14686 | done |
9c60689e | 14687 | |
9c60689e | 14688 | fi |
632b71ea | 14689 | fi |
9c60689e | 14690 | |
632b71ea DWT |
14691 | ac_ext=c |
14692 | ac_cpp='$CPP $CPPFLAGS' | |
14693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 14696 | |
9c60689e | 14697 | |
632b71ea DWT |
14698 | if test "X$prefix" = "XNONE"; then |
14699 | acl_final_prefix="$ac_default_prefix" | |
14700 | else | |
14701 | acl_final_prefix="$prefix" | |
9c60689e | 14702 | fi |
632b71ea DWT |
14703 | if test "X$exec_prefix" = "XNONE"; then |
14704 | acl_final_exec_prefix='${prefix}' | |
9c60689e | 14705 | else |
632b71ea | 14706 | acl_final_exec_prefix="$exec_prefix" |
9c60689e | 14707 | fi |
632b71ea DWT |
14708 | acl_save_prefix="$prefix" |
14709 | prefix="$acl_final_prefix" | |
14710 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
14711 | prefix="$acl_save_prefix" | |
9c60689e DWT |
14712 | |
14713 | ||
632b71ea DWT |
14714 | # Check whether --with-gnu-ld was given. |
14715 | if test "${with_gnu_ld+set}" = set; then : | |
14716 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 14717 | else |
632b71ea | 14718 | with_gnu_ld=no |
9c60689e DWT |
14719 | fi |
14720 | ||
632b71ea DWT |
14721 | # Prepare PATH_SEPARATOR. |
14722 | # The user is always right. | |
14723 | if test "${PATH_SEPARATOR+set}" != set; then | |
14724 | echo "#! /bin/sh" >conf$$.sh | |
14725 | echo "exit 0" >>conf$$.sh | |
14726 | chmod +x conf$$.sh | |
14727 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14728 | PATH_SEPARATOR=';' | |
14729 | else | |
14730 | PATH_SEPARATOR=: | |
9c60689e | 14731 | fi |
632b71ea DWT |
14732 | rm -f conf$$.sh |
14733 | fi | |
14734 | ac_prog=ld | |
14735 | if test "$GCC" = yes; then | |
14736 | # Check if gcc -print-prog-name=ld gives a path. | |
14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
14738 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
14739 | case $host in | |
14740 | *-*-mingw*) | |
14741 | # gcc leaves a trailing carriage return which upsets mingw | |
14742 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
14743 | *) | |
14744 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
14745 | esac | |
14746 | case $ac_prog in | |
14747 | # Accept absolute paths. | |
14748 | [\\/]* | [A-Za-z]:[\\/]*) | |
14749 | re_direlt='/[^/][^/]*/\.\./' | |
14750 | # Canonicalize the path of ld | |
14751 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
14752 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
14753 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
14754 | done | |
14755 | test -z "$LD" && LD="$ac_prog" | |
14756 | ;; | |
14757 | "") | |
14758 | # If it fails, then pretend we aren't using GCC. | |
14759 | ac_prog=ld | |
14760 | ;; | |
14761 | *) | |
14762 | # If it is relative, then search for the first ld in PATH. | |
14763 | with_gnu_ld=unknown | |
14764 | ;; | |
14765 | esac | |
14766 | elif test "$with_gnu_ld" = yes; then | |
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
14768 | $as_echo_n "checking for GNU ld... " >&6; } | |
9c60689e | 14769 | else |
632b71ea DWT |
14770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
14771 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 14772 | fi |
632b71ea DWT |
14773 | if test "${acl_cv_path_LD+set}" = set; then : |
14774 | $as_echo_n "(cached) " >&6 | |
14775 | else | |
14776 | if test -z "$LD"; then | |
14777 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14778 | for ac_dir in $PATH; do | |
14779 | test -z "$ac_dir" && ac_dir=. | |
14780 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14781 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
14782 | # Check to see if the program is GNU ld. I'd rather use --version, | |
14783 | # but apparently some GNU ld's only accept -v. | |
14784 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14785 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14786 | *GNU* | *'with BFD'*) | |
14787 | test "$with_gnu_ld" != no && break ;; | |
14788 | *) | |
14789 | test "$with_gnu_ld" != yes && break ;; | |
14790 | esac | |
9c60689e | 14791 | fi |
632b71ea DWT |
14792 | done |
14793 | IFS="$ac_save_ifs" | |
9c60689e | 14794 | else |
632b71ea | 14795 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
9c60689e | 14796 | fi |
632b71ea DWT |
14797 | fi |
14798 | ||
14799 | LD="$acl_cv_path_LD" | |
14800 | if test -n "$LD"; then | |
14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14802 | $as_echo "$LD" >&6; } | |
9c60689e | 14803 | else |
632b71ea DWT |
14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14805 | $as_echo "no" >&6; } | |
9c60689e | 14806 | fi |
632b71ea DWT |
14807 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
14808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14809 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14810 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
14811 | $as_echo_n "(cached) " >&6 | |
9c60689e | 14812 | else |
632b71ea DWT |
14813 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
14814 | case `$LD -v 2>&1 </dev/null` in | |
14815 | *GNU* | *'with BFD'*) | |
14816 | acl_cv_prog_gnu_ld=yes ;; | |
14817 | *) | |
14818 | acl_cv_prog_gnu_ld=no ;; | |
14819 | esac | |
9c60689e | 14820 | fi |
632b71ea DWT |
14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
14822 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14823 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
9c60689e DWT |
14824 | |
14825 | ||
14826 | ||
9c60689e | 14827 | |
632b71ea DWT |
14828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
14829 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
14830 | if test "${acl_cv_rpath+set}" = set; then : | |
14831 | $as_echo_n "(cached) " >&6 | |
9c60689e | 14832 | else |
632b71ea DWT |
14833 | |
14834 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14835 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14836 | . ./conftest.sh | |
14837 | rm -f ./conftest.sh | |
14838 | acl_cv_rpath=done | |
14839 | ||
9c60689e | 14840 | fi |
632b71ea DWT |
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
14842 | $as_echo "$acl_cv_rpath" >&6; } | |
14843 | wl="$acl_cv_wl" | |
14844 | acl_libext="$acl_cv_libext" | |
14845 | acl_shlibext="$acl_cv_shlibext" | |
14846 | acl_libname_spec="$acl_cv_libname_spec" | |
14847 | acl_library_names_spec="$acl_cv_library_names_spec" | |
14848 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14849 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14850 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14851 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14852 | # Check whether --enable-rpath was given. | |
14853 | if test "${enable_rpath+set}" = set; then : | |
14854 | enableval=$enable_rpath; : | |
14855 | else | |
14856 | enable_rpath=yes | |
14857 | fi | |
14858 | ||
14859 | ||
14860 | ||
14861 | acl_libdirstem=lib | |
14862 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14863 | if test -n "$searchpath"; then | |
14864 | acl_save_IFS="${IFS= }"; IFS=":" | |
14865 | for searchdir in $searchpath; do | |
14866 | if test -d "$searchdir"; then | |
14867 | case "$searchdir" in | |
14868 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14869 | *) searchdir=`cd "$searchdir" && pwd` | |
14870 | case "$searchdir" in | |
14871 | */lib64 ) acl_libdirstem=lib64 ;; | |
14872 | esac ;; | |
14873 | esac | |
14874 | fi | |
14875 | done | |
14876 | IFS="$acl_save_IFS" | |
14877 | fi | |
14878 | ||
14879 | ||
14880 | ||
14881 | ||
14882 | ||
14883 | ||
14884 | ||
14885 | ||
14886 | ||
14887 | use_additional=yes | |
14888 | ||
14889 | acl_save_prefix="$prefix" | |
14890 | prefix="$acl_final_prefix" | |
14891 | acl_save_exec_prefix="$exec_prefix" | |
14892 | exec_prefix="$acl_final_exec_prefix" | |
14893 | ||
14894 | eval additional_includedir=\"$includedir\" | |
14895 | eval additional_libdir=\"$libdir\" | |
14896 | ||
14897 | exec_prefix="$acl_save_exec_prefix" | |
14898 | prefix="$acl_save_prefix" | |
14899 | ||
14900 | ||
14901 | # Check whether --with-libiconv-prefix was given. | |
14902 | if test "${with_libiconv_prefix+set}" = set; then : | |
14903 | withval=$with_libiconv_prefix; | |
14904 | if test "X$withval" = "Xno"; then | |
14905 | use_additional=no | |
14906 | else | |
14907 | if test "X$withval" = "X"; then | |
14908 | ||
14909 | acl_save_prefix="$prefix" | |
14910 | prefix="$acl_final_prefix" | |
14911 | acl_save_exec_prefix="$exec_prefix" | |
14912 | exec_prefix="$acl_final_exec_prefix" | |
14913 | ||
14914 | eval additional_includedir=\"$includedir\" | |
14915 | eval additional_libdir=\"$libdir\" | |
14916 | ||
14917 | exec_prefix="$acl_save_exec_prefix" | |
14918 | prefix="$acl_save_prefix" | |
14919 | ||
14920 | else | |
14921 | additional_includedir="$withval/include" | |
14922 | additional_libdir="$withval/$acl_libdirstem" | |
14923 | fi | |
14924 | fi | |
14925 | ||
14926 | fi | |
14927 | ||
14928 | LIBICONV= | |
14929 | LTLIBICONV= | |
14930 | INCICONV= | |
14931 | LIBICONV_PREFIX= | |
14932 | rpathdirs= | |
14933 | ltrpathdirs= | |
14934 | names_already_handled= | |
14935 | names_next_round='iconv ' | |
14936 | while test -n "$names_next_round"; do | |
14937 | names_this_round="$names_next_round" | |
14938 | names_next_round= | |
14939 | for name in $names_this_round; do | |
14940 | already_handled= | |
14941 | for n in $names_already_handled; do | |
14942 | if test "$n" = "$name"; then | |
14943 | already_handled=yes | |
14944 | break | |
14945 | fi | |
14946 | done | |
14947 | if test -z "$already_handled"; then | |
14948 | names_already_handled="$names_already_handled $name" | |
14949 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14950 | eval value=\"\$HAVE_LIB$uppername\" | |
14951 | if test -n "$value"; then | |
14952 | if test "$value" = yes; then | |
14953 | eval value=\"\$LIB$uppername\" | |
14954 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14955 | eval value=\"\$LTLIB$uppername\" | |
14956 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14957 | else | |
14958 | : | |
14959 | fi | |
14960 | else | |
14961 | found_dir= | |
14962 | found_la= | |
14963 | found_so= | |
14964 | found_a= | |
14965 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14966 | if test -n "$acl_shlibext"; then | |
14967 | shrext=".$acl_shlibext" # typically: shrext=.so | |
14968 | else | |
14969 | shrext= | |
14970 | fi | |
14971 | if test $use_additional = yes; then | |
14972 | dir="$additional_libdir" | |
14973 | if test -n "$acl_shlibext"; then | |
14974 | if test -f "$dir/$libname$shrext"; then | |
14975 | found_dir="$dir" | |
14976 | found_so="$dir/$libname$shrext" | |
14977 | else | |
14978 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14979 | ver=`(cd "$dir" && \ | |
14980 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14981 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14982 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14983 | | sed 1q ) 2>/dev/null` | |
14984 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14985 | found_dir="$dir" | |
14986 | found_so="$dir/$libname$shrext.$ver" | |
14987 | fi | |
14988 | else | |
14989 | eval library_names=\"$acl_library_names_spec\" | |
14990 | for f in $library_names; do | |
14991 | if test -f "$dir/$f"; then | |
14992 | found_dir="$dir" | |
14993 | found_so="$dir/$f" | |
14994 | break | |
14995 | fi | |
14996 | done | |
14997 | fi | |
14998 | fi | |
14999 | fi | |
15000 | if test "X$found_dir" = "X"; then | |
15001 | if test -f "$dir/$libname.$acl_libext"; then | |
15002 | found_dir="$dir" | |
15003 | found_a="$dir/$libname.$acl_libext" | |
15004 | fi | |
15005 | fi | |
15006 | if test "X$found_dir" != "X"; then | |
15007 | if test -f "$dir/$libname.la"; then | |
15008 | found_la="$dir/$libname.la" | |
15009 | fi | |
15010 | fi | |
15011 | fi | |
15012 | if test "X$found_dir" = "X"; then | |
15013 | for x in $LDFLAGS $LTLIBICONV; do | |
15014 | ||
15015 | acl_save_prefix="$prefix" | |
15016 | prefix="$acl_final_prefix" | |
15017 | acl_save_exec_prefix="$exec_prefix" | |
15018 | exec_prefix="$acl_final_exec_prefix" | |
15019 | eval x=\"$x\" | |
15020 | exec_prefix="$acl_save_exec_prefix" | |
15021 | prefix="$acl_save_prefix" | |
15022 | ||
15023 | case "$x" in | |
15024 | -L*) | |
15025 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
15026 | if test -n "$acl_shlibext"; then | |
15027 | if test -f "$dir/$libname$shrext"; then | |
15028 | found_dir="$dir" | |
15029 | found_so="$dir/$libname$shrext" | |
15030 | else | |
15031 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
15032 | ver=`(cd "$dir" && \ | |
15033 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
15034 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
15035 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
15036 | | sed 1q ) 2>/dev/null` | |
15037 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
15038 | found_dir="$dir" | |
15039 | found_so="$dir/$libname$shrext.$ver" | |
15040 | fi | |
15041 | else | |
15042 | eval library_names=\"$acl_library_names_spec\" | |
15043 | for f in $library_names; do | |
15044 | if test -f "$dir/$f"; then | |
15045 | found_dir="$dir" | |
15046 | found_so="$dir/$f" | |
15047 | break | |
15048 | fi | |
15049 | done | |
15050 | fi | |
15051 | fi | |
15052 | fi | |
15053 | if test "X$found_dir" = "X"; then | |
15054 | if test -f "$dir/$libname.$acl_libext"; then | |
15055 | found_dir="$dir" | |
15056 | found_a="$dir/$libname.$acl_libext" | |
15057 | fi | |
15058 | fi | |
15059 | if test "X$found_dir" != "X"; then | |
15060 | if test -f "$dir/$libname.la"; then | |
15061 | found_la="$dir/$libname.la" | |
15062 | fi | |
15063 | fi | |
15064 | ;; | |
15065 | esac | |
15066 | if test "X$found_dir" != "X"; then | |
15067 | break | |
15068 | fi | |
15069 | done | |
15070 | fi | |
15071 | if test "X$found_dir" != "X"; then | |
15072 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
15073 | if test "X$found_so" != "X"; then | |
15074 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
15075 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15076 | else | |
15077 | haveit= | |
15078 | for x in $ltrpathdirs; do | |
15079 | if test "X$x" = "X$found_dir"; then | |
15080 | haveit=yes | |
15081 | break | |
15082 | fi | |
15083 | done | |
15084 | if test -z "$haveit"; then | |
15085 | ltrpathdirs="$ltrpathdirs $found_dir" | |
15086 | fi | |
15087 | if test "$acl_hardcode_direct" = yes; then | |
15088 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15089 | else | |
15090 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
15091 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15092 | haveit= | |
15093 | for x in $rpathdirs; do | |
15094 | if test "X$x" = "X$found_dir"; then | |
15095 | haveit=yes | |
15096 | break | |
15097 | fi | |
15098 | done | |
15099 | if test -z "$haveit"; then | |
15100 | rpathdirs="$rpathdirs $found_dir" | |
15101 | fi | |
15102 | else | |
15103 | haveit= | |
15104 | for x in $LDFLAGS $LIBICONV; do | |
15105 | ||
15106 | acl_save_prefix="$prefix" | |
15107 | prefix="$acl_final_prefix" | |
15108 | acl_save_exec_prefix="$exec_prefix" | |
15109 | exec_prefix="$acl_final_exec_prefix" | |
15110 | eval x=\"$x\" | |
15111 | exec_prefix="$acl_save_exec_prefix" | |
15112 | prefix="$acl_save_prefix" | |
15113 | ||
15114 | if test "X$x" = "X-L$found_dir"; then | |
15115 | haveit=yes | |
15116 | break | |
15117 | fi | |
15118 | done | |
15119 | if test -z "$haveit"; then | |
15120 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
15121 | fi | |
15122 | if test "$acl_hardcode_minus_L" != no; then | |
15123 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15124 | else | |
15125 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15126 | fi | |
15127 | fi | |
15128 | fi | |
15129 | fi | |
15130 | else | |
15131 | if test "X$found_a" != "X"; then | |
15132 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
15133 | else | |
15134 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
15135 | fi | |
15136 | fi | |
15137 | additional_includedir= | |
15138 | case "$found_dir" in | |
15139 | */$acl_libdirstem | */$acl_libdirstem/) | |
15140 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
15141 | LIBICONV_PREFIX="$basedir" | |
15142 | additional_includedir="$basedir/include" | |
15143 | ;; | |
15144 | esac | |
15145 | if test "X$additional_includedir" != "X"; then | |
15146 | if test "X$additional_includedir" != "X/usr/include"; then | |
15147 | haveit= | |
15148 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
15149 | if test -n "$GCC"; then | |
15150 | case $host_os in | |
15151 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15152 | esac | |
15153 | fi | |
15154 | fi | |
15155 | if test -z "$haveit"; then | |
15156 | for x in $CPPFLAGS $INCICONV; do | |
15157 | ||
15158 | acl_save_prefix="$prefix" | |
15159 | prefix="$acl_final_prefix" | |
15160 | acl_save_exec_prefix="$exec_prefix" | |
15161 | exec_prefix="$acl_final_exec_prefix" | |
15162 | eval x=\"$x\" | |
15163 | exec_prefix="$acl_save_exec_prefix" | |
15164 | prefix="$acl_save_prefix" | |
15165 | ||
15166 | if test "X$x" = "X-I$additional_includedir"; then | |
15167 | haveit=yes | |
15168 | break | |
15169 | fi | |
15170 | done | |
15171 | if test -z "$haveit"; then | |
15172 | if test -d "$additional_includedir"; then | |
15173 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
15174 | fi | |
15175 | fi | |
15176 | fi | |
15177 | fi | |
15178 | fi | |
15179 | if test -n "$found_la"; then | |
15180 | save_libdir="$libdir" | |
15181 | case "$found_la" in | |
15182 | */* | *\\*) . "$found_la" ;; | |
15183 | *) . "./$found_la" ;; | |
15184 | esac | |
15185 | libdir="$save_libdir" | |
15186 | for dep in $dependency_libs; do | |
15187 | case "$dep" in | |
15188 | -L*) | |
15189 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15190 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
15191 | haveit= | |
15192 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
15193 | if test -n "$GCC"; then | |
15194 | case $host_os in | |
15195 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15196 | esac | |
15197 | fi | |
15198 | fi | |
15199 | if test -z "$haveit"; then | |
15200 | haveit= | |
15201 | for x in $LDFLAGS $LIBICONV; do | |
15202 | ||
15203 | acl_save_prefix="$prefix" | |
15204 | prefix="$acl_final_prefix" | |
15205 | acl_save_exec_prefix="$exec_prefix" | |
15206 | exec_prefix="$acl_final_exec_prefix" | |
15207 | eval x=\"$x\" | |
15208 | exec_prefix="$acl_save_exec_prefix" | |
15209 | prefix="$acl_save_prefix" | |
15210 | ||
15211 | if test "X$x" = "X-L$additional_libdir"; then | |
15212 | haveit=yes | |
15213 | break | |
15214 | fi | |
15215 | done | |
15216 | if test -z "$haveit"; then | |
15217 | if test -d "$additional_libdir"; then | |
15218 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15219 | fi | |
15220 | fi | |
15221 | haveit= | |
15222 | for x in $LDFLAGS $LTLIBICONV; do | |
15223 | ||
15224 | acl_save_prefix="$prefix" | |
15225 | prefix="$acl_final_prefix" | |
15226 | acl_save_exec_prefix="$exec_prefix" | |
15227 | exec_prefix="$acl_final_exec_prefix" | |
15228 | eval x=\"$x\" | |
15229 | exec_prefix="$acl_save_exec_prefix" | |
15230 | prefix="$acl_save_prefix" | |
15231 | ||
15232 | if test "X$x" = "X-L$additional_libdir"; then | |
15233 | haveit=yes | |
15234 | break | |
15235 | fi | |
15236 | done | |
15237 | if test -z "$haveit"; then | |
15238 | if test -d "$additional_libdir"; then | |
15239 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15240 | fi | |
15241 | fi | |
15242 | fi | |
15243 | fi | |
15244 | ;; | |
15245 | -R*) | |
15246 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15247 | if test "$enable_rpath" != no; then | |
15248 | haveit= | |
15249 | for x in $rpathdirs; do | |
15250 | if test "X$x" = "X$dir"; then | |
15251 | haveit=yes | |
15252 | break | |
15253 | fi | |
15254 | done | |
15255 | if test -z "$haveit"; then | |
15256 | rpathdirs="$rpathdirs $dir" | |
15257 | fi | |
15258 | haveit= | |
15259 | for x in $ltrpathdirs; do | |
15260 | if test "X$x" = "X$dir"; then | |
15261 | haveit=yes | |
15262 | break | |
15263 | fi | |
15264 | done | |
15265 | if test -z "$haveit"; then | |
15266 | ltrpathdirs="$ltrpathdirs $dir" | |
15267 | fi | |
15268 | fi | |
15269 | ;; | |
15270 | -l*) | |
15271 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15272 | ;; | |
15273 | *.la) | |
15274 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15275 | ;; | |
15276 | *) | |
15277 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15278 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15279 | ;; | |
15280 | esac | |
15281 | done | |
15282 | fi | |
15283 | else | |
15284 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15285 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15286 | fi | |
15287 | fi | |
15288 | fi | |
15289 | done | |
15290 | done | |
15291 | if test "X$rpathdirs" != "X"; then | |
15292 | if test -n "$acl_hardcode_libdir_separator"; then | |
15293 | alldirs= | |
15294 | for found_dir in $rpathdirs; do | |
15295 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
15296 | done | |
15297 | acl_save_libdir="$libdir" | |
15298 | libdir="$alldirs" | |
15299 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15300 | libdir="$acl_save_libdir" | |
15301 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15302 | else | |
15303 | for found_dir in $rpathdirs; do | |
15304 | acl_save_libdir="$libdir" | |
15305 | libdir="$found_dir" | |
15306 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15307 | libdir="$acl_save_libdir" | |
15308 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15309 | done | |
15310 | fi | |
15311 | fi | |
15312 | if test "X$ltrpathdirs" != "X"; then | |
15313 | for found_dir in $ltrpathdirs; do | |
15314 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15315 | done | |
15316 | fi | |
9c60689e | 15317 | |
9c60689e DWT |
15318 | |
15319 | ||
9c60689e | 15320 | |
9c60689e DWT |
15321 | |
15322 | ||
15323 | ||
632b71ea | 15324 | am_save_CPPFLAGS="$CPPFLAGS" |
9c60689e | 15325 | |
632b71ea DWT |
15326 | for element in $INCICONV; do |
15327 | haveit= | |
15328 | for x in $CPPFLAGS; do | |
9c60689e | 15329 | |
632b71ea DWT |
15330 | acl_save_prefix="$prefix" |
15331 | prefix="$acl_final_prefix" | |
15332 | acl_save_exec_prefix="$exec_prefix" | |
15333 | exec_prefix="$acl_final_exec_prefix" | |
15334 | eval x=\"$x\" | |
15335 | exec_prefix="$acl_save_exec_prefix" | |
15336 | prefix="$acl_save_prefix" | |
15337 | ||
15338 | if test "X$x" = "X$element"; then | |
15339 | haveit=yes | |
15340 | break | |
15341 | fi | |
15342 | done | |
15343 | if test -z "$haveit"; then | |
15344 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15345 | fi | |
15346 | done | |
b128dfee | 15347 | |
c823f118 | 15348 | |
632b71ea DWT |
15349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
15350 | $as_echo_n "checking for iconv... " >&6; } | |
15351 | if test "${am_cv_func_iconv+set}" = set; then : | |
c823f118 DWT |
15352 | $as_echo_n "(cached) " >&6 |
15353 | else | |
15354 | ||
632b71ea DWT |
15355 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15356 | am_cv_lib_iconv=no | |
15357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 | 15358 | /* end confdefs.h. */ |
632b71ea DWT |
15359 | #include <stdlib.h> |
15360 | #include <iconv.h> | |
c823f118 DWT |
15361 | int |
15362 | main () | |
15363 | { | |
632b71ea DWT |
15364 | iconv_t cd = iconv_open("",""); |
15365 | iconv(cd,NULL,NULL,NULL,NULL); | |
15366 | iconv_close(cd); | |
c823f118 DWT |
15367 | ; |
15368 | return 0; | |
15369 | } | |
b128dfee | 15370 | _ACEOF |
632b71ea DWT |
15371 | if ac_fn_c_try_link "$LINENO"; then : |
15372 | am_cv_func_iconv=yes | |
b128dfee | 15373 | fi |
c823f118 DWT |
15374 | rm -f core conftest.err conftest.$ac_objext \ |
15375 | conftest$ac_exeext conftest.$ac_ext | |
632b71ea DWT |
15376 | if test "$am_cv_func_iconv" != yes; then |
15377 | am_save_LIBS="$LIBS" | |
15378 | LIBS="$LIBS $LIBICONV" | |
15379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15380 | /* end confdefs.h. */ | |
15381 | #include <stdlib.h> | |
15382 | #include <iconv.h> | |
15383 | int | |
15384 | main () | |
15385 | { | |
15386 | iconv_t cd = iconv_open("",""); | |
15387 | iconv(cd,NULL,NULL,NULL,NULL); | |
15388 | iconv_close(cd); | |
15389 | ; | |
15390 | return 0; | |
15391 | } | |
15392 | _ACEOF | |
15393 | if ac_fn_c_try_link "$LINENO"; then : | |
15394 | am_cv_lib_iconv=yes | |
15395 | am_cv_func_iconv=yes | |
15396 | fi | |
15397 | rm -f core conftest.err conftest.$ac_objext \ | |
15398 | conftest$ac_exeext conftest.$ac_ext | |
15399 | LIBS="$am_save_LIBS" | |
15400 | fi | |
b128dfee | 15401 | |
c823f118 | 15402 | fi |
632b71ea DWT |
15403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
15404 | $as_echo "$am_cv_func_iconv" >&6; } | |
15405 | if test "$am_cv_func_iconv" = yes; then | |
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15407 | $as_echo_n "checking for working iconv... " >&6; } | |
15408 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15409 | $as_echo_n "(cached) " >&6 | |
15410 | else | |
c823f118 | 15411 | |
632b71ea DWT |
15412 | am_save_LIBS="$LIBS" |
15413 | if test $am_cv_lib_iconv = yes; then | |
15414 | LIBS="$LIBS $LIBICONV" | |
15415 | fi | |
15416 | if test "$cross_compiling" = yes; then : | |
15417 | case "$host_os" in | |
15418 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15419 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15420 | esac | |
15421 | else | |
15422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15423 | /* end confdefs.h. */ | |
c823f118 | 15424 | |
632b71ea DWT |
15425 | #include <iconv.h> |
15426 | #include <string.h> | |
15427 | int main () | |
15428 | { | |
15429 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15430 | returns. */ | |
15431 | { | |
15432 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15433 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15434 | { | |
15435 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15436 | char buf[10]; | |
15437 | const char *inptr = input; | |
15438 | size_t inbytesleft = strlen (input); | |
15439 | char *outptr = buf; | |
15440 | size_t outbytesleft = sizeof (buf); | |
15441 | size_t res = iconv (cd_utf8_to_88591, | |
15442 | (char **) &inptr, &inbytesleft, | |
15443 | &outptr, &outbytesleft); | |
15444 | if (res == 0) | |
15445 | return 1; | |
15446 | } | |
15447 | } | |
15448 | #if 0 /* This bug could be worked around by the caller. */ | |
15449 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15450 | { | |
15451 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15452 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15453 | { | |
15454 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15455 | char buf[50]; | |
15456 | const char *inptr = input; | |
15457 | size_t inbytesleft = strlen (input); | |
15458 | char *outptr = buf; | |
15459 | size_t outbytesleft = sizeof (buf); | |
15460 | size_t res = iconv (cd_88591_to_utf8, | |
15461 | (char **) &inptr, &inbytesleft, | |
15462 | &outptr, &outbytesleft); | |
15463 | if ((int)res > 0) | |
15464 | return 1; | |
15465 | } | |
15466 | } | |
15467 | #endif | |
15468 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15469 | provided. */ | |
15470 | if (/* Try standardized names. */ | |
15471 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15472 | /* Try IRIX, OSF/1 names. */ | |
15473 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15474 | /* Try AIX names. */ | |
15475 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15476 | /* Try HP-UX names. */ | |
15477 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15478 | return 1; | |
15479 | return 0; | |
15480 | } | |
15481 | _ACEOF | |
15482 | if ac_fn_c_try_run "$LINENO"; then : | |
15483 | am_cv_func_iconv_works=yes | |
15484 | else | |
15485 | am_cv_func_iconv_works=no | |
15486 | fi | |
15487 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15488 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15489 | fi | |
c823f118 | 15490 | |
632b71ea | 15491 | LIBS="$am_save_LIBS" |
b128dfee | 15492 | |
632b71ea DWT |
15493 | fi |
15494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15495 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15496 | case "$am_cv_func_iconv_works" in | |
15497 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15498 | *) am_func_iconv=yes ;; | |
15499 | esac | |
15500 | else | |
15501 | am_func_iconv=no am_cv_lib_iconv=no | |
15502 | fi | |
15503 | if test "$am_func_iconv" = yes; then | |
c823f118 | 15504 | |
632b71ea | 15505 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
c823f118 | 15506 | |
632b71ea DWT |
15507 | fi |
15508 | if test "$am_cv_lib_iconv" = yes; then | |
15509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15510 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15512 | $as_echo "$LIBICONV" >&6; } | |
15513 | else | |
15514 | CPPFLAGS="$am_save_CPPFLAGS" | |
15515 | LIBICONV= | |
15516 | LTLIBICONV= | |
15517 | fi | |
b128dfee | 15518 | |
b128dfee | 15519 | |
c823f118 | 15520 | |
632b71ea DWT |
15521 | if test "$am_cv_func_iconv" = yes; then |
15522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15523 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15524 | if test "${am_cv_proto_iconv+set}" = set; then : | |
c823f118 DWT |
15525 | $as_echo_n "(cached) " >&6 |
15526 | else | |
15527 | ||
632b71ea | 15528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c823f118 DWT |
15529 | /* end confdefs.h. */ |
15530 | ||
632b71ea DWT |
15531 | #include <stdlib.h> |
15532 | #include <iconv.h> | |
15533 | extern | |
15534 | #ifdef __cplusplus | |
15535 | "C" | |
15536 | #endif | |
15537 | #if defined(__STDC__) || defined(__cplusplus) | |
15538 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15539 | #else | |
15540 | size_t iconv(); | |
15541 | #endif | |
c823f118 DWT |
15542 | |
15543 | int | |
15544 | main () | |
15545 | { | |
632b71ea | 15546 | |
c823f118 DWT |
15547 | ; |
15548 | return 0; | |
15549 | } | |
b128dfee | 15550 | _ACEOF |
632b71ea DWT |
15551 | if ac_fn_c_try_compile "$LINENO"; then : |
15552 | am_cv_proto_iconv_arg1="" | |
c823f118 | 15553 | else |
632b71ea | 15554 | am_cv_proto_iconv_arg1="const" |
c823f118 | 15555 | fi |
632b71ea DWT |
15556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15557 | 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);" | |
b128dfee DWT |
15558 | fi |
15559 | ||
632b71ea DWT |
15560 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
15561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15562 | }$am_cv_proto_iconv" >&5 | |
15563 | $as_echo "${ac_t:- | |
15564 | }$am_cv_proto_iconv" >&6; } | |
b128dfee | 15565 | |
632b71ea DWT |
15566 | cat >>confdefs.h <<_ACEOF |
15567 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15568 | _ACEOF | |
c823f118 | 15569 | |
632b71ea | 15570 | fi |
c823f118 | 15571 | |
632b71ea DWT |
15572 | ac_ext=cpp |
15573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
c823f118 | 15577 | |
632b71ea DWT |
15578 | case $am_cv_func_iconv in #( |
15579 | yes) : | |
15580 | ;; #( | |
15581 | *) : | |
15582 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15583 | esac | |
c823f118 | 15584 | |
b66977f1 DWT |
15585 | |
15586 | # Check whether --enable-javascript was given. | |
15587 | if test "${enable_javascript+set}" = set; then : | |
15588 | enableval=$enable_javascript; | |
15589 | case $enableval in #( | |
15590 | yes) : | |
15591 | ||
15592 | ||
15593 | ||
15594 | pkg_failed=no | |
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15596 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15597 | ||
15598 | if test -n "$PKG_CONFIG"; then | |
15599 | if test -n "$WEBKIT_CFLAGS"; then | |
15600 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15601 | else | |
15602 | if test -n "$PKG_CONFIG" && \ | |
15603 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15604 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15605 | ac_status=$? | |
15606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15607 | test $ac_status = 0; }; then | |
15608 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15609 | else | |
15610 | pkg_failed=yes | |
15611 | fi | |
15612 | fi | |
15613 | else | |
15614 | pkg_failed=untried | |
15615 | fi | |
15616 | if test -n "$PKG_CONFIG"; then | |
15617 | if test -n "$WEBKIT_LIBS"; then | |
15618 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15619 | else | |
15620 | if test -n "$PKG_CONFIG" && \ | |
15621 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15622 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15623 | ac_status=$? | |
15624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15625 | test $ac_status = 0; }; then | |
15626 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15627 | else | |
15628 | pkg_failed=yes | |
15629 | fi | |
15630 | fi | |
15631 | else | |
15632 | pkg_failed=untried | |
15633 | fi | |
15634 | ||
15635 | ||
15636 | ||
15637 | if test $pkg_failed = yes; then | |
15638 | ||
15639 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15640 | _pkg_short_errors_supported=yes | |
15641 | else | |
15642 | _pkg_short_errors_supported=no | |
15643 | fi | |
15644 | if test $_pkg_short_errors_supported = yes; then | |
15645 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15646 | else | |
15647 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15648 | fi | |
15649 | # Put the nasty error message in config.log where it belongs | |
15650 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15651 | ||
15652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15653 | $as_echo "no" >&6; } | |
15654 | ||
15655 | ||
15656 | pkg_failed=no | |
15657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15658 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15659 | ||
15660 | if test -n "$PKG_CONFIG"; then | |
15661 | if test -n "$WEBKIT_CFLAGS"; then | |
15662 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15663 | else | |
15664 | if test -n "$PKG_CONFIG" && \ | |
15665 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15666 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15667 | ac_status=$? | |
15668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15669 | test $ac_status = 0; }; then | |
15670 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15671 | else | |
15672 | pkg_failed=yes | |
15673 | fi | |
15674 | fi | |
15675 | else | |
15676 | pkg_failed=untried | |
15677 | fi | |
15678 | if test -n "$PKG_CONFIG"; then | |
15679 | if test -n "$WEBKIT_LIBS"; then | |
15680 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15681 | else | |
15682 | if test -n "$PKG_CONFIG" && \ | |
15683 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15684 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15685 | ac_status=$? | |
15686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15687 | test $ac_status = 0; }; then | |
15688 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15689 | else | |
15690 | pkg_failed=yes | |
15691 | fi | |
15692 | fi | |
15693 | else | |
15694 | pkg_failed=untried | |
15695 | fi | |
15696 | ||
15697 | ||
15698 | ||
15699 | if test $pkg_failed = yes; then | |
15700 | ||
15701 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15702 | _pkg_short_errors_supported=yes | |
15703 | else | |
15704 | _pkg_short_errors_supported=no | |
15705 | fi | |
15706 | if test $_pkg_short_errors_supported = yes; then | |
15707 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15708 | else | |
15709 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15710 | fi | |
15711 | # Put the nasty error message in config.log where it belongs | |
15712 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15713 | ||
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15715 | $as_echo "no" >&6; } | |
15716 | ||
15717 | ||
15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15719 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15720 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15721 | $as_echo_n "(cached) " >&6 | |
15722 | else | |
15723 | ||
15724 | ac_check_framework_save_LIBS=$LIBS | |
15725 | LIBS="-framework JavaScriptCore $LIBS" | |
15726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15727 | /* end confdefs.h. */ | |
15728 | ||
15729 | #include <JavaScriptCore/JSBase.h> | |
15730 | ||
15731 | int | |
15732 | main () | |
15733 | { | |
15734 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15735 | ; | |
15736 | return 0; | |
15737 | } | |
15738 | _ACEOF | |
15739 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15740 | ||
15741 | ac_cv_framework_JavaScriptCore=yes | |
15742 | ||
15743 | else | |
15744 | ac_cv_framework_JavaScriptCore=no | |
15745 | fi | |
15746 | rm -f core conftest.err conftest.$ac_objext \ | |
15747 | conftest$ac_exeext conftest.$ac_ext | |
15748 | LIBS=$ac_check_framework_save_LIBS | |
15749 | ||
15750 | fi | |
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15752 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15753 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15754 | ||
15755 | ||
15756 | for element in "-framework JavaScriptCore $LIBS"; do | |
15757 | haveit= | |
15758 | for x in $LIBS; do | |
15759 | ||
15760 | acl_save_prefix="$prefix" | |
15761 | prefix="$acl_final_prefix" | |
15762 | acl_save_exec_prefix="$exec_prefix" | |
15763 | exec_prefix="$acl_final_exec_prefix" | |
15764 | eval x=\"$x\" | |
15765 | exec_prefix="$acl_save_exec_prefix" | |
15766 | prefix="$acl_save_prefix" | |
15767 | ||
15768 | if test "X$x" = "X$element"; then | |
15769 | haveit=yes | |
15770 | break | |
15771 | fi | |
15772 | done | |
15773 | if test -z "$haveit"; then | |
15774 | LIBS="${LIBS}${LIBS:+ }$element" | |
15775 | fi | |
15776 | done | |
15777 | ||
15778 | CY_EXECUTE=1 | |
15779 | ||
15780 | fi | |
15781 | ||
15782 | elif test $pkg_failed = untried; then | |
15783 | ||
15784 | ||
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15786 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15787 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15788 | $as_echo_n "(cached) " >&6 | |
15789 | else | |
15790 | ||
15791 | ac_check_framework_save_LIBS=$LIBS | |
15792 | LIBS="-framework JavaScriptCore $LIBS" | |
15793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15794 | /* end confdefs.h. */ | |
15795 | ||
15796 | #include <JavaScriptCore/JSBase.h> | |
15797 | ||
15798 | int | |
15799 | main () | |
15800 | { | |
15801 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15802 | ; | |
15803 | return 0; | |
15804 | } | |
15805 | _ACEOF | |
15806 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15807 | ||
15808 | ac_cv_framework_JavaScriptCore=yes | |
15809 | ||
15810 | else | |
15811 | ac_cv_framework_JavaScriptCore=no | |
15812 | fi | |
15813 | rm -f core conftest.err conftest.$ac_objext \ | |
15814 | conftest$ac_exeext conftest.$ac_ext | |
15815 | LIBS=$ac_check_framework_save_LIBS | |
15816 | ||
15817 | fi | |
15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15819 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15820 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15821 | ||
15822 | ||
15823 | for element in "-framework JavaScriptCore $LIBS"; do | |
15824 | haveit= | |
15825 | for x in $LIBS; do | |
15826 | ||
15827 | acl_save_prefix="$prefix" | |
15828 | prefix="$acl_final_prefix" | |
15829 | acl_save_exec_prefix="$exec_prefix" | |
15830 | exec_prefix="$acl_final_exec_prefix" | |
15831 | eval x=\"$x\" | |
15832 | exec_prefix="$acl_save_exec_prefix" | |
15833 | prefix="$acl_save_prefix" | |
15834 | ||
15835 | if test "X$x" = "X$element"; then | |
15836 | haveit=yes | |
15837 | break | |
15838 | fi | |
15839 | done | |
15840 | if test -z "$haveit"; then | |
15841 | LIBS="${LIBS}${LIBS:+ }$element" | |
15842 | fi | |
15843 | done | |
15844 | ||
15845 | CY_EXECUTE=1 | |
15846 | ||
15847 | fi | |
15848 | ||
15849 | else | |
15850 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15851 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15853 | $as_echo "yes" >&6; } | |
15854 | ||
15855 | CY_EXECUTE=1 | |
15856 | ||
15857 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15858 | haveit= | |
15859 | for x in $CXXFLAGS; do | |
15860 | ||
15861 | acl_save_prefix="$prefix" | |
15862 | prefix="$acl_final_prefix" | |
15863 | acl_save_exec_prefix="$exec_prefix" | |
15864 | exec_prefix="$acl_final_exec_prefix" | |
15865 | eval x=\"$x\" | |
15866 | exec_prefix="$acl_save_exec_prefix" | |
15867 | prefix="$acl_save_prefix" | |
15868 | ||
15869 | if test "X$x" = "X$element"; then | |
15870 | haveit=yes | |
15871 | break | |
15872 | fi | |
15873 | done | |
15874 | if test -z "$haveit"; then | |
15875 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15876 | fi | |
15877 | done | |
15878 | ||
15879 | ||
15880 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15881 | haveit= | |
15882 | for x in $LIBS; do | |
15883 | ||
15884 | acl_save_prefix="$prefix" | |
15885 | prefix="$acl_final_prefix" | |
15886 | acl_save_exec_prefix="$exec_prefix" | |
15887 | exec_prefix="$acl_final_exec_prefix" | |
15888 | eval x=\"$x\" | |
15889 | exec_prefix="$acl_save_exec_prefix" | |
15890 | prefix="$acl_save_prefix" | |
15891 | ||
15892 | if test "X$x" = "X$element"; then | |
15893 | haveit=yes | |
15894 | break | |
15895 | fi | |
15896 | done | |
15897 | if test -z "$haveit"; then | |
15898 | LIBS="${LIBS}${LIBS:+ }$element" | |
15899 | fi | |
15900 | done | |
15901 | ||
15902 | ||
15903 | fi | |
15904 | ||
15905 | elif test $pkg_failed = untried; then | |
15906 | ||
15907 | ||
15908 | pkg_failed=no | |
15909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15910 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15911 | ||
15912 | if test -n "$PKG_CONFIG"; then | |
15913 | if test -n "$WEBKIT_CFLAGS"; then | |
15914 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15915 | else | |
15916 | if test -n "$PKG_CONFIG" && \ | |
15917 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15918 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15919 | ac_status=$? | |
15920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15921 | test $ac_status = 0; }; then | |
15922 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15923 | else | |
15924 | pkg_failed=yes | |
15925 | fi | |
15926 | fi | |
15927 | else | |
15928 | pkg_failed=untried | |
15929 | fi | |
15930 | if test -n "$PKG_CONFIG"; then | |
15931 | if test -n "$WEBKIT_LIBS"; then | |
15932 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15933 | else | |
15934 | if test -n "$PKG_CONFIG" && \ | |
15935 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15936 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15937 | ac_status=$? | |
15938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15939 | test $ac_status = 0; }; then | |
15940 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15941 | else | |
15942 | pkg_failed=yes | |
15943 | fi | |
15944 | fi | |
15945 | else | |
15946 | pkg_failed=untried | |
15947 | fi | |
15948 | ||
15949 | ||
15950 | ||
15951 | if test $pkg_failed = yes; then | |
15952 | ||
15953 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15954 | _pkg_short_errors_supported=yes | |
15955 | else | |
15956 | _pkg_short_errors_supported=no | |
15957 | fi | |
15958 | if test $_pkg_short_errors_supported = yes; then | |
15959 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15960 | else | |
15961 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15962 | fi | |
15963 | # Put the nasty error message in config.log where it belongs | |
15964 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15965 | ||
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15967 | $as_echo "no" >&6; } | |
15968 | ||
15969 | ||
15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15971 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15972 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15973 | $as_echo_n "(cached) " >&6 | |
15974 | else | |
15975 | ||
15976 | ac_check_framework_save_LIBS=$LIBS | |
15977 | LIBS="-framework JavaScriptCore $LIBS" | |
15978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15979 | /* end confdefs.h. */ | |
15980 | ||
15981 | #include <JavaScriptCore/JSBase.h> | |
15982 | ||
15983 | int | |
15984 | main () | |
15985 | { | |
15986 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15987 | ; | |
15988 | return 0; | |
15989 | } | |
15990 | _ACEOF | |
15991 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15992 | ||
15993 | ac_cv_framework_JavaScriptCore=yes | |
15994 | ||
15995 | else | |
15996 | ac_cv_framework_JavaScriptCore=no | |
15997 | fi | |
15998 | rm -f core conftest.err conftest.$ac_objext \ | |
15999 | conftest$ac_exeext conftest.$ac_ext | |
16000 | LIBS=$ac_check_framework_save_LIBS | |
16001 | ||
16002 | fi | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16004 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16005 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16006 | ||
16007 | ||
16008 | for element in "-framework JavaScriptCore $LIBS"; do | |
16009 | haveit= | |
16010 | for x in $LIBS; do | |
16011 | ||
16012 | acl_save_prefix="$prefix" | |
16013 | prefix="$acl_final_prefix" | |
16014 | acl_save_exec_prefix="$exec_prefix" | |
16015 | exec_prefix="$acl_final_exec_prefix" | |
16016 | eval x=\"$x\" | |
16017 | exec_prefix="$acl_save_exec_prefix" | |
16018 | prefix="$acl_save_prefix" | |
16019 | ||
16020 | if test "X$x" = "X$element"; then | |
16021 | haveit=yes | |
16022 | break | |
16023 | fi | |
16024 | done | |
16025 | if test -z "$haveit"; then | |
16026 | LIBS="${LIBS}${LIBS:+ }$element" | |
16027 | fi | |
16028 | done | |
16029 | ||
16030 | CY_EXECUTE=1 | |
16031 | ||
16032 | fi | |
16033 | ||
16034 | elif test $pkg_failed = untried; then | |
16035 | ||
16036 | ||
16037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16038 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16039 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16040 | $as_echo_n "(cached) " >&6 | |
16041 | else | |
16042 | ||
16043 | ac_check_framework_save_LIBS=$LIBS | |
16044 | LIBS="-framework JavaScriptCore $LIBS" | |
16045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16046 | /* end confdefs.h. */ | |
16047 | ||
16048 | #include <JavaScriptCore/JSBase.h> | |
16049 | ||
16050 | int | |
16051 | main () | |
16052 | { | |
16053 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16054 | ; | |
16055 | return 0; | |
16056 | } | |
16057 | _ACEOF | |
16058 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16059 | ||
16060 | ac_cv_framework_JavaScriptCore=yes | |
16061 | ||
16062 | else | |
16063 | ac_cv_framework_JavaScriptCore=no | |
16064 | fi | |
16065 | rm -f core conftest.err conftest.$ac_objext \ | |
16066 | conftest$ac_exeext conftest.$ac_ext | |
16067 | LIBS=$ac_check_framework_save_LIBS | |
16068 | ||
16069 | fi | |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16071 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16072 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16073 | ||
16074 | ||
16075 | for element in "-framework JavaScriptCore $LIBS"; do | |
16076 | haveit= | |
16077 | for x in $LIBS; do | |
16078 | ||
16079 | acl_save_prefix="$prefix" | |
16080 | prefix="$acl_final_prefix" | |
16081 | acl_save_exec_prefix="$exec_prefix" | |
16082 | exec_prefix="$acl_final_exec_prefix" | |
16083 | eval x=\"$x\" | |
16084 | exec_prefix="$acl_save_exec_prefix" | |
16085 | prefix="$acl_save_prefix" | |
16086 | ||
16087 | if test "X$x" = "X$element"; then | |
16088 | haveit=yes | |
16089 | break | |
16090 | fi | |
16091 | done | |
16092 | if test -z "$haveit"; then | |
16093 | LIBS="${LIBS}${LIBS:+ }$element" | |
16094 | fi | |
16095 | done | |
16096 | ||
16097 | CY_EXECUTE=1 | |
16098 | ||
16099 | fi | |
16100 | ||
16101 | else | |
16102 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16103 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16105 | $as_echo "yes" >&6; } | |
16106 | ||
16107 | CY_EXECUTE=1 | |
16108 | ||
16109 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16110 | haveit= | |
16111 | for x in $CXXFLAGS; do | |
16112 | ||
16113 | acl_save_prefix="$prefix" | |
16114 | prefix="$acl_final_prefix" | |
16115 | acl_save_exec_prefix="$exec_prefix" | |
16116 | exec_prefix="$acl_final_exec_prefix" | |
16117 | eval x=\"$x\" | |
16118 | exec_prefix="$acl_save_exec_prefix" | |
16119 | prefix="$acl_save_prefix" | |
16120 | ||
16121 | if test "X$x" = "X$element"; then | |
16122 | haveit=yes | |
16123 | break | |
16124 | fi | |
16125 | done | |
16126 | if test -z "$haveit"; then | |
16127 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16128 | fi | |
16129 | done | |
16130 | ||
16131 | ||
16132 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16133 | haveit= | |
16134 | for x in $LIBS; do | |
16135 | ||
16136 | acl_save_prefix="$prefix" | |
16137 | prefix="$acl_final_prefix" | |
16138 | acl_save_exec_prefix="$exec_prefix" | |
16139 | exec_prefix="$acl_final_exec_prefix" | |
16140 | eval x=\"$x\" | |
16141 | exec_prefix="$acl_save_exec_prefix" | |
16142 | prefix="$acl_save_prefix" | |
16143 | ||
16144 | if test "X$x" = "X$element"; then | |
16145 | haveit=yes | |
16146 | break | |
16147 | fi | |
16148 | done | |
16149 | if test -z "$haveit"; then | |
16150 | LIBS="${LIBS}${LIBS:+ }$element" | |
16151 | fi | |
16152 | done | |
16153 | ||
16154 | ||
16155 | fi | |
16156 | ||
16157 | else | |
16158 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16159 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16161 | $as_echo "yes" >&6; } | |
16162 | ||
16163 | CY_EXECUTE=1 | |
16164 | ||
16165 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16166 | haveit= | |
16167 | for x in $CXXFLAGS; do | |
16168 | ||
16169 | acl_save_prefix="$prefix" | |
16170 | prefix="$acl_final_prefix" | |
16171 | acl_save_exec_prefix="$exec_prefix" | |
16172 | exec_prefix="$acl_final_exec_prefix" | |
16173 | eval x=\"$x\" | |
16174 | exec_prefix="$acl_save_exec_prefix" | |
16175 | prefix="$acl_save_prefix" | |
16176 | ||
16177 | if test "X$x" = "X$element"; then | |
16178 | haveit=yes | |
16179 | break | |
16180 | fi | |
16181 | done | |
16182 | if test -z "$haveit"; then | |
16183 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16184 | fi | |
16185 | done | |
16186 | ||
16187 | ||
16188 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16189 | haveit= | |
16190 | for x in $LIBS; do | |
16191 | ||
16192 | acl_save_prefix="$prefix" | |
16193 | prefix="$acl_final_prefix" | |
16194 | acl_save_exec_prefix="$exec_prefix" | |
16195 | exec_prefix="$acl_final_exec_prefix" | |
16196 | eval x=\"$x\" | |
16197 | exec_prefix="$acl_save_exec_prefix" | |
16198 | prefix="$acl_save_prefix" | |
16199 | ||
16200 | if test "X$x" = "X$element"; then | |
16201 | haveit=yes | |
16202 | break | |
16203 | fi | |
16204 | done | |
16205 | if test -z "$haveit"; then | |
16206 | LIBS="${LIBS}${LIBS:+ }$element" | |
16207 | fi | |
16208 | done | |
16209 | ||
16210 | ||
16211 | fi | |
16212 | ||
16213 | ;; #( | |
16214 | no) : | |
16215 | ||
16216 | CY_EXECUTE=0 | |
16217 | ||
16218 | ;; #( | |
16219 | JavaScriptCore) : | |
16220 | ||
16221 | ||
16222 | ||
16223 | pkg_failed=no | |
16224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16225 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16226 | ||
16227 | if test -n "$PKG_CONFIG"; then | |
16228 | if test -n "$WEBKIT_CFLAGS"; then | |
16229 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16230 | else | |
16231 | if test -n "$PKG_CONFIG" && \ | |
16232 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16233 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16234 | ac_status=$? | |
16235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16236 | test $ac_status = 0; }; then | |
16237 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
16238 | else | |
16239 | pkg_failed=yes | |
16240 | fi | |
16241 | fi | |
16242 | else | |
16243 | pkg_failed=untried | |
16244 | fi | |
16245 | if test -n "$PKG_CONFIG"; then | |
16246 | if test -n "$WEBKIT_LIBS"; then | |
16247 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16248 | else | |
16249 | if test -n "$PKG_CONFIG" && \ | |
16250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16251 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16252 | ac_status=$? | |
16253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16254 | test $ac_status = 0; }; then | |
16255 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
16256 | else | |
16257 | pkg_failed=yes | |
16258 | fi | |
16259 | fi | |
16260 | else | |
16261 | pkg_failed=untried | |
16262 | fi | |
16263 | ||
16264 | ||
16265 | ||
16266 | if test $pkg_failed = yes; then | |
16267 | ||
16268 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16269 | _pkg_short_errors_supported=yes | |
16270 | else | |
16271 | _pkg_short_errors_supported=no | |
16272 | fi | |
16273 | if test $_pkg_short_errors_supported = yes; then | |
16274 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
16275 | else | |
16276 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
16277 | fi | |
16278 | # Put the nasty error message in config.log where it belongs | |
16279 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16280 | ||
16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16282 | $as_echo "no" >&6; } | |
16283 | ||
16284 | ||
16285 | pkg_failed=no | |
16286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16287 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16288 | ||
16289 | if test -n "$PKG_CONFIG"; then | |
16290 | if test -n "$WEBKIT_CFLAGS"; then | |
16291 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16292 | else | |
16293 | if test -n "$PKG_CONFIG" && \ | |
16294 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16295 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16296 | ac_status=$? | |
16297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16298 | test $ac_status = 0; }; then | |
16299 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16300 | else | |
16301 | pkg_failed=yes | |
16302 | fi | |
16303 | fi | |
16304 | else | |
16305 | pkg_failed=untried | |
16306 | fi | |
16307 | if test -n "$PKG_CONFIG"; then | |
16308 | if test -n "$WEBKIT_LIBS"; then | |
16309 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16310 | else | |
16311 | if test -n "$PKG_CONFIG" && \ | |
16312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16313 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16314 | ac_status=$? | |
16315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16316 | test $ac_status = 0; }; then | |
16317 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16318 | else | |
16319 | pkg_failed=yes | |
16320 | fi | |
16321 | fi | |
16322 | else | |
16323 | pkg_failed=untried | |
16324 | fi | |
16325 | ||
16326 | ||
16327 | ||
16328 | if test $pkg_failed = yes; then | |
16329 | ||
16330 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16331 | _pkg_short_errors_supported=yes | |
16332 | else | |
16333 | _pkg_short_errors_supported=no | |
16334 | fi | |
16335 | if test $_pkg_short_errors_supported = yes; then | |
16336 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16337 | else | |
16338 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16339 | fi | |
16340 | # Put the nasty error message in config.log where it belongs | |
16341 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16342 | ||
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16344 | $as_echo "no" >&6; } | |
16345 | ||
16346 | ||
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16348 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16349 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16350 | $as_echo_n "(cached) " >&6 | |
16351 | else | |
16352 | ||
16353 | ac_check_framework_save_LIBS=$LIBS | |
16354 | LIBS="-framework JavaScriptCore $LIBS" | |
16355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16356 | /* end confdefs.h. */ | |
16357 | ||
16358 | #include <JavaScriptCore/JSBase.h> | |
16359 | ||
16360 | int | |
16361 | main () | |
16362 | { | |
16363 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16364 | ; | |
16365 | return 0; | |
16366 | } | |
16367 | _ACEOF | |
16368 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16369 | ||
16370 | ac_cv_framework_JavaScriptCore=yes | |
16371 | ||
16372 | else | |
16373 | ac_cv_framework_JavaScriptCore=no | |
16374 | fi | |
16375 | rm -f core conftest.err conftest.$ac_objext \ | |
16376 | conftest$ac_exeext conftest.$ac_ext | |
16377 | LIBS=$ac_check_framework_save_LIBS | |
16378 | ||
16379 | fi | |
16380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16381 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16382 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16383 | ||
16384 | ||
16385 | for element in "-framework JavaScriptCore $LIBS"; do | |
16386 | haveit= | |
16387 | for x in $LIBS; do | |
16388 | ||
16389 | acl_save_prefix="$prefix" | |
16390 | prefix="$acl_final_prefix" | |
16391 | acl_save_exec_prefix="$exec_prefix" | |
16392 | exec_prefix="$acl_final_exec_prefix" | |
16393 | eval x=\"$x\" | |
16394 | exec_prefix="$acl_save_exec_prefix" | |
16395 | prefix="$acl_save_prefix" | |
16396 | ||
16397 | if test "X$x" = "X$element"; then | |
16398 | haveit=yes | |
16399 | break | |
16400 | fi | |
16401 | done | |
16402 | if test -z "$haveit"; then | |
16403 | LIBS="${LIBS}${LIBS:+ }$element" | |
16404 | fi | |
16405 | done | |
16406 | ||
16407 | CY_EXECUTE=1 | |
16408 | ||
16409 | fi | |
16410 | ||
16411 | elif test $pkg_failed = untried; then | |
16412 | ||
16413 | ||
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16415 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16416 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16417 | $as_echo_n "(cached) " >&6 | |
16418 | else | |
16419 | ||
16420 | ac_check_framework_save_LIBS=$LIBS | |
16421 | LIBS="-framework JavaScriptCore $LIBS" | |
16422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16423 | /* end confdefs.h. */ | |
16424 | ||
16425 | #include <JavaScriptCore/JSBase.h> | |
16426 | ||
16427 | int | |
16428 | main () | |
16429 | { | |
16430 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16431 | ; | |
16432 | return 0; | |
16433 | } | |
16434 | _ACEOF | |
16435 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16436 | ||
16437 | ac_cv_framework_JavaScriptCore=yes | |
16438 | ||
16439 | else | |
16440 | ac_cv_framework_JavaScriptCore=no | |
16441 | fi | |
16442 | rm -f core conftest.err conftest.$ac_objext \ | |
16443 | conftest$ac_exeext conftest.$ac_ext | |
16444 | LIBS=$ac_check_framework_save_LIBS | |
16445 | ||
16446 | fi | |
16447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16448 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16449 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16450 | ||
16451 | ||
16452 | for element in "-framework JavaScriptCore $LIBS"; do | |
16453 | haveit= | |
16454 | for x in $LIBS; do | |
16455 | ||
16456 | acl_save_prefix="$prefix" | |
16457 | prefix="$acl_final_prefix" | |
16458 | acl_save_exec_prefix="$exec_prefix" | |
16459 | exec_prefix="$acl_final_exec_prefix" | |
16460 | eval x=\"$x\" | |
16461 | exec_prefix="$acl_save_exec_prefix" | |
16462 | prefix="$acl_save_prefix" | |
16463 | ||
16464 | if test "X$x" = "X$element"; then | |
16465 | haveit=yes | |
16466 | break | |
16467 | fi | |
16468 | done | |
16469 | if test -z "$haveit"; then | |
16470 | LIBS="${LIBS}${LIBS:+ }$element" | |
16471 | fi | |
16472 | done | |
16473 | ||
16474 | CY_EXECUTE=1 | |
16475 | ||
16476 | fi | |
16477 | ||
16478 | else | |
16479 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16480 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16482 | $as_echo "yes" >&6; } | |
16483 | ||
16484 | CY_EXECUTE=1 | |
16485 | ||
16486 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16487 | haveit= | |
16488 | for x in $CXXFLAGS; do | |
16489 | ||
16490 | acl_save_prefix="$prefix" | |
16491 | prefix="$acl_final_prefix" | |
16492 | acl_save_exec_prefix="$exec_prefix" | |
16493 | exec_prefix="$acl_final_exec_prefix" | |
16494 | eval x=\"$x\" | |
16495 | exec_prefix="$acl_save_exec_prefix" | |
16496 | prefix="$acl_save_prefix" | |
16497 | ||
16498 | if test "X$x" = "X$element"; then | |
16499 | haveit=yes | |
16500 | break | |
16501 | fi | |
16502 | done | |
16503 | if test -z "$haveit"; then | |
16504 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16505 | fi | |
16506 | done | |
16507 | ||
16508 | ||
16509 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16510 | haveit= | |
16511 | for x in $LIBS; do | |
16512 | ||
16513 | acl_save_prefix="$prefix" | |
16514 | prefix="$acl_final_prefix" | |
16515 | acl_save_exec_prefix="$exec_prefix" | |
16516 | exec_prefix="$acl_final_exec_prefix" | |
16517 | eval x=\"$x\" | |
16518 | exec_prefix="$acl_save_exec_prefix" | |
16519 | prefix="$acl_save_prefix" | |
16520 | ||
16521 | if test "X$x" = "X$element"; then | |
16522 | haveit=yes | |
16523 | break | |
16524 | fi | |
16525 | done | |
16526 | if test -z "$haveit"; then | |
16527 | LIBS="${LIBS}${LIBS:+ }$element" | |
16528 | fi | |
16529 | done | |
16530 | ||
16531 | ||
16532 | fi | |
16533 | ||
16534 | elif test $pkg_failed = untried; then | |
16535 | ||
16536 | ||
16537 | pkg_failed=no | |
16538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16539 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16540 | ||
16541 | if test -n "$PKG_CONFIG"; then | |
16542 | if test -n "$WEBKIT_CFLAGS"; then | |
16543 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16544 | else | |
16545 | if test -n "$PKG_CONFIG" && \ | |
16546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16547 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16548 | ac_status=$? | |
16549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16550 | test $ac_status = 0; }; then | |
16551 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16552 | else | |
16553 | pkg_failed=yes | |
16554 | fi | |
16555 | fi | |
16556 | else | |
16557 | pkg_failed=untried | |
16558 | fi | |
16559 | if test -n "$PKG_CONFIG"; then | |
16560 | if test -n "$WEBKIT_LIBS"; then | |
16561 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16562 | else | |
16563 | if test -n "$PKG_CONFIG" && \ | |
16564 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16565 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16566 | ac_status=$? | |
16567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16568 | test $ac_status = 0; }; then | |
16569 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16570 | else | |
16571 | pkg_failed=yes | |
16572 | fi | |
16573 | fi | |
16574 | else | |
16575 | pkg_failed=untried | |
16576 | fi | |
16577 | ||
16578 | ||
16579 | ||
16580 | if test $pkg_failed = yes; then | |
16581 | ||
16582 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16583 | _pkg_short_errors_supported=yes | |
16584 | else | |
16585 | _pkg_short_errors_supported=no | |
16586 | fi | |
16587 | if test $_pkg_short_errors_supported = yes; then | |
16588 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16589 | else | |
16590 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16591 | fi | |
16592 | # Put the nasty error message in config.log where it belongs | |
16593 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16594 | ||
16595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16596 | $as_echo "no" >&6; } | |
16597 | ||
16598 | ||
16599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16600 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16601 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16602 | $as_echo_n "(cached) " >&6 | |
16603 | else | |
16604 | ||
16605 | ac_check_framework_save_LIBS=$LIBS | |
16606 | LIBS="-framework JavaScriptCore $LIBS" | |
16607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16608 | /* end confdefs.h. */ | |
16609 | ||
16610 | #include <JavaScriptCore/JSBase.h> | |
16611 | ||
16612 | int | |
16613 | main () | |
16614 | { | |
16615 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16616 | ; | |
16617 | return 0; | |
16618 | } | |
16619 | _ACEOF | |
16620 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16621 | ||
16622 | ac_cv_framework_JavaScriptCore=yes | |
16623 | ||
16624 | else | |
16625 | ac_cv_framework_JavaScriptCore=no | |
16626 | fi | |
16627 | rm -f core conftest.err conftest.$ac_objext \ | |
16628 | conftest$ac_exeext conftest.$ac_ext | |
16629 | LIBS=$ac_check_framework_save_LIBS | |
16630 | ||
16631 | fi | |
16632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16633 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16634 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16635 | ||
16636 | ||
16637 | for element in "-framework JavaScriptCore $LIBS"; do | |
16638 | haveit= | |
16639 | for x in $LIBS; do | |
16640 | ||
16641 | acl_save_prefix="$prefix" | |
16642 | prefix="$acl_final_prefix" | |
16643 | acl_save_exec_prefix="$exec_prefix" | |
16644 | exec_prefix="$acl_final_exec_prefix" | |
16645 | eval x=\"$x\" | |
16646 | exec_prefix="$acl_save_exec_prefix" | |
16647 | prefix="$acl_save_prefix" | |
16648 | ||
16649 | if test "X$x" = "X$element"; then | |
16650 | haveit=yes | |
16651 | break | |
16652 | fi | |
16653 | done | |
16654 | if test -z "$haveit"; then | |
16655 | LIBS="${LIBS}${LIBS:+ }$element" | |
16656 | fi | |
16657 | done | |
16658 | ||
16659 | CY_EXECUTE=1 | |
16660 | ||
16661 | fi | |
16662 | ||
16663 | elif test $pkg_failed = untried; then | |
16664 | ||
16665 | ||
16666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16667 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16668 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16669 | $as_echo_n "(cached) " >&6 | |
16670 | else | |
16671 | ||
16672 | ac_check_framework_save_LIBS=$LIBS | |
16673 | LIBS="-framework JavaScriptCore $LIBS" | |
16674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16675 | /* end confdefs.h. */ | |
16676 | ||
16677 | #include <JavaScriptCore/JSBase.h> | |
16678 | ||
16679 | int | |
16680 | main () | |
16681 | { | |
16682 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16683 | ; | |
16684 | return 0; | |
16685 | } | |
16686 | _ACEOF | |
16687 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16688 | ||
16689 | ac_cv_framework_JavaScriptCore=yes | |
16690 | ||
16691 | else | |
16692 | ac_cv_framework_JavaScriptCore=no | |
16693 | fi | |
16694 | rm -f core conftest.err conftest.$ac_objext \ | |
16695 | conftest$ac_exeext conftest.$ac_ext | |
16696 | LIBS=$ac_check_framework_save_LIBS | |
16697 | ||
16698 | fi | |
16699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16700 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16701 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16702 | ||
16703 | ||
16704 | for element in "-framework JavaScriptCore $LIBS"; do | |
16705 | haveit= | |
16706 | for x in $LIBS; do | |
16707 | ||
16708 | acl_save_prefix="$prefix" | |
16709 | prefix="$acl_final_prefix" | |
16710 | acl_save_exec_prefix="$exec_prefix" | |
16711 | exec_prefix="$acl_final_exec_prefix" | |
16712 | eval x=\"$x\" | |
16713 | exec_prefix="$acl_save_exec_prefix" | |
16714 | prefix="$acl_save_prefix" | |
16715 | ||
16716 | if test "X$x" = "X$element"; then | |
16717 | haveit=yes | |
16718 | break | |
16719 | fi | |
16720 | done | |
16721 | if test -z "$haveit"; then | |
16722 | LIBS="${LIBS}${LIBS:+ }$element" | |
16723 | fi | |
16724 | done | |
16725 | ||
16726 | CY_EXECUTE=1 | |
16727 | ||
16728 | fi | |
16729 | ||
16730 | else | |
16731 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16732 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16734 | $as_echo "yes" >&6; } | |
16735 | ||
16736 | CY_EXECUTE=1 | |
16737 | ||
16738 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16739 | haveit= | |
16740 | for x in $CXXFLAGS; do | |
16741 | ||
16742 | acl_save_prefix="$prefix" | |
16743 | prefix="$acl_final_prefix" | |
16744 | acl_save_exec_prefix="$exec_prefix" | |
16745 | exec_prefix="$acl_final_exec_prefix" | |
16746 | eval x=\"$x\" | |
16747 | exec_prefix="$acl_save_exec_prefix" | |
16748 | prefix="$acl_save_prefix" | |
16749 | ||
16750 | if test "X$x" = "X$element"; then | |
16751 | haveit=yes | |
16752 | break | |
16753 | fi | |
16754 | done | |
16755 | if test -z "$haveit"; then | |
16756 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16757 | fi | |
16758 | done | |
16759 | ||
16760 | ||
16761 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16762 | haveit= | |
16763 | for x in $LIBS; do | |
16764 | ||
16765 | acl_save_prefix="$prefix" | |
16766 | prefix="$acl_final_prefix" | |
16767 | acl_save_exec_prefix="$exec_prefix" | |
16768 | exec_prefix="$acl_final_exec_prefix" | |
16769 | eval x=\"$x\" | |
16770 | exec_prefix="$acl_save_exec_prefix" | |
16771 | prefix="$acl_save_prefix" | |
16772 | ||
16773 | if test "X$x" = "X$element"; then | |
16774 | haveit=yes | |
16775 | break | |
16776 | fi | |
16777 | done | |
16778 | if test -z "$haveit"; then | |
16779 | LIBS="${LIBS}${LIBS:+ }$element" | |
16780 | fi | |
16781 | done | |
16782 | ||
16783 | ||
16784 | fi | |
16785 | ||
16786 | else | |
16787 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16788 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16790 | $as_echo "yes" >&6; } | |
16791 | ||
16792 | CY_EXECUTE=1 | |
16793 | ||
16794 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16795 | haveit= | |
16796 | for x in $CXXFLAGS; do | |
16797 | ||
16798 | acl_save_prefix="$prefix" | |
16799 | prefix="$acl_final_prefix" | |
16800 | acl_save_exec_prefix="$exec_prefix" | |
16801 | exec_prefix="$acl_final_exec_prefix" | |
16802 | eval x=\"$x\" | |
16803 | exec_prefix="$acl_save_exec_prefix" | |
16804 | prefix="$acl_save_prefix" | |
16805 | ||
16806 | if test "X$x" = "X$element"; then | |
16807 | haveit=yes | |
16808 | break | |
16809 | fi | |
16810 | done | |
16811 | if test -z "$haveit"; then | |
16812 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16813 | fi | |
16814 | done | |
16815 | ||
16816 | ||
16817 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16818 | haveit= | |
16819 | for x in $LIBS; do | |
16820 | ||
16821 | acl_save_prefix="$prefix" | |
16822 | prefix="$acl_final_prefix" | |
16823 | acl_save_exec_prefix="$exec_prefix" | |
16824 | exec_prefix="$acl_final_exec_prefix" | |
16825 | eval x=\"$x\" | |
16826 | exec_prefix="$acl_save_exec_prefix" | |
16827 | prefix="$acl_save_prefix" | |
16828 | ||
16829 | if test "X$x" = "X$element"; then | |
16830 | haveit=yes | |
16831 | break | |
16832 | fi | |
16833 | done | |
16834 | if test -z "$haveit"; then | |
16835 | LIBS="${LIBS}${LIBS:+ }$element" | |
16836 | fi | |
16837 | done | |
16838 | ||
16839 | ||
16840 | fi | |
16841 | ||
16842 | ;; #( | |
16843 | *) : | |
16844 | as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
16845 | esac | |
16846 | ||
16847 | else | |
16848 | ||
16849 | ||
16850 | ||
632b71ea DWT |
16851 | pkg_failed=no |
16852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16853 | $as_echo_n "checking for WEBKIT... " >&6; } | |
b128dfee | 16854 | |
632b71ea DWT |
16855 | if test -n "$PKG_CONFIG"; then |
16856 | if test -n "$WEBKIT_CFLAGS"; then | |
16857 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16858 | else | |
16859 | if test -n "$PKG_CONFIG" && \ | |
16860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16861 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16862 | ac_status=$? | |
16863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16864 | test $ac_status = 0; }; then | |
16865 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 16866 | else |
632b71ea DWT |
16867 | pkg_failed=yes |
16868 | fi | |
3fd51f51 | 16869 | fi |
632b71ea DWT |
16870 | else |
16871 | pkg_failed=untried | |
16872 | fi | |
16873 | if test -n "$PKG_CONFIG"; then | |
16874 | if test -n "$WEBKIT_LIBS"; then | |
16875 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16876 | else | |
16877 | if test -n "$PKG_CONFIG" && \ | |
16878 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16879 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16880 | ac_status=$? | |
16881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16882 | test $ac_status = 0; }; then | |
16883 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
16884 | else | |
16885 | pkg_failed=yes | |
16886 | fi | |
16887 | fi | |
16888 | else | |
16889 | pkg_failed=untried | |
16890 | fi | |
3fd51f51 | 16891 | |
3fd51f51 | 16892 | |
3fd51f51 | 16893 | |
632b71ea | 16894 | if test $pkg_failed = yes; then |
3fd51f51 | 16895 | |
632b71ea DWT |
16896 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16897 | _pkg_short_errors_supported=yes | |
16898 | else | |
16899 | _pkg_short_errors_supported=no | |
9c60689e | 16900 | fi |
632b71ea DWT |
16901 | if test $_pkg_short_errors_supported = yes; then |
16902 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
16903 | else | |
16904 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
16905 | fi | |
16906 | # Put the nasty error message in config.log where it belongs | |
16907 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
9c60689e | 16908 | |
632b71ea DWT |
16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16910 | $as_echo "no" >&6; } | |
9c60689e DWT |
16911 | |
16912 | ||
16913 | pkg_failed=no | |
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16915 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16916 | ||
16917 | if test -n "$PKG_CONFIG"; then | |
16918 | if test -n "$WEBKIT_CFLAGS"; then | |
16919 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16920 | else | |
16921 | if test -n "$PKG_CONFIG" && \ | |
16922 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16923 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16924 | ac_status=$? | |
16925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16926 | test $ac_status = 0; }; then | |
16927 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16928 | else | |
16929 | pkg_failed=yes | |
16930 | fi | |
16931 | fi | |
16932 | else | |
16933 | pkg_failed=untried | |
16934 | fi | |
16935 | if test -n "$PKG_CONFIG"; then | |
16936 | if test -n "$WEBKIT_LIBS"; then | |
16937 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16938 | else | |
16939 | if test -n "$PKG_CONFIG" && \ | |
16940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16941 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16942 | ac_status=$? | |
16943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16944 | test $ac_status = 0; }; then | |
16945 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16946 | else | |
16947 | pkg_failed=yes | |
16948 | fi | |
16949 | fi | |
16950 | else | |
16951 | pkg_failed=untried | |
16952 | fi | |
16953 | ||
16954 | ||
16955 | ||
16956 | if test $pkg_failed = yes; then | |
16957 | ||
16958 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16959 | _pkg_short_errors_supported=yes | |
16960 | else | |
16961 | _pkg_short_errors_supported=no | |
16962 | fi | |
16963 | if test $_pkg_short_errors_supported = yes; then | |
16964 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16965 | else | |
16966 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16967 | fi | |
16968 | # Put the nasty error message in config.log where it belongs | |
16969 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16970 | ||
16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16972 | $as_echo "no" >&6; } | |
b128dfee | 16973 | |
c823f118 DWT |
16974 | |
16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16976 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16977 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16978 | $as_echo_n "(cached) " >&6 | |
16979 | else | |
16980 | ||
16981 | ac_check_framework_save_LIBS=$LIBS | |
16982 | LIBS="-framework JavaScriptCore $LIBS" | |
16983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16984 | /* end confdefs.h. */ | |
16985 | ||
b66977f1 | 16986 | #include <JavaScriptCore/JSBase.h> |
c823f118 DWT |
16987 | |
16988 | int | |
16989 | main () | |
16990 | { | |
16991 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16992 | ; | |
16993 | return 0; | |
16994 | } | |
b128dfee | 16995 | _ACEOF |
c823f118 DWT |
16996 | if ac_fn_cxx_try_link "$LINENO"; then : |
16997 | ||
16998 | ac_cv_framework_JavaScriptCore=yes | |
16999 | ||
17000 | else | |
17001 | ac_cv_framework_JavaScriptCore=no | |
17002 | fi | |
17003 | rm -f core conftest.err conftest.$ac_objext \ | |
17004 | conftest$ac_exeext conftest.$ac_ext | |
17005 | LIBS=$ac_check_framework_save_LIBS | |
17006 | ||
b128dfee | 17007 | fi |
c823f118 DWT |
17008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
17009 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17010 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
b128dfee | 17011 | |
b128dfee | 17012 | |
c823f118 DWT |
17013 | for element in "-framework JavaScriptCore $LIBS"; do |
17014 | haveit= | |
17015 | for x in $LIBS; do | |
17016 | ||
17017 | acl_save_prefix="$prefix" | |
17018 | prefix="$acl_final_prefix" | |
17019 | acl_save_exec_prefix="$exec_prefix" | |
17020 | exec_prefix="$acl_final_exec_prefix" | |
17021 | eval x=\"$x\" | |
17022 | exec_prefix="$acl_save_exec_prefix" | |
17023 | prefix="$acl_save_prefix" | |
17024 | ||
17025 | if test "X$x" = "X$element"; then | |
17026 | haveit=yes | |
17027 | break | |
17028 | fi | |
17029 | done | |
17030 | if test -z "$haveit"; then | |
17031 | LIBS="${LIBS}${LIBS:+ }$element" | |
17032 | fi | |
17033 | done | |
17034 | ||
17035 | CY_EXECUTE=1 | |
17036 | ||
17037 | fi | |
b128dfee | 17038 | |
9c60689e | 17039 | elif test $pkg_failed = untried; then |
b128dfee | 17040 | |
c823f118 DWT |
17041 | |
17042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17043 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17044 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
17045 | $as_echo_n "(cached) " >&6 | |
17046 | else | |
17047 | ||
17048 | ac_check_framework_save_LIBS=$LIBS | |
17049 | LIBS="-framework JavaScriptCore $LIBS" | |
17050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17051 | /* end confdefs.h. */ | |
17052 | ||
b66977f1 | 17053 | #include <JavaScriptCore/JSBase.h> |
c823f118 DWT |
17054 | |
17055 | int | |
17056 | main () | |
17057 | { | |
17058 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17059 | ; | |
17060 | return 0; | |
17061 | } | |
b128dfee | 17062 | _ACEOF |
c823f118 DWT |
17063 | if ac_fn_cxx_try_link "$LINENO"; then : |
17064 | ||
17065 | ac_cv_framework_JavaScriptCore=yes | |
17066 | ||
632b71ea DWT |
17067 | else |
17068 | ac_cv_framework_JavaScriptCore=no | |
17069 | fi | |
17070 | rm -f core conftest.err conftest.$ac_objext \ | |
17071 | conftest$ac_exeext conftest.$ac_ext | |
17072 | LIBS=$ac_check_framework_save_LIBS | |
3fd51f51 | 17073 | |
632b71ea DWT |
17074 | fi |
17075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17076 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17077 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
3fd51f51 DWT |
17078 | |
17079 | ||
632b71ea | 17080 | for element in "-framework JavaScriptCore $LIBS"; do |
3fd51f51 DWT |
17081 | haveit= |
17082 | for x in $LIBS; do | |
17083 | ||
17084 | acl_save_prefix="$prefix" | |
17085 | prefix="$acl_final_prefix" | |
17086 | acl_save_exec_prefix="$exec_prefix" | |
17087 | exec_prefix="$acl_final_exec_prefix" | |
17088 | eval x=\"$x\" | |
17089 | exec_prefix="$acl_save_exec_prefix" | |
17090 | prefix="$acl_save_prefix" | |
17091 | ||
17092 | if test "X$x" = "X$element"; then | |
17093 | haveit=yes | |
17094 | break | |
17095 | fi | |
17096 | done | |
17097 | if test -z "$haveit"; then | |
17098 | LIBS="${LIBS}${LIBS:+ }$element" | |
17099 | fi | |
17100 | done | |
17101 | ||
632b71ea | 17102 | CY_EXECUTE=1 |
3fd51f51 | 17103 | |
9c60689e DWT |
17104 | fi |
17105 | ||
17106 | else | |
17107 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17108 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17110 | $as_echo "yes" >&6; } | |
3fd51f51 | 17111 | |
b66977f1 | 17112 | CY_EXECUTE=1 |
3fd51f51 | 17113 | |
632b71ea | 17114 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
3fd51f51 DWT |
17115 | haveit= |
17116 | for x in $CXXFLAGS; do | |
17117 | ||
17118 | acl_save_prefix="$prefix" | |
17119 | prefix="$acl_final_prefix" | |
17120 | acl_save_exec_prefix="$exec_prefix" | |
17121 | exec_prefix="$acl_final_exec_prefix" | |
17122 | eval x=\"$x\" | |
17123 | exec_prefix="$acl_save_exec_prefix" | |
17124 | prefix="$acl_save_prefix" | |
17125 | ||
17126 | if test "X$x" = "X$element"; then | |
17127 | haveit=yes | |
17128 | break | |
17129 | fi | |
17130 | done | |
17131 | if test -z "$haveit"; then | |
17132 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17133 | fi | |
17134 | done | |
17135 | ||
17136 | ||
632b71ea | 17137 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
3fd51f51 DWT |
17138 | haveit= |
17139 | for x in $LIBS; do | |
17140 | ||
17141 | acl_save_prefix="$prefix" | |
17142 | prefix="$acl_final_prefix" | |
17143 | acl_save_exec_prefix="$exec_prefix" | |
17144 | exec_prefix="$acl_final_exec_prefix" | |
17145 | eval x=\"$x\" | |
17146 | exec_prefix="$acl_save_exec_prefix" | |
17147 | prefix="$acl_save_prefix" | |
17148 | ||
17149 | if test "X$x" = "X$element"; then | |
17150 | haveit=yes | |
17151 | break | |
17152 | fi | |
17153 | done | |
17154 | if test -z "$haveit"; then | |
17155 | LIBS="${LIBS}${LIBS:+ }$element" | |
17156 | fi | |
17157 | done | |
17158 | ||
17159 | ||
9c60689e | 17160 | fi |
a667869d | 17161 | |
632b71ea | 17162 | elif test $pkg_failed = untried; then |
9c60689e DWT |
17163 | |
17164 | ||
632b71ea DWT |
17165 | pkg_failed=no |
17166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17167 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17168 | ||
17169 | if test -n "$PKG_CONFIG"; then | |
17170 | if test -n "$WEBKIT_CFLAGS"; then | |
17171 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17172 | else | |
17173 | if test -n "$PKG_CONFIG" && \ | |
17174 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17175 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17176 | ac_status=$? | |
17177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17178 | test $ac_status = 0; }; then | |
17179 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
a667869d | 17180 | else |
632b71ea DWT |
17181 | pkg_failed=yes |
17182 | fi | |
17183 | fi | |
a667869d | 17184 | else |
632b71ea | 17185 | pkg_failed=untried |
a667869d | 17186 | fi |
632b71ea DWT |
17187 | if test -n "$PKG_CONFIG"; then |
17188 | if test -n "$WEBKIT_LIBS"; then | |
17189 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17190 | else | |
17191 | if test -n "$PKG_CONFIG" && \ | |
17192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17193 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17194 | ac_status=$? | |
17195 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17196 | test $ac_status = 0; }; then | |
17197 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17198 | else | |
17199 | pkg_failed=yes | |
a667869d | 17200 | fi |
632b71ea | 17201 | fi |
a667869d | 17202 | else |
632b71ea | 17203 | pkg_failed=untried |
9c60689e DWT |
17204 | fi |
17205 | ||
a667869d | 17206 | |
9c60689e | 17207 | |
632b71ea DWT |
17208 | if test $pkg_failed = yes; then |
17209 | ||
17210 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17211 | _pkg_short_errors_supported=yes | |
17212 | else | |
17213 | _pkg_short_errors_supported=no | |
a667869d | 17214 | fi |
632b71ea DWT |
17215 | if test $_pkg_short_errors_supported = yes; then |
17216 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
17217 | else | |
17218 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
17219 | fi | |
17220 | # Put the nasty error message in config.log where it belongs | |
17221 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
9c60689e | 17222 | |
632b71ea DWT |
17223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17224 | $as_echo "no" >&6; } | |
9c60689e | 17225 | |
632b71ea DWT |
17226 | |
17227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17228 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17229 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
9c60689e DWT |
17230 | $as_echo_n "(cached) " >&6 |
17231 | else | |
632b71ea DWT |
17232 | |
17233 | ac_check_framework_save_LIBS=$LIBS | |
17234 | LIBS="-framework JavaScriptCore $LIBS" | |
17235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
17236 | /* end confdefs.h. */ |
17237 | ||
b66977f1 | 17238 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 17239 | |
9c60689e DWT |
17240 | int |
17241 | main () | |
17242 | { | |
632b71ea | 17243 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
9c60689e DWT |
17244 | ; |
17245 | return 0; | |
17246 | } | |
17247 | _ACEOF | |
632b71ea DWT |
17248 | if ac_fn_cxx_try_link "$LINENO"; then : |
17249 | ||
17250 | ac_cv_framework_JavaScriptCore=yes | |
17251 | ||
9c60689e | 17252 | else |
632b71ea | 17253 | ac_cv_framework_JavaScriptCore=no |
9c60689e | 17254 | fi |
632b71ea DWT |
17255 | rm -f core conftest.err conftest.$ac_objext \ |
17256 | conftest$ac_exeext conftest.$ac_ext | |
17257 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
17258 | |
17259 | fi | |
632b71ea DWT |
17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
17261 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17262 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17263 | ||
17264 | ||
17265 | for element in "-framework JavaScriptCore $LIBS"; do | |
17266 | haveit= | |
17267 | for x in $LIBS; do | |
17268 | ||
17269 | acl_save_prefix="$prefix" | |
17270 | prefix="$acl_final_prefix" | |
17271 | acl_save_exec_prefix="$exec_prefix" | |
17272 | exec_prefix="$acl_final_exec_prefix" | |
17273 | eval x=\"$x\" | |
17274 | exec_prefix="$acl_save_exec_prefix" | |
17275 | prefix="$acl_save_prefix" | |
17276 | ||
17277 | if test "X$x" = "X$element"; then | |
17278 | haveit=yes | |
17279 | break | |
17280 | fi | |
17281 | done | |
17282 | if test -z "$haveit"; then | |
17283 | LIBS="${LIBS}${LIBS:+ }$element" | |
17284 | fi | |
17285 | done | |
17286 | ||
17287 | CY_EXECUTE=1 | |
17288 | ||
a667869d | 17289 | fi |
632b71ea DWT |
17290 | |
17291 | elif test $pkg_failed = untried; then | |
17292 | ||
17293 | ||
17294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17295 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17296 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
a667869d DWT |
17297 | $as_echo_n "(cached) " >&6 |
17298 | else | |
632b71ea DWT |
17299 | |
17300 | ac_check_framework_save_LIBS=$LIBS | |
17301 | LIBS="-framework JavaScriptCore $LIBS" | |
17302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a667869d DWT |
17303 | /* end confdefs.h. */ |
17304 | ||
b66977f1 | 17305 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 17306 | |
a667869d DWT |
17307 | int |
17308 | main () | |
17309 | { | |
632b71ea | 17310 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
a667869d DWT |
17311 | ; |
17312 | return 0; | |
17313 | } | |
17314 | _ACEOF | |
632b71ea DWT |
17315 | if ac_fn_cxx_try_link "$LINENO"; then : |
17316 | ||
17317 | ac_cv_framework_JavaScriptCore=yes | |
17318 | ||
a667869d | 17319 | else |
632b71ea DWT |
17320 | ac_cv_framework_JavaScriptCore=no |
17321 | fi | |
17322 | rm -f core conftest.err conftest.$ac_objext \ | |
17323 | conftest$ac_exeext conftest.$ac_ext | |
17324 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 17325 | |
632b71ea DWT |
17326 | fi |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17328 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17329 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
a667869d | 17330 | |
a667869d | 17331 | |
632b71ea DWT |
17332 | for element in "-framework JavaScriptCore $LIBS"; do |
17333 | haveit= | |
17334 | for x in $LIBS; do | |
a667869d | 17335 | |
632b71ea DWT |
17336 | acl_save_prefix="$prefix" |
17337 | prefix="$acl_final_prefix" | |
17338 | acl_save_exec_prefix="$exec_prefix" | |
17339 | exec_prefix="$acl_final_exec_prefix" | |
17340 | eval x=\"$x\" | |
17341 | exec_prefix="$acl_save_exec_prefix" | |
17342 | prefix="$acl_save_prefix" | |
17343 | ||
17344 | if test "X$x" = "X$element"; then | |
17345 | haveit=yes | |
17346 | break | |
17347 | fi | |
17348 | done | |
17349 | if test -z "$haveit"; then | |
17350 | LIBS="${LIBS}${LIBS:+ }$element" | |
17351 | fi | |
17352 | done | |
17353 | ||
17354 | CY_EXECUTE=1 | |
a667869d | 17355 | |
a667869d | 17356 | fi |
632b71ea | 17357 | |
a667869d | 17358 | else |
632b71ea DWT |
17359 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS |
17360 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17362 | $as_echo "yes" >&6; } | |
17363 | ||
b66977f1 | 17364 | CY_EXECUTE=1 |
632b71ea DWT |
17365 | |
17366 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
17367 | haveit= | |
17368 | for x in $CXXFLAGS; do | |
17369 | ||
17370 | acl_save_prefix="$prefix" | |
17371 | prefix="$acl_final_prefix" | |
17372 | acl_save_exec_prefix="$exec_prefix" | |
17373 | exec_prefix="$acl_final_exec_prefix" | |
17374 | eval x=\"$x\" | |
17375 | exec_prefix="$acl_save_exec_prefix" | |
17376 | prefix="$acl_save_prefix" | |
17377 | ||
17378 | if test "X$x" = "X$element"; then | |
17379 | haveit=yes | |
17380 | break | |
17381 | fi | |
17382 | done | |
17383 | if test -z "$haveit"; then | |
17384 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17385 | fi | |
17386 | done | |
17387 | ||
17388 | ||
17389 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
17390 | haveit= | |
17391 | for x in $LIBS; do | |
17392 | ||
17393 | acl_save_prefix="$prefix" | |
17394 | prefix="$acl_final_prefix" | |
17395 | acl_save_exec_prefix="$exec_prefix" | |
17396 | exec_prefix="$acl_final_exec_prefix" | |
17397 | eval x=\"$x\" | |
17398 | exec_prefix="$acl_save_exec_prefix" | |
17399 | prefix="$acl_save_prefix" | |
17400 | ||
17401 | if test "X$x" = "X$element"; then | |
17402 | haveit=yes | |
17403 | break | |
17404 | fi | |
17405 | done | |
17406 | if test -z "$haveit"; then | |
17407 | LIBS="${LIBS}${LIBS:+ }$element" | |
17408 | fi | |
17409 | done | |
17410 | ||
17411 | ||
a667869d | 17412 | fi |
a667869d | 17413 | |
632b71ea DWT |
17414 | else |
17415 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17416 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17418 | $as_echo "yes" >&6; } | |
17419 | ||
b66977f1 | 17420 | CY_EXECUTE=1 |
632b71ea DWT |
17421 | |
17422 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
17423 | haveit= | |
17424 | for x in $CXXFLAGS; do | |
17425 | ||
17426 | acl_save_prefix="$prefix" | |
17427 | prefix="$acl_final_prefix" | |
17428 | acl_save_exec_prefix="$exec_prefix" | |
17429 | exec_prefix="$acl_final_exec_prefix" | |
17430 | eval x=\"$x\" | |
17431 | exec_prefix="$acl_save_exec_prefix" | |
17432 | prefix="$acl_save_prefix" | |
17433 | ||
17434 | if test "X$x" = "X$element"; then | |
17435 | haveit=yes | |
17436 | break | |
17437 | fi | |
17438 | done | |
17439 | if test -z "$haveit"; then | |
17440 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17441 | fi | |
17442 | done | |
17443 | ||
17444 | ||
17445 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
17446 | haveit= | |
17447 | for x in $LIBS; do | |
17448 | ||
17449 | acl_save_prefix="$prefix" | |
17450 | prefix="$acl_final_prefix" | |
17451 | acl_save_exec_prefix="$exec_prefix" | |
17452 | exec_prefix="$acl_final_exec_prefix" | |
17453 | eval x=\"$x\" | |
17454 | exec_prefix="$acl_save_exec_prefix" | |
17455 | prefix="$acl_save_prefix" | |
17456 | ||
17457 | if test "X$x" = "X$element"; then | |
17458 | haveit=yes | |
17459 | break | |
17460 | fi | |
17461 | done | |
17462 | if test -z "$haveit"; then | |
17463 | LIBS="${LIBS}${LIBS:+ }$element" | |
17464 | fi | |
17465 | done | |
17466 | ||
17467 | ||
17468 | fi | |
a667869d | 17469 | |
b66977f1 DWT |
17470 | |
17471 | fi | |
17472 | ||
17473 | ||
a667869d DWT |
17474 | case $CY_EXECUTE in #( |
17475 | 1) : | |
17476 | ||
17477 | ||
17478 | ||
17479 | pkg_failed=no | |
17480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
17481 | $as_echo_n "checking for LIBFFI... " >&6; } | |
17482 | ||
17483 | if test -n "$PKG_CONFIG"; then | |
17484 | if test -n "$LIBFFI_CFLAGS"; then | |
17485 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
17486 | else | |
17487 | if test -n "$PKG_CONFIG" && \ | |
17488 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
17489 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17490 | ac_status=$? | |
17491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17492 | test $ac_status = 0; }; then | |
17493 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
17494 | else | |
17495 | pkg_failed=yes | |
17496 | fi | |
17497 | fi | |
17498 | else | |
17499 | pkg_failed=untried | |
17500 | fi | |
17501 | if test -n "$PKG_CONFIG"; then | |
17502 | if test -n "$LIBFFI_LIBS"; then | |
17503 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
17504 | else | |
17505 | if test -n "$PKG_CONFIG" && \ | |
17506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
17507 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17508 | ac_status=$? | |
17509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17510 | test $ac_status = 0; }; then | |
17511 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
17512 | else | |
17513 | pkg_failed=yes | |
17514 | fi | |
17515 | fi | |
17516 | else | |
17517 | pkg_failed=untried | |
17518 | fi | |
17519 | ||
17520 | ||
17521 | ||
17522 | if test $pkg_failed = yes; then | |
17523 | ||
17524 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17525 | _pkg_short_errors_supported=yes | |
17526 | else | |
17527 | _pkg_short_errors_supported=no | |
17528 | fi | |
17529 | if test $_pkg_short_errors_supported = yes; then | |
17530 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
17531 | else | |
17532 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
17533 | fi | |
17534 | # Put the nasty error message in config.log where it belongs | |
17535 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
17536 | ||
17537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17538 | $as_echo "no" >&6; } | |
17539 | ||
17540 | for ac_header in ffi.h ffi/ffi.h | |
17541 | do : | |
17542 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17543 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17544 | eval as_val=\$$as_ac_Header | |
17545 | if test "x$as_val" = x""yes; then : | |
17546 | cat >>confdefs.h <<_ACEOF | |
17547 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17548 | _ACEOF | |
17549 | break | |
17550 | fi | |
17551 | ||
17552 | done | |
17553 | ||
17554 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
17555 | ||
17556 | as_fn_error "You need libffi" "$LINENO" 5 | |
17557 | ||
17558 | fi | |
17559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
17560 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17561 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17562 | $as_echo_n "(cached) " >&6 | |
17563 | else | |
17564 | ac_func_search_save_LIBS=$LIBS | |
17565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17566 | /* end confdefs.h. */ | |
17567 | ||
17568 | /* Override any GCC internal prototype to avoid an error. | |
17569 | Use char because int might match the return type of a GCC | |
17570 | builtin and then its argument prototype would still apply. */ | |
17571 | #ifdef __cplusplus | |
17572 | extern "C" | |
17573 | #endif | |
17574 | char ffi_call (); | |
17575 | int | |
17576 | main () | |
17577 | { | |
17578 | return ffi_call (); | |
17579 | ; | |
17580 | return 0; | |
17581 | } | |
17582 | _ACEOF | |
17583 | for ac_lib in '' ffi; do | |
17584 | if test -z "$ac_lib"; then | |
17585 | ac_res="none required" | |
17586 | else | |
17587 | ac_res=-l$ac_lib | |
17588 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17589 | fi | |
17590 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17591 | ac_cv_search_ffi_call=$ac_res | |
17592 | fi | |
17593 | rm -f core conftest.err conftest.$ac_objext \ | |
17594 | conftest$ac_exeext | |
17595 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17596 | break | |
17597 | fi | |
17598 | done | |
17599 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17600 | ||
17601 | else | |
17602 | ac_cv_search_ffi_call=no | |
17603 | fi | |
17604 | rm conftest.$ac_ext | |
17605 | LIBS=$ac_func_search_save_LIBS | |
17606 | fi | |
17607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
17608 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
17609 | ac_res=$ac_cv_search_ffi_call | |
17610 | if test "$ac_res" != no; then : | |
17611 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17612 | ||
17613 | fi | |
17614 | ||
17615 | case $ac_cv_search_ffi_call in #( | |
17616 | no) : | |
17617 | ||
17618 | as_fn_error "You need libffi" "$LINENO" 5 | |
17619 | ;; #( | |
17620 | *) : | |
9c60689e DWT |
17621 | ;; |
17622 | esac | |
17623 | ||
17624 | elif test $pkg_failed = untried; then | |
17625 | ||
17626 | for ac_header in ffi.h ffi/ffi.h | |
17627 | do : | |
17628 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47aaa820 | 17629 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
9c60689e DWT |
17630 | eval as_val=\$$as_ac_Header |
17631 | if test "x$as_val" = x""yes; then : | |
17632 | cat >>confdefs.h <<_ACEOF | |
17633 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17634 | _ACEOF | |
17635 | break | |
17636 | fi | |
17637 | ||
17638 | done | |
17639 | ||
17640 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
17641 | ||
17642 | as_fn_error "You need libffi" "$LINENO" 5 | |
17643 | ||
17644 | fi | |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
17646 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17647 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17648 | $as_echo_n "(cached) " >&6 | |
17649 | else | |
17650 | ac_func_search_save_LIBS=$LIBS | |
17651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17652 | /* end confdefs.h. */ | |
17653 | ||
17654 | /* Override any GCC internal prototype to avoid an error. | |
17655 | Use char because int might match the return type of a GCC | |
17656 | builtin and then its argument prototype would still apply. */ | |
17657 | #ifdef __cplusplus | |
17658 | extern "C" | |
17659 | #endif | |
17660 | char ffi_call (); | |
17661 | int | |
17662 | main () | |
17663 | { | |
17664 | return ffi_call (); | |
17665 | ; | |
17666 | return 0; | |
17667 | } | |
17668 | _ACEOF | |
17669 | for ac_lib in '' ffi; do | |
17670 | if test -z "$ac_lib"; then | |
17671 | ac_res="none required" | |
17672 | else | |
17673 | ac_res=-l$ac_lib | |
17674 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17675 | fi | |
47aaa820 | 17676 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e DWT |
17677 | ac_cv_search_ffi_call=$ac_res |
17678 | fi | |
17679 | rm -f core conftest.err conftest.$ac_objext \ | |
17680 | conftest$ac_exeext | |
17681 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17682 | break | |
17683 | fi | |
17684 | done | |
17685 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17686 | ||
17687 | else | |
17688 | ac_cv_search_ffi_call=no | |
17689 | fi | |
17690 | rm conftest.$ac_ext | |
17691 | LIBS=$ac_func_search_save_LIBS | |
17692 | fi | |
17693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
17694 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
17695 | ac_res=$ac_cv_search_ffi_call | |
17696 | if test "$ac_res" != no; then : | |
17697 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17698 | ||
17699 | fi | |
17700 | ||
17701 | case $ac_cv_search_ffi_call in #( | |
17702 | no) : | |
17703 | ||
17704 | as_fn_error "You need libffi" "$LINENO" 5 | |
17705 | ;; #( | |
17706 | *) : | |
17707 | ;; | |
17708 | esac | |
17709 | ||
17710 | else | |
17711 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
17712 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
17713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17714 | $as_echo "yes" >&6; } | |
3fd51f51 DWT |
17715 | |
17716 | ||
17717 | for element in `$PKG_CONFIG --cflags libffi`; do | |
17718 | haveit= | |
17719 | for x in $CXXFLAGS; do | |
17720 | ||
17721 | acl_save_prefix="$prefix" | |
17722 | prefix="$acl_final_prefix" | |
17723 | acl_save_exec_prefix="$exec_prefix" | |
17724 | exec_prefix="$acl_final_exec_prefix" | |
17725 | eval x=\"$x\" | |
17726 | exec_prefix="$acl_save_exec_prefix" | |
17727 | prefix="$acl_save_prefix" | |
17728 | ||
17729 | if test "X$x" = "X$element"; then | |
17730 | haveit=yes | |
17731 | break | |
17732 | fi | |
17733 | done | |
17734 | if test -z "$haveit"; then | |
17735 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17736 | fi | |
17737 | done | |
17738 | ||
17739 | ||
17740 | for element in `$PKG_CONFIG --libs libffi`; do | |
17741 | haveit= | |
17742 | for x in $LIBS; do | |
17743 | ||
17744 | acl_save_prefix="$prefix" | |
17745 | prefix="$acl_final_prefix" | |
17746 | acl_save_exec_prefix="$exec_prefix" | |
17747 | exec_prefix="$acl_final_exec_prefix" | |
17748 | eval x=\"$x\" | |
17749 | exec_prefix="$acl_save_exec_prefix" | |
17750 | prefix="$acl_save_prefix" | |
17751 | ||
17752 | if test "X$x" = "X$element"; then | |
17753 | haveit=yes | |
17754 | break | |
17755 | fi | |
17756 | done | |
17757 | if test -z "$haveit"; then | |
17758 | LIBS="${LIBS}${LIBS:+ }$element" | |
17759 | fi | |
17760 | done | |
17761 | ||
17762 | ||
9c60689e | 17763 | fi |
a667869d | 17764 | ac_ext=mm |
47aaa820 DWT |
17765 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
17766 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17767 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17768 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
17769 | ||
a667869d | 17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
47aaa820 | 17771 | $as_echo_n "checking if we really have Objective C++... " >&6; } |
a667869d | 17772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
47aaa820 DWT |
17773 | /* end confdefs.h. */ |
17774 | ||
a667869d | 17775 | // This space intentionally left blank |
47aaa820 DWT |
17776 | |
17777 | _ACEOF | |
17778 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
17779 | ||
a667869d DWT |
17780 | CY_OBJECTIVEC=1 |
17781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
47aaa820 DWT |
17782 | $as_echo "yes" >&6; } |
17783 | ||
17784 | else | |
17785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17786 | $as_echo "no" >&6; } | |
17787 | fi | |
17788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a667869d | 17789 | if test "x$CY_OBJECTIVEC" = x1; then : |
47aaa820 | 17790 | |
c823f118 DWT |
17791 | |
17792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 | |
17793 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
17794 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
17795 | $as_echo_n "(cached) " >&6 | |
17796 | else | |
17797 | ||
17798 | ac_check_framework_save_LIBS=$LIBS | |
17799 | LIBS="-framework CoreFoundation $LIBS" | |
17800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17801 | /* end confdefs.h. */ | |
17802 | ||
17803 | #include <CoreFoundation/CFBase.h> | |
17804 | ||
17805 | int | |
17806 | main () | |
17807 | { | |
17808 | CFAllocatorGetDefault(); | |
17809 | ; | |
17810 | return 0; | |
17811 | } | |
17812 | _ACEOF | |
17813 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
17814 | ||
17815 | ac_cv_framework_CoreFoundation=yes | |
17816 | ||
17817 | else | |
17818 | ac_cv_framework_CoreFoundation=no | |
17819 | fi | |
17820 | rm -f core conftest.err conftest.$ac_objext \ | |
17821 | conftest$ac_exeext conftest.$ac_ext | |
17822 | LIBS=$ac_check_framework_save_LIBS | |
17823 | ||
17824 | fi | |
17825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 | |
17826 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
17827 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
17828 | ||
17829 | ||
17830 | for element in "-framework CoreFoundation $LIBS"; do | |
17831 | haveit= | |
17832 | for x in $LIBS; do | |
17833 | ||
17834 | acl_save_prefix="$prefix" | |
17835 | prefix="$acl_final_prefix" | |
17836 | acl_save_exec_prefix="$exec_prefix" | |
17837 | exec_prefix="$acl_final_exec_prefix" | |
17838 | eval x=\"$x\" | |
17839 | exec_prefix="$acl_save_exec_prefix" | |
17840 | prefix="$acl_save_prefix" | |
17841 | ||
17842 | if test "X$x" = "X$element"; then | |
17843 | haveit=yes | |
17844 | break | |
17845 | fi | |
17846 | done | |
17847 | if test -z "$haveit"; then | |
17848 | LIBS="${LIBS}${LIBS:+ }$element" | |
17849 | fi | |
17850 | done | |
17851 | ||
17852 | ||
17853 | ||
17854 | ||
17855 | ||
17856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 | |
17857 | $as_echo_n "checking for framework Foundation... " >&6; } | |
17858 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
17859 | $as_echo_n "(cached) " >&6 | |
17860 | else | |
17861 | ||
17862 | ac_check_framework_save_LIBS=$LIBS | |
17863 | LIBS="-framework Foundation $LIBS" | |
17864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17865 | /* end confdefs.h. */ | |
17866 | ||
17867 | #include <Foundation/NSObject.h> | |
17868 | ||
17869 | int | |
17870 | main () | |
17871 | { | |
17872 | [[NSObject alloc] init]; | |
17873 | ; | |
17874 | return 0; | |
17875 | } | |
17876 | _ACEOF | |
17877 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
17878 | ||
17879 | ac_cv_framework_Foundation=yes | |
17880 | ||
17881 | else | |
17882 | ac_cv_framework_Foundation=no | |
17883 | fi | |
17884 | rm -f core conftest.err conftest.$ac_objext \ | |
17885 | conftest$ac_exeext conftest.$ac_ext | |
17886 | LIBS=$ac_check_framework_save_LIBS | |
17887 | ||
17888 | fi | |
17889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
17890 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
17891 | if test $ac_cv_framework_Foundation = yes; then : | |
17892 | ||
17893 | ||
17894 | for element in "-framework Foundation $LIBS"; do | |
17895 | haveit= | |
17896 | for x in $LIBS; do | |
17897 | ||
17898 | acl_save_prefix="$prefix" | |
17899 | prefix="$acl_final_prefix" | |
17900 | acl_save_exec_prefix="$exec_prefix" | |
17901 | exec_prefix="$acl_final_exec_prefix" | |
17902 | eval x=\"$x\" | |
17903 | exec_prefix="$acl_save_exec_prefix" | |
17904 | prefix="$acl_save_prefix" | |
17905 | ||
17906 | if test "X$x" = "X$element"; then | |
17907 | haveit=yes | |
17908 | break | |
17909 | fi | |
17910 | done | |
17911 | if test -z "$haveit"; then | |
17912 | LIBS="${LIBS}${LIBS:+ }$element" | |
17913 | fi | |
17914 | done | |
17915 | ||
17916 | cat >>confdefs.h <<_ACEOF | |
17917 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
17918 | _ACEOF | |
17919 | ||
17920 | ||
17921 | fi | |
17922 | ||
17923 | ||
17924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
17925 | $as_echo_n "checking for framework WebKit... " >&6; } | |
17926 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
17927 | $as_echo_n "(cached) " >&6 | |
17928 | else | |
17929 | ||
17930 | ac_check_framework_save_LIBS=$LIBS | |
17931 | LIBS="-framework WebKit $LIBS" | |
17932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17933 | /* end confdefs.h. */ | |
17934 | ||
17935 | #include <WebKit/WebScriptObject.h> | |
17936 | ||
17937 | int | |
17938 | main () | |
17939 | { | |
17940 | [[WebScriptObject alloc] init]; | |
17941 | ; | |
17942 | return 0; | |
17943 | } | |
17944 | _ACEOF | |
17945 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
17946 | ||
17947 | ac_cv_framework_WebKit=yes | |
17948 | ||
17949 | else | |
17950 | ac_cv_framework_WebKit=no | |
17951 | fi | |
17952 | rm -f core conftest.err conftest.$ac_objext \ | |
17953 | conftest$ac_exeext conftest.$ac_ext | |
17954 | LIBS=$ac_check_framework_save_LIBS | |
17955 | ||
17956 | fi | |
17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
17958 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
17959 | if test $ac_cv_framework_WebKit = yes; then : | |
17960 | ||
17961 | ||
17962 | for element in "-framework WebKit $LIBS"; do | |
17963 | haveit= | |
17964 | for x in $LIBS; do | |
17965 | ||
17966 | acl_save_prefix="$prefix" | |
17967 | prefix="$acl_final_prefix" | |
17968 | acl_save_exec_prefix="$exec_prefix" | |
17969 | exec_prefix="$acl_final_exec_prefix" | |
17970 | eval x=\"$x\" | |
17971 | exec_prefix="$acl_save_exec_prefix" | |
17972 | prefix="$acl_save_prefix" | |
17973 | ||
17974 | if test "X$x" = "X$element"; then | |
17975 | haveit=yes | |
17976 | break | |
17977 | fi | |
17978 | done | |
17979 | if test -z "$haveit"; then | |
17980 | LIBS="${LIBS}${LIBS:+ }$element" | |
17981 | fi | |
17982 | done | |
17983 | ||
17984 | cat >>confdefs.h <<_ACEOF | |
17985 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
17986 | _ACEOF | |
17987 | ||
17988 | ||
17989 | fi | |
17990 | ||
17991 | ||
17992 | else | |
17993 | ||
790e5246 | 17994 | |
c823f118 | 17995 | for ac_prog in gnustep-config |
47aaa820 DWT |
17996 | do |
17997 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17998 | set dummy $ac_prog; ac_word=$2 | |
17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18000 | $as_echo_n "checking for $ac_word... " >&6; } | |
18001 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
18002 | $as_echo_n "(cached) " >&6 | |
18003 | else | |
18004 | if test -n "$GNUSTEP_CONFIG"; then | |
18005 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
18006 | else | |
18007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18008 | for as_dir in $PATH | |
18009 | do | |
18010 | IFS=$as_save_IFS | |
18011 | test -z "$as_dir" && as_dir=. | |
18012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18014 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
18015 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18016 | break 2 | |
18017 | fi | |
18018 | done | |
18019 | done | |
18020 | IFS=$as_save_IFS | |
18021 | ||
18022 | fi | |
18023 | fi | |
18024 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
18025 | if test -n "$GNUSTEP_CONFIG"; then | |
18026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
18027 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
18028 | else | |
18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18030 | $as_echo "no" >&6; } | |
18031 | fi | |
18032 | ||
18033 | ||
18034 | test -n "$GNUSTEP_CONFIG" && break | |
18035 | done | |
18036 | ||
c823f118 | 18037 | if test "x$GNUSTEP_CONFIG" != x; then : |
47aaa820 DWT |
18038 | |
18039 | ||
18040 | ||
18041 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
18042 | haveit= | |
18043 | for x in $OBJCXXFLAGS; do | |
18044 | ||
18045 | acl_save_prefix="$prefix" | |
18046 | prefix="$acl_final_prefix" | |
18047 | acl_save_exec_prefix="$exec_prefix" | |
18048 | exec_prefix="$acl_final_exec_prefix" | |
18049 | eval x=\"$x\" | |
18050 | exec_prefix="$acl_save_exec_prefix" | |
18051 | prefix="$acl_save_prefix" | |
9c60689e | 18052 | |
47aaa820 DWT |
18053 | if test "X$x" = "X$element"; then |
18054 | haveit=yes | |
18055 | break | |
18056 | fi | |
18057 | done | |
18058 | if test -z "$haveit"; then | |
18059 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18060 | fi | |
18061 | done | |
18062 | ||
18063 | ||
18064 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
18065 | haveit= | |
18066 | for x in $LIBS; do | |
18067 | ||
18068 | acl_save_prefix="$prefix" | |
18069 | prefix="$acl_final_prefix" | |
18070 | acl_save_exec_prefix="$exec_prefix" | |
18071 | exec_prefix="$acl_final_exec_prefix" | |
18072 | eval x=\"$x\" | |
18073 | exec_prefix="$acl_save_exec_prefix" | |
18074 | prefix="$acl_save_prefix" | |
18075 | ||
18076 | if test "X$x" = "X$element"; then | |
18077 | haveit=yes | |
18078 | break | |
18079 | fi | |
18080 | done | |
18081 | if test -z "$haveit"; then | |
18082 | LIBS="${LIBS}${LIBS:+ }$element" | |
18083 | fi | |
18084 | done | |
18085 | ||
18086 | ||
c823f118 DWT |
18087 | else |
18088 | CY_OBJECTIVEC=0 | |
18089 | ||
18090 | fi | |
18091 | ||
47aaa820 DWT |
18092 | fi |
18093 | ||
18094 | fi | |
c823f118 DWT |
18095 | ac_ext=cpp |
18096 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18097 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18098 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18099 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18100 | ||
a667869d DWT |
18101 | ;; #( |
18102 | *) : | |
b66977f1 | 18103 | ;; |
a667869d | 18104 | esac |
e1cce270 DWT |
18105 | if test "x$CY_OBJECTIVEC" = x1; then : |
18106 | ||
18107 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
18108 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
18109 | ||
18110 | case $OTOOL in #( | |
18111 | :) : | |
18112 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5 | |
18113 | $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #( | |
18114 | *) : | |
18115 | CY_OBJECTIVEC_MACH=1 | |
18116 | ;; | |
18117 | esac | |
18118 | ||
18119 | fi | |
18120 | ||
18121 | ||
18122 | ||
790e5246 DWT |
18123 | fi |
18124 | if test "x$GMAKE" != xmake; then : | |
18125 | ||
18126 | ac_config_files="$ac_config_files Makefile" | |
18127 | ||
18128 | ||
47aaa820 | 18129 | fi |
9c60689e DWT |
18130 | ac_config_files="$ac_config_files GNUmakefile" |
18131 | ||
18132 | cat >confcache <<\_ACEOF | |
18133 | # This file is a shell script that caches the results of configure | |
18134 | # tests run on this system so they can be shared between configure | |
18135 | # scripts and configure runs, see configure's option --config-cache. | |
18136 | # It is not useful on other systems. If it contains results you don't | |
18137 | # want to keep, you may remove or edit it. | |
18138 | # | |
18139 | # config.status only pays attention to the cache file if you give it | |
18140 | # the --recheck option to rerun configure. | |
18141 | # | |
18142 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18143 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18144 | # following values. | |
18145 | ||
18146 | _ACEOF | |
18147 | ||
18148 | # The following way of writing the cache mishandles newlines in values, | |
18149 | # but we know of no workaround that is simple, portable, and efficient. | |
18150 | # So, we kill variables containing newlines. | |
18151 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18152 | # and sets the high bit in the cache file unless we assign to the vars. | |
18153 | ( | |
18154 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18155 | eval ac_val=\$$ac_var | |
18156 | case $ac_val in #( | |
18157 | *${as_nl}*) | |
18158 | case $ac_var in #( | |
18159 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18160 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18161 | esac | |
18162 | case $ac_var in #( | |
18163 | _ | IFS | as_nl) ;; #( | |
18164 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18165 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18166 | esac ;; | |
18167 | esac | |
18168 | done | |
18169 | ||
18170 | (set) 2>&1 | | |
18171 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18172 | *${as_nl}ac_space=\ *) | |
18173 | # `set' does not quote correctly, so add quotes: double-quote | |
18174 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18175 | sed -n \ | |
18176 | "s/'/'\\\\''/g; | |
18177 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18178 | ;; #( | |
18179 | *) | |
18180 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18181 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18182 | ;; | |
18183 | esac | | |
18184 | sort | |
18185 | ) | | |
18186 | sed ' | |
18187 | /^ac_cv_env_/b end | |
18188 | t clear | |
18189 | :clear | |
18190 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18191 | t end | |
18192 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18193 | :end' >>confcache | |
18194 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18195 | if test -w "$cache_file"; then | |
18196 | test "x$cache_file" != "x/dev/null" && | |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
18198 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
18199 | cat confcache >$cache_file | |
18200 | else | |
18201 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
18202 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18203 | fi | |
18204 | fi | |
18205 | rm -f confcache | |
18206 | ||
18207 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18208 | # Let make expand exec_prefix. | |
18209 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18210 | ||
18211 | # Transform confdefs.h into DEFS. | |
18212 | # Protect against shell expansion while executing Makefile rules. | |
18213 | # Protect against Makefile macro expansion. | |
18214 | # | |
18215 | # If the first sed substitution is executed (which looks for macros that | |
18216 | # take arguments), then branch to the quote section. Otherwise, | |
18217 | # look for a macro that doesn't take arguments. | |
18218 | ac_script=' | |
18219 | :mline | |
18220 | /\\$/{ | |
18221 | N | |
18222 | s,\\\n,, | |
18223 | b mline | |
18224 | } | |
18225 | t clear | |
18226 | :clear | |
18227 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
18228 | t quote | |
18229 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
18230 | t quote | |
18231 | b any | |
18232 | :quote | |
18233 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18234 | s/\[/\\&/g | |
18235 | s/\]/\\&/g | |
18236 | s/\$/$$/g | |
18237 | H | |
18238 | :any | |
18239 | ${ | |
18240 | g | |
18241 | s/^\n// | |
18242 | s/\n/ /g | |
18243 | p | |
18244 | } | |
18245 | ' | |
18246 | DEFS=`sed -n "$ac_script" confdefs.h` | |
18247 | ||
18248 | ||
18249 | ac_libobjs= | |
18250 | ac_ltlibobjs= | |
18251 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18252 | # 1. Remove the extension, and $U if already installed. | |
18253 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18254 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18255 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18256 | # will be set to the directory where LIBOBJS objects are built. | |
18257 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18258 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
18259 | done | |
18260 | LIBOBJS=$ac_libobjs | |
18261 | ||
18262 | LTLIBOBJS=$ac_ltlibobjs | |
18263 | ||
18264 | ||
18265 | ||
18266 | : ${CONFIG_STATUS=./config.status} | |
18267 | ac_write_fail=0 | |
18268 | ac_clean_files_save=$ac_clean_files | |
18269 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18270 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
18271 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18272 | as_write_fail=0 | |
18273 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
18274 | #! $SHELL | |
18275 | # Generated by $as_me. | |
18276 | # Run this file to recreate the current configuration. | |
18277 | # Compiler output produced by configure, useful for debugging | |
18278 | # configure, is in config.log if it exists. | |
18279 | ||
18280 | debug=false | |
18281 | ac_cs_recheck=false | |
18282 | ac_cs_silent=false | |
18283 | ||
18284 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18285 | export SHELL | |
18286 | _ASEOF | |
18287 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18288 | ## -------------------- ## | |
18289 | ## M4sh Initialization. ## | |
18290 | ## -------------------- ## | |
18291 | ||
18292 | # Be more Bourne compatible | |
18293 | DUALCASE=1; export DUALCASE # for MKS sh | |
18294 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18295 | emulate sh | |
18296 | NULLCMD=: | |
18297 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18298 | # is contrary to our usage. Disable this feature. | |
18299 | alias -g '${1+"$@"}'='"$@"' | |
18300 | setopt NO_GLOB_SUBST | |
18301 | else | |
18302 | case `(set -o) 2>/dev/null` in #( | |
18303 | *posix*) : | |
18304 | set -o posix ;; #( | |
18305 | *) : | |
18306 | ;; | |
18307 | esac | |
18308 | fi | |
18309 | ||
18310 | ||
18311 | as_nl=' | |
18312 | ' | |
18313 | export as_nl | |
18314 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18315 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18316 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18317 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18318 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18319 | # but without wasting forks for bash or zsh. | |
18320 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18321 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18322 | as_echo='print -r --' | |
18323 | as_echo_n='print -rn --' | |
18324 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18325 | as_echo='printf %s\n' | |
18326 | as_echo_n='printf %s' | |
18327 | else | |
18328 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18329 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18330 | as_echo_n='/usr/ucb/echo -n' | |
18331 | else | |
18332 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18333 | as_echo_n_body='eval | |
18334 | arg=$1; | |
18335 | case $arg in #( | |
18336 | *"$as_nl"*) | |
18337 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18338 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18339 | esac; | |
18340 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18341 | ' | |
18342 | export as_echo_n_body | |
18343 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18344 | fi | |
18345 | export as_echo_body | |
18346 | as_echo='sh -c $as_echo_body as_echo' | |
18347 | fi | |
18348 | ||
18349 | # The user is always right. | |
18350 | if test "${PATH_SEPARATOR+set}" != set; then | |
18351 | PATH_SEPARATOR=: | |
18352 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18353 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18354 | PATH_SEPARATOR=';' | |
18355 | } | |
18356 | fi | |
18357 | ||
18358 | ||
18359 | # IFS | |
18360 | # We need space, tab and new line, in precisely that order. Quoting is | |
18361 | # there to prevent editors from complaining about space-tab. | |
18362 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18363 | # splitting by setting IFS to empty value.) | |
18364 | IFS=" "" $as_nl" | |
18365 | ||
18366 | # Find who we are. Look in the path if we contain no directory separator. | |
18367 | case $0 in #(( | |
18368 | *[\\/]* ) as_myself=$0 ;; | |
18369 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18370 | for as_dir in $PATH | |
18371 | do | |
18372 | IFS=$as_save_IFS | |
18373 | test -z "$as_dir" && as_dir=. | |
18374 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18375 | done | |
18376 | IFS=$as_save_IFS | |
18377 | ||
18378 | ;; | |
18379 | esac | |
18380 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18381 | # in which case we are not to be found in the path. | |
18382 | if test "x$as_myself" = x; then | |
18383 | as_myself=$0 | |
18384 | fi | |
18385 | if test ! -f "$as_myself"; then | |
18386 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18387 | exit 1 | |
18388 | fi | |
18389 | ||
18390 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18391 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18392 | # suppresses any "Segmentation fault" message there. '((' could | |
18393 | # trigger a bug in pdksh 5.2.14. | |
18394 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18395 | do eval test x\${$as_var+set} = xset \ | |
18396 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18397 | done | |
18398 | PS1='$ ' | |
18399 | PS2='> ' | |
18400 | PS4='+ ' | |
18401 | ||
18402 | # NLS nuisances. | |
18403 | LC_ALL=C | |
18404 | export LC_ALL | |
18405 | LANGUAGE=C | |
18406 | export LANGUAGE | |
18407 | ||
18408 | # CDPATH. | |
18409 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18410 | ||
18411 | ||
18412 | # as_fn_error ERROR [LINENO LOG_FD] | |
18413 | # --------------------------------- | |
18414 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
18415 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
18416 | # script with status $?, using 1 if that was 0. | |
18417 | as_fn_error () | |
18418 | { | |
18419 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
18420 | if test "$3"; then | |
18421 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18422 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
18423 | fi | |
18424 | $as_echo "$as_me: error: $1" >&2 | |
18425 | as_fn_exit $as_status | |
18426 | } # as_fn_error | |
18427 | ||
18428 | ||
18429 | # as_fn_set_status STATUS | |
18430 | # ----------------------- | |
18431 | # Set $? to STATUS, without forking. | |
18432 | as_fn_set_status () | |
18433 | { | |
18434 | return $1 | |
18435 | } # as_fn_set_status | |
18436 | ||
18437 | # as_fn_exit STATUS | |
18438 | # ----------------- | |
18439 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18440 | as_fn_exit () | |
18441 | { | |
18442 | set +e | |
18443 | as_fn_set_status $1 | |
18444 | exit $1 | |
18445 | } # as_fn_exit | |
18446 | ||
18447 | # as_fn_unset VAR | |
18448 | # --------------- | |
18449 | # Portably unset VAR. | |
18450 | as_fn_unset () | |
18451 | { | |
18452 | { eval $1=; unset $1;} | |
18453 | } | |
18454 | as_unset=as_fn_unset | |
18455 | # as_fn_append VAR VALUE | |
18456 | # ---------------------- | |
18457 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18458 | # advantage of any shell optimizations that allow amortized linear growth over | |
18459 | # repeated appends, instead of the typical quadratic growth present in naive | |
18460 | # implementations. | |
18461 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18462 | eval 'as_fn_append () | |
18463 | { | |
18464 | eval $1+=\$2 | |
18465 | }' | |
18466 | else | |
18467 | as_fn_append () | |
18468 | { | |
18469 | eval $1=\$$1\$2 | |
18470 | } | |
18471 | fi # as_fn_append | |
18472 | ||
18473 | # as_fn_arith ARG... | |
18474 | # ------------------ | |
18475 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18476 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18477 | # must be portable across $(()) and expr. | |
18478 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18479 | eval 'as_fn_arith () | |
18480 | { | |
18481 | as_val=$(( $* )) | |
18482 | }' | |
18483 | else | |
18484 | as_fn_arith () | |
18485 | { | |
18486 | as_val=`expr "$@" || test $? -eq 1` | |
18487 | } | |
18488 | fi # as_fn_arith | |
18489 | ||
18490 | ||
18491 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18492 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18493 | as_expr=expr | |
18494 | else | |
18495 | as_expr=false | |
18496 | fi | |
18497 | ||
18498 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
18499 | as_basename=basename | |
18500 | else | |
18501 | as_basename=false | |
18502 | fi | |
18503 | ||
18504 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
18505 | as_dirname=dirname | |
18506 | else | |
18507 | as_dirname=false | |
18508 | fi | |
18509 | ||
18510 | as_me=`$as_basename -- "$0" || | |
18511 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
18512 | X"$0" : 'X\(//\)$' \| \ | |
18513 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
18514 | $as_echo X/"$0" | | |
18515 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18516 | s//\1/ | |
18517 | q | |
18518 | } | |
18519 | /^X\/\(\/\/\)$/{ | |
18520 | s//\1/ | |
18521 | q | |
18522 | } | |
18523 | /^X\/\(\/\).*/{ | |
18524 | s//\1/ | |
18525 | q | |
18526 | } | |
18527 | s/.*/./; q'` | |
18528 | ||
18529 | # Avoid depending upon Character Ranges. | |
18530 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18531 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18532 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18533 | as_cr_digits='0123456789' | |
18534 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18535 | ||
18536 | ECHO_C= ECHO_N= ECHO_T= | |
18537 | case `echo -n x` in #((((( | |
18538 | -n*) | |
18539 | case `echo 'xy\c'` in | |
18540 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18541 | xy) ECHO_C='\c';; | |
18542 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18543 | ECHO_T=' ';; | |
18544 | esac;; | |
18545 | *) | |
18546 | ECHO_N='-n';; | |
18547 | esac | |
18548 | ||
18549 | rm -f conf$$ conf$$.exe conf$$.file | |
18550 | if test -d conf$$.dir; then | |
18551 | rm -f conf$$.dir/conf$$.file | |
18552 | else | |
18553 | rm -f conf$$.dir | |
18554 | mkdir conf$$.dir 2>/dev/null | |
18555 | fi | |
18556 | if (echo >conf$$.file) 2>/dev/null; then | |
18557 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18558 | as_ln_s='ln -s' | |
18559 | # ... but there are two gotchas: | |
18560 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18561 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18562 | # In both cases, we have to default to `cp -p'. | |
18563 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18564 | as_ln_s='cp -p' | |
18565 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18566 | as_ln_s=ln | |
18567 | else | |
18568 | as_ln_s='cp -p' | |
18569 | fi | |
18570 | else | |
18571 | as_ln_s='cp -p' | |
18572 | fi | |
18573 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
18574 | rmdir conf$$.dir 2>/dev/null | |
18575 | ||
18576 | ||
18577 | # as_fn_mkdir_p | |
18578 | # ------------- | |
18579 | # Create "$as_dir" as a directory, including parents if necessary. | |
18580 | as_fn_mkdir_p () | |
18581 | { | |
18582 | ||
18583 | case $as_dir in #( | |
18584 | -*) as_dir=./$as_dir;; | |
18585 | esac | |
18586 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18587 | as_dirs= | |
18588 | while :; do | |
18589 | case $as_dir in #( | |
18590 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18591 | *) as_qdir=$as_dir;; | |
18592 | esac | |
18593 | as_dirs="'$as_qdir' $as_dirs" | |
18594 | as_dir=`$as_dirname -- "$as_dir" || | |
18595 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18596 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18597 | X"$as_dir" : 'X\(//\)$' \| \ | |
18598 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18599 | $as_echo X"$as_dir" | | |
18600 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18601 | s//\1/ | |
18602 | q | |
18603 | } | |
18604 | /^X\(\/\/\)[^/].*/{ | |
18605 | s//\1/ | |
18606 | q | |
18607 | } | |
18608 | /^X\(\/\/\)$/{ | |
18609 | s//\1/ | |
18610 | q | |
18611 | } | |
18612 | /^X\(\/\).*/{ | |
18613 | s//\1/ | |
18614 | q | |
18615 | } | |
18616 | s/.*/./; q'` | |
18617 | test -d "$as_dir" && break | |
18618 | done | |
18619 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18620 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
18621 | ||
18622 | ||
18623 | } # as_fn_mkdir_p | |
18624 | if mkdir -p . 2>/dev/null; then | |
18625 | as_mkdir_p='mkdir -p "$as_dir"' | |
18626 | else | |
18627 | test -d ./-p && rmdir ./-p | |
18628 | as_mkdir_p=false | |
18629 | fi | |
18630 | ||
18631 | if test -x / >/dev/null 2>&1; then | |
18632 | as_test_x='test -x' | |
18633 | else | |
18634 | if ls -dL / >/dev/null 2>&1; then | |
18635 | as_ls_L_option=L | |
18636 | else | |
18637 | as_ls_L_option= | |
18638 | fi | |
18639 | as_test_x=' | |
18640 | eval sh -c '\'' | |
18641 | if test -d "$1"; then | |
18642 | test -d "$1/."; | |
18643 | else | |
18644 | case $1 in #( | |
18645 | -*)set "./$1";; | |
18646 | esac; | |
18647 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
18648 | ???[sx]*):;;*)false;;esac;fi | |
18649 | '\'' sh | |
18650 | ' | |
18651 | fi | |
18652 | as_executable_p=$as_test_x | |
18653 | ||
18654 | # Sed expression to map a string onto a valid CPP name. | |
18655 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18656 | ||
18657 | # Sed expression to map a string onto a valid variable name. | |
18658 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18659 | ||
18660 | ||
18661 | exec 6>&1 | |
18662 | ## ----------------------------------- ## | |
18663 | ## Main body of $CONFIG_STATUS script. ## | |
18664 | ## ----------------------------------- ## | |
18665 | _ASEOF | |
18666 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18667 | ||
18668 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18669 | # Save the log message, to keep $0 and so on meaningful, and to | |
18670 | # report actual input values of CONFIG_FILES etc. instead of their | |
18671 | # values after options handling. | |
18672 | ac_log=" | |
18673 | This file was extended by Cycript $as_me 0.9, which was | |
18674 | generated by GNU Autoconf 2.65. Invocation command line was | |
18675 | ||
18676 | CONFIG_FILES = $CONFIG_FILES | |
18677 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18678 | CONFIG_LINKS = $CONFIG_LINKS | |
18679 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18680 | $ $0 $@ | |
18681 | ||
18682 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
18683 | " | |
18684 | ||
18685 | _ACEOF | |
18686 | ||
18687 | case $ac_config_files in *" | |
18688 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18689 | esac | |
18690 | ||
18691 | ||
18692 | ||
18693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18694 | # Files that config.status was made for. | |
18695 | config_files="$ac_config_files" | |
18696 | config_commands="$ac_config_commands" | |
18697 | ||
18698 | _ACEOF | |
18699 | ||
18700 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18701 | ac_cs_usage="\ | |
18702 | \`$as_me' instantiates files and other configuration actions | |
18703 | from templates according to the current configuration. Unless the files | |
18704 | and actions are specified as TAGs, all are instantiated by default. | |
18705 | ||
18706 | Usage: $0 [OPTION]... [TAG]... | |
18707 | ||
18708 | -h, --help print this help, then exit | |
18709 | -V, --version print version number and configuration settings, then exit | |
18710 | --config print configuration, then exit | |
18711 | -q, --quiet, --silent | |
18712 | do not print progress messages | |
18713 | -d, --debug don't remove temporary files | |
18714 | --recheck update $as_me by reconfiguring in the same conditions | |
18715 | --file=FILE[:TEMPLATE] | |
18716 | instantiate the configuration file FILE | |
18717 | ||
18718 | Configuration files: | |
18719 | $config_files | |
18720 | ||
18721 | Configuration commands: | |
18722 | $config_commands | |
18723 | ||
18724 | Report bugs to <saurik@saurik.com>. | |
18725 | Cycript home page: <http://www.cycript.org/>." | |
18726 | ||
18727 | _ACEOF | |
18728 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18729 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
18730 | ac_cs_version="\\ | |
18731 | Cycript config.status 0.9 | |
18732 | configured by $0, generated by GNU Autoconf 2.65, | |
18733 | with options \\"\$ac_cs_config\\" | |
18734 | ||
18735 | Copyright (C) 2009 Free Software Foundation, Inc. | |
18736 | This config.status script is free software; the Free Software Foundation | |
18737 | gives unlimited permission to copy, distribute and modify it." | |
18738 | ||
18739 | ac_pwd='$ac_pwd' | |
18740 | srcdir='$srcdir' | |
18741 | INSTALL='$INSTALL' | |
9c60689e DWT |
18742 | test -n "\$AWK" || AWK=awk |
18743 | _ACEOF | |
18744 | ||
18745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18746 | # The default lists apply if the user does not specify any file. | |
18747 | ac_need_defaults=: | |
18748 | while test $# != 0 | |
18749 | do | |
18750 | case $1 in | |
18751 | --*=*) | |
18752 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18753 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
18754 | ac_shift=: | |
18755 | ;; | |
18756 | *) | |
18757 | ac_option=$1 | |
18758 | ac_optarg=$2 | |
18759 | ac_shift=shift | |
18760 | ;; | |
18761 | esac | |
18762 | ||
18763 | case $ac_option in | |
18764 | # Handling of the options. | |
18765 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
18766 | ac_cs_recheck=: ;; | |
18767 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
18768 | $as_echo "$ac_cs_version"; exit ;; | |
18769 | --config | --confi | --conf | --con | --co | --c ) | |
18770 | $as_echo "$ac_cs_config"; exit ;; | |
18771 | --debug | --debu | --deb | --de | --d | -d ) | |
18772 | debug=: ;; | |
18773 | --file | --fil | --fi | --f ) | |
18774 | $ac_shift | |
18775 | case $ac_optarg in | |
18776 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18777 | esac | |
18778 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
18779 | ac_need_defaults=false;; | |
18780 | --he | --h | --help | --hel | -h ) | |
18781 | $as_echo "$ac_cs_usage"; exit ;; | |
18782 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
18783 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18784 | ac_cs_silent=: ;; | |
18785 | ||
18786 | # This is an error. | |
18787 | -*) as_fn_error "unrecognized option: \`$1' | |
18788 | Try \`$0 --help' for more information." ;; | |
18789 | ||
18790 | *) as_fn_append ac_config_targets " $1" | |
18791 | ac_need_defaults=false ;; | |
18792 | ||
18793 | esac | |
18794 | shift | |
18795 | done | |
18796 | ||
18797 | ac_configure_extra_args= | |
18798 | ||
18799 | if $ac_cs_silent; then | |
18800 | exec 6>/dev/null | |
18801 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18802 | fi | |
18803 | ||
18804 | _ACEOF | |
18805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18806 | if \$ac_cs_recheck; then | |
18807 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
18808 | shift | |
18809 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18810 | CONFIG_SHELL='$SHELL' | |
18811 | export CONFIG_SHELL | |
18812 | exec "\$@" | |
18813 | fi | |
18814 | ||
18815 | _ACEOF | |
18816 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18817 | exec 5>>config.log | |
18818 | { | |
18819 | echo | |
18820 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18821 | ## Running $as_me. ## | |
18822 | _ASBOX | |
18823 | $as_echo "$ac_log" | |
18824 | } >&5 | |
18825 | ||
18826 | _ACEOF | |
18827 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18828 | # | |
18829 | # INIT-COMMANDS | |
18830 | # | |
18831 | ||
18832 | ||
18833 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18834 | # if CDPATH is set. | |
18835 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18836 | ||
18837 | sed_quote_subst='$sed_quote_subst' | |
18838 | double_quote_subst='$double_quote_subst' | |
18839 | delay_variable_subst='$delay_variable_subst' | |
18840 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18841 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 18842 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 18843 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
18844 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
18845 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
18846 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18847 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
18848 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18849 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18850 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
18851 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18852 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
18853 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
18854 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18855 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18856 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18857 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
18858 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
18859 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
18860 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
18861 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
18862 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
18863 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
18864 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
18865 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
18866 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18867 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18868 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
18869 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
18870 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
18871 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
18872 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18873 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
18874 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
18875 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18876 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18877 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18878 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
18879 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18880 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
18881 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
18882 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
18883 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
18884 | 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"`' | |
18885 | 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"`' | |
18886 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
18887 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
18888 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
18889 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
18890 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18891 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
18892 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
18893 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18894 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
18895 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
18896 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
18897 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
18898 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
18899 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
18900 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
18901 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
18902 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18903 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18904 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
18905 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
18906 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18907 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18908 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
18909 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18910 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18911 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18912 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18913 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18914 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18915 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18916 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18917 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18918 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18919 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18920 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
18921 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
18922 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
18923 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
18924 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18925 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
18926 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18927 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
18928 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18929 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
18930 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18931 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18932 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18933 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18934 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18935 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
18936 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
18937 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18938 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
18939 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18940 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18941 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18942 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18943 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18944 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18945 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18946 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18947 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18948 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
18949 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
18950 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18951 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18952 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
18953 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
18954 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
18955 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18956 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18957 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18958 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
18959 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18960 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18961 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18962 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18963 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18964 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18965 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18966 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18967 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18968 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18969 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18970 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18971 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18972 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18973 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18974 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18975 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18976 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18977 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18978 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18979 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18980 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18981 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18982 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18983 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18984 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18985 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18986 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18987 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18988 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18989 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18990 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18991 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18992 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18993 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18994 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18995 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18996 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18997 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18998 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18999 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19000 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19001 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19002 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19003 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19004 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19005 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19006 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19007 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19008 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19009 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19010 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19011 | ||
19012 | LTCC='$LTCC' | |
19013 | LTCFLAGS='$LTCFLAGS' | |
19014 | compiler='$compiler_DEFAULT' | |
19015 | ||
19016 | # Quote evaled strings. | |
19017 | for var in SED \ | |
19018 | GREP \ | |
19019 | EGREP \ | |
19020 | FGREP \ | |
19021 | LD \ | |
19022 | NM \ | |
19023 | LN_S \ | |
19024 | lt_SP2NL \ | |
19025 | lt_NL2SP \ | |
19026 | reload_flag \ | |
19027 | OBJDUMP \ | |
19028 | deplibs_check_method \ | |
19029 | file_magic_cmd \ | |
19030 | AR \ | |
19031 | AR_FLAGS \ | |
19032 | STRIP \ | |
19033 | RANLIB \ | |
19034 | CC \ | |
19035 | CFLAGS \ | |
19036 | compiler \ | |
19037 | lt_cv_sys_global_symbol_pipe \ | |
19038 | lt_cv_sys_global_symbol_to_cdecl \ | |
19039 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19040 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19041 | SHELL \ | |
19042 | ECHO \ | |
19043 | lt_prog_compiler_no_builtin_flag \ | |
19044 | lt_prog_compiler_wl \ | |
19045 | lt_prog_compiler_pic \ | |
19046 | lt_prog_compiler_static \ | |
19047 | lt_cv_prog_compiler_c_o \ | |
19048 | need_locks \ | |
19049 | DSYMUTIL \ | |
19050 | NMEDIT \ | |
19051 | LIPO \ | |
19052 | OTOOL \ | |
19053 | OTOOL64 \ | |
19054 | shrext_cmds \ | |
19055 | export_dynamic_flag_spec \ | |
19056 | whole_archive_flag_spec \ | |
19057 | compiler_needs_object \ | |
19058 | with_gnu_ld \ | |
19059 | allow_undefined_flag \ | |
19060 | no_undefined_flag \ | |
19061 | hardcode_libdir_flag_spec \ | |
19062 | hardcode_libdir_flag_spec_ld \ | |
19063 | hardcode_libdir_separator \ | |
19064 | fix_srcfile_path \ | |
19065 | exclude_expsyms \ | |
19066 | include_expsyms \ | |
19067 | file_list_spec \ | |
19068 | variables_saved_for_relink \ | |
19069 | libname_spec \ | |
19070 | library_names_spec \ | |
19071 | soname_spec \ | |
19072 | finish_eval \ | |
19073 | old_striplib \ | |
19074 | striplib \ | |
19075 | compiler_lib_search_dirs \ | |
19076 | predep_objects \ | |
19077 | postdep_objects \ | |
19078 | predeps \ | |
19079 | postdeps \ | |
19080 | compiler_lib_search_path \ | |
19081 | LD_CXX \ | |
19082 | compiler_CXX \ | |
19083 | lt_prog_compiler_no_builtin_flag_CXX \ | |
19084 | lt_prog_compiler_wl_CXX \ | |
19085 | lt_prog_compiler_pic_CXX \ | |
19086 | lt_prog_compiler_static_CXX \ | |
19087 | lt_cv_prog_compiler_c_o_CXX \ | |
19088 | export_dynamic_flag_spec_CXX \ | |
19089 | whole_archive_flag_spec_CXX \ | |
19090 | compiler_needs_object_CXX \ | |
19091 | with_gnu_ld_CXX \ | |
19092 | allow_undefined_flag_CXX \ | |
19093 | no_undefined_flag_CXX \ | |
19094 | hardcode_libdir_flag_spec_CXX \ | |
19095 | hardcode_libdir_flag_spec_ld_CXX \ | |
19096 | hardcode_libdir_separator_CXX \ | |
19097 | fix_srcfile_path_CXX \ | |
19098 | exclude_expsyms_CXX \ | |
19099 | include_expsyms_CXX \ | |
19100 | file_list_spec_CXX \ | |
19101 | compiler_lib_search_dirs_CXX \ | |
19102 | predep_objects_CXX \ | |
19103 | postdep_objects_CXX \ | |
19104 | predeps_CXX \ | |
19105 | postdeps_CXX \ | |
19106 | compiler_lib_search_path_CXX; do | |
19107 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19108 | *[\\\\\\\`\\"\\\$]*) | |
19109 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19110 | ;; | |
19111 | *) | |
19112 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19113 | ;; | |
19114 | esac | |
19115 | done | |
19116 | ||
19117 | # Double-quote double-evaled strings. | |
19118 | for var in reload_cmds \ | |
19119 | old_postinstall_cmds \ | |
19120 | old_postuninstall_cmds \ | |
19121 | old_archive_cmds \ | |
19122 | extract_expsyms_cmds \ | |
19123 | old_archive_from_new_cmds \ | |
19124 | old_archive_from_expsyms_cmds \ | |
19125 | archive_cmds \ | |
19126 | archive_expsym_cmds \ | |
19127 | module_cmds \ | |
19128 | module_expsym_cmds \ | |
19129 | export_symbols_cmds \ | |
19130 | prelink_cmds \ | |
19131 | postinstall_cmds \ | |
19132 | postuninstall_cmds \ | |
19133 | finish_cmds \ | |
19134 | sys_lib_search_path_spec \ | |
19135 | sys_lib_dlsearch_path_spec \ | |
19136 | old_archive_cmds_CXX \ | |
19137 | old_archive_from_new_cmds_CXX \ | |
19138 | old_archive_from_expsyms_cmds_CXX \ | |
19139 | archive_cmds_CXX \ | |
19140 | archive_expsym_cmds_CXX \ | |
19141 | module_cmds_CXX \ | |
19142 | module_expsym_cmds_CXX \ | |
19143 | export_symbols_cmds_CXX \ | |
19144 | prelink_cmds_CXX; do | |
19145 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19146 | *[\\\\\\\`\\"\\\$]*) | |
19147 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19148 | ;; | |
19149 | *) | |
19150 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19151 | ;; | |
19152 | esac | |
19153 | done | |
19154 | ||
19155 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
19156 | case \$lt_ECHO in | |
19157 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
19158 | ;; | |
19159 | esac | |
19160 | ||
19161 | ac_aux_dir='$ac_aux_dir' | |
19162 | xsi_shell='$xsi_shell' | |
19163 | lt_shell_append='$lt_shell_append' | |
19164 | ||
19165 | # See if we are running on zsh, and set the options which allow our | |
19166 | # commands through without removal of \ escapes INIT. | |
19167 | if test -n "\${ZSH_VERSION+set}" ; then | |
19168 | setopt NO_GLOB_SUBST | |
19169 | fi | |
19170 | ||
19171 | ||
19172 | PACKAGE='$PACKAGE' | |
19173 | VERSION='$VERSION' | |
19174 | TIMESTAMP='$TIMESTAMP' | |
19175 | RM='$RM' | |
19176 | ofile='$ofile' | |
19177 | ||
19178 | ||
19179 | ||
19180 | ||
19181 | ||
19182 | ||
19183 | _ACEOF | |
19184 | ||
19185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19186 | ||
19187 | # Handling of arguments. | |
19188 | for ac_config_target in $ac_config_targets | |
19189 | do | |
19190 | case $ac_config_target in | |
19191 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
790e5246 | 19192 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e DWT |
19193 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; |
19194 | ||
19195 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
19196 | esac | |
19197 | done | |
19198 | ||
19199 | ||
19200 | # If the user did not use the arguments to specify the items to instantiate, | |
19201 | # then the envvar interface is used. Set only those that are not. | |
19202 | # We use the long form for the default assignment because of an extremely | |
19203 | # bizarre bug on SunOS 4.1.3. | |
19204 | if $ac_need_defaults; then | |
19205 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19206 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
19207 | fi | |
19208 | ||
19209 | # Have a temporary directory for convenience. Make it in the build tree | |
19210 | # simply because there is no reason against having it here, and in addition, | |
19211 | # creating and moving files from /tmp can sometimes cause problems. | |
19212 | # Hook for its removal unless debugging. | |
19213 | # Note that there is a small window in which the directory will not be cleaned: | |
19214 | # after its creation but before its name has been assigned to `$tmp'. | |
19215 | $debug || | |
19216 | { | |
19217 | tmp= | |
19218 | trap 'exit_status=$? | |
19219 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
19220 | ' 0 | |
19221 | trap 'as_fn_exit 1' 1 2 13 15 | |
19222 | } | |
19223 | # Create a (secure) tmp directory for tmp files. | |
19224 | ||
19225 | { | |
19226 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
19227 | test -n "$tmp" && test -d "$tmp" | |
19228 | } || | |
19229 | { | |
19230 | tmp=./conf$$-$RANDOM | |
19231 | (umask 077 && mkdir "$tmp") | |
19232 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
19233 | ||
19234 | # Set up the scripts for CONFIG_FILES section. | |
19235 | # No need to generate them if there are no CONFIG_FILES. | |
19236 | # This happens for instance with `./config.status config.h'. | |
19237 | if test -n "$CONFIG_FILES"; then | |
19238 | ||
19239 | ||
19240 | ac_cr=`echo X | tr X '\015'` | |
19241 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19242 | # But we know of no other shell where ac_cr would be empty at this | |
19243 | # point, so we can use a bashism as a fallback. | |
19244 | if test "x$ac_cr" = x; then | |
19245 | eval ac_cr=\$\'\\r\' | |
19246 | fi | |
19247 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19248 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
19249 | ac_cs_awk_cr='\r' | |
19250 | else | |
19251 | ac_cs_awk_cr=$ac_cr | |
19252 | fi | |
19253 | ||
19254 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
19255 | _ACEOF | |
19256 | ||
19257 | ||
19258 | { | |
19259 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19260 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19261 | echo "_ACEOF" | |
19262 | } >conf$$subs.sh || | |
19263 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19264 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
19265 | ac_delim='%!_!# ' | |
19266 | for ac_last_try in false false false false false :; do | |
19267 | . ./conf$$subs.sh || | |
19268 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19269 | ||
19270 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19271 | if test $ac_delim_n = $ac_delim_num; then | |
19272 | break | |
19273 | elif $ac_last_try; then | |
19274 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19275 | else | |
19276 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19277 | fi | |
19278 | done | |
19279 | rm -f conf$$subs.sh | |
19280 | ||
19281 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19282 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
19283 | _ACEOF | |
19284 | sed -n ' | |
19285 | h | |
19286 | s/^/S["/; s/!.*/"]=/ | |
19287 | p | |
19288 | g | |
19289 | s/^[^!]*!// | |
19290 | :repl | |
19291 | t repl | |
19292 | s/'"$ac_delim"'$// | |
19293 | t delim | |
19294 | :nl | |
19295 | h | |
19296 | s/\(.\{148\}\)..*/\1/ | |
19297 | t more1 | |
19298 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19299 | p | |
19300 | n | |
19301 | b repl | |
19302 | :more1 | |
19303 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19304 | p | |
19305 | g | |
19306 | s/.\{148\}// | |
19307 | t nl | |
19308 | :delim | |
19309 | h | |
19310 | s/\(.\{148\}\)..*/\1/ | |
19311 | t more2 | |
19312 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19313 | p | |
19314 | b | |
19315 | :more2 | |
19316 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19317 | p | |
19318 | g | |
19319 | s/.\{148\}// | |
19320 | t delim | |
19321 | ' <conf$$subs.awk | sed ' | |
19322 | /^[^""]/{ | |
19323 | N | |
19324 | s/\n// | |
19325 | } | |
19326 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19327 | rm -f conf$$subs.awk | |
19328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19329 | _ACAWK | |
19330 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
19331 | for (key in S) S_is_set[key] = 1 | |
19332 | FS = "\a" | |
19333 | ||
19334 | } | |
19335 | { | |
19336 | line = $ 0 | |
19337 | nfields = split(line, field, "@") | |
19338 | substed = 0 | |
19339 | len = length(field[1]) | |
19340 | for (i = 2; i < nfields; i++) { | |
19341 | key = field[i] | |
19342 | keylen = length(key) | |
19343 | if (S_is_set[key]) { | |
19344 | value = S[key] | |
19345 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19346 | len += length(value) + length(field[++i]) | |
19347 | substed = 1 | |
19348 | } else | |
19349 | len += 1 + keylen | |
19350 | } | |
19351 | ||
19352 | print line | |
19353 | } | |
19354 | ||
19355 | _ACAWK | |
19356 | _ACEOF | |
19357 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19358 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19359 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19360 | else | |
19361 | cat | |
19362 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19363 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
19364 | _ACEOF | |
19365 | ||
19366 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
19367 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19368 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19369 | # (actually we leave an empty line to preserve line numbers). | |
19370 | if test "x$srcdir" = x.; then | |
19371 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19372 | s/:*\$(srcdir):*/:/ | |
19373 | s/:*\${srcdir}:*/:/ | |
19374 | s/:*@srcdir@:*/:/ | |
19375 | s/^\([^=]*=[ ]*\):*/\1/ | |
19376 | s/:*$// | |
19377 | s/^[^=]*=[ ]*$// | |
19378 | }' | |
19379 | fi | |
19380 | ||
19381 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19382 | fi # test -n "$CONFIG_FILES" | |
19383 | ||
19384 | ||
19385 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
19386 | shift | |
19387 | for ac_tag | |
19388 | do | |
19389 | case $ac_tag in | |
19390 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19391 | esac | |
19392 | case $ac_mode$ac_tag in | |
19393 | :[FHL]*:*);; | |
19394 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19395 | :[FH]-) ac_tag=-:-;; | |
19396 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19397 | esac | |
19398 | ac_save_IFS=$IFS | |
19399 | IFS=: | |
19400 | set x $ac_tag | |
19401 | IFS=$ac_save_IFS | |
19402 | shift | |
19403 | ac_file=$1 | |
19404 | shift | |
19405 | ||
19406 | case $ac_mode in | |
19407 | :L) ac_source=$1;; | |
19408 | :[FH]) | |
19409 | ac_file_inputs= | |
19410 | for ac_f | |
19411 | do | |
19412 | case $ac_f in | |
19413 | -) ac_f="$tmp/stdin";; | |
19414 | *) # Look for the file first in the build tree, then in the source tree | |
19415 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19416 | # because $ac_f cannot contain `:'. | |
19417 | test -f "$ac_f" || | |
19418 | case $ac_f in | |
19419 | [\\/$]*) false;; | |
19420 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19421 | esac || | |
19422 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19423 | esac | |
19424 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19425 | as_fn_append ac_file_inputs " '$ac_f'" | |
19426 | done | |
19427 | ||
19428 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19429 | # use $as_me), people would be surprised to read: | |
19430 | # /* config.h. Generated by config.status. */ | |
19431 | configure_input='Generated from '` | |
19432 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19433 | `' by configure.' | |
19434 | if test x"$ac_file" != x-; then | |
19435 | configure_input="$ac_file. $configure_input" | |
19436 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19437 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19438 | fi | |
19439 | # Neutralize special characters interpreted by sed in replacement strings. | |
19440 | case $configure_input in #( | |
19441 | *\&* | *\|* | *\\* ) | |
19442 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19443 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19444 | *) ac_sed_conf_input=$configure_input;; | |
19445 | esac | |
19446 | ||
19447 | case $ac_tag in | |
19448 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
19449 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
19450 | esac | |
19451 | ;; | |
19452 | esac | |
19453 | ||
19454 | ac_dir=`$as_dirname -- "$ac_file" || | |
19455 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19456 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19457 | X"$ac_file" : 'X\(//\)$' \| \ | |
19458 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
19459 | $as_echo X"$ac_file" | | |
19460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19461 | s//\1/ | |
19462 | q | |
19463 | } | |
19464 | /^X\(\/\/\)[^/].*/{ | |
19465 | s//\1/ | |
19466 | q | |
19467 | } | |
19468 | /^X\(\/\/\)$/{ | |
19469 | s//\1/ | |
19470 | q | |
19471 | } | |
19472 | /^X\(\/\).*/{ | |
19473 | s//\1/ | |
19474 | q | |
19475 | } | |
19476 | s/.*/./; q'` | |
19477 | as_dir="$ac_dir"; as_fn_mkdir_p | |
19478 | ac_builddir=. | |
19479 | ||
19480 | case "$ac_dir" in | |
19481 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19482 | *) | |
19483 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19484 | # A ".." for each directory in $ac_dir_suffix. | |
19485 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19486 | case $ac_top_builddir_sub in | |
19487 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19488 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19489 | esac ;; | |
19490 | esac | |
19491 | ac_abs_top_builddir=$ac_pwd | |
19492 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19493 | # for backward compatibility: | |
19494 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 19495 | |
9c60689e DWT |
19496 | case $srcdir in |
19497 | .) # We are building in place. | |
19498 | ac_srcdir=. | |
19499 | ac_top_srcdir=$ac_top_builddir_sub | |
19500 | ac_abs_top_srcdir=$ac_pwd ;; | |
19501 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
19502 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19503 | ac_top_srcdir=$srcdir | |
19504 | ac_abs_top_srcdir=$srcdir ;; | |
19505 | *) # Relative name. | |
19506 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19507 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19508 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
19509 | esac | |
19510 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
19511 | |
19512 | ||
9c60689e DWT |
19513 | case $ac_mode in |
19514 | :F) | |
19515 | # | |
19516 | # CONFIG_FILE | |
19517 | # | |
35fa52c0 | 19518 | |
9c60689e DWT |
19519 | case $INSTALL in |
19520 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
19521 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
19522 | esac | |
19523 | _ACEOF | |
35fa52c0 | 19524 | |
9c60689e DWT |
19525 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19526 | # If the template does not know about datarootdir, expand it. | |
19527 | # FIXME: This hack should be removed a few years after 2.60. | |
19528 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19529 | ac_sed_dataroot=' | |
19530 | /datarootdir/ { | |
19531 | p | |
19532 | q | |
19533 | } | |
19534 | /@datadir@/p | |
19535 | /@docdir@/p | |
19536 | /@infodir@/p | |
19537 | /@localedir@/p | |
19538 | /@mandir@/p' | |
19539 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19540 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19541 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19542 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19543 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19544 | _ACEOF | |
19545 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19546 | ac_datarootdir_hack=' | |
19547 | s&@datadir@&$datadir&g | |
19548 | s&@docdir@&$docdir&g | |
19549 | s&@infodir@&$infodir&g | |
19550 | s&@localedir@&$localedir&g | |
19551 | s&@mandir@&$mandir&g | |
19552 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19553 | esac | |
19554 | _ACEOF | |
35fa52c0 | 19555 | |
9c60689e DWT |
19556 | # Neutralize VPATH when `$srcdir' = `.'. |
19557 | # Shell code in configure.ac might set extrasub. | |
19558 | # FIXME: do we really want to maintain this feature? | |
19559 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19560 | ac_sed_extra="$ac_vpsub | |
19561 | $extrasub | |
19562 | _ACEOF | |
19563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19564 | :t | |
19565 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19566 | s|@configure_input@|$ac_sed_conf_input|;t t | |
19567 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19568 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19569 | s&@srcdir@&$ac_srcdir&;t t | |
19570 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19571 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19572 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19573 | s&@builddir@&$ac_builddir&;t t | |
19574 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19575 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19576 | s&@INSTALL@&$ac_INSTALL&;t t | |
19577 | $ac_datarootdir_hack | |
19578 | " | |
19579 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19580 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19581 | ||
19582 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19583 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19584 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
19585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19586 | which seems to be undefined. Please make sure it is defined." >&5 | |
19587 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19588 | which seems to be undefined. Please make sure it is defined." >&2;} | |
19589 | ||
19590 | rm -f "$tmp/stdin" | |
19591 | case $ac_file in | |
19592 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
19593 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19594 | esac \ | |
19595 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19596 | ;; | |
35fa52c0 | 19597 | |
35fa52c0 | 19598 | |
9c60689e DWT |
19599 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19600 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19601 | ;; | |
19602 | esac | |
35fa52c0 | 19603 | |
35fa52c0 | 19604 | |
9c60689e DWT |
19605 | case $ac_file$ac_mode in |
19606 | "libtool":C) | |
19607 | ||
19608 | # See if we are running on zsh, and set the options which allow our | |
19609 | # commands through without removal of \ escapes. | |
19610 | if test -n "${ZSH_VERSION+set}" ; then | |
19611 | setopt NO_GLOB_SUBST | |
35fa52c0 | 19612 | fi |
35fa52c0 | 19613 | |
9c60689e DWT |
19614 | cfgfile="${ofile}T" |
19615 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19616 | $RM "$cfgfile" | |
35fa52c0 | 19617 | |
9c60689e DWT |
19618 | cat <<_LT_EOF >> "$cfgfile" |
19619 | #! $SHELL | |
35fa52c0 | 19620 | |
9c60689e DWT |
19621 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
19622 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19623 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19624 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19625 | # | |
19626 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19627 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
19628 | # Written by Gordon Matzigkeit, 1996 | |
19629 | # | |
19630 | # This file is part of GNU Libtool. | |
19631 | # | |
19632 | # GNU Libtool is free software; you can redistribute it and/or | |
19633 | # modify it under the terms of the GNU General Public License as | |
19634 | # published by the Free Software Foundation; either version 2 of | |
19635 | # the License, or (at your option) any later version. | |
19636 | # | |
19637 | # As a special exception to the GNU General Public License, | |
19638 | # if you distribute this file as part of a program or library that | |
19639 | # is built using GNU Libtool, you may include this file under the | |
19640 | # same distribution terms that you use for the rest of that program. | |
19641 | # | |
19642 | # GNU Libtool is distributed in the hope that it will be useful, | |
19643 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19644 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19645 | # GNU General Public License for more details. | |
19646 | # | |
19647 | # You should have received a copy of the GNU General Public License | |
19648 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19649 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19650 | # obtained by writing to the Free Software Foundation, Inc., | |
19651 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 19652 | |
35fa52c0 | 19653 | |
9c60689e DWT |
19654 | # The names of the tagged configurations supported by this script. |
19655 | available_tags="CXX " | |
35fa52c0 | 19656 | |
9c60689e | 19657 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 19658 | |
9c60689e DWT |
19659 | # Which release of libtool.m4 was used? |
19660 | macro_version=$macro_version | |
19661 | macro_revision=$macro_revision | |
35fa52c0 | 19662 | |
9c60689e DWT |
19663 | # Whether or not to build static libraries. |
19664 | build_old_libs=$enable_static | |
35fa52c0 | 19665 | |
549f29b5 DWT |
19666 | # Whether or not to build shared libraries. |
19667 | build_libtool_libs=$enable_shared | |
19668 | ||
9c60689e DWT |
19669 | # What type of objects to build. |
19670 | pic_mode=$pic_mode | |
35fa52c0 | 19671 | |
9c60689e DWT |
19672 | # Whether or not to optimize for fast installation. |
19673 | fast_install=$enable_fast_install | |
35fa52c0 | 19674 | |
9c60689e DWT |
19675 | # The host system. |
19676 | host_alias=$host_alias | |
19677 | host=$host | |
19678 | host_os=$host_os | |
35fa52c0 | 19679 | |
9c60689e DWT |
19680 | # The build system. |
19681 | build_alias=$build_alias | |
19682 | build=$build | |
19683 | build_os=$build_os | |
19684 | ||
19685 | # A sed program that does not truncate output. | |
19686 | SED=$lt_SED | |
19687 | ||
19688 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19689 | Xsed="\$SED -e 1s/^X//" | |
19690 | ||
19691 | # A grep program that handles long lines. | |
19692 | GREP=$lt_GREP | |
19693 | ||
19694 | # An ERE matcher. | |
19695 | EGREP=$lt_EGREP | |
19696 | ||
19697 | # A literal string matcher. | |
19698 | FGREP=$lt_FGREP | |
19699 | ||
19700 | # A BSD- or MS-compatible name lister. | |
19701 | NM=$lt_NM | |
19702 | ||
19703 | # Whether we need soft or hard links. | |
19704 | LN_S=$lt_LN_S | |
19705 | ||
19706 | # What is the maximum length of a command? | |
19707 | max_cmd_len=$max_cmd_len | |
19708 | ||
19709 | # Object file suffix (normally "o"). | |
19710 | objext=$ac_objext | |
19711 | ||
19712 | # Executable file suffix (normally ""). | |
19713 | exeext=$exeext | |
19714 | ||
19715 | # whether the shell understands "unset". | |
19716 | lt_unset=$lt_unset | |
19717 | ||
19718 | # turn spaces into newlines. | |
19719 | SP2NL=$lt_lt_SP2NL | |
19720 | ||
19721 | # turn newlines into spaces. | |
19722 | NL2SP=$lt_lt_NL2SP | |
19723 | ||
19724 | # How to create reloadable object files. | |
19725 | reload_flag=$lt_reload_flag | |
19726 | reload_cmds=$lt_reload_cmds | |
19727 | ||
19728 | # An object symbol dumper. | |
19729 | OBJDUMP=$lt_OBJDUMP | |
19730 | ||
19731 | # Method to check whether dependent libraries are shared objects. | |
19732 | deplibs_check_method=$lt_deplibs_check_method | |
19733 | ||
19734 | # Command to use when deplibs_check_method == "file_magic". | |
19735 | file_magic_cmd=$lt_file_magic_cmd | |
19736 | ||
19737 | # The archiver. | |
19738 | AR=$lt_AR | |
19739 | AR_FLAGS=$lt_AR_FLAGS | |
19740 | ||
19741 | # A symbol stripping program. | |
19742 | STRIP=$lt_STRIP | |
19743 | ||
19744 | # Commands used to install an old-style archive. | |
19745 | RANLIB=$lt_RANLIB | |
19746 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19747 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19748 | ||
19749 | # A C compiler. | |
19750 | LTCC=$lt_CC | |
19751 | ||
19752 | # LTCC compiler flags. | |
19753 | LTCFLAGS=$lt_CFLAGS | |
19754 | ||
19755 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19756 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19757 | ||
19758 | # Transform the output of nm in a proper C declaration. | |
19759 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19760 | ||
19761 | # Transform the output of nm in a C name address pair. | |
19762 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19763 | ||
19764 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19765 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19766 | ||
19767 | # The name of the directory that contains temporary libtool files. | |
19768 | objdir=$objdir | |
19769 | ||
19770 | # Shell to use when invoking shell scripts. | |
19771 | SHELL=$lt_SHELL | |
19772 | ||
19773 | # An echo program that does not interpret backslashes. | |
19774 | ECHO=$lt_ECHO | |
19775 | ||
19776 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19777 | MAGIC_CMD=$MAGIC_CMD | |
19778 | ||
19779 | # Must we lock files when doing compilation? | |
19780 | need_locks=$lt_need_locks | |
19781 | ||
19782 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19783 | DSYMUTIL=$lt_DSYMUTIL | |
19784 | ||
19785 | # Tool to change global to local symbols on Mac OS X. | |
19786 | NMEDIT=$lt_NMEDIT | |
19787 | ||
19788 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19789 | LIPO=$lt_LIPO | |
19790 | ||
19791 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19792 | OTOOL=$lt_OTOOL | |
19793 | ||
19794 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19795 | OTOOL64=$lt_OTOOL64 | |
19796 | ||
19797 | # Old archive suffix (normally "a"). | |
19798 | libext=$libext | |
19799 | ||
19800 | # Shared library suffix (normally ".so"). | |
19801 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 19802 | |
9c60689e DWT |
19803 | # The commands to extract the exported symbol list from a shared archive. |
19804 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 19805 | |
9c60689e DWT |
19806 | # Variables whose values should be saved in libtool wrapper scripts and |
19807 | # restored at link time. | |
19808 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 19809 | |
9c60689e DWT |
19810 | # Do we need the "lib" prefix for modules? |
19811 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 19812 | |
9c60689e DWT |
19813 | # Do we need a version for libraries? |
19814 | need_version=$need_version | |
35fa52c0 | 19815 | |
9c60689e DWT |
19816 | # Library versioning type. |
19817 | version_type=$version_type | |
35fa52c0 | 19818 | |
9c60689e DWT |
19819 | # Shared library runtime path variable. |
19820 | runpath_var=$runpath_var | |
35fa52c0 | 19821 | |
9c60689e DWT |
19822 | # Shared library path variable. |
19823 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 19824 | |
9c60689e DWT |
19825 | # Is shlibpath searched before the hard-coded library search path? |
19826 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 19827 | |
9c60689e DWT |
19828 | # Format of library name prefix. |
19829 | libname_spec=$lt_libname_spec | |
35fa52c0 | 19830 | |
9c60689e DWT |
19831 | # List of archive names. First name is the real one, the rest are links. |
19832 | # The last name is the one that the linker finds with -lNAME | |
19833 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 19834 | |
9c60689e DWT |
19835 | # The coded name of the library, if different from the real name. |
19836 | soname_spec=$lt_soname_spec | |
dbadc56a | 19837 | |
9c60689e DWT |
19838 | # Command to use after installation of a shared archive. |
19839 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 19840 | |
9c60689e DWT |
19841 | # Command to use after uninstallation of a shared archive. |
19842 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 19843 | |
9c60689e DWT |
19844 | # Commands used to finish a libtool library installation in a directory. |
19845 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 19846 | |
9c60689e DWT |
19847 | # As "finish_cmds", except a single script fragment to be evaled but |
19848 | # not shown. | |
19849 | finish_eval=$lt_finish_eval | |
35fa52c0 | 19850 | |
9c60689e DWT |
19851 | # Whether we should hardcode library paths into libraries. |
19852 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 19853 | |
9c60689e DWT |
19854 | # Compile-time system search path for libraries. |
19855 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 19856 | |
9c60689e DWT |
19857 | # Run-time system search path for libraries. |
19858 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 19859 | |
9c60689e DWT |
19860 | # Whether dlopen is supported. |
19861 | dlopen_support=$enable_dlopen | |
dbadc56a | 19862 | |
9c60689e DWT |
19863 | # Whether dlopen of programs is supported. |
19864 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 19865 | |
9c60689e DWT |
19866 | # Whether dlopen of statically linked programs is supported. |
19867 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 19868 | |
9c60689e DWT |
19869 | # Commands to strip libraries. |
19870 | old_striplib=$lt_old_striplib | |
19871 | striplib=$lt_striplib | |
35fa52c0 | 19872 | |
35fa52c0 | 19873 | |
9c60689e DWT |
19874 | # The linker used to build libraries. |
19875 | LD=$lt_LD | |
dbadc56a | 19876 | |
9c60689e DWT |
19877 | # Commands used to build an old-style archive. |
19878 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 19879 | |
9c60689e DWT |
19880 | # A language specific compiler. |
19881 | CC=$lt_compiler | |
35fa52c0 | 19882 | |
9c60689e DWT |
19883 | # Is the compiler the GNU compiler? |
19884 | with_gcc=$GCC | |
dbadc56a | 19885 | |
9c60689e DWT |
19886 | # Compiler flag to turn off builtin functions. |
19887 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 19888 | |
9c60689e DWT |
19889 | # How to pass a linker flag through the compiler. |
19890 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 19891 | |
9c60689e DWT |
19892 | # Additional compiler flags for building library objects. |
19893 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 19894 | |
9c60689e DWT |
19895 | # Compiler flag to prevent dynamic linking. |
19896 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 19897 | |
9c60689e DWT |
19898 | # Does compiler simultaneously support -c and -o options? |
19899 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 19900 | |
9c60689e DWT |
19901 | # Whether or not to add -lc for building shared libraries. |
19902 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 19903 | |
9c60689e DWT |
19904 | # Whether or not to disallow shared libs when runtime libs are static. |
19905 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 19906 | |
9c60689e DWT |
19907 | # Compiler flag to allow reflexive dlopens. |
19908 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 19909 | |
9c60689e DWT |
19910 | # Compiler flag to generate shared objects directly from archives. |
19911 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 19912 | |
9c60689e DWT |
19913 | # Whether the compiler copes with passing no objects directly. |
19914 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 19915 | |
9c60689e DWT |
19916 | # Create an old-style archive from a shared archive. |
19917 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 19918 | |
9c60689e DWT |
19919 | # Create a temporary old-style archive to link instead of a shared archive. |
19920 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 19921 | |
9c60689e DWT |
19922 | # Commands used to build a shared archive. |
19923 | archive_cmds=$lt_archive_cmds | |
19924 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 19925 | |
9c60689e DWT |
19926 | # Commands used to build a loadable module if different from building |
19927 | # a shared archive. | |
19928 | module_cmds=$lt_module_cmds | |
19929 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 19930 | |
9c60689e DWT |
19931 | # Whether we are building with GNU ld or not. |
19932 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 19933 | |
9c60689e DWT |
19934 | # Flag that allows shared libraries with undefined symbols to be built. |
19935 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 19936 | |
9c60689e DWT |
19937 | # Flag that enforces no undefined symbols. |
19938 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 19939 | |
9c60689e DWT |
19940 | # Flag to hardcode \$libdir into a binary during linking. |
19941 | # This must work even if \$libdir does not exist | |
19942 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 19943 | |
9c60689e DWT |
19944 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19945 | # during linking. This must work even if \$libdir does not exist. | |
19946 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 19947 | |
9c60689e DWT |
19948 | # Whether we need a single "-rpath" flag with a separated argument. |
19949 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 19950 | |
9c60689e DWT |
19951 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19952 | # DIR into the resulting binary. | |
19953 | hardcode_direct=$hardcode_direct | |
6b66678a | 19954 | |
9c60689e DWT |
19955 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
19956 | # DIR into the resulting binary and the resulting library dependency is | |
19957 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19958 | # library is relocated. | |
19959 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 19960 | |
9c60689e DWT |
19961 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
19962 | # into the resulting binary. | |
19963 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 19964 | |
9c60689e DWT |
19965 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
19966 | # into the resulting binary. | |
19967 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 19968 | |
9c60689e DWT |
19969 | # Set to "yes" if building a shared library automatically hardcodes DIR |
19970 | # into the library and all subsequent libraries and executables linked | |
19971 | # against it. | |
19972 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 19973 | |
9c60689e DWT |
19974 | # Set to yes if linker adds runtime paths of dependent libraries |
19975 | # to runtime path list. | |
19976 | inherit_rpath=$inherit_rpath | |
6b66678a | 19977 | |
9c60689e DWT |
19978 | # Whether libtool must link a program against all its dependency libraries. |
19979 | link_all_deplibs=$link_all_deplibs | |
19980 | ||
19981 | # Fix the shell variable \$srcfile for the compiler. | |
19982 | fix_srcfile_path=$lt_fix_srcfile_path | |
19983 | ||
19984 | # Set to "yes" if exported symbols are required. | |
19985 | always_export_symbols=$always_export_symbols | |
6b66678a | 19986 | |
9c60689e DWT |
19987 | # The commands to list exported symbols. |
19988 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 19989 | |
9c60689e DWT |
19990 | # Symbols that should not be listed in the preloaded symbols. |
19991 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 19992 | |
9c60689e DWT |
19993 | # Symbols that must always be exported. |
19994 | include_expsyms=$lt_include_expsyms | |
6b66678a | 19995 | |
9c60689e DWT |
19996 | # Commands necessary for linking programs (against libraries) with templates. |
19997 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 19998 | |
9c60689e DWT |
19999 | # Specify filename containing input files. |
20000 | file_list_spec=$lt_file_list_spec | |
6b66678a | 20001 | |
9c60689e DWT |
20002 | # How to hardcode a shared library path into an executable. |
20003 | hardcode_action=$hardcode_action | |
20004 | ||
20005 | # The directories searched by this compiler when creating a shared library. | |
20006 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20007 | ||
20008 | # Dependencies to place before and after the objects being linked to | |
20009 | # create a shared library. | |
20010 | predep_objects=$lt_predep_objects | |
20011 | postdep_objects=$lt_postdep_objects | |
20012 | predeps=$lt_predeps | |
20013 | postdeps=$lt_postdeps | |
20014 | ||
20015 | # The library search path used internally by the compiler when linking | |
20016 | # a shared library. | |
20017 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20018 | ||
20019 | # ### END LIBTOOL CONFIG | |
20020 | ||
20021 | _LT_EOF | |
20022 | ||
20023 | case $host_os in | |
20024 | aix3*) | |
20025 | cat <<\_LT_EOF >> "$cfgfile" | |
20026 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20027 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20028 | # vanish in a puff of smoke. | |
20029 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20030 | COLLECT_NAMES= | |
20031 | export COLLECT_NAMES | |
6b66678a | 20032 | fi |
9c60689e DWT |
20033 | _LT_EOF |
20034 | ;; | |
20035 | esac | |
6b66678a DWT |
20036 | |
20037 | ||
9c60689e | 20038 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 20039 | |
9c60689e DWT |
20040 | |
20041 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20042 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20043 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20044 | # is reportedly fixed, but why not run on old versions too? | |
20045 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20046 | || (rm -f "$cfgfile"; exit 1) | |
20047 | ||
20048 | case $xsi_shell in | |
20049 | yes) | |
20050 | cat << \_LT_EOF >> "$cfgfile" | |
20051 | ||
20052 | # func_dirname file append nondir_replacement | |
20053 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20054 | # otherwise set result to NONDIR_REPLACEMENT. | |
20055 | func_dirname () | |
6b66678a | 20056 | { |
9c60689e DWT |
20057 | case ${1} in |
20058 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20059 | * ) func_dirname_result="${3}" ;; | |
20060 | esac | |
20061 | } | |
6b66678a | 20062 | |
9c60689e DWT |
20063 | # func_basename file |
20064 | func_basename () | |
20065 | { | |
20066 | func_basename_result="${1##*/}" | |
6b66678a | 20067 | } |
6b66678a | 20068 | |
9c60689e DWT |
20069 | # func_dirname_and_basename file append nondir_replacement |
20070 | # perform func_basename and func_dirname in a single function | |
20071 | # call: | |
20072 | # dirname: Compute the dirname of FILE. If nonempty, | |
20073 | # add APPEND to the result, otherwise set result | |
20074 | # to NONDIR_REPLACEMENT. | |
20075 | # value returned in "$func_dirname_result" | |
20076 | # basename: Compute filename of FILE. | |
20077 | # value retuned in "$func_basename_result" | |
20078 | # Implementation must be kept synchronized with func_dirname | |
20079 | # and func_basename. For efficiency, we do not delegate to | |
20080 | # those functions but instead duplicate the functionality here. | |
20081 | func_dirname_and_basename () | |
20082 | { | |
20083 | case ${1} in | |
20084 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20085 | * ) func_dirname_result="${3}" ;; | |
20086 | esac | |
20087 | func_basename_result="${1##*/}" | |
20088 | } | |
6b66678a | 20089 | |
9c60689e DWT |
20090 | # func_stripname prefix suffix name |
20091 | # strip PREFIX and SUFFIX off of NAME. | |
20092 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20093 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20094 | # dot (in which case that matches only a dot). | |
20095 | func_stripname () | |
20096 | { | |
20097 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20098 | # positional parameters, so assign one to ordinary parameter first. | |
20099 | func_stripname_result=${3} | |
20100 | func_stripname_result=${func_stripname_result#"${1}"} | |
20101 | func_stripname_result=${func_stripname_result%"${2}"} | |
20102 | } | |
6b66678a | 20103 | |
9c60689e DWT |
20104 | # func_opt_split |
20105 | func_opt_split () | |
20106 | { | |
20107 | func_opt_split_opt=${1%%=*} | |
20108 | func_opt_split_arg=${1#*=} | |
20109 | } | |
6b66678a | 20110 | |
9c60689e DWT |
20111 | # func_lo2o object |
20112 | func_lo2o () | |
20113 | { | |
20114 | case ${1} in | |
20115 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20116 | *) func_lo2o_result=${1} ;; | |
20117 | esac | |
20118 | } | |
6b66678a | 20119 | |
9c60689e DWT |
20120 | # func_xform libobj-or-source |
20121 | func_xform () | |
20122 | { | |
20123 | func_xform_result=${1%.*}.lo | |
20124 | } | |
6b66678a | 20125 | |
9c60689e DWT |
20126 | # func_arith arithmetic-term... |
20127 | func_arith () | |
20128 | { | |
20129 | func_arith_result=$(( $* )) | |
20130 | } | |
6b66678a | 20131 | |
9c60689e DWT |
20132 | # func_len string |
20133 | # STRING may not start with a hyphen. | |
20134 | func_len () | |
20135 | { | |
20136 | func_len_result=${#1} | |
20137 | } | |
6b66678a | 20138 | |
9c60689e DWT |
20139 | _LT_EOF |
20140 | ;; | |
20141 | *) # Bourne compatible functions. | |
20142 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 20143 | |
9c60689e DWT |
20144 | # func_dirname file append nondir_replacement |
20145 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20146 | # otherwise set result to NONDIR_REPLACEMENT. | |
20147 | func_dirname () | |
20148 | { | |
20149 | # Extract subdirectory from the argument. | |
20150 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
20151 | if test "X$func_dirname_result" = "X${1}"; then | |
20152 | func_dirname_result="${3}" | |
20153 | else | |
20154 | func_dirname_result="$func_dirname_result${2}" | |
20155 | fi | |
20156 | } | |
6b66678a | 20157 | |
9c60689e DWT |
20158 | # func_basename file |
20159 | func_basename () | |
6b66678a | 20160 | { |
9c60689e | 20161 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 20162 | } |
6b66678a | 20163 | |
6b66678a | 20164 | |
9c60689e DWT |
20165 | # func_stripname prefix suffix name |
20166 | # strip PREFIX and SUFFIX off of NAME. | |
20167 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20168 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20169 | # dot (in which case that matches only a dot). | |
20170 | # func_strip_suffix prefix name | |
20171 | func_stripname () | |
20172 | { | |
20173 | case ${2} in | |
20174 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
20175 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
20176 | *) func_stripname_result=`$ECHO "X${3}" \ | |
20177 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
20178 | esac | |
20179 | } | |
6b66678a | 20180 | |
9c60689e DWT |
20181 | # sed scripts: |
20182 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20183 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 20184 | |
9c60689e DWT |
20185 | # func_opt_split |
20186 | func_opt_split () | |
20187 | { | |
20188 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
20189 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
20190 | } | |
6b66678a | 20191 | |
9c60689e DWT |
20192 | # func_lo2o object |
20193 | func_lo2o () | |
20194 | { | |
20195 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
20196 | } | |
20197 | ||
20198 | # func_xform libobj-or-source | |
20199 | func_xform () | |
20200 | { | |
20201 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
20202 | } | |
20203 | ||
20204 | # func_arith arithmetic-term... | |
20205 | func_arith () | |
20206 | { | |
20207 | func_arith_result=`expr "$@"` | |
20208 | } | |
20209 | ||
20210 | # func_len string | |
20211 | # STRING may not start with a hyphen. | |
20212 | func_len () | |
20213 | { | |
20214 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
20215 | } | |
20216 | ||
20217 | _LT_EOF | |
20218 | esac | |
20219 | ||
20220 | case $lt_shell_append in | |
20221 | yes) | |
20222 | cat << \_LT_EOF >> "$cfgfile" | |
20223 | ||
20224 | # func_append var value | |
20225 | # Append VALUE to the end of shell variable VAR. | |
20226 | func_append () | |
20227 | { | |
20228 | eval "$1+=\$2" | |
20229 | } | |
20230 | _LT_EOF | |
20231 | ;; | |
20232 | *) | |
20233 | cat << \_LT_EOF >> "$cfgfile" | |
20234 | ||
20235 | # func_append var value | |
20236 | # Append VALUE to the end of shell variable VAR. | |
20237 | func_append () | |
20238 | { | |
20239 | eval "$1=\$$1\$2" | |
20240 | } | |
20241 | ||
20242 | _LT_EOF | |
20243 | ;; | |
20244 | esac | |
20245 | ||
20246 | ||
20247 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20248 | || (rm -f "$cfgfile"; exit 1) | |
20249 | ||
20250 | mv -f "$cfgfile" "$ofile" || | |
20251 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20252 | chmod +x "$ofile" | |
20253 | ||
20254 | ||
20255 | cat <<_LT_EOF >> "$ofile" | |
20256 | ||
20257 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20258 | ||
20259 | # The linker used to build libraries. | |
20260 | LD=$lt_LD_CXX | |
20261 | ||
20262 | # Commands used to build an old-style archive. | |
20263 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20264 | ||
20265 | # A language specific compiler. | |
20266 | CC=$lt_compiler_CXX | |
20267 | ||
20268 | # Is the compiler the GNU compiler? | |
20269 | with_gcc=$GCC_CXX | |
20270 | ||
20271 | # Compiler flag to turn off builtin functions. | |
20272 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 20273 | |
9c60689e DWT |
20274 | # How to pass a linker flag through the compiler. |
20275 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 20276 | |
9c60689e DWT |
20277 | # Additional compiler flags for building library objects. |
20278 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 20279 | |
9c60689e DWT |
20280 | # Compiler flag to prevent dynamic linking. |
20281 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 20282 | |
9c60689e DWT |
20283 | # Does compiler simultaneously support -c and -o options? |
20284 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 20285 | |
9c60689e DWT |
20286 | # Whether or not to add -lc for building shared libraries. |
20287 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 20288 | |
9c60689e DWT |
20289 | # Whether or not to disallow shared libs when runtime libs are static. |
20290 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 20291 | |
9c60689e DWT |
20292 | # Compiler flag to allow reflexive dlopens. |
20293 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 20294 | |
9c60689e DWT |
20295 | # Compiler flag to generate shared objects directly from archives. |
20296 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 20297 | |
9c60689e DWT |
20298 | # Whether the compiler copes with passing no objects directly. |
20299 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 20300 | |
9c60689e DWT |
20301 | # Create an old-style archive from a shared archive. |
20302 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 20303 | |
9c60689e DWT |
20304 | # Create a temporary old-style archive to link instead of a shared archive. |
20305 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 20306 | |
9c60689e DWT |
20307 | # Commands used to build a shared archive. |
20308 | archive_cmds=$lt_archive_cmds_CXX | |
20309 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 20310 | |
9c60689e DWT |
20311 | # Commands used to build a loadable module if different from building |
20312 | # a shared archive. | |
20313 | module_cmds=$lt_module_cmds_CXX | |
20314 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 20315 | |
9c60689e DWT |
20316 | # Whether we are building with GNU ld or not. |
20317 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 20318 | |
9c60689e DWT |
20319 | # Flag that allows shared libraries with undefined symbols to be built. |
20320 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 20321 | |
9c60689e DWT |
20322 | # Flag that enforces no undefined symbols. |
20323 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 20324 | |
9c60689e DWT |
20325 | # Flag to hardcode \$libdir into a binary during linking. |
20326 | # This must work even if \$libdir does not exist | |
20327 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 20328 | |
9c60689e DWT |
20329 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
20330 | # during linking. This must work even if \$libdir does not exist. | |
20331 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 20332 | |
9c60689e DWT |
20333 | # Whether we need a single "-rpath" flag with a separated argument. |
20334 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 20335 | |
9c60689e DWT |
20336 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20337 | # DIR into the resulting binary. | |
20338 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 20339 | |
9c60689e DWT |
20340 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20341 | # DIR into the resulting binary and the resulting library dependency is | |
20342 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20343 | # library is relocated. | |
20344 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 20345 | |
9c60689e DWT |
20346 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
20347 | # into the resulting binary. | |
20348 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 20349 | |
9c60689e DWT |
20350 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
20351 | # into the resulting binary. | |
20352 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 20353 | |
9c60689e DWT |
20354 | # Set to "yes" if building a shared library automatically hardcodes DIR |
20355 | # into the library and all subsequent libraries and executables linked | |
20356 | # against it. | |
20357 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 20358 | |
9c60689e DWT |
20359 | # Set to yes if linker adds runtime paths of dependent libraries |
20360 | # to runtime path list. | |
20361 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 20362 | |
9c60689e DWT |
20363 | # Whether libtool must link a program against all its dependency libraries. |
20364 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 20365 | |
9c60689e DWT |
20366 | # Fix the shell variable \$srcfile for the compiler. |
20367 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 20368 | |
9c60689e DWT |
20369 | # Set to "yes" if exported symbols are required. |
20370 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 20371 | |
9c60689e DWT |
20372 | # The commands to list exported symbols. |
20373 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 20374 | |
9c60689e DWT |
20375 | # Symbols that should not be listed in the preloaded symbols. |
20376 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 20377 | |
9c60689e DWT |
20378 | # Symbols that must always be exported. |
20379 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 20380 | |
9c60689e DWT |
20381 | # Commands necessary for linking programs (against libraries) with templates. |
20382 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 20383 | |
9c60689e DWT |
20384 | # Specify filename containing input files. |
20385 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 20386 | |
9c60689e DWT |
20387 | # How to hardcode a shared library path into an executable. |
20388 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 20389 | |
9c60689e DWT |
20390 | # The directories searched by this compiler when creating a shared library. |
20391 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 20392 | |
9c60689e DWT |
20393 | # Dependencies to place before and after the objects being linked to |
20394 | # create a shared library. | |
20395 | predep_objects=$lt_predep_objects_CXX | |
20396 | postdep_objects=$lt_postdep_objects_CXX | |
20397 | predeps=$lt_predeps_CXX | |
20398 | postdeps=$lt_postdeps_CXX | |
309b0535 | 20399 | |
9c60689e DWT |
20400 | # The library search path used internally by the compiler when linking |
20401 | # a shared library. | |
20402 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20403 | ||
20404 | # ### END LIBTOOL TAG CONFIG: CXX | |
20405 | _LT_EOF | |
20406 | ||
20407 | ;; | |
20408 | ||
20409 | esac | |
20410 | done # for ac_tag | |
20411 | ||
20412 | ||
20413 | as_fn_exit 0 | |
20414 | _ACEOF | |
20415 | ac_clean_files=$ac_clean_files_save | |
20416 | ||
20417 | test $ac_write_fail = 0 || | |
20418 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20419 | ||
20420 | ||
20421 | # configure is writing to config.log, and then calls config.status. | |
20422 | # config.status does its own redirection, appending to config.log. | |
20423 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20424 | # by configure, so config.status won't be able to write to it; its | |
20425 | # output is simply discarded. So we exec the FD to /dev/null, | |
20426 | # effectively closing config.log, so it can be properly (re)opened and | |
20427 | # appended to by config.status. When coming back to configure, we | |
20428 | # need to make the FD available again. | |
20429 | if test "$no_create" != yes; then | |
20430 | ac_cs_success=: | |
20431 | ac_config_status_args= | |
20432 | test "$silent" = yes && | |
20433 | ac_config_status_args="$ac_config_status_args --quiet" | |
20434 | exec 5>/dev/null | |
20435 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20436 | exec 5>>config.log | |
20437 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20438 | # would make configure fail if this is the last instruction. | |
20439 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 20440 | fi |
9c60689e DWT |
20441 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20443 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20444 | fi | |
20445 |