]>
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 | |
794e88e7 | 748 | CY_ATTACH_GROUP |
e1cce270 | 749 | CY_OBJECTIVEC_MACH |
794e88e7 DWT |
750 | SO |
751 | ac_ct__NM | |
752 | _NM | |
753 | ac_ct__LIPO | |
754 | _LIPO | |
755 | ac_ct__OTOOL | |
756 | _OTOOL | |
5053a6d1 DWT |
757 | LTLIBICONV |
758 | LIBICONV | |
47aaa820 | 759 | GNUSTEP_CONFIG |
c823f118 | 760 | CY_OBJECTIVEC |
309b0535 | 761 | LIBFFI_LIBS |
35fa52c0 | 762 | LIBFFI_CFLAGS |
3fd51f51 | 763 | CY_EXECUTE |
35fa52c0 DWT |
764 | WEBKIT_LIBS |
765 | WEBKIT_CFLAGS | |
549f29b5 | 766 | LTLIBAPR |
632b71ea DWT |
767 | ac_ct_OBJCXX |
768 | OBJCXXFLAGS | |
769 | OBJCXX | |
47aaa820 DWT |
770 | CXXCPP |
771 | ac_ct_CXX | |
772 | CXXFLAGS | |
773 | CXX | |
b65019fe DWT |
774 | SVNVERSION |
775 | SVN | |
e9c9a47c DWT |
776 | GNUTAR |
777 | INSTALL_DATA | |
778 | INSTALL_SCRIPT | |
779 | INSTALL_PROGRAM | |
780 | GPERF | |
781 | FLEX | |
782 | BISON | |
783 | TIME | |
784 | _BASH | |
790e5246 | 785 | GMAKE |
9d13f949 | 786 | LTFLAGS |
632b71ea | 787 | ifGNUmake |
3fd51f51 | 788 | PKG_CONFIG |
9c60689e DWT |
789 | CPP |
790 | OTOOL64 | |
791 | OTOOL | |
792 | LIPO | |
793 | NMEDIT | |
794 | DSYMUTIL | |
795 | lt_ECHO | |
796 | RANLIB | |
797 | STRIP | |
798 | AR | |
799 | OBJDUMP | |
800 | LN_S | |
801 | NM | |
802 | ac_ct_DUMPBIN | |
803 | DUMPBIN | |
804 | LD | |
805 | FGREP | |
806 | EGREP | |
807 | GREP | |
808 | SED | |
35fa52c0 DWT |
809 | OBJEXT |
810 | EXEEXT | |
811 | ac_ct_CC | |
812 | CPPFLAGS | |
813 | LDFLAGS | |
814 | CFLAGS | |
815 | CC | |
9c60689e DWT |
816 | host_os |
817 | host_vendor | |
818 | host_cpu | |
819 | host | |
820 | build_os | |
821 | build_vendor | |
822 | build_cpu | |
823 | build | |
824 | LIBTOOL | |
dbadc56a | 825 | target_alias |
c7aa54aa DWT |
826 | host_alias |
827 | build_alias | |
828 | LIBS | |
829 | ECHO_T | |
830 | ECHO_N | |
831 | ECHO_C | |
832 | DEFS | |
833 | mandir | |
834 | localedir | |
835 | libdir | |
836 | psdir | |
837 | pdfdir | |
838 | dvidir | |
839 | htmldir | |
840 | infodir | |
841 | docdir | |
842 | oldincludedir | |
843 | includedir | |
844 | localstatedir | |
845 | sharedstatedir | |
846 | sysconfdir | |
847 | datadir | |
848 | datarootdir | |
849 | libexecdir | |
850 | sbindir | |
851 | bindir | |
852 | program_transform_name | |
853 | prefix | |
854 | exec_prefix | |
855 | PACKAGE_URL | |
856 | PACKAGE_BUGREPORT | |
857 | PACKAGE_STRING | |
858 | PACKAGE_VERSION | |
859 | PACKAGE_TARNAME | |
860 | PACKAGE_NAME | |
861 | PATH_SEPARATOR | |
862 | SHELL' | |
863 | ac_subst_files='' | |
864 | ac_user_opts=' | |
865 | enable_option_checking | |
9c60689e | 866 | enable_static |
549f29b5 | 867 | enable_shared |
9c60689e DWT |
868 | with_pic |
869 | enable_fast_install | |
35fa52c0 | 870 | with_gnu_ld |
9c60689e | 871 | enable_libtool_lock |
1504c9b8 | 872 | enable_universal_binary |
632b71ea | 873 | with_frameworks |
9c60689e | 874 | with_apr |
5053a6d1 | 875 | enable_javascript |
35fa52c0 DWT |
876 | enable_rpath |
877 | with_libiconv_prefix | |
c7aa54aa DWT |
878 | ' |
879 | ac_precious_vars='build_alias | |
880 | host_alias | |
dbadc56a | 881 | target_alias |
35fa52c0 DWT |
882 | CC |
883 | CFLAGS | |
dbadc56a DWT |
884 | LDFLAGS |
885 | LIBS | |
886 | CPPFLAGS | |
9c60689e | 887 | CPP |
3fd51f51 | 888 | PKG_CONFIG |
e9c9a47c DWT |
889 | BISON |
890 | FLEX | |
891 | GPERF | |
35fa52c0 DWT |
892 | CXX |
893 | CXXFLAGS | |
894 | CCC | |
9c60689e | 895 | CXXCPP |
632b71ea DWT |
896 | OBJCXX |
897 | OBJCXXFLAGS | |
35fa52c0 DWT |
898 | WEBKIT_CFLAGS |
899 | WEBKIT_LIBS | |
a667869d | 900 | LIBFFI_CFLAGS |
790e5246 DWT |
901 | LIBFFI_LIBS |
902 | GNUSTEP_CONFIG' | |
c7aa54aa DWT |
903 | |
904 | ||
905 | # Initialize some variables set by options. | |
906 | ac_init_help= | |
907 | ac_init_version=false | |
908 | ac_unrecognized_opts= | |
909 | ac_unrecognized_sep= | |
910 | # The variables have the same names as the options, with | |
911 | # dashes changed to underlines. | |
912 | cache_file=/dev/null | |
913 | exec_prefix=NONE | |
914 | no_create= | |
915 | no_recursion= | |
916 | prefix=NONE | |
917 | program_prefix=NONE | |
918 | program_suffix=NONE | |
919 | program_transform_name=s,x,x, | |
920 | silent= | |
921 | site= | |
922 | srcdir= | |
923 | verbose= | |
924 | x_includes=NONE | |
925 | x_libraries=NONE | |
926 | ||
927 | # Installation directory options. | |
928 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
929 | # and all the variables that are supposed to be based on exec_prefix | |
930 | # by default will actually change. | |
931 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
932 | # (The list follows the same order as the GNU Coding Standards.) | |
933 | bindir='${exec_prefix}/bin' | |
934 | sbindir='${exec_prefix}/sbin' | |
935 | libexecdir='${exec_prefix}/libexec' | |
936 | datarootdir='${prefix}/share' | |
937 | datadir='${datarootdir}' | |
938 | sysconfdir='${prefix}/etc' | |
939 | sharedstatedir='${prefix}/com' | |
940 | localstatedir='${prefix}/var' | |
941 | includedir='${prefix}/include' | |
942 | oldincludedir='/usr/include' | |
943 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
944 | infodir='${datarootdir}/info' | |
945 | htmldir='${docdir}' | |
946 | dvidir='${docdir}' | |
947 | pdfdir='${docdir}' | |
948 | psdir='${docdir}' | |
949 | libdir='${exec_prefix}/lib' | |
950 | localedir='${datarootdir}/locale' | |
951 | mandir='${datarootdir}/man' | |
952 | ||
953 | ac_prev= | |
954 | ac_dashdash= | |
955 | for ac_option | |
956 | do | |
957 | # If the previous option needs an argument, assign it. | |
958 | if test -n "$ac_prev"; then | |
959 | eval $ac_prev=\$ac_option | |
960 | ac_prev= | |
961 | continue | |
962 | fi | |
963 | ||
964 | case $ac_option in | |
965 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
966 | *) ac_optarg=yes ;; | |
967 | esac | |
968 | ||
969 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
970 | ||
971 | case $ac_dashdash$ac_option in | |
972 | --) | |
973 | ac_dashdash=yes ;; | |
974 | ||
975 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
976 | ac_prev=bindir ;; | |
977 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
978 | bindir=$ac_optarg ;; | |
979 | ||
980 | -build | --build | --buil | --bui | --bu) | |
981 | ac_prev=build_alias ;; | |
982 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
983 | build_alias=$ac_optarg ;; | |
984 | ||
985 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
986 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
987 | ac_prev=cache_file ;; | |
988 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
989 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
990 | cache_file=$ac_optarg ;; | |
991 | ||
992 | --config-cache | -C) | |
993 | cache_file=config.cache ;; | |
994 | ||
995 | -datadir | --datadir | --datadi | --datad) | |
996 | ac_prev=datadir ;; | |
997 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
998 | datadir=$ac_optarg ;; | |
999 | ||
1000 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1001 | | --dataroo | --dataro | --datar) | |
1002 | ac_prev=datarootdir ;; | |
1003 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1004 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1005 | datarootdir=$ac_optarg ;; | |
1006 | ||
1007 | -disable-* | --disable-*) | |
1008 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1009 | # Reject names that are not valid shell variable names. | |
1010 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1011 | as_fn_error "invalid feature name: $ac_useropt" | |
1012 | ac_useropt_orig=$ac_useropt | |
1013 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1014 | case $ac_user_opts in | |
1015 | *" | |
1016 | "enable_$ac_useropt" | |
1017 | "*) ;; | |
1018 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1019 | ac_unrecognized_sep=', ';; | |
1020 | esac | |
1021 | eval enable_$ac_useropt=no ;; | |
1022 | ||
1023 | -docdir | --docdir | --docdi | --doc | --do) | |
1024 | ac_prev=docdir ;; | |
1025 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1026 | docdir=$ac_optarg ;; | |
1027 | ||
1028 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1029 | ac_prev=dvidir ;; | |
1030 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1031 | dvidir=$ac_optarg ;; | |
1032 | ||
1033 | -enable-* | --enable-*) | |
1034 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1035 | # Reject names that are not valid shell variable names. | |
1036 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1037 | as_fn_error "invalid feature name: $ac_useropt" | |
1038 | ac_useropt_orig=$ac_useropt | |
1039 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1040 | case $ac_user_opts in | |
1041 | *" | |
1042 | "enable_$ac_useropt" | |
1043 | "*) ;; | |
1044 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1045 | ac_unrecognized_sep=', ';; | |
1046 | esac | |
1047 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1048 | ||
1049 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1050 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1051 | | --exec | --exe | --ex) | |
1052 | ac_prev=exec_prefix ;; | |
1053 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1054 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1055 | | --exec=* | --exe=* | --ex=*) | |
1056 | exec_prefix=$ac_optarg ;; | |
1057 | ||
1058 | -gas | --gas | --ga | --g) | |
1059 | # Obsolete; use --with-gas. | |
1060 | with_gas=yes ;; | |
1061 | ||
1062 | -help | --help | --hel | --he | -h) | |
1063 | ac_init_help=long ;; | |
1064 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1065 | ac_init_help=recursive ;; | |
1066 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1067 | ac_init_help=short ;; | |
1068 | ||
1069 | -host | --host | --hos | --ho) | |
1070 | ac_prev=host_alias ;; | |
1071 | -host=* | --host=* | --hos=* | --ho=*) | |
1072 | host_alias=$ac_optarg ;; | |
1073 | ||
1074 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1075 | ac_prev=htmldir ;; | |
1076 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1077 | | --ht=*) | |
1078 | htmldir=$ac_optarg ;; | |
1079 | ||
1080 | -includedir | --includedir | --includedi | --included | --include \ | |
1081 | | --includ | --inclu | --incl | --inc) | |
1082 | ac_prev=includedir ;; | |
1083 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1084 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1085 | includedir=$ac_optarg ;; | |
1086 | ||
1087 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1088 | ac_prev=infodir ;; | |
1089 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1090 | infodir=$ac_optarg ;; | |
1091 | ||
1092 | -libdir | --libdir | --libdi | --libd) | |
1093 | ac_prev=libdir ;; | |
1094 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1095 | libdir=$ac_optarg ;; | |
1096 | ||
1097 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1098 | | --libexe | --libex | --libe) | |
1099 | ac_prev=libexecdir ;; | |
1100 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1101 | | --libexe=* | --libex=* | --libe=*) | |
1102 | libexecdir=$ac_optarg ;; | |
1103 | ||
1104 | -localedir | --localedir | --localedi | --localed | --locale) | |
1105 | ac_prev=localedir ;; | |
1106 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1107 | localedir=$ac_optarg ;; | |
1108 | ||
1109 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1110 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1111 | ac_prev=localstatedir ;; | |
1112 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1113 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1114 | localstatedir=$ac_optarg ;; | |
1115 | ||
1116 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1117 | ac_prev=mandir ;; | |
1118 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1119 | mandir=$ac_optarg ;; | |
1120 | ||
1121 | -nfp | --nfp | --nf) | |
1122 | # Obsolete; use --without-fp. | |
1123 | with_fp=no ;; | |
1124 | ||
1125 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1126 | | --no-cr | --no-c | -n) | |
1127 | no_create=yes ;; | |
1128 | ||
1129 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1130 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1131 | no_recursion=yes ;; | |
1132 | ||
1133 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1134 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1135 | | --oldin | --oldi | --old | --ol | --o) | |
1136 | ac_prev=oldincludedir ;; | |
1137 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1138 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1139 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1140 | oldincludedir=$ac_optarg ;; | |
1141 | ||
1142 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1143 | ac_prev=prefix ;; | |
1144 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1145 | prefix=$ac_optarg ;; | |
1146 | ||
1147 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1148 | | --program-pre | --program-pr | --program-p) | |
1149 | ac_prev=program_prefix ;; | |
1150 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1151 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1152 | program_prefix=$ac_optarg ;; | |
1153 | ||
1154 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1155 | | --program-suf | --program-su | --program-s) | |
1156 | ac_prev=program_suffix ;; | |
1157 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1158 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1159 | program_suffix=$ac_optarg ;; | |
1160 | ||
1161 | -program-transform-name | --program-transform-name \ | |
1162 | | --program-transform-nam | --program-transform-na \ | |
1163 | | --program-transform-n | --program-transform- \ | |
1164 | | --program-transform | --program-transfor \ | |
1165 | | --program-transfo | --program-transf \ | |
1166 | | --program-trans | --program-tran \ | |
1167 | | --progr-tra | --program-tr | --program-t) | |
1168 | ac_prev=program_transform_name ;; | |
1169 | -program-transform-name=* | --program-transform-name=* \ | |
1170 | | --program-transform-nam=* | --program-transform-na=* \ | |
1171 | | --program-transform-n=* | --program-transform-=* \ | |
1172 | | --program-transform=* | --program-transfor=* \ | |
1173 | | --program-transfo=* | --program-transf=* \ | |
1174 | | --program-trans=* | --program-tran=* \ | |
1175 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1176 | program_transform_name=$ac_optarg ;; | |
1177 | ||
1178 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1179 | ac_prev=pdfdir ;; | |
1180 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1181 | pdfdir=$ac_optarg ;; | |
1182 | ||
1183 | -psdir | --psdir | --psdi | --psd | --ps) | |
1184 | ac_prev=psdir ;; | |
1185 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1186 | psdir=$ac_optarg ;; | |
1187 | ||
1188 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1189 | | -silent | --silent | --silen | --sile | --sil) | |
1190 | silent=yes ;; | |
1191 | ||
1192 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1193 | ac_prev=sbindir ;; | |
1194 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1195 | | --sbi=* | --sb=*) | |
1196 | sbindir=$ac_optarg ;; | |
1197 | ||
1198 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1199 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1200 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1201 | | --sha | --sh) | |
1202 | ac_prev=sharedstatedir ;; | |
1203 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1204 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1205 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1206 | | --sha=* | --sh=*) | |
1207 | sharedstatedir=$ac_optarg ;; | |
1208 | ||
1209 | -site | --site | --sit) | |
1210 | ac_prev=site ;; | |
1211 | -site=* | --site=* | --sit=*) | |
1212 | site=$ac_optarg ;; | |
1213 | ||
1214 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1215 | ac_prev=srcdir ;; | |
1216 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1217 | srcdir=$ac_optarg ;; | |
1218 | ||
1219 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1220 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1221 | ac_prev=sysconfdir ;; | |
1222 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1223 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1224 | sysconfdir=$ac_optarg ;; | |
1225 | ||
1226 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1227 | ac_prev=target_alias ;; | |
1228 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1229 | target_alias=$ac_optarg ;; | |
1230 | ||
1231 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1232 | verbose=yes ;; | |
1233 | ||
1234 | -version | --version | --versio | --versi | --vers | -V) | |
1235 | ac_init_version=: ;; | |
1236 | ||
1237 | -with-* | --with-*) | |
1238 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1239 | # Reject names that are not valid shell variable names. | |
1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1241 | as_fn_error "invalid package name: $ac_useropt" | |
1242 | ac_useropt_orig=$ac_useropt | |
1243 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1244 | case $ac_user_opts in | |
1245 | *" | |
1246 | "with_$ac_useropt" | |
1247 | "*) ;; | |
1248 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1249 | ac_unrecognized_sep=', ';; | |
1250 | esac | |
1251 | eval with_$ac_useropt=\$ac_optarg ;; | |
1252 | ||
1253 | -without-* | --without-*) | |
1254 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1255 | # Reject names that are not valid shell variable names. | |
1256 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1257 | as_fn_error "invalid package name: $ac_useropt" | |
1258 | ac_useropt_orig=$ac_useropt | |
1259 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1260 | case $ac_user_opts in | |
1261 | *" | |
1262 | "with_$ac_useropt" | |
1263 | "*) ;; | |
1264 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1265 | ac_unrecognized_sep=', ';; | |
1266 | esac | |
1267 | eval with_$ac_useropt=no ;; | |
1268 | ||
1269 | --x) | |
1270 | # Obsolete; use --with-x. | |
1271 | with_x=yes ;; | |
1272 | ||
1273 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1274 | | --x-incl | --x-inc | --x-in | --x-i) | |
1275 | ac_prev=x_includes ;; | |
1276 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1277 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1278 | x_includes=$ac_optarg ;; | |
1279 | ||
1280 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1281 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1282 | ac_prev=x_libraries ;; | |
1283 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1284 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1285 | x_libraries=$ac_optarg ;; | |
1286 | ||
1287 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1288 | Try \`$0 --help' for more information." | |
1289 | ;; | |
1290 | ||
1291 | *=*) | |
1292 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1293 | # Reject names that are not valid shell variable names. | |
1294 | case $ac_envvar in #( | |
1295 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1296 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1297 | esac | |
1298 | eval $ac_envvar=\$ac_optarg | |
1299 | export $ac_envvar ;; | |
1300 | ||
1301 | *) | |
1302 | # FIXME: should be removed in autoconf 3.0. | |
1303 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1304 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1305 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1306 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1307 | ;; | |
1308 | ||
1309 | esac | |
1310 | done | |
1311 | ||
1312 | if test -n "$ac_prev"; then | |
1313 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1314 | as_fn_error "missing argument to $ac_option" | |
1315 | fi | |
1316 | ||
1317 | if test -n "$ac_unrecognized_opts"; then | |
1318 | case $enable_option_checking in | |
1319 | no) ;; | |
1320 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1321 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1322 | esac | |
1323 | fi | |
1324 | ||
1325 | # Check all directory arguments for consistency. | |
1326 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1327 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1328 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1329 | libdir localedir mandir | |
1330 | do | |
1331 | eval ac_val=\$$ac_var | |
1332 | # Remove trailing slashes. | |
1333 | case $ac_val in | |
1334 | */ ) | |
1335 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1336 | eval $ac_var=\$ac_val;; | |
1337 | esac | |
1338 | # Be sure to have absolute directory names. | |
1339 | case $ac_val in | |
1340 | [\\/$]* | ?:[\\/]* ) continue;; | |
1341 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1342 | esac | |
1343 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1344 | done | |
1345 | ||
1346 | # There might be people who depend on the old broken behavior: `$host' | |
1347 | # used to hold the argument of --host etc. | |
1348 | # FIXME: To remove some day. | |
1349 | build=$build_alias | |
1350 | host=$host_alias | |
1351 | target=$target_alias | |
1352 | ||
1353 | # FIXME: To remove some day. | |
1354 | if test "x$host_alias" != x; then | |
1355 | if test "x$build_alias" = x; then | |
1356 | cross_compiling=maybe | |
1357 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1358 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1359 | elif test "x$build_alias" != "x$host_alias"; then | |
1360 | cross_compiling=yes | |
1361 | fi | |
1362 | fi | |
1363 | ||
1364 | ac_tool_prefix= | |
1365 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1366 | ||
1367 | test "$silent" = yes && exec 6>/dev/null | |
1368 | ||
1369 | ||
1370 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1371 | ac_ls_di=`ls -di .` && | |
1372 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1373 | as_fn_error "working directory cannot be determined" | |
1374 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1375 | as_fn_error "pwd does not report name of working directory" | |
1376 | ||
1377 | ||
1378 | # Find the source files, if location was not specified. | |
1379 | if test -z "$srcdir"; then | |
1380 | ac_srcdir_defaulted=yes | |
1381 | # Try the directory containing this script, then the parent directory. | |
1382 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1383 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1384 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1385 | X"$as_myself" : 'X\(//\)$' \| \ | |
1386 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1387 | $as_echo X"$as_myself" | | |
1388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\/\)[^/].*/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | /^X\(\/\/\)$/{ | |
1397 | s//\1/ | |
1398 | q | |
1399 | } | |
1400 | /^X\(\/\).*/{ | |
1401 | s//\1/ | |
1402 | q | |
1403 | } | |
1404 | s/.*/./; q'` | |
1405 | srcdir=$ac_confdir | |
1406 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1407 | srcdir=.. | |
1408 | fi | |
1409 | else | |
1410 | ac_srcdir_defaulted=no | |
1411 | fi | |
1412 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1413 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1414 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1415 | fi | |
1416 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1417 | ac_abs_confdir=`( | |
1418 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1419 | pwd)` | |
1420 | # When building in place, set srcdir=. | |
1421 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1422 | srcdir=. | |
1423 | fi | |
1424 | # Remove unnecessary trailing slashes from srcdir. | |
1425 | # Double slashes in file names in object file debugging info | |
1426 | # mess up M-x gdb in Emacs. | |
1427 | case $srcdir in | |
1428 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1429 | esac | |
1430 | for ac_var in $ac_precious_vars; do | |
1431 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1432 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1433 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1434 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1435 | done | |
1436 | ||
1437 | # | |
1438 | # Report the --help message. | |
1439 | # | |
1440 | if test "$ac_init_help" = "long"; then | |
1441 | # Omit some internal or obsolete options to make the list less imposing. | |
1442 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1443 | cat <<_ACEOF | |
1444 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1445 | ||
1446 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1447 | ||
1448 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1449 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1450 | ||
1451 | Defaults for the options are specified in brackets. | |
1452 | ||
1453 | Configuration: | |
1454 | -h, --help display this help and exit | |
1455 | --help=short display options specific to this package | |
1456 | --help=recursive display the short help of all the included packages | |
1457 | -V, --version display version information and exit | |
1458 | -q, --quiet, --silent do not print \`checking...' messages | |
1459 | --cache-file=FILE cache test results in FILE [disabled] | |
1460 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1461 | -n, --no-create do not create output files | |
1462 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1463 | ||
1464 | Installation directories: | |
1465 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1466 | [$ac_default_prefix] | |
1467 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1468 | [PREFIX] | |
1469 | ||
1470 | By default, \`make install' will install all the files in | |
1471 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1472 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1473 | for instance \`--prefix=\$HOME'. | |
1474 | ||
1475 | For better control, use the options below. | |
1476 | ||
1477 | Fine tuning of the installation directories: | |
1478 | --bindir=DIR user executables [EPREFIX/bin] | |
1479 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1480 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1481 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1482 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1483 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1484 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1485 | --includedir=DIR C header files [PREFIX/include] | |
1486 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1487 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1488 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1489 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1490 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1491 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1492 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1493 | --htmldir=DIR html documentation [DOCDIR] | |
1494 | --dvidir=DIR dvi documentation [DOCDIR] | |
1495 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1496 | --psdir=DIR ps documentation [DOCDIR] | |
1497 | _ACEOF | |
1498 | ||
1499 | cat <<\_ACEOF | |
35fa52c0 DWT |
1500 | |
1501 | System types: | |
1502 | --build=BUILD configure for building on BUILD [guessed] | |
1503 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1504 | _ACEOF |
1505 | fi | |
1506 | ||
1507 | if test -n "$ac_init_help"; then | |
1508 | case $ac_init_help in | |
1509 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1510 | esac | |
1511 | cat <<\_ACEOF | |
1512 | ||
35fa52c0 DWT |
1513 | Optional Features: |
1514 | --disable-option-checking ignore unrecognized --enable/--with options | |
1515 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1516 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1517 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1518 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1519 | --enable-fast-install[=PKGS] |
1520 | optimize for fast installation [default=yes] | |
1521 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1504c9b8 DWT |
1522 | --disable-universal-binary |
1523 | do not build with universal binary support on Darwin | |
b66977f1 | 1524 | --enable-javascript[=ENGINE] |
790e5246 | 1525 | use a JavaScript runtime (currently the only |
b66977f1 DWT |
1526 | available option for ENGINE is JavaScriptCore) |
1527 | [default=yes] | |
5053a6d1 | 1528 | --disable-rpath do not hardcode runtime library paths |
35fa52c0 DWT |
1529 | |
1530 | Optional Packages: | |
1531 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1532 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1533 | --with-pic try to use only PIC/non-PIC objects [default=use |
1534 | both] | |
1535 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
632b71ea DWT |
1536 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1537 | path for frameworks with -F | |
309b0535 DWT |
1538 | --with-apr=PATH prefix for installed APR or the full path to |
1539 | apr-config | |
35fa52c0 DWT |
1540 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1541 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1542 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1543 | ||
dbadc56a | 1544 | Some influential environment variables: |
35fa52c0 DWT |
1545 | CC C compiler command |
1546 | CFLAGS C compiler flags | |
dbadc56a DWT |
1547 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1548 | nonstandard directory <lib dir> | |
1549 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1550 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1551 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1552 | CPP C preprocessor |
3fd51f51 | 1553 | PKG_CONFIG path to pkg-config utility |
e9c9a47c DWT |
1554 | BISON GNU Project parser generator (yacc replacement) |
1555 | FLEX the fast lexical analyser generator | |
1556 | GPERF perfect hash function generator | |
47aaa820 DWT |
1557 | CXX C++ compiler command |
1558 | CXXFLAGS C++ compiler flags | |
1559 | CXXCPP C++ preprocessor | |
632b71ea DWT |
1560 | OBJCXX Objective C++ compiler command |
1561 | OBJCXXFLAGS Objective C++ compiler flags | |
35fa52c0 DWT |
1562 | WEBKIT_CFLAGS |
1563 | C compiler flags for WEBKIT, overriding pkg-config | |
1564 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1565 | LIBFFI_CFLAGS | |
1566 | C compiler flags for LIBFFI, overriding pkg-config | |
1567 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
790e5246 DWT |
1568 | GNUSTEP_CONFIG |
1569 | prints information about the current gnustep installation | |
dbadc56a DWT |
1570 | |
1571 | Use these variables to override the choices made by `configure' or to help | |
1572 | it to find libraries and programs with nonstandard names/locations. | |
1573 | ||
c7aa54aa DWT |
1574 | Report bugs to <saurik@saurik.com>. |
1575 | Cycript home page: <http://www.cycript.org/>. | |
1576 | _ACEOF | |
1577 | ac_status=$? | |
1578 | fi | |
1579 | ||
1580 | if test "$ac_init_help" = "recursive"; then | |
1581 | # If there are subdirs, report their specific --help. | |
1582 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1583 | test -d "$ac_dir" || | |
1584 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1585 | continue | |
1586 | ac_builddir=. | |
1587 | ||
1588 | case "$ac_dir" in | |
1589 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1590 | *) | |
1591 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1592 | # A ".." for each directory in $ac_dir_suffix. | |
1593 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1594 | case $ac_top_builddir_sub in | |
1595 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1596 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1597 | esac ;; | |
1598 | esac | |
1599 | ac_abs_top_builddir=$ac_pwd | |
1600 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1601 | # for backward compatibility: | |
1602 | ac_top_builddir=$ac_top_build_prefix | |
1603 | ||
1604 | case $srcdir in | |
1605 | .) # We are building in place. | |
1606 | ac_srcdir=. | |
1607 | ac_top_srcdir=$ac_top_builddir_sub | |
1608 | ac_abs_top_srcdir=$ac_pwd ;; | |
1609 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1610 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1611 | ac_top_srcdir=$srcdir | |
1612 | ac_abs_top_srcdir=$srcdir ;; | |
1613 | *) # Relative name. | |
1614 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1615 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1616 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1617 | esac | |
1618 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1619 | ||
1620 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1621 | # Check for guested configure. | |
1622 | if test -f "$ac_srcdir/configure.gnu"; then | |
1623 | echo && | |
1624 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1625 | elif test -f "$ac_srcdir/configure"; then | |
1626 | echo && | |
1627 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1628 | else | |
1629 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1630 | fi || ac_status=$? | |
1631 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1632 | done | |
1633 | fi | |
1634 | ||
1635 | test -n "$ac_init_help" && exit $ac_status | |
1636 | if $ac_init_version; then | |
1637 | cat <<\_ACEOF | |
1638 | Cycript configure 0.9 | |
9c60689e | 1639 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1640 | |
1641 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1642 | This configure script is free software; the Free Software Foundation | |
1643 | gives unlimited permission to copy, distribute and modify it. | |
1644 | _ACEOF | |
1645 | exit | |
1646 | fi | |
1647 | ||
1648 | ## ------------------------ ## | |
1649 | ## Autoconf initialization. ## | |
1650 | ## ------------------------ ## | |
dbadc56a | 1651 | |
35fa52c0 DWT |
1652 | # ac_fn_c_try_compile LINENO |
1653 | # -------------------------- | |
1654 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1655 | ac_fn_c_try_compile () | |
1656 | { | |
1657 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1658 | rm -f conftest.$ac_objext | |
1659 | if { { ac_try="$ac_compile" | |
1660 | case "(($ac_try" in | |
1661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1662 | *) ac_try_echo=$ac_try;; | |
1663 | esac | |
1664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1665 | $as_echo "$ac_try_echo"; } >&5 | |
1666 | (eval "$ac_compile") 2>conftest.err | |
1667 | ac_status=$? | |
1668 | if test -s conftest.err; then | |
1669 | grep -v '^ *+' conftest.err >conftest.er1 | |
1670 | cat conftest.er1 >&5 | |
1671 | mv -f conftest.er1 conftest.err | |
1672 | fi | |
1673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1674 | test $ac_status = 0; } && { | |
1675 | test -z "$ac_c_werror_flag" || | |
1676 | test ! -s conftest.err | |
1677 | } && test -s conftest.$ac_objext; then : | |
1678 | ac_retval=0 | |
1679 | else | |
1680 | $as_echo "$as_me: failed program was:" >&5 | |
1681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1682 | ||
1683 | ac_retval=1 | |
1684 | fi | |
1685 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1686 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1687 | |
1688 | } # ac_fn_c_try_compile | |
1689 | ||
1690 | # ac_fn_c_try_link LINENO | |
1691 | # ----------------------- | |
1692 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1693 | ac_fn_c_try_link () | |
1694 | { | |
1695 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1697 | if { { ac_try="$ac_link" | |
1698 | case "(($ac_try" in | |
1699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1700 | *) ac_try_echo=$ac_try;; | |
1701 | esac | |
1702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1703 | $as_echo "$ac_try_echo"; } >&5 | |
1704 | (eval "$ac_link") 2>conftest.err | |
1705 | ac_status=$? | |
1706 | if test -s conftest.err; then | |
1707 | grep -v '^ *+' conftest.err >conftest.er1 | |
1708 | cat conftest.er1 >&5 | |
1709 | mv -f conftest.er1 conftest.err | |
1710 | fi | |
1711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1712 | test $ac_status = 0; } && { | |
1713 | test -z "$ac_c_werror_flag" || | |
1714 | test ! -s conftest.err | |
1715 | } && test -s conftest$ac_exeext && { | |
1716 | test "$cross_compiling" = yes || | |
1717 | $as_test_x conftest$ac_exeext | |
1718 | }; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1727 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1728 | # interfere with the next link command; also delete a directory that is | |
1729 | # left behind by Apple's compiler. We do this before executing the actions. | |
1730 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1731 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1732 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1733 | |
1734 | } # ac_fn_c_try_link | |
1735 | ||
9c60689e DWT |
1736 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1737 | # ------------------------------------------------------- | |
1738 | # Tests whether HEADER exists and can be compiled using the include files in | |
1739 | # INCLUDES, setting the cache variable VAR accordingly. | |
1740 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1741 | { |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1744 | $as_echo_n "checking for $2... " >&6; } | |
1745 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1746 | $as_echo_n "(cached) " >&6 | |
1747 | else | |
1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1749 | /* end confdefs.h. */ | |
1750 | $4 | |
1751 | #include <$2> | |
1752 | _ACEOF | |
1753 | if ac_fn_c_try_compile "$LINENO"; then : | |
1754 | eval "$3=yes" | |
1755 | else | |
1756 | eval "$3=no" | |
1757 | fi | |
1758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1759 | fi | |
1760 | eval ac_res=\$$3 | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1762 | $as_echo "$ac_res" >&6; } | |
1763 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1764 | ||
1765 | } # ac_fn_c_check_header_compile | |
1766 | ||
1767 | # ac_fn_c_try_cpp LINENO | |
1768 | # ---------------------- | |
1769 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1770 | ac_fn_c_try_cpp () | |
1771 | { | |
1772 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1773 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1774 | case "(($ac_try" in |
1775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1776 | *) ac_try_echo=$ac_try;; | |
1777 | esac | |
1778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1779 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1780 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1781 | ac_status=$? |
1782 | if test -s conftest.err; then | |
1783 | grep -v '^ *+' conftest.err >conftest.er1 | |
1784 | cat conftest.er1 >&5 | |
1785 | mv -f conftest.er1 conftest.err | |
1786 | fi | |
1787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1788 | test $ac_status = 0; } >/dev/null && { |
1789 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1790 | test ! -s conftest.err |
9c60689e | 1791 | }; then : |
dbadc56a DWT |
1792 | ac_retval=0 |
1793 | else | |
1794 | $as_echo "$as_me: failed program was:" >&5 | |
1795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1796 | ||
9c60689e | 1797 | ac_retval=1 |
dbadc56a DWT |
1798 | fi |
1799 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1800 | as_fn_set_status $ac_retval |
dbadc56a | 1801 | |
9c60689e | 1802 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1803 | |
1804 | # ac_fn_c_try_run LINENO | |
1805 | # ---------------------- | |
1806 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1807 | # that executables *can* be run. | |
1808 | ac_fn_c_try_run () | |
1809 | { | |
1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1811 | if { { ac_try="$ac_link" | |
1812 | case "(($ac_try" in | |
1813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1814 | *) ac_try_echo=$ac_try;; | |
1815 | esac | |
1816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1817 | $as_echo "$ac_try_echo"; } >&5 | |
1818 | (eval "$ac_link") 2>&5 | |
1819 | ac_status=$? | |
1820 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1821 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1822 | { { case "(($ac_try" in | |
1823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1824 | *) ac_try_echo=$ac_try;; | |
1825 | esac | |
1826 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1827 | $as_echo "$ac_try_echo"; } >&5 | |
1828 | (eval "$ac_try") 2>&5 | |
1829 | ac_status=$? | |
1830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1831 | test $ac_status = 0; }; }; then : | |
1832 | ac_retval=0 | |
1833 | else | |
1834 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1835 | $as_echo "$as_me: failed program was:" >&5 | |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1837 | ||
1838 | ac_retval=$ac_status | |
1839 | fi | |
1840 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1842 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1843 | |
1844 | } # ac_fn_c_try_run | |
6b66678a | 1845 | |
9c60689e DWT |
1846 | # ac_fn_c_check_func LINENO FUNC VAR |
1847 | # ---------------------------------- | |
1848 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1849 | ac_fn_c_check_func () | |
6b66678a DWT |
1850 | { |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1853 | $as_echo_n "checking for $2... " >&6; } | |
1854 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1855 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1856 | else |
9c60689e DWT |
1857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1858 | /* end confdefs.h. */ | |
1859 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1860 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1861 | #define $2 innocuous_$2 | |
6b66678a | 1862 | |
9c60689e DWT |
1863 | /* System header to define __stub macros and hopefully few prototypes, |
1864 | which can conflict with char $2 (); below. | |
1865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1866 | <limits.h> exists even on freestanding compilers. */ | |
1867 | ||
1868 | #ifdef __STDC__ | |
1869 | # include <limits.h> | |
1870 | #else | |
1871 | # include <assert.h> | |
1872 | #endif | |
1873 | ||
1874 | #undef $2 | |
1875 | ||
1876 | /* Override any GCC internal prototype to avoid an error. | |
1877 | Use char because int might match the return type of a GCC | |
1878 | builtin and then its argument prototype would still apply. */ | |
1879 | #ifdef __cplusplus | |
1880 | extern "C" | |
1881 | #endif | |
1882 | char $2 (); | |
1883 | /* The GNU C library defines this for functions which it implements | |
1884 | to always fail with ENOSYS. Some functions are actually named | |
1885 | something starting with __ and the normal name is an alias. */ | |
1886 | #if defined __stub_$2 || defined __stub___$2 | |
1887 | choke me | |
1888 | #endif | |
1889 | ||
1890 | int | |
1891 | main () | |
1892 | { | |
1893 | return $2 (); | |
1894 | ; | |
1895 | return 0; | |
1896 | } | |
1897 | _ACEOF | |
1898 | if ac_fn_c_try_link "$LINENO"; then : | |
1899 | eval "$3=yes" | |
1900 | else | |
1901 | eval "$3=no" | |
1902 | fi | |
1903 | rm -f core conftest.err conftest.$ac_objext \ | |
1904 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1905 | fi |
9c60689e DWT |
1906 | eval ac_res=\$$3 |
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1908 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1909 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1910 | |
9c60689e | 1911 | } # ac_fn_c_check_func |
6b66678a | 1912 | |
9c60689e DWT |
1913 | # ac_fn_cxx_try_compile LINENO |
1914 | # ---------------------------- | |
1915 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1916 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1917 | { |
1918 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1919 | rm -f conftest.$ac_objext |
1920 | if { { ac_try="$ac_compile" | |
1921 | case "(($ac_try" in | |
1922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1923 | *) ac_try_echo=$ac_try;; | |
1924 | esac | |
1925 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1926 | $as_echo "$ac_try_echo"; } >&5 | |
1927 | (eval "$ac_compile") 2>conftest.err | |
1928 | ac_status=$? | |
1929 | if test -s conftest.err; then | |
1930 | grep -v '^ *+' conftest.err >conftest.er1 | |
1931 | cat conftest.er1 >&5 | |
1932 | mv -f conftest.er1 conftest.err | |
1933 | fi | |
1934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1935 | test $ac_status = 0; } && { | |
1936 | test -z "$ac_cxx_werror_flag" || | |
1937 | test ! -s conftest.err | |
1938 | } && test -s conftest.$ac_objext; then : | |
1939 | ac_retval=0 | |
1940 | else | |
1941 | $as_echo "$as_me: failed program was:" >&5 | |
1942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1943 | ||
1944 | ac_retval=1 | |
1945 | fi | |
1946 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1947 | as_fn_set_status $ac_retval | |
1948 | ||
1949 | } # ac_fn_cxx_try_compile | |
1950 | ||
1951 | # ac_fn_cxx_try_cpp LINENO | |
1952 | # ------------------------ | |
1953 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1954 | ac_fn_cxx_try_cpp () | |
1955 | { | |
1956 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1957 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1958 | case "(($ac_try" in | |
1959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1960 | *) ac_try_echo=$ac_try;; | |
1961 | esac | |
1962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1963 | $as_echo "$ac_try_echo"; } >&5 | |
1964 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1965 | ac_status=$? | |
1966 | if test -s conftest.err; then | |
1967 | grep -v '^ *+' conftest.err >conftest.er1 | |
1968 | cat conftest.er1 >&5 | |
1969 | mv -f conftest.er1 conftest.err | |
1970 | fi | |
1971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1972 | test $ac_status = 0; } >/dev/null && { | |
1973 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1974 | test ! -s conftest.err | |
1975 | }; then : | |
1976 | ac_retval=0 | |
1977 | else | |
1978 | $as_echo "$as_me: failed program was:" >&5 | |
1979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1980 | ||
1981 | ac_retval=1 | |
1982 | fi | |
1983 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1984 | as_fn_set_status $ac_retval | |
1985 | ||
1986 | } # ac_fn_cxx_try_cpp | |
1987 | ||
1988 | # ac_fn_cxx_try_link LINENO | |
1989 | # ------------------------- | |
1990 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1991 | ac_fn_cxx_try_link () | |
1992 | { | |
1993 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1995 | if { { ac_try="$ac_link" | |
1996 | case "(($ac_try" in | |
1997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1998 | *) ac_try_echo=$ac_try;; | |
1999 | esac | |
2000 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2001 | $as_echo "$ac_try_echo"; } >&5 | |
2002 | (eval "$ac_link") 2>conftest.err | |
2003 | ac_status=$? | |
2004 | if test -s conftest.err; then | |
2005 | grep -v '^ *+' conftest.err >conftest.er1 | |
2006 | cat conftest.er1 >&5 | |
2007 | mv -f conftest.er1 conftest.err | |
2008 | fi | |
2009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2010 | test $ac_status = 0; } && { | |
2011 | test -z "$ac_cxx_werror_flag" || | |
2012 | test ! -s conftest.err | |
2013 | } && test -s conftest$ac_exeext && { | |
2014 | test "$cross_compiling" = yes || | |
2015 | $as_test_x conftest$ac_exeext | |
2016 | }; then : | |
2017 | ac_retval=0 | |
2018 | else | |
2019 | $as_echo "$as_me: failed program was:" >&5 | |
2020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2021 | ||
2022 | ac_retval=1 | |
2023 | fi | |
2024 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2025 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2026 | # interfere with the next link command; also delete a directory that is | |
2027 | # left behind by Apple's compiler. We do this before executing the actions. | |
2028 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2029 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2030 | as_fn_set_status $ac_retval | |
2031 | ||
2032 | } # ac_fn_cxx_try_link | |
2033 | ||
632b71ea DWT |
2034 | # ac_fn_objcxx_try_compile LINENO |
2035 | # ------------------------------- | |
2036 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2037 | ac_fn_objcxx_try_compile () | |
2038 | { | |
2039 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2040 | rm -f conftest.$ac_objext | |
2041 | if { { ac_try="$ac_compile" | |
2042 | case "(($ac_try" in | |
2043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2044 | *) ac_try_echo=$ac_try;; | |
2045 | esac | |
2046 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2047 | $as_echo "$ac_try_echo"; } >&5 | |
2048 | (eval "$ac_compile") 2>conftest.err | |
2049 | ac_status=$? | |
2050 | if test -s conftest.err; then | |
2051 | grep -v '^ *+' conftest.err >conftest.er1 | |
2052 | cat conftest.er1 >&5 | |
2053 | mv -f conftest.er1 conftest.err | |
2054 | fi | |
2055 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2056 | test $ac_status = 0; } && { | |
2057 | test -z "$ac_objcxx_werror_flag" || | |
2058 | test ! -s conftest.err | |
2059 | } && test -s conftest.$ac_objext; then : | |
2060 | ac_retval=0 | |
2061 | else | |
2062 | $as_echo "$as_me: failed program was:" >&5 | |
2063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2064 | ||
2065 | ac_retval=1 | |
2066 | fi | |
2067 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2068 | as_fn_set_status $ac_retval | |
2069 | ||
2070 | } # ac_fn_objcxx_try_compile | |
2071 | ||
47aaa820 DWT |
2072 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2073 | # --------------------------------------------------------- | |
2074 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2075 | # the include files in INCLUDES and setting the cache variable VAR | |
2076 | # accordingly. | |
2077 | ac_fn_cxx_check_header_mongrel () | |
2078 | { | |
2079 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2080 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2082 | $as_echo_n "checking for $2... " >&6; } | |
2083 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2084 | $as_echo_n "(cached) " >&6 | |
2085 | fi | |
2086 | eval ac_res=\$$3 | |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2088 | $as_echo "$ac_res" >&6; } | |
2089 | else | |
2090 | # Is the header compilable? | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2092 | $as_echo_n "checking $2 usability... " >&6; } | |
2093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2094 | /* end confdefs.h. */ | |
2095 | $4 | |
2096 | #include <$2> | |
2097 | _ACEOF | |
2098 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2099 | ac_header_compiler=yes | |
2100 | else | |
2101 | ac_header_compiler=no | |
2102 | fi | |
2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2105 | $as_echo "$ac_header_compiler" >&6; } | |
2106 | ||
2107 | # Is the header present? | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2109 | $as_echo_n "checking $2 presence... " >&6; } | |
2110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2111 | /* end confdefs.h. */ | |
2112 | #include <$2> | |
2113 | _ACEOF | |
2114 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2115 | ac_header_preproc=yes | |
2116 | else | |
2117 | ac_header_preproc=no | |
2118 | fi | |
2119 | rm -f conftest.err conftest.$ac_ext | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2121 | $as_echo "$ac_header_preproc" >&6; } | |
2122 | ||
2123 | # So? What about this header? | |
2124 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2125 | yes:no: ) | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2127 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2129 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2130 | ;; | |
2131 | no:yes:* ) | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2133 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2135 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2137 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2139 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2141 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2142 | ( cat <<\_ASBOX | |
2143 | ## -------------------------------- ## | |
2144 | ## Report this to saurik@saurik.com ## | |
2145 | ## -------------------------------- ## | |
2146 | _ASBOX | |
2147 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2148 | ;; | |
2149 | esac | |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2151 | $as_echo_n "checking for $2... " >&6; } | |
2152 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2153 | $as_echo_n "(cached) " >&6 | |
2154 | else | |
2155 | eval "$3=\$ac_header_compiler" | |
2156 | fi | |
2157 | eval ac_res=\$$3 | |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2159 | $as_echo "$ac_res" >&6; } | |
2160 | fi | |
2161 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2162 | ||
2163 | } # ac_fn_cxx_check_header_mongrel | |
2164 | ||
c823f118 DWT |
2165 | # ac_fn_objcxx_try_link LINENO |
2166 | # ---------------------------- | |
2167 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2168 | ac_fn_objcxx_try_link () | |
2169 | { | |
2170 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2172 | if { { ac_try="$ac_link" | |
2173 | case "(($ac_try" in | |
2174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2175 | *) ac_try_echo=$ac_try;; | |
2176 | esac | |
2177 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2178 | $as_echo "$ac_try_echo"; } >&5 | |
2179 | (eval "$ac_link") 2>conftest.err | |
2180 | ac_status=$? | |
2181 | if test -s conftest.err; then | |
2182 | grep -v '^ *+' conftest.err >conftest.er1 | |
2183 | cat conftest.er1 >&5 | |
2184 | mv -f conftest.er1 conftest.err | |
2185 | fi | |
2186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2187 | test $ac_status = 0; } && { | |
2188 | test -z "$ac_objcxx_werror_flag" || | |
2189 | test ! -s conftest.err | |
2190 | } && test -s conftest$ac_exeext && { | |
2191 | test "$cross_compiling" = yes || | |
2192 | $as_test_x conftest$ac_exeext | |
2193 | }; then : | |
2194 | ac_retval=0 | |
2195 | else | |
2196 | $as_echo "$as_me: failed program was:" >&5 | |
2197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2198 | ||
2199 | ac_retval=1 | |
2200 | fi | |
2201 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2202 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2203 | # interfere with the next link command; also delete a directory that is | |
2204 | # left behind by Apple's compiler. We do this before executing the actions. | |
2205 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2206 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2207 | as_fn_set_status $ac_retval | |
2208 | ||
2209 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2210 | cat >config.log <<_ACEOF |
2211 | This file contains any messages produced by compilers while | |
2212 | running configure, to aid debugging if configure makes a mistake. | |
2213 | ||
2214 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2215 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2216 | |
2217 | $ $0 $@ | |
2218 | ||
2219 | _ACEOF | |
2220 | exec 5>>config.log | |
2221 | { | |
2222 | cat <<_ASUNAME | |
2223 | ## --------- ## | |
2224 | ## Platform. ## | |
2225 | ## --------- ## | |
2226 | ||
2227 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2228 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2229 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2230 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2231 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2232 | ||
2233 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2234 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2235 | ||
2236 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2237 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2238 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2239 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2240 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2241 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2242 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2243 | ||
2244 | _ASUNAME | |
2245 | ||
2246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2247 | for as_dir in $PATH | |
2248 | do | |
2249 | IFS=$as_save_IFS | |
2250 | test -z "$as_dir" && as_dir=. | |
2251 | $as_echo "PATH: $as_dir" | |
2252 | done | |
2253 | IFS=$as_save_IFS | |
2254 | ||
2255 | } >&5 | |
2256 | ||
2257 | cat >&5 <<_ACEOF | |
2258 | ||
2259 | ||
2260 | ## ----------- ## | |
2261 | ## Core tests. ## | |
2262 | ## ----------- ## | |
2263 | ||
2264 | _ACEOF | |
2265 | ||
2266 | ||
2267 | # Keep a trace of the command line. | |
2268 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2269 | # Strip out --silent because we don't want to record it for future runs. | |
2270 | # Also quote any args containing shell meta-characters. | |
2271 | # Make two passes to allow for proper duplicate-argument suppression. | |
2272 | ac_configure_args= | |
2273 | ac_configure_args0= | |
2274 | ac_configure_args1= | |
2275 | ac_must_keep_next=false | |
2276 | for ac_pass in 1 2 | |
2277 | do | |
2278 | for ac_arg | |
2279 | do | |
2280 | case $ac_arg in | |
2281 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2282 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2283 | | -silent | --silent | --silen | --sile | --sil) | |
2284 | continue ;; | |
2285 | *\'*) | |
2286 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2287 | esac | |
2288 | case $ac_pass in | |
2289 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2290 | 2) | |
2291 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2292 | if test $ac_must_keep_next = true; then | |
2293 | ac_must_keep_next=false # Got value, back to normal. | |
2294 | else | |
2295 | case $ac_arg in | |
2296 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2297 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2298 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2299 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2300 | case "$ac_configure_args0 " in | |
2301 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2302 | esac | |
2303 | ;; | |
2304 | -* ) ac_must_keep_next=true ;; | |
2305 | esac | |
2306 | fi | |
2307 | as_fn_append ac_configure_args " '$ac_arg'" | |
2308 | ;; | |
2309 | esac | |
2310 | done | |
2311 | done | |
2312 | { ac_configure_args0=; unset ac_configure_args0;} | |
2313 | { ac_configure_args1=; unset ac_configure_args1;} | |
2314 | ||
2315 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2316 | # config.log. We remove comments because anyway the quotes in there | |
2317 | # would cause problems or look ugly. | |
2318 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2319 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2320 | trap 'exit_status=$? | |
2321 | # Save into config.log some information that might help in debugging. | |
2322 | { | |
2323 | echo | |
2324 | ||
2325 | cat <<\_ASBOX | |
2326 | ## ---------------- ## | |
2327 | ## Cache variables. ## | |
2328 | ## ---------------- ## | |
2329 | _ASBOX | |
2330 | echo | |
2331 | # The following way of writing the cache mishandles newlines in values, | |
2332 | ( | |
2333 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2334 | eval ac_val=\$$ac_var | |
2335 | case $ac_val in #( | |
2336 | *${as_nl}*) | |
2337 | case $ac_var in #( | |
2338 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2339 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2340 | esac | |
2341 | case $ac_var in #( | |
2342 | _ | IFS | as_nl) ;; #( | |
2343 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2344 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2345 | esac ;; | |
2346 | esac | |
2347 | done | |
2348 | (set) 2>&1 | | |
2349 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2350 | *${as_nl}ac_space=\ *) | |
2351 | sed -n \ | |
2352 | "s/'\''/'\''\\\\'\'''\''/g; | |
2353 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2354 | ;; #( | |
2355 | *) | |
2356 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2357 | ;; | |
2358 | esac | | |
2359 | sort | |
2360 | ) | |
2361 | echo | |
2362 | ||
2363 | cat <<\_ASBOX | |
2364 | ## ----------------- ## | |
2365 | ## Output variables. ## | |
2366 | ## ----------------- ## | |
2367 | _ASBOX | |
2368 | echo | |
2369 | for ac_var in $ac_subst_vars | |
2370 | do | |
2371 | eval ac_val=\$$ac_var | |
2372 | case $ac_val in | |
2373 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2374 | esac | |
2375 | $as_echo "$ac_var='\''$ac_val'\''" | |
2376 | done | sort | |
2377 | echo | |
2378 | ||
2379 | if test -n "$ac_subst_files"; then | |
2380 | cat <<\_ASBOX | |
2381 | ## ------------------- ## | |
2382 | ## File substitutions. ## | |
2383 | ## ------------------- ## | |
2384 | _ASBOX | |
2385 | echo | |
2386 | for ac_var in $ac_subst_files | |
2387 | do | |
2388 | eval ac_val=\$$ac_var | |
2389 | case $ac_val in | |
2390 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2391 | esac | |
2392 | $as_echo "$ac_var='\''$ac_val'\''" | |
2393 | done | sort | |
2394 | echo | |
2395 | fi | |
2396 | ||
2397 | if test -s confdefs.h; then | |
2398 | cat <<\_ASBOX | |
2399 | ## ----------- ## | |
2400 | ## confdefs.h. ## | |
2401 | ## ----------- ## | |
2402 | _ASBOX | |
2403 | echo | |
2404 | cat confdefs.h | |
2405 | echo | |
2406 | fi | |
2407 | test "$ac_signal" != 0 && | |
2408 | $as_echo "$as_me: caught signal $ac_signal" | |
2409 | $as_echo "$as_me: exit $exit_status" | |
2410 | } >&5 | |
2411 | rm -f core *.core core.conftest.* && | |
2412 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2413 | exit $exit_status | |
2414 | ' 0 | |
2415 | for ac_signal in 1 2 13 15; do | |
2416 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2417 | done | |
2418 | ac_signal=0 | |
2419 | ||
2420 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2421 | rm -f -r conftest* confdefs.h | |
2422 | ||
2423 | $as_echo "/* confdefs.h */" > confdefs.h | |
2424 | ||
2425 | # Predefined preprocessor variables. | |
2426 | ||
2427 | cat >>confdefs.h <<_ACEOF | |
2428 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2429 | _ACEOF | |
2430 | ||
2431 | cat >>confdefs.h <<_ACEOF | |
2432 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2433 | _ACEOF | |
2434 | ||
2435 | cat >>confdefs.h <<_ACEOF | |
2436 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2437 | _ACEOF | |
2438 | ||
2439 | cat >>confdefs.h <<_ACEOF | |
2440 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2441 | _ACEOF | |
2442 | ||
2443 | cat >>confdefs.h <<_ACEOF | |
2444 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2445 | _ACEOF | |
2446 | ||
2447 | cat >>confdefs.h <<_ACEOF | |
2448 | #define PACKAGE_URL "$PACKAGE_URL" | |
2449 | _ACEOF | |
2450 | ||
2451 | ||
2452 | # Let the site file select an alternate cache file if it wants to. | |
2453 | # Prefer an explicitly selected file to automatically selected ones. | |
2454 | ac_site_file1=NONE | |
2455 | ac_site_file2=NONE | |
2456 | if test -n "$CONFIG_SITE"; then | |
2457 | ac_site_file1=$CONFIG_SITE | |
2458 | elif test "x$prefix" != xNONE; then | |
2459 | ac_site_file1=$prefix/share/config.site | |
2460 | ac_site_file2=$prefix/etc/config.site | |
2461 | else | |
2462 | ac_site_file1=$ac_default_prefix/share/config.site | |
2463 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2464 | fi | |
2465 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2466 | do | |
2467 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2468 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2470 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2471 | sed 's/^/| /' "$ac_site_file" >&5 | |
2472 | . "$ac_site_file" | |
2473 | fi | |
2474 | done | |
2475 | ||
2476 | if test -r "$cache_file"; then | |
9c60689e DWT |
2477 | # Some versions of bash will fail to source /dev/null (special files |
2478 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2479 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2481 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2482 | case $cache_file in | |
2483 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2484 | *) . "./$cache_file";; | |
2485 | esac | |
2486 | fi | |
2487 | else | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2489 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2490 | >$cache_file | |
2491 | fi | |
2492 | ||
2493 | # Check that the precious variables saved in the cache have kept the same | |
2494 | # value. | |
2495 | ac_cache_corrupted=false | |
2496 | for ac_var in $ac_precious_vars; do | |
2497 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2498 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2499 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2500 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2501 | case $ac_old_set,$ac_new_set in | |
2502 | set,) | |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2504 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2505 | ac_cache_corrupted=: ;; | |
2506 | ,set) | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2508 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2509 | ac_cache_corrupted=: ;; | |
2510 | ,);; | |
2511 | *) | |
2512 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2513 | # differences in whitespace do not lead to failure. | |
2514 | ac_old_val_w=`echo x $ac_old_val` | |
2515 | ac_new_val_w=`echo x $ac_new_val` | |
2516 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2518 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2519 | ac_cache_corrupted=: | |
2520 | else | |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2522 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2523 | eval $ac_var=\$ac_old_val | |
2524 | fi | |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2526 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2528 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2529 | fi;; | |
2530 | esac | |
2531 | # Pass precious variables to config.status. | |
2532 | if test "$ac_new_set" = set; then | |
2533 | case $ac_new_val in | |
2534 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2535 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2536 | esac | |
2537 | case " $ac_configure_args " in | |
2538 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2539 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2540 | esac | |
2541 | fi | |
2542 | done | |
2543 | if $ac_cache_corrupted; then | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2545 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2547 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2548 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2549 | fi | |
2550 | ## -------------------- ## | |
2551 | ## Main body of script. ## | |
2552 | ## -------------------- ## | |
2553 | ||
2554 | ac_ext=c | |
2555 | ac_cpp='$CPP $CPPFLAGS' | |
2556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2559 | ||
2560 | ||
35fa52c0 | 2561 | |
6b66678a DWT |
2562 | ac_aux_dir= |
2563 | for ac_dir in . "$srcdir"/.; do | |
2564 | for ac_t in install-sh install.sh shtool; do | |
2565 | if test -f "$ac_dir/$ac_t"; then | |
2566 | ac_aux_dir=$ac_dir | |
2567 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2568 | break 2 | |
2569 | fi | |
2570 | done | |
2571 | done | |
2572 | if test -z "$ac_aux_dir"; then | |
2573 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2574 | fi | |
2575 | ||
2576 | # These three variables are undocumented and unsupported, | |
2577 | # and are intended to be withdrawn in a future Autoconf release. | |
2578 | # They can cause serious problems if a builder's source tree is in a directory | |
2579 | # whose full name contains unusual characters. | |
2580 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2581 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2582 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2583 | ||
2584 | ||
9c60689e DWT |
2585 | case `pwd` in |
2586 | *\ * | *\ *) | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2588 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2589 | esac | |
2590 | ||
2591 | ||
2592 | ||
2593 | macro_version='2.2.6b' | |
2594 | macro_revision='1.3017' | |
2595 | ||
2596 | ||
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | ||
2604 | ||
2605 | ||
2606 | ||
2607 | ||
2608 | ltmain="$ac_aux_dir/ltmain.sh" | |
2609 | ||
2610 | # Make sure we can run config.sub. | |
2611 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2612 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2613 | ||
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2615 | $as_echo_n "checking build system type... " >&6; } | |
2616 | if test "${ac_cv_build+set}" = set; then : | |
2617 | $as_echo_n "(cached) " >&6 | |
2618 | else | |
2619 | ac_build_alias=$build_alias | |
2620 | test "x$ac_build_alias" = x && | |
2621 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2622 | test "x$ac_build_alias" = x && | |
2623 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2624 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2625 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2626 | ||
2627 | fi | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2629 | $as_echo "$ac_cv_build" >&6; } | |
2630 | case $ac_cv_build in | |
2631 | *-*-*) ;; | |
2632 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2633 | esac | |
2634 | build=$ac_cv_build | |
2635 | ac_save_IFS=$IFS; IFS='-' | |
2636 | set x $ac_cv_build | |
2637 | shift | |
2638 | build_cpu=$1 | |
2639 | build_vendor=$2 | |
2640 | shift; shift | |
2641 | # Remember, the first character of IFS is used to create $*, | |
2642 | # except with old shells: | |
2643 | build_os=$* | |
2644 | IFS=$ac_save_IFS | |
2645 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2646 | ||
2647 | ||
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2649 | $as_echo_n "checking host system type... " >&6; } | |
2650 | if test "${ac_cv_host+set}" = set; then : | |
2651 | $as_echo_n "(cached) " >&6 | |
2652 | else | |
2653 | if test "x$host_alias" = x; then | |
2654 | ac_cv_host=$ac_cv_build | |
2655 | else | |
2656 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2657 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2658 | fi | |
2659 | ||
2660 | fi | |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2662 | $as_echo "$ac_cv_host" >&6; } | |
2663 | case $ac_cv_host in | |
2664 | *-*-*) ;; | |
2665 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2666 | esac | |
2667 | host=$ac_cv_host | |
2668 | ac_save_IFS=$IFS; IFS='-' | |
2669 | set x $ac_cv_host | |
2670 | shift | |
2671 | host_cpu=$1 | |
2672 | host_vendor=$2 | |
2673 | shift; shift | |
2674 | # Remember, the first character of IFS is used to create $*, | |
2675 | # except with old shells: | |
2676 | host_os=$* | |
2677 | IFS=$ac_save_IFS | |
2678 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2679 | ||
2680 | ||
2681 | ac_ext=c | |
2682 | ac_cpp='$CPP $CPPFLAGS' | |
2683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2686 | if test -n "$ac_tool_prefix"; then | |
2687 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2688 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2690 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2691 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2692 | $as_echo_n "(cached) " >&6 |
2693 | else | |
9c60689e DWT |
2694 | if test -n "$CC"; then |
2695 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2696 | else |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2704 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2706 | break 2 | |
2707 | fi | |
2708 | done | |
2709 | done | |
2710 | IFS=$as_save_IFS | |
2711 | ||
2712 | fi | |
2713 | fi | |
9c60689e DWT |
2714 | CC=$ac_cv_prog_CC |
2715 | if test -n "$CC"; then | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2717 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2718 | else |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2720 | $as_echo "no" >&6; } | |
2721 | fi | |
2722 | ||
2723 | ||
2724 | fi | |
2725 | if test -z "$ac_cv_prog_CC"; then | |
2726 | ac_ct_CC=$CC | |
2727 | # Extract the first word of "gcc", so it can be a program name with args. | |
2728 | set dummy gcc; ac_word=$2 | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2730 | $as_echo_n "checking for $ac_word... " >&6; } | |
2731 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2732 | $as_echo_n "(cached) " >&6 | |
2733 | else | |
2734 | if test -n "$ac_ct_CC"; then | |
2735 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2736 | else | |
2737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2738 | for as_dir in $PATH | |
2739 | do | |
2740 | IFS=$as_save_IFS | |
2741 | test -z "$as_dir" && as_dir=. | |
2742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2744 | ac_cv_prog_ac_ct_CC="gcc" | |
2745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2746 | break 2 | |
2747 | fi | |
2748 | done | |
2749 | done | |
2750 | IFS=$as_save_IFS | |
2751 | ||
2752 | fi | |
2753 | fi | |
2754 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2755 | if test -n "$ac_ct_CC"; then | |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2757 | $as_echo "$ac_ct_CC" >&6; } | |
2758 | else | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2760 | $as_echo "no" >&6; } | |
2761 | fi | |
2762 | ||
2763 | if test "x$ac_ct_CC" = x; then | |
2764 | CC="" | |
2765 | else | |
2766 | case $cross_compiling:$ac_tool_warned in | |
2767 | yes:) | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2769 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2770 | ac_tool_warned=yes ;; | |
2771 | esac | |
2772 | CC=$ac_ct_CC | |
2773 | fi | |
2774 | else | |
2775 | CC="$ac_cv_prog_CC" | |
2776 | fi | |
2777 | ||
2778 | if test -z "$CC"; then | |
2779 | if test -n "$ac_tool_prefix"; then | |
2780 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2781 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2783 | $as_echo_n "checking for $ac_word... " >&6; } | |
2784 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2785 | $as_echo_n "(cached) " >&6 | |
2786 | else | |
2787 | if test -n "$CC"; then | |
2788 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2789 | else | |
2790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2791 | for as_dir in $PATH | |
2792 | do | |
2793 | IFS=$as_save_IFS | |
2794 | test -z "$as_dir" && as_dir=. | |
2795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2797 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2799 | break 2 | |
2800 | fi | |
2801 | done | |
2802 | done | |
2803 | IFS=$as_save_IFS | |
2804 | ||
2805 | fi | |
2806 | fi | |
2807 | CC=$ac_cv_prog_CC | |
2808 | if test -n "$CC"; then | |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2810 | $as_echo "$CC" >&6; } | |
2811 | else | |
2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2813 | $as_echo "no" >&6; } | |
2814 | fi | |
2815 | ||
2816 | ||
2817 | fi | |
2818 | fi | |
2819 | if test -z "$CC"; then | |
2820 | # Extract the first word of "cc", so it can be a program name with args. | |
2821 | set dummy cc; ac_word=$2 | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2823 | $as_echo_n "checking for $ac_word... " >&6; } | |
2824 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2825 | $as_echo_n "(cached) " >&6 | |
2826 | else | |
2827 | if test -n "$CC"; then | |
2828 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2829 | else | |
2830 | ac_prog_rejected=no | |
2831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2832 | for as_dir in $PATH | |
2833 | do | |
2834 | IFS=$as_save_IFS | |
2835 | test -z "$as_dir" && as_dir=. | |
2836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2838 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2839 | ac_prog_rejected=yes | |
2840 | continue | |
2841 | fi | |
2842 | ac_cv_prog_CC="cc" | |
2843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2844 | break 2 | |
2845 | fi | |
2846 | done | |
2847 | done | |
2848 | IFS=$as_save_IFS | |
2849 | ||
2850 | if test $ac_prog_rejected = yes; then | |
2851 | # We found a bogon in the path, so make sure we never use it. | |
2852 | set dummy $ac_cv_prog_CC | |
2853 | shift | |
2854 | if test $# != 0; then | |
2855 | # We chose a different compiler from the bogus one. | |
2856 | # However, it has the same basename, so the bogon will be chosen | |
2857 | # first if we set CC to just the basename; use the full file name. | |
2858 | shift | |
2859 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2860 | fi | |
2861 | fi | |
2862 | fi | |
2863 | fi | |
2864 | CC=$ac_cv_prog_CC | |
2865 | if test -n "$CC"; then | |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2867 | $as_echo "$CC" >&6; } | |
2868 | else | |
2869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2870 | $as_echo "no" >&6; } | |
2871 | fi | |
2872 | ||
2873 | ||
2874 | fi | |
2875 | if test -z "$CC"; then | |
2876 | if test -n "$ac_tool_prefix"; then | |
2877 | for ac_prog in cl.exe | |
2878 | do | |
2879 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2880 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2882 | $as_echo_n "checking for $ac_word... " >&6; } | |
2883 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2884 | $as_echo_n "(cached) " >&6 | |
2885 | else | |
2886 | if test -n "$CC"; then | |
2887 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2888 | else | |
2889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2890 | for as_dir in $PATH | |
2891 | do | |
2892 | IFS=$as_save_IFS | |
2893 | test -z "$as_dir" && as_dir=. | |
2894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2896 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2898 | break 2 | |
2899 | fi | |
2900 | done | |
2901 | done | |
2902 | IFS=$as_save_IFS | |
2903 | ||
2904 | fi | |
2905 | fi | |
2906 | CC=$ac_cv_prog_CC | |
2907 | if test -n "$CC"; then | |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2909 | $as_echo "$CC" >&6; } | |
2910 | else | |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2912 | $as_echo "no" >&6; } | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | test -n "$CC" && break | |
2917 | done | |
2918 | fi | |
2919 | if test -z "$CC"; then | |
2920 | ac_ct_CC=$CC | |
2921 | for ac_prog in cl.exe | |
2922 | do | |
2923 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2924 | set dummy $ac_prog; ac_word=$2 | |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2926 | $as_echo_n "checking for $ac_word... " >&6; } | |
2927 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2928 | $as_echo_n "(cached) " >&6 | |
2929 | else | |
2930 | if test -n "$ac_ct_CC"; then | |
2931 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2932 | else | |
2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2934 | for as_dir in $PATH | |
2935 | do | |
2936 | IFS=$as_save_IFS | |
2937 | test -z "$as_dir" && as_dir=. | |
2938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2940 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2942 | break 2 | |
2943 | fi | |
2944 | done | |
2945 | done | |
2946 | IFS=$as_save_IFS | |
2947 | ||
2948 | fi | |
2949 | fi | |
2950 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2951 | if test -n "$ac_ct_CC"; then | |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2953 | $as_echo "$ac_ct_CC" >&6; } | |
2954 | else | |
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2956 | $as_echo "no" >&6; } | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | test -n "$ac_ct_CC" && break | |
2961 | done | |
2962 | ||
2963 | if test "x$ac_ct_CC" = x; then | |
2964 | CC="" | |
2965 | else | |
2966 | case $cross_compiling:$ac_tool_warned in | |
2967 | yes:) | |
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2969 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2970 | ac_tool_warned=yes ;; | |
2971 | esac | |
2972 | CC=$ac_ct_CC | |
2973 | fi | |
2974 | fi | |
2975 | ||
2976 | fi | |
2977 | ||
2978 | ||
2979 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2980 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2981 | as_fn_error "no acceptable C compiler found in \$PATH | |
2982 | See \`config.log' for more details." "$LINENO" 5; } | |
2983 | ||
2984 | # Provide some information about the compiler. | |
2985 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2986 | set X $ac_compile | |
2987 | ac_compiler=$2 | |
2988 | for ac_option in --version -v -V -qversion; do | |
2989 | { { ac_try="$ac_compiler $ac_option >&5" | |
2990 | case "(($ac_try" in | |
2991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2992 | *) ac_try_echo=$ac_try;; | |
2993 | esac | |
2994 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2995 | $as_echo "$ac_try_echo"; } >&5 | |
2996 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2997 | ac_status=$? | |
2998 | if test -s conftest.err; then | |
2999 | sed '10a\ | |
3000 | ... rest of stderr output deleted ... | |
3001 | 10q' conftest.err >conftest.er1 | |
3002 | cat conftest.er1 >&5 | |
35fa52c0 | 3003 | fi |
9c60689e | 3004 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3005 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3006 | test $ac_status = 0; } | |
3007 | done | |
3008 | ||
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3010 | /* end confdefs.h. */ | |
9c60689e | 3011 | |
35fa52c0 DWT |
3012 | int |
3013 | main () | |
3014 | { | |
35fa52c0 DWT |
3015 | |
3016 | ; | |
3017 | return 0; | |
3018 | } | |
3019 | _ACEOF | |
3020 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3021 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3022 | # Try to create an executable without -o first, disregard a.out. |
3023 | # It will help us diagnose broken compilers, and finding out an intuition | |
3024 | # of exeext. | |
9c60689e DWT |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3026 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3027 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3028 | ||
3029 | # The possible output files: | |
3030 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3031 | ||
3032 | ac_rmfiles= | |
3033 | for ac_file in $ac_files | |
3034 | do | |
3035 | case $ac_file in | |
3036 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3037 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3038 | esac | |
3039 | done | |
3040 | rm -f $ac_rmfiles | |
3041 | ||
3042 | if { { ac_try="$ac_link_default" | |
3043 | case "(($ac_try" in | |
3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3045 | *) ac_try_echo=$ac_try;; | |
3046 | esac | |
3047 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3048 | $as_echo "$ac_try_echo"; } >&5 | |
3049 | (eval "$ac_link_default") 2>&5 | |
3050 | ac_status=$? | |
3051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3052 | test $ac_status = 0; }; then : | |
3053 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3054 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3055 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3056 | # so that the user can short-circuit this test for compilers unknown to | |
3057 | # Autoconf. | |
3058 | for ac_file in $ac_files '' | |
3059 | do | |
3060 | test -f "$ac_file" || continue | |
3061 | case $ac_file in | |
3062 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3063 | ;; | |
3064 | [ab].out ) | |
3065 | # We found the default executable, but exeext='' is most | |
3066 | # certainly right. | |
3067 | break;; | |
3068 | *.* ) | |
3069 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3070 | then :; else | |
3071 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3072 | fi | |
3073 | # We set ac_cv_exeext here because the later test for it is not | |
3074 | # safe: cross compilers may not add the suffix if given an `-o' | |
3075 | # argument, so we may need to know it at that point already. | |
3076 | # Even if this section looks crufty: it has the advantage of | |
3077 | # actually working. | |
3078 | break;; | |
3079 | * ) | |
3080 | break;; | |
3081 | esac | |
3082 | done | |
3083 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3084 | ||
3085 | else | |
3086 | ac_file='' | |
3087 | fi | |
35fa52c0 | 3088 | if test -z "$ac_file"; then : |
9c60689e DWT |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3090 | $as_echo "no" >&6; } | |
3091 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3092 | sed 's/^/| /' conftest.$ac_ext >&5 |
3093 | ||
3094 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3095 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3096 | { as_fn_set_status 77 | |
3097 | as_fn_error "C compiler cannot create executables | |
3098 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3099 | else |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3101 | $as_echo "yes" >&6; } | |
35fa52c0 | 3102 | fi |
9c60689e DWT |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3104 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3106 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3107 | ac_exeext=$ac_cv_exeext |
3108 | ||
9c60689e | 3109 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3110 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3112 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3113 | if { { ac_try="$ac_link" | |
3114 | case "(($ac_try" in | |
3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3116 | *) ac_try_echo=$ac_try;; | |
3117 | esac | |
3118 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3119 | $as_echo "$ac_try_echo"; } >&5 | |
3120 | (eval "$ac_link") 2>&5 | |
3121 | ac_status=$? | |
3122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3123 | test $ac_status = 0; }; then : | |
3124 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3125 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3126 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3127 | # `rm'. | |
3128 | for ac_file in conftest.exe conftest conftest.*; do | |
3129 | test -f "$ac_file" || continue | |
3130 | case $ac_file in | |
3131 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3132 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3133 | break;; | |
3134 | * ) break;; | |
3135 | esac | |
3136 | done | |
3137 | else | |
3138 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3139 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3140 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3141 | See \`config.log' for more details." "$LINENO" 5; } | |
3142 | fi | |
9c60689e | 3143 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3145 | $as_echo "$ac_cv_exeext" >&6; } | |
3146 | ||
3147 | rm -f conftest.$ac_ext | |
3148 | EXEEXT=$ac_cv_exeext | |
3149 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3151 | /* end confdefs.h. */ | |
3152 | #include <stdio.h> | |
3153 | int | |
3154 | main () | |
3155 | { | |
3156 | FILE *f = fopen ("conftest.out", "w"); | |
3157 | return ferror (f) || fclose (f) != 0; | |
3158 | ||
3159 | ; | |
3160 | return 0; | |
3161 | } | |
3162 | _ACEOF | |
3163 | ac_clean_files="$ac_clean_files conftest.out" | |
3164 | # Check that the compiler produces executables we can run. If not, either | |
3165 | # the compiler is broken, or we cross compile. | |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3167 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3168 | if test "$cross_compiling" != yes; then | |
3169 | { { ac_try="$ac_link" | |
3170 | case "(($ac_try" in | |
3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3172 | *) ac_try_echo=$ac_try;; | |
3173 | esac | |
3174 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3175 | $as_echo "$ac_try_echo"; } >&5 | |
3176 | (eval "$ac_link") 2>&5 | |
3177 | ac_status=$? | |
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3179 | test $ac_status = 0; } | |
3180 | if { ac_try='./conftest$ac_cv_exeext' | |
3181 | { { case "(($ac_try" in | |
3182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3183 | *) ac_try_echo=$ac_try;; | |
3184 | esac | |
3185 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3186 | $as_echo "$ac_try_echo"; } >&5 | |
3187 | (eval "$ac_try") 2>&5 | |
3188 | ac_status=$? | |
3189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3190 | test $ac_status = 0; }; }; then | |
3191 | cross_compiling=no | |
3192 | else | |
3193 | if test "$cross_compiling" = maybe; then | |
3194 | cross_compiling=yes | |
3195 | else | |
3196 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3197 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3198 | as_fn_error "cannot run C compiled programs. | |
3199 | If you meant to cross compile, use \`--host'. | |
3200 | See \`config.log' for more details." "$LINENO" 5; } | |
3201 | fi | |
3202 | fi | |
3203 | fi | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3205 | $as_echo "$cross_compiling" >&6; } | |
3206 | ||
3207 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3208 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3210 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3211 | if test "${ac_cv_objext+set}" = set; then : | |
3212 | $as_echo_n "(cached) " >&6 | |
3213 | else | |
3214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3215 | /* end confdefs.h. */ | |
3216 | ||
3217 | int | |
3218 | main () | |
3219 | { | |
3220 | ||
3221 | ; | |
3222 | return 0; | |
3223 | } | |
3224 | _ACEOF | |
3225 | rm -f conftest.o conftest.obj | |
3226 | if { { ac_try="$ac_compile" | |
3227 | case "(($ac_try" in | |
3228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3229 | *) ac_try_echo=$ac_try;; | |
3230 | esac | |
3231 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3232 | $as_echo "$ac_try_echo"; } >&5 | |
3233 | (eval "$ac_compile") 2>&5 | |
3234 | ac_status=$? | |
3235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3236 | test $ac_status = 0; }; then : | |
3237 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3238 | test -f "$ac_file" || continue; | |
3239 | case $ac_file in | |
3240 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3241 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3242 | break;; | |
3243 | esac | |
3244 | done | |
3245 | else | |
3246 | $as_echo "$as_me: failed program was:" >&5 | |
3247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3248 | ||
3249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3250 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3251 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3252 | See \`config.log' for more details." "$LINENO" 5; } | |
3253 | fi | |
3254 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3255 | fi | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3257 | $as_echo "$ac_cv_objext" >&6; } | |
3258 | OBJEXT=$ac_cv_objext | |
3259 | ac_objext=$OBJEXT | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3261 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3262 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3263 | $as_echo_n "(cached) " >&6 | |
3264 | else | |
3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3266 | /* end confdefs.h. */ | |
3267 | ||
3268 | int | |
3269 | main () | |
3270 | { | |
3271 | #ifndef __GNUC__ | |
3272 | choke me | |
3273 | #endif | |
3274 | ||
3275 | ; | |
3276 | return 0; | |
3277 | } | |
3278 | _ACEOF | |
3279 | if ac_fn_c_try_compile "$LINENO"; then : | |
3280 | ac_compiler_gnu=yes | |
3281 | else | |
3282 | ac_compiler_gnu=no | |
3283 | fi | |
3284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3285 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3286 | ||
3287 | fi | |
3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3289 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3290 | if test $ac_compiler_gnu = yes; then | |
3291 | GCC=yes | |
3292 | else | |
3293 | GCC= | |
3294 | fi | |
3295 | ac_test_CFLAGS=${CFLAGS+set} | |
3296 | ac_save_CFLAGS=$CFLAGS | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3298 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3299 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3300 | $as_echo_n "(cached) " >&6 | |
3301 | else | |
3302 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3303 | ac_c_werror_flag=yes | |
3304 | ac_cv_prog_cc_g=no | |
3305 | CFLAGS="-g" | |
3306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3307 | /* end confdefs.h. */ | |
3308 | ||
3309 | int | |
3310 | main () | |
3311 | { | |
3312 | ||
3313 | ; | |
3314 | return 0; | |
3315 | } | |
3316 | _ACEOF | |
3317 | if ac_fn_c_try_compile "$LINENO"; then : | |
3318 | ac_cv_prog_cc_g=yes | |
3319 | else | |
3320 | CFLAGS="" | |
3321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3322 | /* end confdefs.h. */ | |
3323 | ||
3324 | int | |
3325 | main () | |
3326 | { | |
3327 | ||
3328 | ; | |
3329 | return 0; | |
3330 | } | |
3331 | _ACEOF | |
3332 | if ac_fn_c_try_compile "$LINENO"; then : | |
3333 | ||
3334 | else | |
3335 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3336 | CFLAGS="-g" | |
3337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3338 | /* end confdefs.h. */ | |
3339 | ||
3340 | int | |
3341 | main () | |
3342 | { | |
3343 | ||
3344 | ; | |
3345 | return 0; | |
3346 | } | |
3347 | _ACEOF | |
3348 | if ac_fn_c_try_compile "$LINENO"; then : | |
3349 | ac_cv_prog_cc_g=yes | |
3350 | fi | |
3351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3352 | fi | |
3353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3354 | fi | |
3355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3356 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3357 | fi | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3359 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3360 | if test "$ac_test_CFLAGS" = set; then | |
3361 | CFLAGS=$ac_save_CFLAGS | |
3362 | elif test $ac_cv_prog_cc_g = yes; then | |
3363 | if test "$GCC" = yes; then | |
3364 | CFLAGS="-g -O2" | |
3365 | else | |
3366 | CFLAGS="-g" | |
3367 | fi | |
3368 | else | |
3369 | if test "$GCC" = yes; then | |
3370 | CFLAGS="-O2" | |
3371 | else | |
3372 | CFLAGS= | |
3373 | fi | |
3374 | fi | |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3376 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3377 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3378 | $as_echo_n "(cached) " >&6 | |
3379 | else | |
3380 | ac_cv_prog_cc_c89=no | |
3381 | ac_save_CC=$CC | |
3382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3383 | /* end confdefs.h. */ | |
3384 | #include <stdarg.h> | |
3385 | #include <stdio.h> | |
3386 | #include <sys/types.h> | |
3387 | #include <sys/stat.h> | |
3388 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3389 | struct buf { int x; }; | |
3390 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3391 | static char *e (p, i) | |
3392 | char **p; | |
3393 | int i; | |
3394 | { | |
3395 | return p[i]; | |
3396 | } | |
3397 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3398 | { | |
3399 | char *s; | |
3400 | va_list v; | |
3401 | va_start (v,p); | |
3402 | s = g (p, va_arg (v,int)); | |
3403 | va_end (v); | |
3404 | return s; | |
3405 | } | |
3406 | ||
3407 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3408 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3409 | These don't provoke an error unfortunately, instead are silently treated | |
3410 | as 'x'. The following induces an error, until -std is added to get | |
3411 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3412 | array size at least. It's necessary to write '\x00'==0 to get something | |
3413 | that's true only with -std. */ | |
3414 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3415 | ||
3416 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3417 | inside strings and character constants. */ | |
3418 | #define FOO(x) 'x' | |
3419 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3420 | ||
3421 | int test (int i, double x); | |
3422 | struct s1 {int (*f) (int a);}; | |
3423 | struct s2 {int (*f) (double a);}; | |
3424 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3425 | int argc; | |
3426 | char **argv; | |
3427 | int | |
3428 | main () | |
3429 | { | |
3430 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3431 | ; | |
3432 | return 0; | |
3433 | } | |
3434 | _ACEOF | |
3435 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3436 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3437 | do | |
3438 | CC="$ac_save_CC $ac_arg" | |
3439 | if ac_fn_c_try_compile "$LINENO"; then : | |
3440 | ac_cv_prog_cc_c89=$ac_arg | |
3441 | fi | |
3442 | rm -f core conftest.err conftest.$ac_objext | |
3443 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3444 | done | |
3445 | rm -f conftest.$ac_ext | |
3446 | CC=$ac_save_CC | |
3447 | ||
3448 | fi | |
3449 | # AC_CACHE_VAL | |
3450 | case "x$ac_cv_prog_cc_c89" in | |
3451 | x) | |
3452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3453 | $as_echo "none needed" >&6; } ;; | |
3454 | xno) | |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3456 | $as_echo "unsupported" >&6; } ;; | |
3457 | *) | |
3458 | CC="$CC $ac_cv_prog_cc_c89" | |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3460 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3461 | esac | |
3462 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3463 | ||
3464 | fi | |
3465 | ||
3466 | ac_ext=c | |
3467 | ac_cpp='$CPP $CPPFLAGS' | |
3468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3471 | ||
9c60689e DWT |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3473 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3474 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3475 | $as_echo_n "(cached) " >&6 |
3476 | else | |
9c60689e DWT |
3477 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3478 | for ac_i in 1 2 3 4 5 6 7; do | |
3479 | ac_script="$ac_script$as_nl$ac_script" | |
3480 | done | |
3481 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3482 | { ac_script=; unset ac_script;} | |
3483 | if test -z "$SED"; then | |
3484 | ac_path_SED_found=false | |
3485 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3487 | for as_dir in $PATH |
3488 | do | |
3489 | IFS=$as_save_IFS | |
3490 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3491 | for ac_prog in sed gsed; do |
35fa52c0 | 3492 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3493 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3494 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3495 | # Check for GNU ac_path_SED and select it if it is found. | |
3496 | # Check for GNU $ac_path_SED | |
3497 | case `"$ac_path_SED" --version 2>&1` in | |
3498 | *GNU*) | |
3499 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3500 | *) | |
3501 | ac_count=0 | |
3502 | $as_echo_n 0123456789 >"conftest.in" | |
3503 | while : | |
3504 | do | |
3505 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3506 | mv "conftest.tmp" "conftest.in" | |
3507 | cp "conftest.in" "conftest.nl" | |
3508 | $as_echo '' >> "conftest.nl" | |
3509 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3510 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3511 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3512 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3513 | # Best one so far, save it but keep looking for a better one | |
3514 | ac_cv_path_SED="$ac_path_SED" | |
3515 | ac_path_SED_max=$ac_count | |
3516 | fi | |
3517 | # 10*(2^10) chars as input seems more than enough | |
3518 | test $ac_count -gt 10 && break | |
35fa52c0 | 3519 | done |
9c60689e DWT |
3520 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3521 | esac | |
35fa52c0 | 3522 | |
9c60689e DWT |
3523 | $ac_path_SED_found && break 3 |
3524 | done | |
3525 | done | |
3526 | done | |
3527 | IFS=$as_save_IFS | |
3528 | if test -z "$ac_cv_path_SED"; then | |
3529 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3530 | fi | |
35fa52c0 | 3531 | else |
9c60689e | 3532 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3533 | fi |
3534 | ||
9c60689e DWT |
3535 | fi |
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3537 | $as_echo "$ac_cv_path_SED" >&6; } | |
3538 | SED="$ac_cv_path_SED" | |
3539 | rm -f conftest.sed | |
35fa52c0 | 3540 | |
9c60689e DWT |
3541 | test -z "$SED" && SED=sed |
3542 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3543 | |
35fa52c0 | 3544 | |
35fa52c0 | 3545 | |
35fa52c0 | 3546 | |
35fa52c0 | 3547 | |
35fa52c0 DWT |
3548 | |
3549 | ||
35fa52c0 | 3550 | |
35fa52c0 | 3551 | |
35fa52c0 | 3552 | |
35fa52c0 | 3553 | |
9c60689e DWT |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3555 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3556 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3557 | $as_echo_n "(cached) " >&6 | |
3558 | else | |
3559 | if test -z "$GREP"; then | |
3560 | ac_path_GREP_found=false | |
3561 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3563 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3564 | do | |
3565 | IFS=$as_save_IFS | |
3566 | test -z "$as_dir" && as_dir=. | |
3567 | for ac_prog in grep ggrep; do | |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3569 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3570 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3571 | # Check for GNU ac_path_GREP and select it if it is found. | |
3572 | # Check for GNU $ac_path_GREP | |
3573 | case `"$ac_path_GREP" --version 2>&1` in | |
3574 | *GNU*) | |
3575 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3576 | *) | |
3577 | ac_count=0 | |
3578 | $as_echo_n 0123456789 >"conftest.in" | |
3579 | while : | |
3580 | do | |
3581 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3582 | mv "conftest.tmp" "conftest.in" | |
3583 | cp "conftest.in" "conftest.nl" | |
3584 | $as_echo 'GREP' >> "conftest.nl" | |
3585 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3586 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3587 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3588 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3589 | # Best one so far, save it but keep looking for a better one | |
3590 | ac_cv_path_GREP="$ac_path_GREP" | |
3591 | ac_path_GREP_max=$ac_count | |
3592 | fi | |
3593 | # 10*(2^10) chars as input seems more than enough | |
3594 | test $ac_count -gt 10 && break | |
3595 | done | |
3596 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3597 | esac | |
6b66678a | 3598 | |
9c60689e DWT |
3599 | $ac_path_GREP_found && break 3 |
3600 | done | |
3601 | done | |
3602 | done | |
3603 | IFS=$as_save_IFS | |
3604 | if test -z "$ac_cv_path_GREP"; then | |
3605 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3606 | fi | |
3607 | else | |
3608 | ac_cv_path_GREP=$GREP | |
3609 | fi | |
6b66678a | 3610 | |
9c60689e DWT |
3611 | fi |
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3613 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3614 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3615 | |
3616 | ||
9c60689e DWT |
3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3618 | $as_echo_n "checking for egrep... " >&6; } | |
3619 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3620 | $as_echo_n "(cached) " >&6 |
3621 | else | |
9c60689e DWT |
3622 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3623 | then ac_cv_path_EGREP="$GREP -E" | |
3624 | else | |
3625 | if test -z "$EGREP"; then | |
3626 | ac_path_EGREP_found=false | |
3627 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3629 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3630 | do | |
3631 | IFS=$as_save_IFS | |
3632 | test -z "$as_dir" && as_dir=. | |
3633 | for ac_prog in egrep; do | |
3634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3635 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3636 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3637 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3638 | # Check for GNU $ac_path_EGREP | |
3639 | case `"$ac_path_EGREP" --version 2>&1` in | |
3640 | *GNU*) | |
3641 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3642 | *) | |
3643 | ac_count=0 | |
3644 | $as_echo_n 0123456789 >"conftest.in" | |
3645 | while : | |
3646 | do | |
3647 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3648 | mv "conftest.tmp" "conftest.in" | |
3649 | cp "conftest.in" "conftest.nl" | |
3650 | $as_echo 'EGREP' >> "conftest.nl" | |
3651 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3652 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3653 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3654 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3655 | # Best one so far, save it but keep looking for a better one | |
3656 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3657 | ac_path_EGREP_max=$ac_count | |
3658 | fi | |
3659 | # 10*(2^10) chars as input seems more than enough | |
3660 | test $ac_count -gt 10 && break | |
3661 | done | |
3662 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3663 | esac | |
3664 | ||
3665 | $ac_path_EGREP_found && break 3 | |
3666 | done | |
3667 | done | |
3668 | done | |
3669 | IFS=$as_save_IFS | |
3670 | if test -z "$ac_cv_path_EGREP"; then | |
3671 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3672 | fi | |
3673 | else | |
3674 | ac_cv_path_EGREP=$EGREP | |
3675 | fi | |
6b66678a | 3676 | |
9c60689e DWT |
3677 | fi |
3678 | fi | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3680 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3681 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3682 | |
6b66678a | 3683 | |
9c60689e DWT |
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3685 | $as_echo_n "checking for fgrep... " >&6; } | |
3686 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3687 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3688 | else |
9c60689e DWT |
3689 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3690 | then ac_cv_path_FGREP="$GREP -F" | |
3691 | else | |
3692 | if test -z "$FGREP"; then | |
3693 | ac_path_FGREP_found=false | |
3694 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3696 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3697 | do | |
3698 | IFS=$as_save_IFS | |
3699 | test -z "$as_dir" && as_dir=. | |
3700 | for ac_prog in fgrep; do | |
3701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3702 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3703 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3704 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3705 | # Check for GNU $ac_path_FGREP | |
3706 | case `"$ac_path_FGREP" --version 2>&1` in | |
3707 | *GNU*) | |
3708 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3709 | *) | |
3710 | ac_count=0 | |
3711 | $as_echo_n 0123456789 >"conftest.in" | |
3712 | while : | |
3713 | do | |
3714 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3715 | mv "conftest.tmp" "conftest.in" | |
3716 | cp "conftest.in" "conftest.nl" | |
3717 | $as_echo 'FGREP' >> "conftest.nl" | |
3718 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3719 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3720 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3721 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3722 | # Best one so far, save it but keep looking for a better one | |
3723 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3724 | ac_path_FGREP_max=$ac_count | |
3725 | fi | |
3726 | # 10*(2^10) chars as input seems more than enough | |
3727 | test $ac_count -gt 10 && break | |
3728 | done | |
3729 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3730 | esac | |
6b66678a | 3731 | |
9c60689e DWT |
3732 | $ac_path_FGREP_found && break 3 |
3733 | done | |
3734 | done | |
3735 | done | |
3736 | IFS=$as_save_IFS | |
3737 | if test -z "$ac_cv_path_FGREP"; then | |
3738 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3739 | fi | |
3740 | else | |
3741 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3742 | fi |
3743 | ||
9c60689e | 3744 | fi |
6b66678a | 3745 | fi |
9c60689e DWT |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3747 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3748 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3749 | |
35fa52c0 | 3750 | |
9c60689e | 3751 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3752 | |
309b0535 | 3753 | |
35fa52c0 | 3754 | |
6b66678a | 3755 | |
6b66678a DWT |
3756 | |
3757 | ||
6b66678a | 3758 | |
6b66678a | 3759 | |
35fa52c0 | 3760 | |
35fa52c0 | 3761 | |
309b0535 | 3762 | |
309b0535 | 3763 | |
309b0535 | 3764 | |
309b0535 | 3765 | |
309b0535 | 3766 | |
309b0535 | 3767 | |
309b0535 | 3768 | |
309b0535 | 3769 | |
309b0535 | 3770 | |
9c60689e DWT |
3771 | # Check whether --with-gnu-ld was given. |
3772 | if test "${with_gnu_ld+set}" = set; then : | |
3773 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3774 | else |
9c60689e DWT |
3775 | with_gnu_ld=no |
3776 | fi | |
309b0535 | 3777 | |
9c60689e DWT |
3778 | ac_prog=ld |
3779 | if test "$GCC" = yes; then | |
3780 | # Check if gcc -print-prog-name=ld gives a path. | |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3782 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3783 | case $host in | |
3784 | *-*-mingw*) | |
3785 | # gcc leaves a trailing carriage return which upsets mingw | |
3786 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3787 | *) | |
3788 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3789 | esac | |
3790 | case $ac_prog in | |
3791 | # Accept absolute paths. | |
3792 | [\\/]* | ?:[\\/]*) | |
3793 | re_direlt='/[^/][^/]*/\.\./' | |
3794 | # Canonicalize the pathname of ld | |
3795 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3796 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3797 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3798 | done |
9c60689e DWT |
3799 | test -z "$LD" && LD="$ac_prog" |
3800 | ;; | |
3801 | "") | |
3802 | # If it fails, then pretend we aren't using GCC. | |
3803 | ac_prog=ld | |
3804 | ;; | |
3805 | *) | |
3806 | # If it is relative, then search for the first ld in PATH. | |
3807 | with_gnu_ld=unknown | |
3808 | ;; | |
3809 | esac | |
3810 | elif test "$with_gnu_ld" = yes; then | |
3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3812 | $as_echo_n "checking for GNU ld... " >&6; } | |
3813 | else | |
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3815 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3816 | fi | |
3817 | if test "${lt_cv_path_LD+set}" = set; then : | |
3818 | $as_echo_n "(cached) " >&6 | |
3819 | else | |
3820 | if test -z "$LD"; then | |
3821 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3822 | for ac_dir in $PATH; do | |
3823 | IFS="$lt_save_ifs" | |
3824 | test -z "$ac_dir" && ac_dir=. | |
3825 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3826 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3827 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3828 | # but apparently some variants of GNU ld only accept -v. | |
3829 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3830 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3831 | *GNU* | *'with BFD'*) | |
3832 | test "$with_gnu_ld" != no && break | |
3833 | ;; | |
3834 | *) | |
3835 | test "$with_gnu_ld" != yes && break | |
3836 | ;; | |
309b0535 | 3837 | esac |
309b0535 | 3838 | fi |
9c60689e DWT |
3839 | done |
3840 | IFS="$lt_save_ifs" | |
3841 | else | |
3842 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3843 | fi | |
3844 | fi | |
309b0535 | 3845 | |
9c60689e DWT |
3846 | LD="$lt_cv_path_LD" |
3847 | if test -n "$LD"; then | |
3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3849 | $as_echo "$LD" >&6; } | |
3850 | else | |
3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3852 | $as_echo "no" >&6; } | |
3853 | fi | |
3854 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3856 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3857 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3858 | $as_echo_n "(cached) " >&6 | |
3859 | else | |
3860 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3861 | case `$LD -v 2>&1 </dev/null` in | |
3862 | *GNU* | *'with BFD'*) | |
3863 | lt_cv_prog_gnu_ld=yes | |
3864 | ;; | |
3865 | *) | |
3866 | lt_cv_prog_gnu_ld=no | |
3867 | ;; | |
3868 | esac | |
309b0535 | 3869 | fi |
9c60689e DWT |
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3871 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3872 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3873 | |
3874 | ||
309b0535 | 3875 | |
309b0535 DWT |
3876 | |
3877 | ||
309b0535 | 3878 | |
309b0535 | 3879 | |
9c60689e DWT |
3880 | |
3881 | ||
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3883 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3884 | if test "${lt_cv_path_NM+set}" = set; then : | |
3885 | $as_echo_n "(cached) " >&6 | |
3886 | else | |
3887 | if test -n "$NM"; then | |
3888 | # Let the user override the test. | |
3889 | lt_cv_path_NM="$NM" | |
3890 | else | |
3891 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3892 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3893 | lt_nm_to_check="$lt_nm_to_check nm" | |
3894 | fi | |
3895 | for lt_tmp_nm in $lt_nm_to_check; do | |
3896 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3897 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3898 | IFS="$lt_save_ifs" | |
3899 | test -z "$ac_dir" && ac_dir=. | |
3900 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3901 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3902 | # Check to see if the nm accepts a BSD-compat flag. | |
3903 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3904 | # nm: unknown option "B" ignored | |
3905 | # Tru64's nm complains that /dev/null is an invalid object file | |
3906 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3907 | */dev/null* | *'Invalid file or object type'*) | |
3908 | lt_cv_path_NM="$tmp_nm -B" | |
3909 | break | |
3910 | ;; | |
3911 | *) | |
3912 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3913 | */dev/null*) | |
3914 | lt_cv_path_NM="$tmp_nm -p" | |
3915 | break | |
3916 | ;; | |
3917 | *) | |
3918 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3919 | continue # so that we can try to find one that supports BSD flags | |
3920 | ;; | |
3921 | esac | |
3922 | ;; | |
3923 | esac | |
309b0535 DWT |
3924 | fi |
3925 | done | |
9c60689e | 3926 | IFS="$lt_save_ifs" |
309b0535 | 3927 | done |
9c60689e DWT |
3928 | : ${lt_cv_path_NM=no} |
3929 | fi | |
3930 | fi | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3932 | $as_echo "$lt_cv_path_NM" >&6; } | |
3933 | if test "$lt_cv_path_NM" != "no"; then | |
3934 | NM="$lt_cv_path_NM" | |
3935 | else | |
3936 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3937 | if test -n "$ac_tool_prefix"; then | |
3938 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3939 | do |
3940 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3941 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3943 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3944 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3945 | $as_echo_n "(cached) " >&6 |
3946 | else | |
9c60689e DWT |
3947 | if test -n "$DUMPBIN"; then |
3948 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3949 | else |
3950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3951 | for as_dir in $PATH | |
3952 | do | |
3953 | IFS=$as_save_IFS | |
3954 | test -z "$as_dir" && as_dir=. | |
3955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3957 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3959 | break 2 | |
3960 | fi | |
3961 | done | |
3962 | done | |
3963 | IFS=$as_save_IFS | |
3964 | ||
3965 | fi | |
3966 | fi | |
9c60689e DWT |
3967 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3968 | if test -n "$DUMPBIN"; then | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3970 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3971 | else |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3973 | $as_echo "no" >&6; } | |
3974 | fi | |
3975 | ||
3976 | ||
9c60689e | 3977 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3978 | done |
3979 | fi | |
9c60689e DWT |
3980 | if test -z "$DUMPBIN"; then |
3981 | ac_ct_DUMPBIN=$DUMPBIN | |
3982 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3983 | do |
3984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3985 | set dummy $ac_prog; ac_word=$2 | |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3987 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3988 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3989 | $as_echo_n "(cached) " >&6 |
3990 | else | |
9c60689e DWT |
3991 | if test -n "$ac_ct_DUMPBIN"; then |
3992 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3993 | else |
3994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3995 | for as_dir in $PATH | |
3996 | do | |
3997 | IFS=$as_save_IFS | |
3998 | test -z "$as_dir" && as_dir=. | |
3999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 4001 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
4002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4003 | break 2 | |
4004 | fi | |
4005 | done | |
4006 | done | |
4007 | IFS=$as_save_IFS | |
4008 | ||
4009 | fi | |
4010 | fi | |
9c60689e DWT |
4011 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4012 | if test -n "$ac_ct_DUMPBIN"; then | |
4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4014 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4015 | else |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4017 | $as_echo "no" >&6; } | |
4018 | fi | |
4019 | ||
4020 | ||
9c60689e | 4021 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4022 | done |
4023 | ||
9c60689e DWT |
4024 | if test "x$ac_ct_DUMPBIN" = x; then |
4025 | DUMPBIN=":" | |
35fa52c0 DWT |
4026 | else |
4027 | case $cross_compiling:$ac_tool_warned in | |
4028 | yes:) | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4030 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4031 | ac_tool_warned=yes ;; | |
4032 | esac | |
9c60689e | 4033 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4034 | fi |
4035 | fi | |
4036 | ||
9c60689e DWT |
4037 | |
4038 | if test "$DUMPBIN" != ":"; then | |
4039 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4040 | fi |
4041 | fi | |
9c60689e | 4042 | test -z "$NM" && NM=nm |
35fa52c0 | 4043 | |
35fa52c0 | 4044 | |
35fa52c0 | 4045 | |
35fa52c0 | 4046 | |
9c60689e DWT |
4047 | |
4048 | ||
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4050 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4051 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4052 | $as_echo_n "(cached) " >&6 | |
4053 | else | |
4054 | lt_cv_nm_interface="BSD nm" | |
4055 | echo "int some_variable = 0;" > conftest.$ac_ext | |
794e88e7 | 4056 | (eval echo "\"\$as_me:4055: $ac_compile\"" >&5) |
9c60689e DWT |
4057 | (eval "$ac_compile" 2>conftest.err) |
4058 | cat conftest.err >&5 | |
794e88e7 | 4059 | (eval echo "\"\$as_me:4058: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4060 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4061 | cat conftest.err >&5 | |
794e88e7 | 4062 | (eval echo "\"\$as_me:4061: output\"" >&5) |
9c60689e DWT |
4063 | cat conftest.out >&5 |
4064 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4065 | lt_cv_nm_interface="MS dumpbin" | |
4066 | fi | |
4067 | rm -f conftest* | |
35fa52c0 | 4068 | fi |
9c60689e DWT |
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4070 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4071 | ||
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4073 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4074 | LN_S=$as_ln_s | |
4075 | if test "$LN_S" = "ln -s"; then | |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4077 | $as_echo "yes" >&6; } | |
35fa52c0 | 4078 | else |
9c60689e DWT |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4080 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4081 | fi |
9c60689e DWT |
4082 | |
4083 | # find the maximum length of command line arguments | |
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4085 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4086 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4087 | $as_echo_n "(cached) " >&6 |
4088 | else | |
9c60689e DWT |
4089 | i=0 |
4090 | teststring="ABCD" | |
4091 | ||
4092 | case $build_os in | |
4093 | msdosdjgpp*) | |
4094 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4095 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4096 | # during glob expansion). Even if it were fixed, the result of this | |
4097 | # check would be larger than it should be. | |
4098 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4099 | ;; | |
35fa52c0 | 4100 | |
9c60689e DWT |
4101 | gnu*) |
4102 | # Under GNU Hurd, this test is not required because there is | |
4103 | # no limit to the length of command line arguments. | |
4104 | # Libtool will interpret -1 as no limit whatsoever | |
4105 | lt_cv_sys_max_cmd_len=-1; | |
4106 | ;; | |
35fa52c0 | 4107 | |
9c60689e DWT |
4108 | cygwin* | mingw* | cegcc*) |
4109 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4110 | # about 5 minutes as the teststring grows exponentially. | |
4111 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4112 | # you end up with a "frozen" computer, even though with patience | |
4113 | # the test eventually succeeds (with a max line length of 256k). | |
4114 | # Instead, let's just punt: use the minimum linelength reported by | |
4115 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4116 | lt_cv_sys_max_cmd_len=8192; | |
4117 | ;; | |
35fa52c0 | 4118 | |
9c60689e DWT |
4119 | amigaos*) |
4120 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4121 | # So we just punt and use a minimum line length of 8192. | |
4122 | lt_cv_sys_max_cmd_len=8192; | |
4123 | ;; | |
35fa52c0 | 4124 | |
9c60689e DWT |
4125 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4126 | # This has been around since 386BSD, at least. Likely further. | |
4127 | if test -x /sbin/sysctl; then | |
4128 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4129 | elif test -x /usr/sbin/sysctl; then | |
4130 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4131 | else | |
4132 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4133 | fi | |
4134 | # And add a safety zone | |
4135 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4136 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4137 | ;; | |
35fa52c0 | 4138 | |
9c60689e DWT |
4139 | interix*) |
4140 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4141 | lt_cv_sys_max_cmd_len=196608 | |
4142 | ;; | |
35fa52c0 | 4143 | |
9c60689e DWT |
4144 | osf*) |
4145 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4146 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4147 | # nice to cause kernel panics so lets avoid the loop below. | |
4148 | # First set a reasonable default. | |
4149 | lt_cv_sys_max_cmd_len=16384 | |
4150 | # | |
4151 | if test -x /sbin/sysconfig; then | |
4152 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4153 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4154 | esac | |
4155 | fi | |
4156 | ;; | |
4157 | sco3.2v5*) | |
4158 | lt_cv_sys_max_cmd_len=102400 | |
4159 | ;; | |
4160 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4161 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4162 | if test -n "$kargmax"; then | |
4163 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4164 | else | |
4165 | lt_cv_sys_max_cmd_len=32768 | |
4166 | fi | |
4167 | ;; | |
4168 | *) | |
4169 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4170 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4171 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4172 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4173 | else | |
4174 | # Make teststring a little bigger before we do anything with it. | |
4175 | # a 1K string should be a reasonable start. | |
4176 | for i in 1 2 3 4 5 6 7 8 ; do | |
4177 | teststring=$teststring$teststring | |
4178 | done | |
4179 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4180 | # If test is not a shell built-in, we'll probably end up computing a | |
4181 | # maximum length that is only half of the actual maximum length, but | |
4182 | # we can't tell. | |
4183 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4184 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4185 | test $i != 17 # 1/2 MB should be enough | |
4186 | do | |
4187 | i=`expr $i + 1` | |
4188 | teststring=$teststring$teststring | |
4189 | done | |
4190 | # Only check the string length outside the loop. | |
4191 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4192 | teststring= | |
4193 | # Add a significant safety factor because C++ compilers can tack on | |
4194 | # massive amounts of additional arguments before passing them to the | |
4195 | # linker. It appears as though 1/2 is a usable value. | |
4196 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4197 | fi | |
4198 | ;; | |
4199 | esac | |
35fa52c0 | 4200 | |
35fa52c0 | 4201 | fi |
9c60689e DWT |
4202 | |
4203 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4205 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4206 | else |
9c60689e DWT |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4208 | $as_echo "none" >&6; } | |
35fa52c0 | 4209 | fi |
9c60689e | 4210 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4211 | |
9c60689e DWT |
4212 | |
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | : ${CP="cp -f"} | |
4218 | : ${MV="mv -f"} | |
4219 | : ${RM="rm -f"} | |
4220 | ||
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4222 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4223 | # Try some XSI features | |
4224 | xsi_shell=no | |
4225 | ( _lt_dummy="a/b/c" | |
4226 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4227 | = c,a/b,, \ | |
4228 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4229 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4230 | && xsi_shell=yes | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4232 | $as_echo "$xsi_shell" >&6; } | |
4233 | ||
4234 | ||
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4236 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4237 | lt_shell_append=no | |
4238 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4239 | >/dev/null 2>&1 \ | |
4240 | && lt_shell_append=yes | |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4242 | $as_echo "$lt_shell_append" >&6; } | |
4243 | ||
4244 | ||
4245 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4246 | lt_unset=unset | |
35fa52c0 | 4247 | else |
9c60689e DWT |
4248 | lt_unset=false |
4249 | fi | |
4250 | ||
4251 | ||
4252 | ||
4253 | ||
4254 | ||
4255 | # test EBCDIC or ASCII | |
4256 | case `echo X|tr X '\101'` in | |
4257 | A) # ASCII based system | |
4258 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4259 | lt_SP2NL='tr \040 \012' | |
4260 | lt_NL2SP='tr \015\012 \040\040' | |
4261 | ;; | |
4262 | *) # EBCDIC based system | |
4263 | lt_SP2NL='tr \100 \n' | |
4264 | lt_NL2SP='tr \r\n \100\100' | |
4265 | ;; | |
35fa52c0 DWT |
4266 | esac |
4267 | ||
35fa52c0 | 4268 | |
35fa52c0 | 4269 | |
35fa52c0 | 4270 | |
35fa52c0 | 4271 | |
35fa52c0 | 4272 | |
35fa52c0 | 4273 | |
35fa52c0 | 4274 | |
9c60689e DWT |
4275 | |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4277 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4278 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4279 | $as_echo_n "(cached) " >&6 |
4280 | else | |
9c60689e | 4281 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4282 | fi |
9c60689e DWT |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4284 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4285 | reload_flag=$lt_cv_ld_reload_flag | |
4286 | case $reload_flag in | |
4287 | "" | " "*) ;; | |
4288 | *) reload_flag=" $reload_flag" ;; | |
4289 | esac | |
4290 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4291 | case $host_os in | |
4292 | darwin*) | |
4293 | if test "$GCC" = yes; then | |
4294 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4295 | else | |
4296 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4297 | fi | |
4298 | ;; | |
35fa52c0 | 4299 | esac |
35fa52c0 DWT |
4300 | |
4301 | ||
9c60689e DWT |
4302 | |
4303 | ||
4304 | ||
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | if test -n "$ac_tool_prefix"; then | |
4310 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4311 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4313 | $as_echo_n "checking for $ac_word... " >&6; } | |
4314 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4315 | $as_echo_n "(cached) " >&6 |
4316 | else | |
9c60689e DWT |
4317 | if test -n "$OBJDUMP"; then |
4318 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4319 | else |
9c60689e DWT |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4321 | for as_dir in $PATH | |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
4325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4327 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4329 | break 2 | |
35fa52c0 | 4330 | fi |
9c60689e DWT |
4331 | done |
4332 | done | |
4333 | IFS=$as_save_IFS | |
35fa52c0 | 4334 | |
35fa52c0 | 4335 | fi |
35fa52c0 | 4336 | fi |
9c60689e DWT |
4337 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4338 | if test -n "$OBJDUMP"; then | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4340 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4341 | else |
9c60689e DWT |
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4343 | $as_echo "no" >&6; } | |
35fa52c0 | 4344 | fi |
9c60689e DWT |
4345 | |
4346 | ||
4347 | fi | |
4348 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4349 | ac_ct_OBJDUMP=$OBJDUMP | |
4350 | # Extract the first word of "objdump", so it can be a program name with args. | |
4351 | set dummy objdump; ac_word=$2 | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4353 | $as_echo_n "checking for $ac_word... " >&6; } | |
4354 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4355 | $as_echo_n "(cached) " >&6 |
4356 | else | |
9c60689e DWT |
4357 | if test -n "$ac_ct_OBJDUMP"; then |
4358 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4359 | else |
9c60689e DWT |
4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4361 | for as_dir in $PATH | |
4362 | do | |
4363 | IFS=$as_save_IFS | |
4364 | test -z "$as_dir" && as_dir=. | |
4365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4367 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4369 | break 2 | |
4370 | fi | |
4371 | done | |
4372 | done | |
4373 | IFS=$as_save_IFS | |
4374 | ||
35fa52c0 DWT |
4375 | fi |
4376 | fi | |
9c60689e DWT |
4377 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4378 | if test -n "$ac_ct_OBJDUMP"; then | |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4380 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4381 | else |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4383 | $as_echo "no" >&6; } | |
4384 | fi | |
9c60689e DWT |
4385 | |
4386 | if test "x$ac_ct_OBJDUMP" = x; then | |
4387 | OBJDUMP="false" | |
4388 | else | |
4389 | case $cross_compiling:$ac_tool_warned in | |
4390 | yes:) | |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4392 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4393 | ac_tool_warned=yes ;; | |
35fa52c0 | 4394 | esac |
9c60689e DWT |
4395 | OBJDUMP=$ac_ct_OBJDUMP |
4396 | fi | |
4397 | else | |
4398 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4399 | fi |
35fa52c0 | 4400 | |
9c60689e | 4401 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4402 | |
4403 | ||
35fa52c0 | 4404 | |
35fa52c0 | 4405 | |
35fa52c0 DWT |
4406 | |
4407 | ||
4408 | ||
35fa52c0 DWT |
4409 | |
4410 | ||
9c60689e DWT |
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4412 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4413 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4414 | $as_echo_n "(cached) " >&6 | |
4415 | else | |
4416 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4417 | lt_cv_file_magic_test_file= | |
4418 | lt_cv_deplibs_check_method='unknown' | |
4419 | # Need to set the preceding variable on all platforms that support | |
4420 | # interlibrary dependencies. | |
4421 | # 'none' -- dependencies not supported. | |
4422 | # `unknown' -- same as none, but documents that we really don't know. | |
4423 | # 'pass_all' -- all dependencies passed with no checks. | |
4424 | # 'test_compile' -- check by making test program. | |
4425 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4426 | # which responds to the $file_magic_cmd with a given extended regex. | |
4427 | # If you have `file' or equivalent on your system and you're not sure | |
4428 | # whether `pass_all' will *always* work, you probably want this one. | |
4429 | ||
4430 | case $host_os in | |
4431 | aix[4-9]*) | |
4432 | lt_cv_deplibs_check_method=pass_all | |
4433 | ;; | |
35fa52c0 | 4434 | |
9c60689e DWT |
4435 | beos*) |
4436 | lt_cv_deplibs_check_method=pass_all | |
4437 | ;; | |
35fa52c0 | 4438 | |
9c60689e DWT |
4439 | bsdi[45]*) |
4440 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4441 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4442 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4443 | ;; | |
35fa52c0 | 4444 | |
9c60689e DWT |
4445 | cygwin*) |
4446 | # func_win32_libid is a shell function defined in ltmain.sh | |
4447 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4448 | lt_cv_file_magic_cmd='func_win32_libid' | |
4449 | ;; | |
35fa52c0 | 4450 | |
9c60689e DWT |
4451 | mingw* | pw32*) |
4452 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4453 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4454 | # unless we find 'file', for example because we are cross-compiling. | |
4455 | if ( file / ) >/dev/null 2>&1; then | |
4456 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4457 | lt_cv_file_magic_cmd='func_win32_libid' | |
4458 | else | |
4459 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4460 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4461 | fi | |
4462 | ;; | |
35fa52c0 | 4463 | |
9c60689e DWT |
4464 | cegcc) |
4465 | # use the weaker test based on 'objdump'. See mingw*. | |
4466 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4467 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4468 | ;; | |
35fa52c0 | 4469 | |
9c60689e DWT |
4470 | darwin* | rhapsody*) |
4471 | lt_cv_deplibs_check_method=pass_all | |
4472 | ;; | |
35fa52c0 | 4473 | |
9c60689e DWT |
4474 | freebsd* | dragonfly*) |
4475 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4476 | case $host_cpu in | |
4477 | i*86 ) | |
4478 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4479 | # Let's accept both of them until this is cleared up. | |
4480 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4481 | lt_cv_file_magic_cmd=/usr/bin/file | |
4482 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4483 | ;; | |
4484 | esac | |
4485 | else | |
4486 | lt_cv_deplibs_check_method=pass_all | |
4487 | fi | |
4488 | ;; | |
35fa52c0 | 4489 | |
9c60689e DWT |
4490 | gnu*) |
4491 | lt_cv_deplibs_check_method=pass_all | |
4492 | ;; | |
35fa52c0 | 4493 | |
9c60689e DWT |
4494 | hpux10.20* | hpux11*) |
4495 | lt_cv_file_magic_cmd=/usr/bin/file | |
4496 | case $host_cpu in | |
4497 | ia64*) | |
4498 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4499 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4500 | ;; | |
4501 | hppa*64*) | |
4502 | 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]' | |
4503 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4504 | ;; | |
4505 | *) | |
4506 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4507 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4508 | ;; | |
4509 | esac | |
4510 | ;; | |
35fa52c0 | 4511 | |
9c60689e DWT |
4512 | interix[3-9]*) |
4513 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4514 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4515 | ;; | |
35fa52c0 | 4516 | |
9c60689e DWT |
4517 | irix5* | irix6* | nonstopux*) |
4518 | case $LD in | |
4519 | *-32|*"-32 ") libmagic=32-bit;; | |
4520 | *-n32|*"-n32 ") libmagic=N32;; | |
4521 | *-64|*"-64 ") libmagic=64-bit;; | |
4522 | *) libmagic=never-match;; | |
4523 | esac | |
4524 | lt_cv_deplibs_check_method=pass_all | |
4525 | ;; | |
35fa52c0 | 4526 | |
9c60689e | 4527 | # This must be Linux ELF. |
1504c9b8 | 4528 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
4529 | lt_cv_deplibs_check_method=pass_all |
4530 | ;; | |
35fa52c0 | 4531 | |
1504c9b8 | 4532 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
4533 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4534 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4535 | else | |
4536 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4537 | fi | |
4538 | ;; | |
35fa52c0 | 4539 | |
9c60689e DWT |
4540 | newos6*) |
4541 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4542 | lt_cv_file_magic_cmd=/usr/bin/file | |
4543 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4544 | ;; | |
35fa52c0 | 4545 | |
9c60689e DWT |
4546 | *nto* | *qnx*) |
4547 | lt_cv_deplibs_check_method=pass_all | |
4548 | ;; | |
35fa52c0 | 4549 | |
9c60689e DWT |
4550 | openbsd*) |
4551 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4552 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4553 | else | |
4554 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4555 | fi | |
4556 | ;; | |
4557 | ||
4558 | osf3* | osf4* | osf5*) | |
4559 | lt_cv_deplibs_check_method=pass_all | |
4560 | ;; | |
4561 | ||
4562 | rdos*) | |
4563 | lt_cv_deplibs_check_method=pass_all | |
4564 | ;; | |
4565 | ||
4566 | solaris*) | |
4567 | lt_cv_deplibs_check_method=pass_all | |
4568 | ;; | |
4569 | ||
4570 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4571 | lt_cv_deplibs_check_method=pass_all | |
4572 | ;; | |
4573 | ||
4574 | sysv4 | sysv4.3*) | |
4575 | case $host_vendor in | |
4576 | motorola) | |
4577 | 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]' | |
4578 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4579 | ;; | |
4580 | ncr) | |
4581 | lt_cv_deplibs_check_method=pass_all | |
4582 | ;; | |
4583 | sequent) | |
4584 | lt_cv_file_magic_cmd='/bin/file' | |
4585 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4586 | ;; | |
4587 | sni) | |
4588 | lt_cv_file_magic_cmd='/bin/file' | |
4589 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4590 | lt_cv_file_magic_test_file=/lib/libc.so | |
4591 | ;; | |
4592 | siemens) | |
4593 | lt_cv_deplibs_check_method=pass_all | |
4594 | ;; | |
4595 | pc) | |
4596 | lt_cv_deplibs_check_method=pass_all | |
4597 | ;; | |
4598 | esac | |
4599 | ;; | |
4600 | ||
4601 | tpf*) | |
4602 | lt_cv_deplibs_check_method=pass_all | |
4603 | ;; | |
4604 | esac | |
35fa52c0 DWT |
4605 | |
4606 | fi | |
9c60689e DWT |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4608 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4609 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4610 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4611 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4612 | |
35fa52c0 | 4613 | |
35fa52c0 | 4614 | |
35fa52c0 | 4615 | |
35fa52c0 | 4616 | |
35fa52c0 | 4617 | |
35fa52c0 | 4618 | |
35fa52c0 | 4619 | |
35fa52c0 | 4620 | |
35fa52c0 | 4621 | |
35fa52c0 | 4622 | |
9c60689e DWT |
4623 | |
4624 | if test -n "$ac_tool_prefix"; then | |
4625 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4626 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4628 | $as_echo_n "checking for $ac_word... " >&6; } | |
4629 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4630 | $as_echo_n "(cached) " >&6 | |
4631 | else | |
4632 | if test -n "$AR"; then | |
4633 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4634 | else | |
4635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4636 | for as_dir in $PATH | |
4637 | do | |
4638 | IFS=$as_save_IFS | |
4639 | test -z "$as_dir" && as_dir=. | |
4640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4641 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4642 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4644 | break 2 | |
4645 | fi | |
4646 | done | |
35fa52c0 | 4647 | done |
9c60689e DWT |
4648 | IFS=$as_save_IFS |
4649 | ||
4650 | fi | |
4651 | fi | |
4652 | AR=$ac_cv_prog_AR | |
4653 | if test -n "$AR"; then | |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4655 | $as_echo "$AR" >&6; } | |
4656 | else | |
4657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4658 | $as_echo "no" >&6; } | |
4659 | fi | |
4660 | ||
4661 | ||
4662 | fi | |
4663 | if test -z "$ac_cv_prog_AR"; then | |
4664 | ac_ct_AR=$AR | |
4665 | # Extract the first word of "ar", so it can be a program name with args. | |
4666 | set dummy ar; ac_word=$2 | |
4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4668 | $as_echo_n "checking for $ac_word... " >&6; } | |
4669 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4670 | $as_echo_n "(cached) " >&6 | |
4671 | else | |
4672 | if test -n "$ac_ct_AR"; then | |
4673 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4674 | else | |
4675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4676 | for as_dir in $PATH | |
4677 | do | |
4678 | IFS=$as_save_IFS | |
4679 | test -z "$as_dir" && as_dir=. | |
4680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4682 | ac_cv_prog_ac_ct_AR="ar" | |
4683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4684 | break 2 | |
35fa52c0 | 4685 | fi |
9c60689e DWT |
4686 | done |
4687 | done | |
4688 | IFS=$as_save_IFS | |
4689 | ||
4690 | fi | |
4691 | fi | |
4692 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4693 | if test -n "$ac_ct_AR"; then | |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4695 | $as_echo "$ac_ct_AR" >&6; } | |
4696 | else | |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4698 | $as_echo "no" >&6; } | |
4699 | fi | |
4700 | ||
4701 | if test "x$ac_ct_AR" = x; then | |
4702 | AR="false" | |
4703 | else | |
4704 | case $cross_compiling:$ac_tool_warned in | |
4705 | yes:) | |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4707 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4708 | ac_tool_warned=yes ;; | |
4709 | esac | |
4710 | AR=$ac_ct_AR | |
4711 | fi | |
4712 | else | |
4713 | AR="$ac_cv_prog_AR" | |
4714 | fi | |
4715 | ||
4716 | test -z "$AR" && AR=ar | |
4717 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | ||
4725 | ||
4726 | ||
4727 | ||
4728 | ||
4729 | if test -n "$ac_tool_prefix"; then | |
4730 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4731 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4733 | $as_echo_n "checking for $ac_word... " >&6; } | |
4734 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4735 | $as_echo_n "(cached) " >&6 | |
4736 | else | |
4737 | if test -n "$STRIP"; then | |
4738 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4739 | else | |
4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4741 | for as_dir in $PATH | |
4742 | do | |
4743 | IFS=$as_save_IFS | |
4744 | test -z "$as_dir" && as_dir=. | |
4745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4747 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4749 | break 2 | |
35fa52c0 | 4750 | fi |
9c60689e DWT |
4751 | done |
4752 | done | |
4753 | IFS=$as_save_IFS | |
4754 | ||
4755 | fi | |
4756 | fi | |
4757 | STRIP=$ac_cv_prog_STRIP | |
4758 | if test -n "$STRIP"; then | |
4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4760 | $as_echo "$STRIP" >&6; } | |
4761 | else | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4763 | $as_echo "no" >&6; } | |
4764 | fi | |
4765 | ||
4766 | ||
4767 | fi | |
4768 | if test -z "$ac_cv_prog_STRIP"; then | |
4769 | ac_ct_STRIP=$STRIP | |
4770 | # Extract the first word of "strip", so it can be a program name with args. | |
4771 | set dummy strip; ac_word=$2 | |
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4773 | $as_echo_n "checking for $ac_word... " >&6; } | |
4774 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4775 | $as_echo_n "(cached) " >&6 | |
4776 | else | |
4777 | if test -n "$ac_ct_STRIP"; then | |
4778 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4779 | else | |
4780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4781 | for as_dir in $PATH | |
4782 | do | |
4783 | IFS=$as_save_IFS | |
4784 | test -z "$as_dir" && as_dir=. | |
4785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4787 | ac_cv_prog_ac_ct_STRIP="strip" | |
4788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4789 | break 2 | |
4790 | fi | |
4791 | done | |
4792 | done | |
4793 | IFS=$as_save_IFS | |
4794 | ||
4795 | fi | |
4796 | fi | |
4797 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4798 | if test -n "$ac_ct_STRIP"; then | |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4800 | $as_echo "$ac_ct_STRIP" >&6; } | |
4801 | else | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4803 | $as_echo "no" >&6; } | |
4804 | fi | |
4805 | ||
4806 | if test "x$ac_ct_STRIP" = x; then | |
4807 | STRIP=":" | |
4808 | else | |
4809 | case $cross_compiling:$ac_tool_warned in | |
4810 | yes:) | |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4812 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4813 | ac_tool_warned=yes ;; | |
4814 | esac | |
4815 | STRIP=$ac_ct_STRIP | |
4816 | fi | |
4817 | else | |
4818 | STRIP="$ac_cv_prog_STRIP" | |
4819 | fi | |
4820 | ||
4821 | test -z "$STRIP" && STRIP=: | |
4822 | ||
4823 | ||
4824 | ||
4825 | ||
4826 | ||
4827 | ||
4828 | if test -n "$ac_tool_prefix"; then | |
4829 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4830 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4832 | $as_echo_n "checking for $ac_word... " >&6; } | |
4833 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4834 | $as_echo_n "(cached) " >&6 | |
4835 | else | |
4836 | if test -n "$RANLIB"; then | |
4837 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4838 | else | |
4839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4840 | for as_dir in $PATH | |
4841 | do | |
4842 | IFS=$as_save_IFS | |
4843 | test -z "$as_dir" && as_dir=. | |
4844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4846 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4848 | break 2 | |
4849 | fi | |
4850 | done | |
4851 | done | |
4852 | IFS=$as_save_IFS | |
4853 | ||
4854 | fi | |
4855 | fi | |
4856 | RANLIB=$ac_cv_prog_RANLIB | |
4857 | if test -n "$RANLIB"; then | |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4859 | $as_echo "$RANLIB" >&6; } | |
4860 | else | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4862 | $as_echo "no" >&6; } | |
4863 | fi | |
4864 | ||
4865 | ||
4866 | fi | |
4867 | if test -z "$ac_cv_prog_RANLIB"; then | |
4868 | ac_ct_RANLIB=$RANLIB | |
4869 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4870 | set dummy ranlib; ac_word=$2 | |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4872 | $as_echo_n "checking for $ac_word... " >&6; } | |
4873 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4874 | $as_echo_n "(cached) " >&6 | |
4875 | else | |
4876 | if test -n "$ac_ct_RANLIB"; then | |
4877 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4878 | else | |
4879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4880 | for as_dir in $PATH | |
4881 | do | |
4882 | IFS=$as_save_IFS | |
4883 | test -z "$as_dir" && as_dir=. | |
4884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4886 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4888 | break 2 | |
4889 | fi | |
4890 | done | |
4891 | done | |
4892 | IFS=$as_save_IFS | |
4893 | ||
4894 | fi | |
4895 | fi | |
4896 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4897 | if test -n "$ac_ct_RANLIB"; then | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4899 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4900 | else | |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4902 | $as_echo "no" >&6; } | |
4903 | fi | |
4904 | ||
4905 | if test "x$ac_ct_RANLIB" = x; then | |
4906 | RANLIB=":" | |
4907 | else | |
4908 | case $cross_compiling:$ac_tool_warned in | |
4909 | yes:) | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4911 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4912 | ac_tool_warned=yes ;; | |
4913 | esac | |
4914 | RANLIB=$ac_ct_RANLIB | |
4915 | fi | |
4916 | else | |
4917 | RANLIB="$ac_cv_prog_RANLIB" | |
4918 | fi | |
4919 | ||
4920 | test -z "$RANLIB" && RANLIB=: | |
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
4926 | ||
4927 | # Determine commands to create old-style static archives. | |
4928 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4929 | old_postinstall_cmds='chmod 644 $oldlib' | |
4930 | old_postuninstall_cmds= | |
4931 | ||
4932 | if test -n "$RANLIB"; then | |
4933 | case $host_os in | |
4934 | openbsd*) | |
4935 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4936 | ;; | |
4937 | *) | |
4938 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4939 | ;; | |
4940 | esac | |
4941 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4942 | fi | |
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | # If no C compiler was specified, use CC. | |
4978 | LTCC=${LTCC-"$CC"} | |
4979 | ||
4980 | # If no C compiler flags were specified, use CFLAGS. | |
4981 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4982 | ||
4983 | # Allow CC to be a program name with arguments. | |
4984 | compiler=$CC | |
4985 | ||
4986 | ||
4987 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4989 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4990 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4991 | $as_echo_n "(cached) " >&6 | |
4992 | else | |
4993 | ||
4994 | # These are sane defaults that work on at least a few old systems. | |
4995 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4996 | ||
4997 | # Character class describing NM global symbol codes. | |
4998 | symcode='[BCDEGRST]' | |
4999 | ||
5000 | # Regexp to match symbols that can be accessed directly from C. | |
5001 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5002 | ||
5003 | # Define system-specific variables. | |
5004 | case $host_os in | |
5005 | aix*) | |
5006 | symcode='[BCDT]' | |
5007 | ;; | |
5008 | cygwin* | mingw* | pw32* | cegcc*) | |
5009 | symcode='[ABCDGISTW]' | |
5010 | ;; | |
5011 | hpux*) | |
5012 | if test "$host_cpu" = ia64; then | |
5013 | symcode='[ABCDEGRST]' | |
5014 | fi | |
5015 | ;; | |
5016 | irix* | nonstopux*) | |
5017 | symcode='[BCDEGRST]' | |
5018 | ;; | |
5019 | osf*) | |
5020 | symcode='[BCDEGQRST]' | |
5021 | ;; | |
5022 | solaris*) | |
5023 | symcode='[BDRT]' | |
5024 | ;; | |
5025 | sco3.2v5*) | |
5026 | symcode='[DT]' | |
5027 | ;; | |
5028 | sysv4.2uw2*) | |
5029 | symcode='[DT]' | |
5030 | ;; | |
5031 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5032 | symcode='[ABDT]' | |
5033 | ;; | |
5034 | sysv4) | |
5035 | symcode='[DFNSTU]' | |
5036 | ;; | |
5037 | esac | |
5038 | ||
5039 | # If we're using GNU nm, then use its standard symbol codes. | |
5040 | case `$NM -V 2>&1` in | |
5041 | *GNU* | *'with BFD'*) | |
5042 | symcode='[ABCDGIRSTW]' ;; | |
5043 | esac | |
5044 | ||
5045 | # Transform an extracted symbol line into a proper C declaration. | |
5046 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5047 | # so use this general approach. | |
5048 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5049 | ||
5050 | # Transform an extracted symbol line into symbol name and symbol address | |
5051 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5052 | 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'" | |
5053 | ||
5054 | # Handle CRLF in mingw tool chain | |
5055 | opt_cr= | |
5056 | case $build_os in | |
5057 | mingw*) | |
5058 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5059 | ;; | |
5060 | esac | |
5061 | ||
5062 | # Try without a prefix underscore, then with it. | |
5063 | for ac_symprfx in "" "_"; do | |
5064 | ||
5065 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5066 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5067 | ||
5068 | # Write the raw and C identifiers. | |
5069 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5070 | # Fake it for dumpbin and say T for any non-static function | |
5071 | # and D for any global variable. | |
5072 | # Also find C++ and __fastcall symbols from MSVC++, | |
5073 | # which start with @ or ?. | |
5074 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5075 | " {last_section=section; section=\$ 3};"\ | |
5076 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5077 | " \$ 0!~/External *\|/{next};"\ | |
5078 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5079 | " {if(hide[section]) next};"\ | |
5080 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5081 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5082 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5083 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5084 | " ' prfx=^$ac_symprfx" | |
5085 | else | |
5086 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5087 | fi | |
5088 | ||
5089 | # Check to see that the pipe works correctly. | |
5090 | pipe_works=no | |
5091 | ||
5092 | rm -f conftest* | |
5093 | cat > conftest.$ac_ext <<_LT_EOF | |
5094 | #ifdef __cplusplus | |
5095 | extern "C" { | |
5096 | #endif | |
5097 | char nm_test_var; | |
5098 | void nm_test_func(void); | |
5099 | void nm_test_func(void){} | |
5100 | #ifdef __cplusplus | |
5101 | } | |
5102 | #endif | |
5103 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5104 | _LT_EOF | |
5105 | ||
5106 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5107 | (eval $ac_compile) 2>&5 | |
5108 | ac_status=$? | |
5109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5110 | test $ac_status = 0; }; then | |
5111 | # Now try to grab the symbols. | |
5112 | nlist=conftest.nm | |
5113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5114 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5115 | ac_status=$? | |
5116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5117 | test $ac_status = 0; } && test -s "$nlist"; then | |
5118 | # Try sorting and uniquifying the output. | |
5119 | if sort "$nlist" | uniq > "$nlist"T; then | |
5120 | mv -f "$nlist"T "$nlist" | |
5121 | else | |
5122 | rm -f "$nlist"T | |
5123 | fi | |
5124 | ||
5125 | # Make sure that we snagged all the symbols we need. | |
5126 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5127 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5128 | cat <<_LT_EOF > conftest.$ac_ext | |
5129 | #ifdef __cplusplus | |
5130 | extern "C" { | |
5131 | #endif | |
5132 | ||
5133 | _LT_EOF | |
5134 | # Now generate the symbol file. | |
5135 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5136 | ||
5137 | cat <<_LT_EOF >> conftest.$ac_ext | |
5138 | ||
5139 | /* The mapping between symbol names and symbols. */ | |
5140 | const struct { | |
5141 | const char *name; | |
5142 | void *address; | |
5143 | } | |
5144 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5145 | { | |
5146 | { "@PROGRAM@", (void *) 0 }, | |
5147 | _LT_EOF | |
5148 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5149 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5150 | {0, (void *) 0} | |
5151 | }; | |
5152 | ||
5153 | /* This works around a problem in FreeBSD linker */ | |
5154 | #ifdef FREEBSD_WORKAROUND | |
5155 | static const void *lt_preloaded_setup() { | |
5156 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5157 | } | |
5158 | #endif | |
5159 | ||
5160 | #ifdef __cplusplus | |
5161 | } | |
5162 | #endif | |
5163 | _LT_EOF | |
5164 | # Now try linking the two files. | |
5165 | mv conftest.$ac_objext conftstm.$ac_objext | |
5166 | lt_save_LIBS="$LIBS" | |
5167 | lt_save_CFLAGS="$CFLAGS" | |
5168 | LIBS="conftstm.$ac_objext" | |
5169 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5171 | (eval $ac_link) 2>&5 | |
5172 | ac_status=$? | |
5173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5174 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5175 | pipe_works=yes | |
5176 | fi | |
5177 | LIBS="$lt_save_LIBS" | |
5178 | CFLAGS="$lt_save_CFLAGS" | |
5179 | else | |
5180 | echo "cannot find nm_test_func in $nlist" >&5 | |
5181 | fi | |
5182 | else | |
5183 | echo "cannot find nm_test_var in $nlist" >&5 | |
5184 | fi | |
5185 | else | |
5186 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5187 | fi | |
5188 | else | |
5189 | echo "$progname: failed program was:" >&5 | |
5190 | cat conftest.$ac_ext >&5 | |
5191 | fi | |
5192 | rm -rf conftest* conftst* | |
5193 | ||
5194 | # Do not use the global_symbol_pipe unless it works. | |
5195 | if test "$pipe_works" = yes; then | |
5196 | break | |
5197 | else | |
5198 | lt_cv_sys_global_symbol_pipe= | |
5199 | fi | |
5200 | done | |
5201 | ||
5202 | fi | |
5203 | ||
5204 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5205 | lt_cv_sys_global_symbol_to_cdecl= | |
5206 | fi | |
5207 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5209 | $as_echo "failed" >&6; } | |
5210 | else | |
5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5212 | $as_echo "ok" >&6; } | |
5213 | fi | |
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | # Check whether --enable-libtool-lock was given. | |
5238 | if test "${enable_libtool_lock+set}" = set; then : | |
5239 | enableval=$enable_libtool_lock; | |
5240 | fi | |
5241 | ||
5242 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5243 | ||
5244 | # Some flags need to be propagated to the compiler or linker for good | |
5245 | # libtool support. | |
5246 | case $host in | |
5247 | ia64-*-hpux*) | |
5248 | # Find out which ABI we are using. | |
5249 | echo 'int i;' > conftest.$ac_ext | |
5250 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5251 | (eval $ac_compile) 2>&5 | |
5252 | ac_status=$? | |
5253 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5254 | test $ac_status = 0; }; then | |
5255 | case `/usr/bin/file conftest.$ac_objext` in | |
5256 | *ELF-32*) | |
5257 | HPUX_IA64_MODE="32" | |
5258 | ;; | |
5259 | *ELF-64*) | |
5260 | HPUX_IA64_MODE="64" | |
5261 | ;; | |
5262 | esac | |
5263 | fi | |
5264 | rm -rf conftest* | |
5265 | ;; | |
5266 | *-*-irix6*) | |
5267 | # Find out which ABI we are using. | |
794e88e7 | 5268 | echo '#line 5267 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5270 | (eval $ac_compile) 2>&5 | |
5271 | ac_status=$? | |
5272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5273 | test $ac_status = 0; }; then | |
5274 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5275 | case `/usr/bin/file conftest.$ac_objext` in | |
5276 | *32-bit*) | |
5277 | LD="${LD-ld} -melf32bsmip" | |
5278 | ;; | |
5279 | *N32*) | |
5280 | LD="${LD-ld} -melf32bmipn32" | |
5281 | ;; | |
5282 | *64-bit*) | |
5283 | LD="${LD-ld} -melf64bmip" | |
5284 | ;; | |
5285 | esac | |
5286 | else | |
5287 | case `/usr/bin/file conftest.$ac_objext` in | |
5288 | *32-bit*) | |
5289 | LD="${LD-ld} -32" | |
5290 | ;; | |
5291 | *N32*) | |
5292 | LD="${LD-ld} -n32" | |
5293 | ;; | |
5294 | *64-bit*) | |
5295 | LD="${LD-ld} -64" | |
5296 | ;; | |
5297 | esac | |
5298 | fi | |
5299 | fi | |
5300 | rm -rf conftest* | |
5301 | ;; | |
5302 | ||
5303 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5304 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5305 | # Find out which ABI we are using. | |
5306 | echo 'int i;' > conftest.$ac_ext | |
5307 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5308 | (eval $ac_compile) 2>&5 | |
5309 | ac_status=$? | |
5310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5311 | test $ac_status = 0; }; then | |
5312 | case `/usr/bin/file conftest.o` in | |
5313 | *32-bit*) | |
5314 | case $host in | |
5315 | x86_64-*kfreebsd*-gnu) | |
5316 | LD="${LD-ld} -m elf_i386_fbsd" | |
5317 | ;; | |
5318 | x86_64-*linux*) | |
5319 | LD="${LD-ld} -m elf_i386" | |
5320 | ;; | |
5321 | ppc64-*linux*|powerpc64-*linux*) | |
5322 | LD="${LD-ld} -m elf32ppclinux" | |
5323 | ;; | |
5324 | s390x-*linux*) | |
5325 | LD="${LD-ld} -m elf_s390" | |
5326 | ;; | |
5327 | sparc64-*linux*) | |
5328 | LD="${LD-ld} -m elf32_sparc" | |
5329 | ;; | |
5330 | esac | |
5331 | ;; | |
5332 | *64-bit*) | |
5333 | case $host in | |
5334 | x86_64-*kfreebsd*-gnu) | |
5335 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5336 | ;; | |
5337 | x86_64-*linux*) | |
5338 | LD="${LD-ld} -m elf_x86_64" | |
5339 | ;; | |
5340 | ppc*-*linux*|powerpc*-*linux*) | |
5341 | LD="${LD-ld} -m elf64ppc" | |
5342 | ;; | |
5343 | s390*-*linux*|s390*-*tpf*) | |
5344 | LD="${LD-ld} -m elf64_s390" | |
5345 | ;; | |
5346 | sparc*-*linux*) | |
5347 | LD="${LD-ld} -m elf64_sparc" | |
5348 | ;; | |
5349 | esac | |
5350 | ;; | |
5351 | esac | |
5352 | fi | |
5353 | rm -rf conftest* | |
5354 | ;; | |
5355 | ||
5356 | *-*-sco3.2v5*) | |
5357 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5358 | SAVE_CFLAGS="$CFLAGS" | |
5359 | CFLAGS="$CFLAGS -belf" | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5361 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5362 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5363 | $as_echo_n "(cached) " >&6 | |
5364 | else | |
5365 | ac_ext=c | |
5366 | ac_cpp='$CPP $CPPFLAGS' | |
5367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5370 | ||
5371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5372 | /* end confdefs.h. */ | |
5373 | ||
5374 | int | |
5375 | main () | |
5376 | { | |
5377 | ||
5378 | ; | |
5379 | return 0; | |
5380 | } | |
5381 | _ACEOF | |
5382 | if ac_fn_c_try_link "$LINENO"; then : | |
5383 | lt_cv_cc_needs_belf=yes | |
5384 | else | |
5385 | lt_cv_cc_needs_belf=no | |
5386 | fi | |
5387 | rm -f core conftest.err conftest.$ac_objext \ | |
5388 | conftest$ac_exeext conftest.$ac_ext | |
5389 | ac_ext=c | |
5390 | ac_cpp='$CPP $CPPFLAGS' | |
5391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5394 | ||
5395 | fi | |
5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5397 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5398 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5399 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5400 | CFLAGS="$SAVE_CFLAGS" | |
5401 | fi | |
5402 | ;; | |
5403 | sparc*-*solaris*) | |
5404 | # Find out which ABI we are using. | |
5405 | echo 'int i;' > conftest.$ac_ext | |
5406 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5407 | (eval $ac_compile) 2>&5 | |
5408 | ac_status=$? | |
5409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5410 | test $ac_status = 0; }; then | |
5411 | case `/usr/bin/file conftest.o` in | |
5412 | *64-bit*) | |
5413 | case $lt_cv_prog_gnu_ld in | |
5414 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5415 | *) | |
5416 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5417 | LD="${LD-ld} -64" | |
5418 | fi | |
5419 | ;; | |
5420 | esac | |
5421 | ;; | |
5422 | esac | |
5423 | fi | |
5424 | rm -rf conftest* | |
5425 | ;; | |
5426 | esac | |
5427 | ||
5428 | need_locks="$enable_libtool_lock" | |
5429 | ||
5430 | ||
5431 | case $host_os in | |
5432 | rhapsody* | darwin*) | |
5433 | if test -n "$ac_tool_prefix"; then | |
5434 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5435 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5437 | $as_echo_n "checking for $ac_word... " >&6; } | |
5438 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5439 | $as_echo_n "(cached) " >&6 | |
5440 | else | |
5441 | if test -n "$DSYMUTIL"; then | |
5442 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5443 | else | |
5444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5445 | for as_dir in $PATH | |
5446 | do | |
5447 | IFS=$as_save_IFS | |
5448 | test -z "$as_dir" && as_dir=. | |
5449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5451 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5453 | break 2 | |
5454 | fi | |
5455 | done | |
5456 | done | |
5457 | IFS=$as_save_IFS | |
5458 | ||
5459 | fi | |
5460 | fi | |
5461 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5462 | if test -n "$DSYMUTIL"; then | |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5464 | $as_echo "$DSYMUTIL" >&6; } | |
5465 | else | |
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5467 | $as_echo "no" >&6; } | |
5468 | fi | |
5469 | ||
5470 | ||
5471 | fi | |
5472 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5473 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5474 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5475 | set dummy dsymutil; ac_word=$2 | |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5477 | $as_echo_n "checking for $ac_word... " >&6; } | |
5478 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5479 | $as_echo_n "(cached) " >&6 | |
5480 | else | |
5481 | if test -n "$ac_ct_DSYMUTIL"; then | |
5482 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5483 | else | |
5484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5485 | for as_dir in $PATH | |
5486 | do | |
5487 | IFS=$as_save_IFS | |
5488 | test -z "$as_dir" && as_dir=. | |
5489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5491 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5493 | break 2 | |
5494 | fi | |
5495 | done | |
5496 | done | |
5497 | IFS=$as_save_IFS | |
5498 | ||
5499 | fi | |
5500 | fi | |
5501 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5502 | if test -n "$ac_ct_DSYMUTIL"; then | |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5504 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5505 | else | |
5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5507 | $as_echo "no" >&6; } | |
5508 | fi | |
5509 | ||
5510 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5511 | DSYMUTIL=":" | |
5512 | else | |
5513 | case $cross_compiling:$ac_tool_warned in | |
5514 | yes:) | |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5516 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5517 | ac_tool_warned=yes ;; | |
5518 | esac | |
5519 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5520 | fi | |
5521 | else | |
5522 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5523 | fi | |
5524 | ||
5525 | if test -n "$ac_tool_prefix"; then | |
5526 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5527 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5529 | $as_echo_n "checking for $ac_word... " >&6; } | |
5530 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5531 | $as_echo_n "(cached) " >&6 | |
5532 | else | |
5533 | if test -n "$NMEDIT"; then | |
5534 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5535 | else | |
5536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5537 | for as_dir in $PATH | |
5538 | do | |
5539 | IFS=$as_save_IFS | |
5540 | test -z "$as_dir" && as_dir=. | |
5541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5543 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5545 | break 2 | |
5546 | fi | |
5547 | done | |
5548 | done | |
5549 | IFS=$as_save_IFS | |
5550 | ||
5551 | fi | |
5552 | fi | |
5553 | NMEDIT=$ac_cv_prog_NMEDIT | |
5554 | if test -n "$NMEDIT"; then | |
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5556 | $as_echo "$NMEDIT" >&6; } | |
5557 | else | |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5559 | $as_echo "no" >&6; } | |
5560 | fi | |
5561 | ||
5562 | ||
5563 | fi | |
5564 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5565 | ac_ct_NMEDIT=$NMEDIT | |
5566 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5567 | set dummy nmedit; ac_word=$2 | |
5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5569 | $as_echo_n "checking for $ac_word... " >&6; } | |
5570 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5571 | $as_echo_n "(cached) " >&6 | |
5572 | else | |
5573 | if test -n "$ac_ct_NMEDIT"; then | |
5574 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5575 | else | |
5576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5577 | for as_dir in $PATH | |
5578 | do | |
5579 | IFS=$as_save_IFS | |
5580 | test -z "$as_dir" && as_dir=. | |
5581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5583 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5585 | break 2 | |
5586 | fi | |
5587 | done | |
5588 | done | |
5589 | IFS=$as_save_IFS | |
5590 | ||
5591 | fi | |
5592 | fi | |
5593 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5594 | if test -n "$ac_ct_NMEDIT"; then | |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5596 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5597 | else | |
5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5599 | $as_echo "no" >&6; } | |
5600 | fi | |
5601 | ||
5602 | if test "x$ac_ct_NMEDIT" = x; then | |
5603 | NMEDIT=":" | |
5604 | else | |
5605 | case $cross_compiling:$ac_tool_warned in | |
5606 | yes:) | |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5608 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5609 | ac_tool_warned=yes ;; | |
5610 | esac | |
5611 | NMEDIT=$ac_ct_NMEDIT | |
5612 | fi | |
5613 | else | |
5614 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5615 | fi | |
5616 | ||
5617 | if test -n "$ac_tool_prefix"; then | |
5618 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5619 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5621 | $as_echo_n "checking for $ac_word... " >&6; } | |
5622 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5623 | $as_echo_n "(cached) " >&6 | |
5624 | else | |
5625 | if test -n "$LIPO"; then | |
5626 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5627 | else | |
5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5629 | for as_dir in $PATH | |
5630 | do | |
5631 | IFS=$as_save_IFS | |
5632 | test -z "$as_dir" && as_dir=. | |
5633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5635 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5637 | break 2 | |
5638 | fi | |
5639 | done | |
5640 | done | |
5641 | IFS=$as_save_IFS | |
5642 | ||
5643 | fi | |
5644 | fi | |
5645 | LIPO=$ac_cv_prog_LIPO | |
5646 | if test -n "$LIPO"; then | |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5648 | $as_echo "$LIPO" >&6; } | |
5649 | else | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5651 | $as_echo "no" >&6; } | |
5652 | fi | |
5653 | ||
5654 | ||
5655 | fi | |
5656 | if test -z "$ac_cv_prog_LIPO"; then | |
5657 | ac_ct_LIPO=$LIPO | |
5658 | # Extract the first word of "lipo", so it can be a program name with args. | |
5659 | set dummy lipo; ac_word=$2 | |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5661 | $as_echo_n "checking for $ac_word... " >&6; } | |
5662 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5663 | $as_echo_n "(cached) " >&6 | |
5664 | else | |
5665 | if test -n "$ac_ct_LIPO"; then | |
5666 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5667 | else | |
5668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5669 | for as_dir in $PATH | |
5670 | do | |
5671 | IFS=$as_save_IFS | |
5672 | test -z "$as_dir" && as_dir=. | |
5673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5675 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5676 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5677 | break 2 | |
5678 | fi | |
5679 | done | |
5680 | done | |
5681 | IFS=$as_save_IFS | |
5682 | ||
5683 | fi | |
5684 | fi | |
5685 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5686 | if test -n "$ac_ct_LIPO"; then | |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5688 | $as_echo "$ac_ct_LIPO" >&6; } | |
5689 | else | |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5691 | $as_echo "no" >&6; } | |
5692 | fi | |
5693 | ||
5694 | if test "x$ac_ct_LIPO" = x; then | |
5695 | LIPO=":" | |
5696 | else | |
5697 | case $cross_compiling:$ac_tool_warned in | |
5698 | yes:) | |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5700 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5701 | ac_tool_warned=yes ;; | |
5702 | esac | |
5703 | LIPO=$ac_ct_LIPO | |
5704 | fi | |
5705 | else | |
5706 | LIPO="$ac_cv_prog_LIPO" | |
5707 | fi | |
5708 | ||
5709 | if test -n "$ac_tool_prefix"; then | |
5710 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5711 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5713 | $as_echo_n "checking for $ac_word... " >&6; } | |
5714 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5715 | $as_echo_n "(cached) " >&6 | |
5716 | else | |
5717 | if test -n "$OTOOL"; then | |
5718 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5719 | else | |
5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5721 | for as_dir in $PATH | |
5722 | do | |
5723 | IFS=$as_save_IFS | |
5724 | test -z "$as_dir" && as_dir=. | |
5725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5727 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5729 | break 2 | |
5730 | fi | |
5731 | done | |
5732 | done | |
5733 | IFS=$as_save_IFS | |
5734 | ||
5735 | fi | |
5736 | fi | |
5737 | OTOOL=$ac_cv_prog_OTOOL | |
5738 | if test -n "$OTOOL"; then | |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5740 | $as_echo "$OTOOL" >&6; } | |
5741 | else | |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5743 | $as_echo "no" >&6; } | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | fi | |
5748 | if test -z "$ac_cv_prog_OTOOL"; then | |
5749 | ac_ct_OTOOL=$OTOOL | |
5750 | # Extract the first word of "otool", so it can be a program name with args. | |
5751 | set dummy otool; ac_word=$2 | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5753 | $as_echo_n "checking for $ac_word... " >&6; } | |
5754 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5755 | $as_echo_n "(cached) " >&6 | |
5756 | else | |
5757 | if test -n "$ac_ct_OTOOL"; then | |
5758 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5759 | else | |
5760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 | for as_dir in $PATH | |
5762 | do | |
5763 | IFS=$as_save_IFS | |
5764 | test -z "$as_dir" && as_dir=. | |
5765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5767 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5769 | break 2 | |
5770 | fi | |
5771 | done | |
5772 | done | |
5773 | IFS=$as_save_IFS | |
5774 | ||
5775 | fi | |
5776 | fi | |
5777 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5778 | if test -n "$ac_ct_OTOOL"; then | |
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5780 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5781 | else | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5783 | $as_echo "no" >&6; } | |
5784 | fi | |
5785 | ||
5786 | if test "x$ac_ct_OTOOL" = x; then | |
5787 | OTOOL=":" | |
5788 | else | |
5789 | case $cross_compiling:$ac_tool_warned in | |
5790 | yes:) | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5792 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5793 | ac_tool_warned=yes ;; | |
5794 | esac | |
5795 | OTOOL=$ac_ct_OTOOL | |
5796 | fi | |
5797 | else | |
5798 | OTOOL="$ac_cv_prog_OTOOL" | |
5799 | fi | |
5800 | ||
5801 | if test -n "$ac_tool_prefix"; then | |
5802 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5803 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5805 | $as_echo_n "checking for $ac_word... " >&6; } | |
5806 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | if test -n "$OTOOL64"; then | |
5810 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5811 | else | |
5812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5813 | for as_dir in $PATH | |
5814 | do | |
5815 | IFS=$as_save_IFS | |
5816 | test -z "$as_dir" && as_dir=. | |
5817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5819 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5821 | break 2 | |
5822 | fi | |
5823 | done | |
5824 | done | |
5825 | IFS=$as_save_IFS | |
5826 | ||
5827 | fi | |
5828 | fi | |
5829 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5830 | if test -n "$OTOOL64"; then | |
5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5832 | $as_echo "$OTOOL64" >&6; } | |
5833 | else | |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5835 | $as_echo "no" >&6; } | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | fi | |
5840 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5841 | ac_ct_OTOOL64=$OTOOL64 | |
5842 | # Extract the first word of "otool64", so it can be a program name with args. | |
5843 | set dummy otool64; ac_word=$2 | |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5845 | $as_echo_n "checking for $ac_word... " >&6; } | |
5846 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5847 | $as_echo_n "(cached) " >&6 | |
5848 | else | |
5849 | if test -n "$ac_ct_OTOOL64"; then | |
5850 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5851 | else | |
5852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5853 | for as_dir in $PATH | |
5854 | do | |
5855 | IFS=$as_save_IFS | |
5856 | test -z "$as_dir" && as_dir=. | |
5857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5859 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5861 | break 2 | |
5862 | fi | |
5863 | done | |
5864 | done | |
5865 | IFS=$as_save_IFS | |
5866 | ||
5867 | fi | |
5868 | fi | |
5869 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5870 | if test -n "$ac_ct_OTOOL64"; then | |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5872 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5873 | else | |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5875 | $as_echo "no" >&6; } | |
5876 | fi | |
5877 | ||
5878 | if test "x$ac_ct_OTOOL64" = x; then | |
5879 | OTOOL64=":" | |
5880 | else | |
5881 | case $cross_compiling:$ac_tool_warned in | |
5882 | yes:) | |
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5885 | ac_tool_warned=yes ;; | |
5886 | esac | |
5887 | OTOOL64=$ac_ct_OTOOL64 | |
5888 | fi | |
5889 | else | |
5890 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5891 | fi | |
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | ||
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5920 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5921 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5922 | $as_echo_n "(cached) " >&6 | |
5923 | else | |
5924 | lt_cv_apple_cc_single_mod=no | |
5925 | if test -z "${LT_MULTI_MODULE}"; then | |
5926 | # By default we will add the -single_module flag. You can override | |
5927 | # by either setting the environment variable LT_MULTI_MODULE | |
5928 | # non-empty at configure time, or by adding -multi_module to the | |
5929 | # link flags. | |
5930 | rm -rf libconftest.dylib* | |
5931 | echo "int foo(void){return 1;}" > conftest.c | |
5932 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5933 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5934 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5935 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5936 | _lt_result=$? | |
5937 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5938 | lt_cv_apple_cc_single_mod=yes | |
5939 | else | |
5940 | cat conftest.err >&5 | |
5941 | fi | |
5942 | rm -rf libconftest.dylib* | |
5943 | rm -f conftest.* | |
5944 | fi | |
5945 | fi | |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5947 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5949 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5950 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5951 | $as_echo_n "(cached) " >&6 | |
5952 | else | |
5953 | lt_cv_ld_exported_symbols_list=no | |
5954 | save_LDFLAGS=$LDFLAGS | |
5955 | echo "_main" > conftest.sym | |
5956 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5958 | /* end confdefs.h. */ | |
5959 | ||
5960 | int | |
5961 | main () | |
5962 | { | |
5963 | ||
5964 | ; | |
5965 | return 0; | |
5966 | } | |
5967 | _ACEOF | |
5968 | if ac_fn_c_try_link "$LINENO"; then : | |
5969 | lt_cv_ld_exported_symbols_list=yes | |
5970 | else | |
5971 | lt_cv_ld_exported_symbols_list=no | |
5972 | fi | |
5973 | rm -f core conftest.err conftest.$ac_objext \ | |
5974 | conftest$ac_exeext conftest.$ac_ext | |
5975 | LDFLAGS="$save_LDFLAGS" | |
5976 | ||
5977 | fi | |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5979 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5980 | case $host_os in | |
5981 | rhapsody* | darwin1.[012]) | |
5982 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5983 | darwin1.*) | |
5984 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5985 | darwin*) # darwin 5.x on | |
5986 | # if running on 10.5 or later, the deployment target defaults | |
5987 | # to the OS version, if on x86, and 10.4, the deployment | |
5988 | # target defaults to 10.4. Don't you love it? | |
5989 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5990 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5991 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5992 | 10.[012]*) | |
5993 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5994 | 10.*) | |
5995 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5996 | esac | |
5997 | ;; | |
5998 | esac | |
5999 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6000 | _lt_dar_single_mod='$single_module' | |
6001 | fi | |
6002 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6003 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6004 | else | |
6005 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6006 | fi | |
6007 | if test "$DSYMUTIL" != ":"; then | |
6008 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6009 | else | |
6010 | _lt_dsymutil= | |
6011 | fi | |
6012 | ;; | |
6013 | esac | |
6014 | ||
6015 | ac_ext=c | |
6016 | ac_cpp='$CPP $CPPFLAGS' | |
6017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6021 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6022 | # On Suns, sometimes $CPP names a directory. | |
6023 | if test -n "$CPP" && test -d "$CPP"; then | |
6024 | CPP= | |
6025 | fi | |
6026 | if test -z "$CPP"; then | |
6027 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6028 | $as_echo_n "(cached) " >&6 | |
6029 | else | |
6030 | # Double quotes because CPP needs to be expanded | |
6031 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6032 | do | |
6033 | ac_preproc_ok=false | |
6034 | for ac_c_preproc_warn_flag in '' yes | |
6035 | do | |
6036 | # Use a header file that comes with gcc, so configuring glibc | |
6037 | # with a fresh cross-compiler works. | |
6038 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6039 | # <limits.h> exists even on freestanding compilers. | |
6040 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6041 | # not just through cpp. "Syntax error" is here to catch this case. | |
6042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6043 | /* end confdefs.h. */ | |
6044 | #ifdef __STDC__ | |
6045 | # include <limits.h> | |
6046 | #else | |
6047 | # include <assert.h> | |
6048 | #endif | |
6049 | Syntax error | |
6050 | _ACEOF | |
6051 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6052 | ||
6053 | else | |
6054 | # Broken: fails on valid input. | |
6055 | continue | |
6056 | fi | |
6057 | rm -f conftest.err conftest.$ac_ext | |
6058 | ||
6059 | # OK, works on sane cases. Now check whether nonexistent headers | |
6060 | # can be detected and how. | |
6061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6062 | /* end confdefs.h. */ | |
6063 | #include <ac_nonexistent.h> | |
6064 | _ACEOF | |
6065 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6066 | # Broken: success on invalid input. | |
6067 | continue | |
6068 | else | |
6069 | # Passes both tests. | |
6070 | ac_preproc_ok=: | |
6071 | break | |
6072 | fi | |
6073 | rm -f conftest.err conftest.$ac_ext | |
6074 | ||
6075 | done | |
6076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6077 | rm -f conftest.err conftest.$ac_ext | |
6078 | if $ac_preproc_ok; then : | |
6079 | break | |
6080 | fi | |
6081 | ||
6082 | done | |
6083 | ac_cv_prog_CPP=$CPP | |
6084 | ||
6085 | fi | |
6086 | CPP=$ac_cv_prog_CPP | |
6087 | else | |
6088 | ac_cv_prog_CPP=$CPP | |
6089 | fi | |
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6091 | $as_echo "$CPP" >&6; } | |
6092 | ac_preproc_ok=false | |
6093 | for ac_c_preproc_warn_flag in '' yes | |
6094 | do | |
6095 | # Use a header file that comes with gcc, so configuring glibc | |
6096 | # with a fresh cross-compiler works. | |
6097 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6098 | # <limits.h> exists even on freestanding compilers. | |
6099 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6100 | # not just through cpp. "Syntax error" is here to catch this case. | |
6101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6102 | /* end confdefs.h. */ | |
6103 | #ifdef __STDC__ | |
6104 | # include <limits.h> | |
6105 | #else | |
6106 | # include <assert.h> | |
6107 | #endif | |
6108 | Syntax error | |
6109 | _ACEOF | |
6110 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6111 | ||
6112 | else | |
6113 | # Broken: fails on valid input. | |
6114 | continue | |
6115 | fi | |
6116 | rm -f conftest.err conftest.$ac_ext | |
6117 | ||
6118 | # OK, works on sane cases. Now check whether nonexistent headers | |
6119 | # can be detected and how. | |
6120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6121 | /* end confdefs.h. */ | |
6122 | #include <ac_nonexistent.h> | |
6123 | _ACEOF | |
6124 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6125 | # Broken: success on invalid input. | |
6126 | continue | |
6127 | else | |
6128 | # Passes both tests. | |
6129 | ac_preproc_ok=: | |
6130 | break | |
6131 | fi | |
6132 | rm -f conftest.err conftest.$ac_ext | |
6133 | ||
6134 | done | |
6135 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6136 | rm -f conftest.err conftest.$ac_ext | |
6137 | if $ac_preproc_ok; then : | |
6138 | ||
6139 | else | |
6140 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6141 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6142 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6143 | See \`config.log' for more details." "$LINENO" 5; } | |
6144 | fi | |
6145 | ||
6146 | ac_ext=c | |
6147 | ac_cpp='$CPP $CPPFLAGS' | |
6148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6151 | ||
6152 | ||
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6154 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6155 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6156 | $as_echo_n "(cached) " >&6 | |
6157 | else | |
6158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6159 | /* end confdefs.h. */ | |
6160 | #include <stdlib.h> | |
6161 | #include <stdarg.h> | |
6162 | #include <string.h> | |
6163 | #include <float.h> | |
6164 | ||
6165 | int | |
6166 | main () | |
6167 | { | |
6168 | ||
6169 | ; | |
6170 | return 0; | |
6171 | } | |
6172 | _ACEOF | |
6173 | if ac_fn_c_try_compile "$LINENO"; then : | |
6174 | ac_cv_header_stdc=yes | |
6175 | else | |
6176 | ac_cv_header_stdc=no | |
6177 | fi | |
6178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6179 | ||
6180 | if test $ac_cv_header_stdc = yes; then | |
6181 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6183 | /* end confdefs.h. */ | |
6184 | #include <string.h> | |
6185 | ||
6186 | _ACEOF | |
6187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6188 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6189 | ||
6190 | else | |
6191 | ac_cv_header_stdc=no | |
6192 | fi | |
6193 | rm -f conftest* | |
6194 | ||
6195 | fi | |
6196 | ||
6197 | if test $ac_cv_header_stdc = yes; then | |
6198 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6200 | /* end confdefs.h. */ | |
6201 | #include <stdlib.h> | |
6202 | ||
6203 | _ACEOF | |
6204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6205 | $EGREP "free" >/dev/null 2>&1; then : | |
6206 | ||
6207 | else | |
6208 | ac_cv_header_stdc=no | |
6209 | fi | |
6210 | rm -f conftest* | |
6211 | ||
6212 | fi | |
6213 | ||
6214 | if test $ac_cv_header_stdc = yes; then | |
6215 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6216 | if test "$cross_compiling" = yes; then : | |
6217 | : | |
6218 | else | |
6219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6220 | /* end confdefs.h. */ | |
6221 | #include <ctype.h> | |
6222 | #include <stdlib.h> | |
6223 | #if ((' ' & 0x0FF) == 0x020) | |
6224 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6225 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6226 | #else | |
6227 | # define ISLOWER(c) \ | |
6228 | (('a' <= (c) && (c) <= 'i') \ | |
6229 | || ('j' <= (c) && (c) <= 'r') \ | |
6230 | || ('s' <= (c) && (c) <= 'z')) | |
6231 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6232 | #endif | |
6233 | ||
6234 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6235 | int | |
6236 | main () | |
6237 | { | |
6238 | int i; | |
6239 | for (i = 0; i < 256; i++) | |
6240 | if (XOR (islower (i), ISLOWER (i)) | |
6241 | || toupper (i) != TOUPPER (i)) | |
6242 | return 2; | |
6243 | return 0; | |
6244 | } | |
6245 | _ACEOF | |
6246 | if ac_fn_c_try_run "$LINENO"; then : | |
6247 | ||
6248 | else | |
6249 | ac_cv_header_stdc=no | |
6250 | fi | |
6251 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6252 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6253 | fi | |
6254 | ||
6255 | fi | |
6256 | fi | |
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6258 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6259 | if test $ac_cv_header_stdc = yes; then | |
6260 | ||
6261 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6262 | ||
6263 | fi | |
6264 | ||
6265 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6266 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6267 | inttypes.h stdint.h unistd.h | |
6268 | do : | |
6269 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6270 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6271 | " | |
6272 | eval as_val=\$$as_ac_Header | |
6273 | if test "x$as_val" = x""yes; then : | |
6274 | cat >>confdefs.h <<_ACEOF | |
6275 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6276 | _ACEOF | |
6277 | ||
6278 | fi | |
6279 | ||
6280 | done | |
6281 | ||
6282 | ||
6283 | for ac_header in dlfcn.h | |
6284 | do : | |
6285 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6286 | " | |
6287 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6288 | cat >>confdefs.h <<_ACEOF | |
6289 | #define HAVE_DLFCN_H 1 | |
6290 | _ACEOF | |
6291 | ||
6292 | fi | |
6293 | ||
6294 | done | |
6295 | ||
6296 | ||
6297 | ||
6298 | # Set options | |
549f29b5 DWT |
6299 | # Check whether --enable-static was given. |
6300 | if test "${enable_static+set}" = set; then : | |
6301 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6302 | case $enableval in |
549f29b5 DWT |
6303 | yes) enable_static=yes ;; |
6304 | no) enable_static=no ;; | |
9c60689e | 6305 | *) |
549f29b5 | 6306 | enable_static=no |
9c60689e DWT |
6307 | # Look at the argument we got. We use all the common list separators. |
6308 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6309 | for pkg in $enableval; do | |
6310 | IFS="$lt_save_ifs" | |
6311 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6312 | enable_static=yes |
9c60689e DWT |
6313 | fi |
6314 | done | |
6315 | IFS="$lt_save_ifs" | |
6316 | ;; | |
6317 | esac | |
6318 | else | |
549f29b5 | 6319 | enable_static=no |
9c60689e DWT |
6320 | fi |
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
549f29b5 DWT |
6330 | |
6331 | enable_dlopen=no | |
6332 | ||
6333 | ||
6334 | enable_win32_dll=no | |
6335 | ||
6336 | ||
6337 | # Check whether --enable-shared was given. | |
6338 | if test "${enable_shared+set}" = set; then : | |
6339 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6340 | case $enableval in |
549f29b5 DWT |
6341 | yes) enable_shared=yes ;; |
6342 | no) enable_shared=no ;; | |
9c60689e | 6343 | *) |
549f29b5 | 6344 | enable_shared=no |
9c60689e DWT |
6345 | # Look at the argument we got. We use all the common list separators. |
6346 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6347 | for pkg in $enableval; do | |
6348 | IFS="$lt_save_ifs" | |
6349 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6350 | enable_shared=yes |
9c60689e DWT |
6351 | fi |
6352 | done | |
6353 | IFS="$lt_save_ifs" | |
6354 | ;; | |
6355 | esac | |
6356 | else | |
549f29b5 | 6357 | enable_shared=yes |
9c60689e DWT |
6358 | fi |
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
549f29b5 | 6369 | |
9c60689e DWT |
6370 | # Check whether --with-pic was given. |
6371 | if test "${with_pic+set}" = set; then : | |
6372 | withval=$with_pic; pic_mode="$withval" | |
6373 | else | |
6374 | pic_mode=default | |
6375 | fi | |
6376 | ||
6377 | ||
6378 | test -z "$pic_mode" && pic_mode=default | |
6379 | ||
6380 | ||
6381 | ||
6382 | ||
6383 | ||
6384 | ||
6385 | ||
6386 | # Check whether --enable-fast-install was given. | |
6387 | if test "${enable_fast_install+set}" = set; then : | |
6388 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6389 | case $enableval in | |
6390 | yes) enable_fast_install=yes ;; | |
6391 | no) enable_fast_install=no ;; | |
6392 | *) | |
6393 | enable_fast_install=no | |
6394 | # Look at the argument we got. We use all the common list separators. | |
6395 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6396 | for pkg in $enableval; do | |
6397 | IFS="$lt_save_ifs" | |
6398 | if test "X$pkg" = "X$p"; then | |
6399 | enable_fast_install=yes | |
6400 | fi | |
6401 | done | |
6402 | IFS="$lt_save_ifs" | |
6403 | ;; | |
6404 | esac | |
6405 | else | |
6406 | enable_fast_install=yes | |
6407 | fi | |
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | # This can be used to rebuild libtool when needed | |
6420 | LIBTOOL_DEPS="$ltmain" | |
6421 | ||
6422 | # Always use our own libtool. | |
6423 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | test -z "$LN_S" && LN_S="ln -s" | |
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | if test -n "${ZSH_VERSION+set}" ; then | |
6465 | setopt NO_GLOB_SUBST | |
6466 | fi | |
6467 | ||
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6469 | $as_echo_n "checking for objdir... " >&6; } | |
6470 | if test "${lt_cv_objdir+set}" = set; then : | |
6471 | $as_echo_n "(cached) " >&6 | |
6472 | else | |
6473 | rm -f .libs 2>/dev/null | |
6474 | mkdir .libs 2>/dev/null | |
6475 | if test -d .libs; then | |
6476 | lt_cv_objdir=.libs | |
6477 | else | |
6478 | # MS-DOS does not allow filenames that begin with a dot. | |
6479 | lt_cv_objdir=_libs | |
6480 | fi | |
6481 | rmdir .libs 2>/dev/null | |
6482 | fi | |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6484 | $as_echo "$lt_cv_objdir" >&6; } | |
6485 | objdir=$lt_cv_objdir | |
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | cat >>confdefs.h <<_ACEOF | |
6492 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6493 | _ACEOF | |
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | case $host_os in | |
6512 | aix3*) | |
6513 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6514 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6515 | # vanish in a puff of smoke. | |
6516 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6517 | COLLECT_NAMES= | |
6518 | export COLLECT_NAMES | |
6519 | fi | |
6520 | ;; | |
6521 | esac | |
6522 | ||
6523 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6524 | # metacharacters that are still active within double-quoted strings. | |
6525 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6526 | ||
6527 | # Same as above, but do not quote variable references. | |
6528 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6529 | ||
6530 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6531 | # double_quote_subst'ed string. | |
6532 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6533 | ||
6534 | # Sed substitution to delay expansion of an escaped single quote. | |
6535 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6536 | ||
6537 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6538 | no_glob_subst='s/\*/\\\*/g' | |
6539 | ||
6540 | # Global variables: | |
6541 | ofile=libtool | |
6542 | can_build_shared=yes | |
6543 | ||
6544 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6545 | # which needs '.lib'). | |
6546 | libext=a | |
6547 | ||
6548 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6549 | ||
6550 | old_CC="$CC" | |
6551 | old_CFLAGS="$CFLAGS" | |
6552 | ||
6553 | # Set sane defaults for various variables | |
6554 | test -z "$CC" && CC=cc | |
6555 | test -z "$LTCC" && LTCC=$CC | |
6556 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6557 | test -z "$LD" && LD=ld | |
6558 | test -z "$ac_objext" && ac_objext=o | |
6559 | ||
6560 | for cc_temp in $compiler""; do | |
6561 | case $cc_temp in | |
6562 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6563 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6564 | \-*) ;; | |
6565 | *) break;; | |
6566 | esac | |
6567 | done | |
6568 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6569 | ||
6570 | ||
6571 | # Only perform the check for file, if the check method requires it | |
6572 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6573 | case $deplibs_check_method in | |
6574 | file_magic*) | |
6575 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6577 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6578 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6579 | $as_echo_n "(cached) " >&6 | |
6580 | else | |
6581 | case $MAGIC_CMD in | |
6582 | [\\/*] | ?:[\\/]*) | |
6583 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6584 | ;; | |
6585 | *) | |
6586 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6587 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6588 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6589 | for ac_dir in $ac_dummy; do | |
6590 | IFS="$lt_save_ifs" | |
6591 | test -z "$ac_dir" && ac_dir=. | |
6592 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6593 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6594 | if test -n "$file_magic_test_file"; then | |
6595 | case $deplibs_check_method in | |
6596 | "file_magic "*) | |
6597 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6598 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6599 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6600 | $EGREP "$file_magic_regex" > /dev/null; then | |
6601 | : | |
6602 | else | |
6603 | cat <<_LT_EOF 1>&2 | |
6604 | ||
6605 | *** Warning: the command libtool uses to detect shared libraries, | |
6606 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6607 | *** The result is that libtool may fail to recognize shared libraries | |
6608 | *** as such. This will affect the creation of libtool libraries that | |
6609 | *** depend on shared libraries, but programs linked with such libtool | |
6610 | *** libraries will work regardless of this problem. Nevertheless, you | |
6611 | *** may want to report the problem to your system manager and/or to | |
6612 | *** bug-libtool@gnu.org | |
6613 | ||
6614 | _LT_EOF | |
6615 | fi ;; | |
6616 | esac | |
6617 | fi | |
6618 | break | |
6619 | fi | |
6620 | done | |
6621 | IFS="$lt_save_ifs" | |
6622 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6623 | ;; | |
6624 | esac | |
6625 | fi | |
6626 | ||
6627 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6628 | if test -n "$MAGIC_CMD"; then | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6630 | $as_echo "$MAGIC_CMD" >&6; } | |
6631 | else | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6633 | $as_echo "no" >&6; } | |
6634 | fi | |
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | ||
6640 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6641 | if test -n "$ac_tool_prefix"; then | |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6643 | $as_echo_n "checking for file... " >&6; } | |
6644 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6645 | $as_echo_n "(cached) " >&6 | |
6646 | else | |
6647 | case $MAGIC_CMD in | |
6648 | [\\/*] | ?:[\\/]*) | |
6649 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6650 | ;; | |
6651 | *) | |
6652 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6653 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6654 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6655 | for ac_dir in $ac_dummy; do | |
6656 | IFS="$lt_save_ifs" | |
6657 | test -z "$ac_dir" && ac_dir=. | |
6658 | if test -f $ac_dir/file; then | |
6659 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6660 | if test -n "$file_magic_test_file"; then | |
6661 | case $deplibs_check_method in | |
6662 | "file_magic "*) | |
6663 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6664 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6665 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6666 | $EGREP "$file_magic_regex" > /dev/null; then | |
6667 | : | |
6668 | else | |
6669 | cat <<_LT_EOF 1>&2 | |
6670 | ||
6671 | *** Warning: the command libtool uses to detect shared libraries, | |
6672 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6673 | *** The result is that libtool may fail to recognize shared libraries | |
6674 | *** as such. This will affect the creation of libtool libraries that | |
6675 | *** depend on shared libraries, but programs linked with such libtool | |
6676 | *** libraries will work regardless of this problem. Nevertheless, you | |
6677 | *** may want to report the problem to your system manager and/or to | |
6678 | *** bug-libtool@gnu.org | |
6679 | ||
6680 | _LT_EOF | |
6681 | fi ;; | |
6682 | esac | |
6683 | fi | |
6684 | break | |
6685 | fi | |
6686 | done | |
6687 | IFS="$lt_save_ifs" | |
6688 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6689 | ;; | |
6690 | esac | |
6691 | fi | |
6692 | ||
6693 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6694 | if test -n "$MAGIC_CMD"; then | |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6696 | $as_echo "$MAGIC_CMD" >&6; } | |
6697 | else | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6699 | $as_echo "no" >&6; } | |
6700 | fi | |
6701 | ||
6702 | ||
6703 | else | |
6704 | MAGIC_CMD=: | |
6705 | fi | |
6706 | fi | |
6707 | ||
6708 | fi | |
6709 | ;; | |
6710 | esac | |
6711 | ||
6712 | # Use C for the default configuration in the libtool script | |
6713 | ||
6714 | lt_save_CC="$CC" | |
6715 | ac_ext=c | |
6716 | ac_cpp='$CPP $CPPFLAGS' | |
6717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6720 | ||
6721 | ||
6722 | # Source file extension for C test sources. | |
6723 | ac_ext=c | |
6724 | ||
6725 | # Object file extension for compiled C test sources. | |
6726 | objext=o | |
6727 | objext=$objext | |
6728 | ||
6729 | # Code to be used in simple compile tests | |
6730 | lt_simple_compile_test_code="int some_variable = 0;" | |
6731 | ||
6732 | # Code to be used in simple link tests | |
6733 | lt_simple_link_test_code='int main(){return(0);}' | |
6734 | ||
6735 | ||
6736 | ||
6737 | ||
6738 | ||
6739 | ||
6740 | ||
6741 | # If no C compiler was specified, use CC. | |
6742 | LTCC=${LTCC-"$CC"} | |
6743 | ||
6744 | # If no C compiler flags were specified, use CFLAGS. | |
6745 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6746 | ||
6747 | # Allow CC to be a program name with arguments. | |
6748 | compiler=$CC | |
6749 | ||
6750 | # Save the default compiler, since it gets overwritten when the other | |
6751 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6752 | compiler_DEFAULT=$CC | |
6753 | ||
6754 | # save warnings/boilerplate of simple test code | |
6755 | ac_outfile=conftest.$ac_objext | |
6756 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6757 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6758 | _lt_compiler_boilerplate=`cat conftest.err` | |
6759 | $RM conftest* | |
6760 | ||
6761 | ac_outfile=conftest.$ac_objext | |
6762 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6763 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6764 | _lt_linker_boilerplate=`cat conftest.err` | |
6765 | $RM -r conftest* | |
6766 | ||
6767 | ||
6768 | if test -n "$compiler"; then | |
6769 | ||
6770 | lt_prog_compiler_no_builtin_flag= | |
6771 | ||
6772 | if test "$GCC" = yes; then | |
6773 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6774 | ||
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6776 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6777 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6778 | $as_echo_n "(cached) " >&6 | |
6779 | else | |
6780 | lt_cv_prog_compiler_rtti_exceptions=no | |
6781 | ac_outfile=conftest.$ac_objext | |
6782 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6783 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6784 | # Insert the option either (1) after the last *FLAGS variable, or | |
6785 | # (2) before a word containing "conftest.", or (3) at the end. | |
6786 | # Note that $ac_compile itself does not contain backslashes and begins | |
6787 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6788 | # The option is referenced via a variable to avoid confusing sed. | |
6789 | lt_compile=`echo "$ac_compile" | $SED \ | |
6790 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6791 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6792 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 6793 | (eval echo "\"\$as_me:6792: $lt_compile\"" >&5) |
9c60689e DWT |
6794 | (eval "$lt_compile" 2>conftest.err) |
6795 | ac_status=$? | |
6796 | cat conftest.err >&5 | |
794e88e7 | 6797 | echo "$as_me:6796: \$? = $ac_status" >&5 |
9c60689e DWT |
6798 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6799 | # The compiler can only warn and ignore the option if not recognized | |
6800 | # So say no if there are warnings other than the usual output. | |
6801 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6802 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6803 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6804 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6805 | fi | |
6806 | fi | |
6807 | $RM conftest* | |
6808 | ||
6809 | fi | |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6811 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6812 | ||
6813 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6814 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6815 | else | |
6816 | : | |
6817 | fi | |
6818 | ||
6819 | fi | |
6820 | ||
6821 | ||
6822 | ||
6823 | ||
6824 | ||
6825 | ||
6826 | lt_prog_compiler_wl= | |
6827 | lt_prog_compiler_pic= | |
6828 | lt_prog_compiler_static= | |
6829 | ||
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6831 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6832 | ||
6833 | if test "$GCC" = yes; then | |
6834 | lt_prog_compiler_wl='-Wl,' | |
6835 | lt_prog_compiler_static='-static' | |
6836 | ||
6837 | case $host_os in | |
6838 | aix*) | |
6839 | # All AIX code is PIC. | |
6840 | if test "$host_cpu" = ia64; then | |
6841 | # AIX 5 now supports IA64 processor | |
6842 | lt_prog_compiler_static='-Bstatic' | |
6843 | fi | |
6844 | ;; | |
6845 | ||
6846 | amigaos*) | |
6847 | case $host_cpu in | |
6848 | powerpc) | |
6849 | # see comment about AmigaOS4 .so support | |
6850 | lt_prog_compiler_pic='-fPIC' | |
6851 | ;; | |
6852 | m68k) | |
6853 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6854 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6855 | # like `-m68040'. | |
6856 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6857 | ;; | |
6858 | esac | |
6859 | ;; | |
6860 | ||
6861 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6862 | # PIC is the default for these OSes. | |
6863 | ;; | |
6864 | ||
6865 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6866 | # This hack is so that the source file can tell whether it is being | |
6867 | # built for inclusion in a dll (and should export symbols for example). | |
6868 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6869 | # (--disable-auto-import) libraries | |
6870 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6871 | ;; | |
6872 | ||
6873 | darwin* | rhapsody*) | |
6874 | # PIC is the default on this platform | |
6875 | # Common symbols not allowed in MH_DYLIB files | |
6876 | lt_prog_compiler_pic='-fno-common' | |
6877 | ;; | |
6878 | ||
6879 | hpux*) | |
6880 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6881 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6882 | # sets the default TLS model and affects inlining. | |
6883 | case $host_cpu in | |
6884 | hppa*64*) | |
6885 | # +Z the default | |
6886 | ;; | |
6887 | *) | |
6888 | lt_prog_compiler_pic='-fPIC' | |
6889 | ;; | |
6890 | esac | |
6891 | ;; | |
6892 | ||
6893 | interix[3-9]*) | |
6894 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6895 | # Instead, we relocate shared libraries at runtime. | |
6896 | ;; | |
6897 | ||
6898 | msdosdjgpp*) | |
6899 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6900 | # on systems that don't support them. | |
6901 | lt_prog_compiler_can_build_shared=no | |
6902 | enable_shared=no | |
6903 | ;; | |
6904 | ||
6905 | *nto* | *qnx*) | |
6906 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6907 | # it will coredump. | |
6908 | lt_prog_compiler_pic='-fPIC -shared' | |
6909 | ;; | |
6910 | ||
6911 | sysv4*MP*) | |
6912 | if test -d /usr/nec; then | |
6913 | lt_prog_compiler_pic=-Kconform_pic | |
6914 | fi | |
6915 | ;; | |
6916 | ||
6917 | *) | |
6918 | lt_prog_compiler_pic='-fPIC' | |
6919 | ;; | |
6920 | esac | |
6921 | else | |
6922 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6923 | case $host_os in | |
6924 | aix*) | |
6925 | lt_prog_compiler_wl='-Wl,' | |
6926 | if test "$host_cpu" = ia64; then | |
6927 | # AIX 5 now supports IA64 processor | |
6928 | lt_prog_compiler_static='-Bstatic' | |
6929 | else | |
6930 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6931 | fi | |
6932 | ;; | |
6933 | ||
6934 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6935 | # This hack is so that the source file can tell whether it is being | |
6936 | # built for inclusion in a dll (and should export symbols for example). | |
6937 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6938 | ;; | |
6939 | ||
6940 | hpux9* | hpux10* | hpux11*) | |
6941 | lt_prog_compiler_wl='-Wl,' | |
6942 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6943 | # not for PA HP-UX. | |
6944 | case $host_cpu in | |
6945 | hppa*64*|ia64*) | |
6946 | # +Z the default | |
6947 | ;; | |
6948 | *) | |
6949 | lt_prog_compiler_pic='+Z' | |
6950 | ;; | |
6951 | esac | |
6952 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6953 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6954 | ;; | |
6955 | ||
6956 | irix5* | irix6* | nonstopux*) | |
6957 | lt_prog_compiler_wl='-Wl,' | |
6958 | # PIC (with -KPIC) is the default. | |
6959 | lt_prog_compiler_static='-non_shared' | |
6960 | ;; | |
6961 | ||
1504c9b8 | 6962 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
6963 | case $cc_basename in |
6964 | # old Intel for x86_64 which still supported -KPIC. | |
6965 | ecc*) | |
6966 | lt_prog_compiler_wl='-Wl,' | |
6967 | lt_prog_compiler_pic='-KPIC' | |
6968 | lt_prog_compiler_static='-static' | |
6969 | ;; | |
6970 | # icc used to be incompatible with GCC. | |
6971 | # ICC 10 doesn't accept -KPIC any more. | |
6972 | icc* | ifort*) | |
6973 | lt_prog_compiler_wl='-Wl,' | |
6974 | lt_prog_compiler_pic='-fPIC' | |
6975 | lt_prog_compiler_static='-static' | |
6976 | ;; | |
6977 | # Lahey Fortran 8.1. | |
6978 | lf95*) | |
6979 | lt_prog_compiler_wl='-Wl,' | |
6980 | lt_prog_compiler_pic='--shared' | |
6981 | lt_prog_compiler_static='--static' | |
6982 | ;; | |
6983 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6984 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6985 | # which looks to be a dead project) | |
6986 | lt_prog_compiler_wl='-Wl,' | |
6987 | lt_prog_compiler_pic='-fpic' | |
6988 | lt_prog_compiler_static='-Bstatic' | |
6989 | ;; | |
6990 | ccc*) | |
6991 | lt_prog_compiler_wl='-Wl,' | |
6992 | # All Alpha code is PIC. | |
6993 | lt_prog_compiler_static='-non_shared' | |
6994 | ;; | |
6995 | xl*) | |
6996 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6997 | lt_prog_compiler_wl='-Wl,' | |
6998 | lt_prog_compiler_pic='-qpic' | |
6999 | lt_prog_compiler_static='-qstaticlink' | |
7000 | ;; | |
7001 | *) | |
7002 | case `$CC -V 2>&1 | sed 5q` in | |
7003 | *Sun\ C*) | |
7004 | # Sun C 5.9 | |
7005 | lt_prog_compiler_pic='-KPIC' | |
7006 | lt_prog_compiler_static='-Bstatic' | |
7007 | lt_prog_compiler_wl='-Wl,' | |
7008 | ;; | |
7009 | *Sun\ F*) | |
7010 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7011 | lt_prog_compiler_pic='-KPIC' | |
7012 | lt_prog_compiler_static='-Bstatic' | |
7013 | lt_prog_compiler_wl='' | |
7014 | ;; | |
7015 | esac | |
7016 | ;; | |
7017 | esac | |
7018 | ;; | |
7019 | ||
7020 | newsos6) | |
7021 | lt_prog_compiler_pic='-KPIC' | |
7022 | lt_prog_compiler_static='-Bstatic' | |
7023 | ;; | |
7024 | ||
7025 | *nto* | *qnx*) | |
7026 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7027 | # it will coredump. | |
7028 | lt_prog_compiler_pic='-fPIC -shared' | |
7029 | ;; | |
7030 | ||
7031 | osf3* | osf4* | osf5*) | |
7032 | lt_prog_compiler_wl='-Wl,' | |
7033 | # All OSF/1 code is PIC. | |
7034 | lt_prog_compiler_static='-non_shared' | |
7035 | ;; | |
7036 | ||
7037 | rdos*) | |
7038 | lt_prog_compiler_static='-non_shared' | |
7039 | ;; | |
7040 | ||
7041 | solaris*) | |
7042 | lt_prog_compiler_pic='-KPIC' | |
7043 | lt_prog_compiler_static='-Bstatic' | |
7044 | case $cc_basename in | |
7045 | f77* | f90* | f95*) | |
7046 | lt_prog_compiler_wl='-Qoption ld ';; | |
7047 | *) | |
7048 | lt_prog_compiler_wl='-Wl,';; | |
7049 | esac | |
7050 | ;; | |
7051 | ||
7052 | sunos4*) | |
7053 | lt_prog_compiler_wl='-Qoption ld ' | |
7054 | lt_prog_compiler_pic='-PIC' | |
7055 | lt_prog_compiler_static='-Bstatic' | |
7056 | ;; | |
7057 | ||
7058 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7059 | lt_prog_compiler_wl='-Wl,' | |
7060 | lt_prog_compiler_pic='-KPIC' | |
7061 | lt_prog_compiler_static='-Bstatic' | |
7062 | ;; | |
7063 | ||
7064 | sysv4*MP*) | |
7065 | if test -d /usr/nec ;then | |
7066 | lt_prog_compiler_pic='-Kconform_pic' | |
7067 | lt_prog_compiler_static='-Bstatic' | |
7068 | fi | |
7069 | ;; | |
7070 | ||
7071 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7072 | lt_prog_compiler_wl='-Wl,' | |
7073 | lt_prog_compiler_pic='-KPIC' | |
7074 | lt_prog_compiler_static='-Bstatic' | |
7075 | ;; | |
7076 | ||
7077 | unicos*) | |
7078 | lt_prog_compiler_wl='-Wl,' | |
7079 | lt_prog_compiler_can_build_shared=no | |
7080 | ;; | |
7081 | ||
7082 | uts4*) | |
7083 | lt_prog_compiler_pic='-pic' | |
7084 | lt_prog_compiler_static='-Bstatic' | |
7085 | ;; | |
7086 | ||
7087 | *) | |
7088 | lt_prog_compiler_can_build_shared=no | |
7089 | ;; | |
7090 | esac | |
7091 | fi | |
7092 | ||
7093 | case $host_os in | |
7094 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7095 | *djgpp*) | |
7096 | lt_prog_compiler_pic= | |
7097 | ;; | |
7098 | *) | |
7099 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7100 | ;; | |
7101 | esac | |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7103 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7104 | ||
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | # | |
7111 | # Check to make sure the PIC flag actually works. | |
7112 | # | |
7113 | if test -n "$lt_prog_compiler_pic"; then | |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7115 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7116 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7117 | $as_echo_n "(cached) " >&6 | |
7118 | else | |
7119 | lt_cv_prog_compiler_pic_works=no | |
7120 | ac_outfile=conftest.$ac_objext | |
7121 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7122 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7123 | # Insert the option either (1) after the last *FLAGS variable, or | |
7124 | # (2) before a word containing "conftest.", or (3) at the end. | |
7125 | # Note that $ac_compile itself does not contain backslashes and begins | |
7126 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7127 | # The option is referenced via a variable to avoid confusing sed. | |
7128 | lt_compile=`echo "$ac_compile" | $SED \ | |
7129 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7130 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7131 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7132 | (eval echo "\"\$as_me:7131: $lt_compile\"" >&5) |
9c60689e DWT |
7133 | (eval "$lt_compile" 2>conftest.err) |
7134 | ac_status=$? | |
7135 | cat conftest.err >&5 | |
794e88e7 | 7136 | echo "$as_me:7135: \$? = $ac_status" >&5 |
9c60689e DWT |
7137 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7138 | # The compiler can only warn and ignore the option if not recognized | |
7139 | # So say no if there are warnings other than the usual output. | |
7140 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7141 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7142 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7143 | lt_cv_prog_compiler_pic_works=yes | |
7144 | fi | |
7145 | fi | |
7146 | $RM conftest* | |
7147 | ||
7148 | fi | |
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7150 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7151 | ||
7152 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7153 | case $lt_prog_compiler_pic in | |
7154 | "" | " "*) ;; | |
7155 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7156 | esac | |
7157 | else | |
7158 | lt_prog_compiler_pic= | |
7159 | lt_prog_compiler_can_build_shared=no | |
7160 | fi | |
7161 | ||
7162 | fi | |
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | # | |
7170 | # Check to make sure the static flag actually works. | |
7171 | # | |
7172 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7174 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7175 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7176 | $as_echo_n "(cached) " >&6 | |
7177 | else | |
7178 | lt_cv_prog_compiler_static_works=no | |
7179 | save_LDFLAGS="$LDFLAGS" | |
7180 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7181 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7182 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7183 | # The linker can only warn and ignore the option if not recognized | |
7184 | # So say no if there are warnings | |
7185 | if test -s conftest.err; then | |
7186 | # Append any errors to the config.log. | |
7187 | cat conftest.err 1>&5 | |
7188 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7189 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7190 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7191 | lt_cv_prog_compiler_static_works=yes | |
7192 | fi | |
7193 | else | |
7194 | lt_cv_prog_compiler_static_works=yes | |
7195 | fi | |
7196 | fi | |
7197 | $RM -r conftest* | |
7198 | LDFLAGS="$save_LDFLAGS" | |
7199 | ||
7200 | fi | |
7201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7202 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7203 | ||
7204 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7205 | : | |
7206 | else | |
7207 | lt_prog_compiler_static= | |
7208 | fi | |
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7217 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7218 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7219 | $as_echo_n "(cached) " >&6 | |
7220 | else | |
7221 | lt_cv_prog_compiler_c_o=no | |
7222 | $RM -r conftest 2>/dev/null | |
7223 | mkdir conftest | |
7224 | cd conftest | |
7225 | mkdir out | |
7226 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7227 | ||
7228 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7229 | # Insert the option either (1) after the last *FLAGS variable, or | |
7230 | # (2) before a word containing "conftest.", or (3) at the end. | |
7231 | # Note that $ac_compile itself does not contain backslashes and begins | |
7232 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7233 | lt_compile=`echo "$ac_compile" | $SED \ | |
7234 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7235 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7236 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7237 | (eval echo "\"\$as_me:7236: $lt_compile\"" >&5) |
9c60689e DWT |
7238 | (eval "$lt_compile" 2>out/conftest.err) |
7239 | ac_status=$? | |
7240 | cat out/conftest.err >&5 | |
794e88e7 | 7241 | echo "$as_me:7240: \$? = $ac_status" >&5 |
9c60689e DWT |
7242 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7243 | then | |
7244 | # The compiler can only warn and ignore the option if not recognized | |
7245 | # So say no if there are warnings | |
7246 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7247 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7248 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7249 | lt_cv_prog_compiler_c_o=yes | |
7250 | fi | |
7251 | fi | |
7252 | chmod u+w . 2>&5 | |
7253 | $RM conftest* | |
7254 | # SGI C++ compiler will create directory out/ii_files/ for | |
7255 | # template instantiation | |
7256 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7257 | $RM out/* && rmdir out | |
7258 | cd .. | |
7259 | $RM -r conftest | |
7260 | $RM conftest* | |
7261 | ||
7262 | fi | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7264 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7265 | ||
7266 | ||
7267 | ||
7268 | ||
7269 | ||
7270 | ||
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7272 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7273 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7274 | $as_echo_n "(cached) " >&6 | |
7275 | else | |
7276 | lt_cv_prog_compiler_c_o=no | |
7277 | $RM -r conftest 2>/dev/null | |
7278 | mkdir conftest | |
7279 | cd conftest | |
7280 | mkdir out | |
7281 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7282 | ||
7283 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7284 | # Insert the option either (1) after the last *FLAGS variable, or | |
7285 | # (2) before a word containing "conftest.", or (3) at the end. | |
7286 | # Note that $ac_compile itself does not contain backslashes and begins | |
7287 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7288 | lt_compile=`echo "$ac_compile" | $SED \ | |
7289 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7290 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7291 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 7292 | (eval echo "\"\$as_me:7291: $lt_compile\"" >&5) |
9c60689e DWT |
7293 | (eval "$lt_compile" 2>out/conftest.err) |
7294 | ac_status=$? | |
7295 | cat out/conftest.err >&5 | |
794e88e7 | 7296 | echo "$as_me:7295: \$? = $ac_status" >&5 |
9c60689e DWT |
7297 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7298 | then | |
7299 | # The compiler can only warn and ignore the option if not recognized | |
7300 | # So say no if there are warnings | |
7301 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7302 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7303 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7304 | lt_cv_prog_compiler_c_o=yes | |
7305 | fi | |
7306 | fi | |
7307 | chmod u+w . 2>&5 | |
7308 | $RM conftest* | |
7309 | # SGI C++ compiler will create directory out/ii_files/ for | |
7310 | # template instantiation | |
7311 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7312 | $RM out/* && rmdir out | |
7313 | cd .. | |
7314 | $RM -r conftest | |
7315 | $RM conftest* | |
7316 | ||
7317 | fi | |
7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7319 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7320 | ||
7321 | ||
7322 | ||
7323 | ||
7324 | hard_links="nottested" | |
7325 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7326 | # do not overwrite the value of need_locks provided by the user | |
7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7328 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7329 | hard_links=yes | |
7330 | $RM conftest* | |
7331 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7332 | touch conftest.a | |
7333 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7334 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7336 | $as_echo "$hard_links" >&6; } | |
7337 | if test "$hard_links" = no; then | |
7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7339 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7340 | need_locks=warn | |
7341 | fi | |
7342 | else | |
7343 | need_locks=no | |
7344 | fi | |
7345 | ||
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7352 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7353 | ||
7354 | runpath_var= | |
7355 | allow_undefined_flag= | |
7356 | always_export_symbols=no | |
7357 | archive_cmds= | |
7358 | archive_expsym_cmds= | |
7359 | compiler_needs_object=no | |
7360 | enable_shared_with_static_runtimes=no | |
7361 | export_dynamic_flag_spec= | |
7362 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7363 | hardcode_automatic=no | |
7364 | hardcode_direct=no | |
7365 | hardcode_direct_absolute=no | |
7366 | hardcode_libdir_flag_spec= | |
7367 | hardcode_libdir_flag_spec_ld= | |
7368 | hardcode_libdir_separator= | |
7369 | hardcode_minus_L=no | |
7370 | hardcode_shlibpath_var=unsupported | |
7371 | inherit_rpath=no | |
7372 | link_all_deplibs=unknown | |
7373 | module_cmds= | |
7374 | module_expsym_cmds= | |
7375 | old_archive_from_new_cmds= | |
7376 | old_archive_from_expsyms_cmds= | |
7377 | thread_safe_flag_spec= | |
7378 | whole_archive_flag_spec= | |
7379 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7380 | # included in the symbol list | |
7381 | include_expsyms= | |
7382 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7383 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7384 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7385 | # as well as any symbol that contains `d'. | |
7386 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7387 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7388 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7389 | # the symbol is explicitly referenced. Since portable code cannot | |
7390 | # rely on this symbol name, it's probably fine to never include it in | |
7391 | # preloaded symbol tables. | |
7392 | # Exclude shared library initialization/finalization symbols. | |
7393 | extract_expsyms_cmds= | |
7394 | ||
7395 | case $host_os in | |
7396 | cygwin* | mingw* | pw32* | cegcc*) | |
7397 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7398 | # When not using gcc, we currently assume that we are using | |
7399 | # Microsoft Visual C++. | |
7400 | if test "$GCC" != yes; then | |
7401 | with_gnu_ld=no | |
7402 | fi | |
7403 | ;; | |
7404 | interix*) | |
7405 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7406 | with_gnu_ld=yes | |
7407 | ;; | |
7408 | openbsd*) | |
7409 | with_gnu_ld=no | |
7410 | ;; | |
1504c9b8 DWT |
7411 | linux* | k*bsd*-gnu) |
7412 | link_all_deplibs=no | |
7413 | ;; | |
9c60689e DWT |
7414 | esac |
7415 | ||
7416 | ld_shlibs=yes | |
7417 | if test "$with_gnu_ld" = yes; then | |
7418 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7419 | wlarc='${wl}' | |
7420 | ||
7421 | # Set some defaults for GNU ld with shared library support. These | |
7422 | # are reset later if shared libraries are not supported. Putting them | |
7423 | # here allows them to be overridden if necessary. | |
7424 | runpath_var=LD_RUN_PATH | |
7425 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7426 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7427 | # ancient GNU ld didn't support --whole-archive et. al. | |
7428 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7429 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7430 | else | |
7431 | whole_archive_flag_spec= | |
7432 | fi | |
7433 | supports_anon_versioning=no | |
7434 | case `$LD -v 2>&1` in | |
1504c9b8 | 7435 | *GNU\ gold*) supports_anon_versioning=yes ;; |
9c60689e DWT |
7436 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7437 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7438 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7439 | *\ 2.11.*) ;; # other 2.11 versions | |
7440 | *) supports_anon_versioning=yes ;; | |
7441 | esac | |
7442 | ||
7443 | # See if GNU ld supports shared libraries. | |
7444 | case $host_os in | |
7445 | aix[3-9]*) | |
7446 | # On AIX/PPC, the GNU linker is very broken | |
7447 | if test "$host_cpu" != ia64; then | |
7448 | ld_shlibs=no | |
7449 | cat <<_LT_EOF 1>&2 | |
7450 | ||
7451 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7452 | *** to be unable to reliably create shared libraries on AIX. | |
7453 | *** Therefore, libtool is disabling shared libraries support. If you | |
7454 | *** really care for shared libraries, you may want to modify your PATH | |
7455 | *** so that a non-GNU linker is found, and then restart. | |
7456 | ||
7457 | _LT_EOF | |
7458 | fi | |
7459 | ;; | |
7460 | ||
7461 | amigaos*) | |
7462 | case $host_cpu in | |
7463 | powerpc) | |
7464 | # see comment about AmigaOS4 .so support | |
7465 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7466 | archive_expsym_cmds='' | |
7467 | ;; | |
7468 | m68k) | |
7469 | 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)' | |
7470 | hardcode_libdir_flag_spec='-L$libdir' | |
7471 | hardcode_minus_L=yes | |
7472 | ;; | |
7473 | esac | |
7474 | ;; | |
7475 | ||
7476 | beos*) | |
7477 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7478 | allow_undefined_flag=unsupported | |
7479 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7480 | # support --undefined. This deserves some investigation. FIXME | |
7481 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7482 | else | |
7483 | ld_shlibs=no | |
7484 | fi | |
7485 | ;; | |
7486 | ||
7487 | cygwin* | mingw* | pw32* | cegcc*) | |
7488 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7489 | # as there is no search path for DLLs. | |
7490 | hardcode_libdir_flag_spec='-L$libdir' | |
7491 | allow_undefined_flag=unsupported | |
7492 | always_export_symbols=no | |
7493 | enable_shared_with_static_runtimes=yes | |
7494 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7495 | ||
7496 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7497 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7498 | # If the export-symbols file already is a .def file (1st line | |
7499 | # is EXPORTS), use it as is; otherwise, prepend... | |
7500 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7501 | cp $export_symbols $output_objdir/$soname.def; | |
7502 | else | |
7503 | echo EXPORTS > $output_objdir/$soname.def; | |
7504 | cat $export_symbols >> $output_objdir/$soname.def; | |
7505 | fi~ | |
7506 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7507 | else | |
7508 | ld_shlibs=no | |
7509 | fi | |
7510 | ;; | |
7511 | ||
7512 | interix[3-9]*) | |
7513 | hardcode_direct=no | |
7514 | hardcode_shlibpath_var=no | |
7515 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7516 | export_dynamic_flag_spec='${wl}-E' | |
7517 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7518 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7519 | # default) and relocated if they conflict, which is a slow very memory | |
7520 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7521 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7522 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7523 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7524 | 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' | |
7525 | ;; | |
7526 | ||
1504c9b8 | 7527 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
7528 | tmp_diet=no |
7529 | if test "$host_os" = linux-dietlibc; then | |
7530 | case $cc_basename in | |
7531 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7532 | esac | |
7533 | fi | |
7534 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7535 | && test "$tmp_diet" = no | |
7536 | then | |
7537 | tmp_addflag= | |
7538 | tmp_sharedflag='-shared' | |
7539 | case $cc_basename,$host_cpu in | |
7540 | pgcc*) # Portland Group C compiler | |
7541 | 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' | |
7542 | tmp_addflag=' $pic_flag' | |
7543 | ;; | |
7544 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7545 | 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' | |
7546 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7547 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7548 | tmp_addflag=' -i_dynamic' ;; | |
7549 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7550 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7551 | ifc* | ifort*) # Intel Fortran compiler | |
7552 | tmp_addflag=' -nofor_main' ;; | |
7553 | lf95*) # Lahey Fortran 8.1 | |
7554 | whole_archive_flag_spec= | |
7555 | tmp_sharedflag='--shared' ;; | |
7556 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7557 | tmp_sharedflag='-qmkshrobj' | |
7558 | tmp_addflag= ;; | |
7559 | esac | |
7560 | case `$CC -V 2>&1 | sed 5q` in | |
7561 | *Sun\ C*) # Sun C 5.9 | |
7562 | 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' | |
7563 | compiler_needs_object=yes | |
7564 | tmp_sharedflag='-G' ;; | |
7565 | *Sun\ F*) # Sun Fortran 8.3 | |
7566 | tmp_sharedflag='-G' ;; | |
7567 | esac | |
7568 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7569 | ||
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 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7575 | fi | |
7576 | ||
7577 | case $cc_basename in | |
7578 | xlf*) | |
7579 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7580 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7581 | hardcode_libdir_flag_spec= | |
7582 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7583 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7584 | if test "x$supports_anon_versioning" = xyes; then | |
7585 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7586 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7587 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7588 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7589 | fi | |
7590 | ;; | |
7591 | esac | |
7592 | else | |
7593 | ld_shlibs=no | |
7594 | fi | |
7595 | ;; | |
7596 | ||
1504c9b8 | 7597 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
7598 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7599 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7600 | wlarc= | |
7601 | else | |
7602 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7603 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7604 | fi | |
7605 | ;; | |
7606 | ||
7607 | solaris*) | |
7608 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7609 | ld_shlibs=no | |
7610 | cat <<_LT_EOF 1>&2 | |
7611 | ||
7612 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7613 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7614 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7615 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7616 | *** your PATH or compiler configuration so that the native linker is | |
7617 | *** used, and then restart. | |
7618 | ||
7619 | _LT_EOF | |
7620 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7621 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7622 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7623 | else | |
7624 | ld_shlibs=no | |
7625 | fi | |
7626 | ;; | |
7627 | ||
7628 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7629 | case `$LD -v 2>&1` in | |
7630 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7631 | ld_shlibs=no | |
7632 | cat <<_LT_EOF 1>&2 | |
7633 | ||
7634 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7635 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7636 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7637 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7638 | *** your PATH or compiler configuration so that the native linker is | |
7639 | *** used, and then restart. | |
7640 | ||
7641 | _LT_EOF | |
7642 | ;; | |
7643 | *) | |
7644 | # For security reasons, it is highly recommended that you always | |
7645 | # use absolute paths for naming shared libraries, and exclude the | |
7646 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7647 | # requires that you compile everything twice, which is a pain. | |
7648 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7649 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7650 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7651 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7652 | else | |
7653 | ld_shlibs=no | |
7654 | fi | |
7655 | ;; | |
7656 | esac | |
7657 | ;; | |
7658 | ||
7659 | sunos4*) | |
7660 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7661 | wlarc= | |
7662 | hardcode_direct=yes | |
7663 | hardcode_shlibpath_var=no | |
7664 | ;; | |
7665 | ||
7666 | *) | |
7667 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7668 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7669 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7670 | else | |
7671 | ld_shlibs=no | |
7672 | fi | |
7673 | ;; | |
7674 | esac | |
7675 | ||
7676 | if test "$ld_shlibs" = no; then | |
7677 | runpath_var= | |
7678 | hardcode_libdir_flag_spec= | |
7679 | export_dynamic_flag_spec= | |
7680 | whole_archive_flag_spec= | |
7681 | fi | |
7682 | else | |
7683 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7684 | case $host_os in | |
7685 | aix3*) | |
7686 | allow_undefined_flag=unsupported | |
7687 | always_export_symbols=yes | |
7688 | 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' | |
7689 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7690 | # are no directories specified by -L. | |
7691 | hardcode_minus_L=yes | |
7692 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7693 | # Neither direct hardcoding nor static linking is supported with a | |
7694 | # broken collect2. | |
7695 | hardcode_direct=unsupported | |
7696 | fi | |
7697 | ;; | |
7698 | ||
7699 | aix[4-9]*) | |
7700 | if test "$host_cpu" = ia64; then | |
7701 | # On IA64, the linker does run time linking by default, so we don't | |
7702 | # have to do anything special. | |
7703 | aix_use_runtimelinking=no | |
7704 | exp_sym_flag='-Bexport' | |
7705 | no_entry_flag="" | |
7706 | else | |
7707 | # If we're using GNU nm, then we don't want the "-C" option. | |
7708 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7709 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7710 | 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' | |
7711 | else | |
7712 | 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' | |
7713 | fi | |
7714 | aix_use_runtimelinking=no | |
7715 | ||
7716 | # Test if we are trying to use run time linking or normal | |
7717 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7718 | # need to do runtime linking. | |
7719 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7720 | for ld_flag in $LDFLAGS; do | |
7721 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7722 | aix_use_runtimelinking=yes | |
7723 | break | |
7724 | fi | |
7725 | done | |
7726 | ;; | |
7727 | esac | |
7728 | ||
7729 | exp_sym_flag='-bexport' | |
7730 | no_entry_flag='-bnoentry' | |
7731 | fi | |
7732 | ||
7733 | # When large executables or shared objects are built, AIX ld can | |
7734 | # have problems creating the table of contents. If linking a library | |
7735 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7736 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7737 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7738 | ||
7739 | archive_cmds='' | |
7740 | hardcode_direct=yes | |
7741 | hardcode_direct_absolute=yes | |
7742 | hardcode_libdir_separator=':' | |
7743 | link_all_deplibs=yes | |
7744 | file_list_spec='${wl}-f,' | |
7745 | ||
7746 | if test "$GCC" = yes; then | |
7747 | case $host_os in aix4.[012]|aix4.[012].*) | |
7748 | # We only want to do this on AIX 4.2 and lower, the check | |
7749 | # below for broken collect2 doesn't work under 4.3+ | |
7750 | collect2name=`${CC} -print-prog-name=collect2` | |
7751 | if test -f "$collect2name" && | |
7752 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7753 | then | |
7754 | # We have reworked collect2 | |
7755 | : | |
7756 | else | |
7757 | # We have old collect2 | |
7758 | hardcode_direct=unsupported | |
7759 | # It fails to find uninstalled libraries when the uninstalled | |
7760 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7761 | # to unsupported forces relinking | |
7762 | hardcode_minus_L=yes | |
7763 | hardcode_libdir_flag_spec='-L$libdir' | |
7764 | hardcode_libdir_separator= | |
7765 | fi | |
7766 | ;; | |
7767 | esac | |
7768 | shared_flag='-shared' | |
7769 | if test "$aix_use_runtimelinking" = yes; then | |
7770 | shared_flag="$shared_flag "'${wl}-G' | |
7771 | fi | |
1504c9b8 | 7772 | link_all_deplibs=no |
9c60689e DWT |
7773 | else |
7774 | # not using gcc | |
7775 | if test "$host_cpu" = ia64; then | |
7776 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7777 | # chokes on -Wl,-G. The following line is correct: | |
7778 | shared_flag='-G' | |
7779 | else | |
7780 | if test "$aix_use_runtimelinking" = yes; then | |
7781 | shared_flag='${wl}-G' | |
7782 | else | |
7783 | shared_flag='${wl}-bM:SRE' | |
7784 | fi | |
7785 | fi | |
7786 | fi | |
7787 | ||
7788 | export_dynamic_flag_spec='${wl}-bexpall' | |
7789 | # It seems that -bexpall does not export symbols beginning with | |
7790 | # underscore (_), so it is better to generate a list of symbols to export. | |
7791 | always_export_symbols=yes | |
7792 | if test "$aix_use_runtimelinking" = yes; then | |
7793 | # Warning - without using the other runtime loading flags (-brtl), | |
7794 | # -berok will link without error, but may produce a broken library. | |
7795 | allow_undefined_flag='-berok' | |
7796 | # Determine the default libpath from the value encoded in an | |
7797 | # empty executable. | |
7798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7799 | /* end confdefs.h. */ | |
7800 | ||
7801 | int | |
7802 | main () | |
7803 | { | |
7804 | ||
7805 | ; | |
7806 | return 0; | |
7807 | } | |
7808 | _ACEOF | |
7809 | if ac_fn_c_try_link "$LINENO"; then : | |
7810 | ||
7811 | lt_aix_libpath_sed=' | |
7812 | /Import File Strings/,/^$/ { | |
7813 | /^0/ { | |
7814 | s/^0 *\(.*\)$/\1/ | |
7815 | p | |
7816 | } | |
7817 | }' | |
7818 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7819 | # Check for a 64-bit object if we didn't find anything. | |
7820 | if test -z "$aix_libpath"; then | |
7821 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7822 | fi | |
7823 | fi | |
7824 | rm -f core conftest.err conftest.$ac_objext \ | |
7825 | conftest$ac_exeext conftest.$ac_ext | |
7826 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7827 | ||
7828 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7829 | 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" | |
7830 | else | |
7831 | if test "$host_cpu" = ia64; then | |
7832 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7833 | allow_undefined_flag="-z nodefs" | |
7834 | 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" | |
7835 | else | |
7836 | # Determine the default libpath from the value encoded in an | |
7837 | # empty executable. | |
7838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7839 | /* end confdefs.h. */ | |
7840 | ||
7841 | int | |
7842 | main () | |
7843 | { | |
7844 | ||
7845 | ; | |
7846 | return 0; | |
7847 | } | |
7848 | _ACEOF | |
7849 | if ac_fn_c_try_link "$LINENO"; then : | |
7850 | ||
7851 | lt_aix_libpath_sed=' | |
7852 | /Import File Strings/,/^$/ { | |
7853 | /^0/ { | |
7854 | s/^0 *\(.*\)$/\1/ | |
7855 | p | |
7856 | } | |
7857 | }' | |
7858 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7859 | # Check for a 64-bit object if we didn't find anything. | |
7860 | if test -z "$aix_libpath"; then | |
7861 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7862 | fi | |
7863 | fi | |
7864 | rm -f core conftest.err conftest.$ac_objext \ | |
7865 | conftest$ac_exeext conftest.$ac_ext | |
7866 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7867 | ||
7868 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7869 | # Warning - without using the other run time loading flags, | |
7870 | # -berok will link without error, but may produce a broken library. | |
7871 | no_undefined_flag=' ${wl}-bernotok' | |
7872 | allow_undefined_flag=' ${wl}-berok' | |
7873 | # Exported symbols can be pulled into shared objects from archives | |
7874 | whole_archive_flag_spec='$convenience' | |
7875 | archive_cmds_need_lc=yes | |
7876 | # This is similar to how AIX traditionally builds its shared libraries. | |
7877 | 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' | |
7878 | fi | |
7879 | fi | |
7880 | ;; | |
7881 | ||
7882 | amigaos*) | |
7883 | case $host_cpu in | |
7884 | powerpc) | |
7885 | # see comment about AmigaOS4 .so support | |
7886 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7887 | archive_expsym_cmds='' | |
7888 | ;; | |
7889 | m68k) | |
7890 | 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)' | |
7891 | hardcode_libdir_flag_spec='-L$libdir' | |
7892 | hardcode_minus_L=yes | |
7893 | ;; | |
7894 | esac | |
7895 | ;; | |
7896 | ||
7897 | bsdi[45]*) | |
7898 | export_dynamic_flag_spec=-rdynamic | |
7899 | ;; | |
7900 | ||
7901 | cygwin* | mingw* | pw32* | cegcc*) | |
7902 | # When not using gcc, we currently assume that we are using | |
7903 | # Microsoft Visual C++. | |
7904 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7905 | # no search path for DLLs. | |
7906 | hardcode_libdir_flag_spec=' ' | |
7907 | allow_undefined_flag=unsupported | |
7908 | # Tell ltmain to make .lib files, not .a files. | |
7909 | libext=lib | |
7910 | # Tell ltmain to make .dll files, not .so files. | |
7911 | shrext_cmds=".dll" | |
7912 | # FIXME: Setting linknames here is a bad hack. | |
7913 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7914 | # The linker will automatically build a .lib file if we build a DLL. | |
7915 | old_archive_from_new_cmds='true' | |
7916 | # FIXME: Should let the user specify the lib program. | |
7917 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7918 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7919 | enable_shared_with_static_runtimes=yes | |
7920 | ;; | |
7921 | ||
7922 | darwin* | rhapsody*) | |
7923 | ||
7924 | ||
7925 | archive_cmds_need_lc=no | |
7926 | hardcode_direct=no | |
7927 | hardcode_automatic=yes | |
7928 | hardcode_shlibpath_var=unsupported | |
7929 | whole_archive_flag_spec='' | |
7930 | link_all_deplibs=yes | |
7931 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7932 | case $cc_basename in | |
7933 | ifort*) _lt_dar_can_shared=yes ;; | |
7934 | *) _lt_dar_can_shared=$GCC ;; | |
7935 | esac | |
7936 | if test "$_lt_dar_can_shared" = "yes"; then | |
7937 | output_verbose_link_cmd=echo | |
7938 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7939 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7940 | 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}" | |
7941 | 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}" | |
7942 | ||
7943 | else | |
7944 | ld_shlibs=no | |
7945 | fi | |
7946 | ||
7947 | ;; | |
7948 | ||
7949 | dgux*) | |
7950 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7951 | hardcode_libdir_flag_spec='-L$libdir' | |
7952 | hardcode_shlibpath_var=no | |
7953 | ;; | |
7954 | ||
7955 | freebsd1*) | |
7956 | ld_shlibs=no | |
7957 | ;; | |
7958 | ||
7959 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7960 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7961 | # does not break anything, and helps significantly (at the cost of a little | |
7962 | # extra space). | |
7963 | freebsd2.2*) | |
7964 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7965 | hardcode_libdir_flag_spec='-R$libdir' | |
7966 | hardcode_direct=yes | |
7967 | hardcode_shlibpath_var=no | |
7968 | ;; | |
7969 | ||
7970 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7971 | freebsd2*) | |
7972 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7973 | hardcode_direct=yes | |
7974 | hardcode_minus_L=yes | |
7975 | hardcode_shlibpath_var=no | |
7976 | ;; | |
7977 | ||
7978 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7979 | freebsd* | dragonfly*) | |
7980 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7981 | hardcode_libdir_flag_spec='-R$libdir' | |
7982 | hardcode_direct=yes | |
7983 | hardcode_shlibpath_var=no | |
7984 | ;; | |
7985 | ||
7986 | hpux9*) | |
7987 | if test "$GCC" = yes; then | |
7988 | 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' | |
7989 | else | |
7990 | 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' | |
7991 | fi | |
7992 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7993 | hardcode_libdir_separator=: | |
7994 | hardcode_direct=yes | |
7995 | ||
7996 | # hardcode_minus_L: Not really in the search PATH, | |
7997 | # but as the default location of the library. | |
7998 | hardcode_minus_L=yes | |
7999 | export_dynamic_flag_spec='${wl}-E' | |
8000 | ;; | |
8001 | ||
8002 | hpux10*) | |
8003 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8004 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8005 | else | |
8006 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8007 | fi | |
8008 | if test "$with_gnu_ld" = no; then | |
8009 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8010 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8011 | hardcode_libdir_separator=: | |
8012 | hardcode_direct=yes | |
8013 | hardcode_direct_absolute=yes | |
8014 | export_dynamic_flag_spec='${wl}-E' | |
8015 | # hardcode_minus_L: Not really in the search PATH, | |
8016 | # but as the default location of the library. | |
8017 | hardcode_minus_L=yes | |
8018 | fi | |
8019 | ;; | |
8020 | ||
8021 | hpux11*) | |
8022 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8023 | case $host_cpu in | |
8024 | hppa*64*) | |
8025 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8026 | ;; | |
8027 | ia64*) | |
8028 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8029 | ;; | |
8030 | *) | |
8031 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8032 | ;; | |
8033 | esac | |
8034 | else | |
8035 | case $host_cpu in | |
8036 | hppa*64*) | |
8037 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8038 | ;; | |
8039 | ia64*) | |
8040 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8041 | ;; | |
8042 | *) | |
8043 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8044 | ;; | |
8045 | esac | |
8046 | fi | |
8047 | if test "$with_gnu_ld" = no; then | |
8048 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8049 | hardcode_libdir_separator=: | |
8050 | ||
8051 | case $host_cpu in | |
8052 | hppa*64*|ia64*) | |
8053 | hardcode_direct=no | |
8054 | hardcode_shlibpath_var=no | |
8055 | ;; | |
8056 | *) | |
8057 | hardcode_direct=yes | |
8058 | hardcode_direct_absolute=yes | |
8059 | export_dynamic_flag_spec='${wl}-E' | |
8060 | ||
8061 | # hardcode_minus_L: Not really in the search PATH, | |
8062 | # but as the default location of the library. | |
8063 | hardcode_minus_L=yes | |
8064 | ;; | |
8065 | esac | |
8066 | fi | |
8067 | ;; | |
8068 | ||
8069 | irix5* | irix6* | nonstopux*) | |
8070 | if test "$GCC" = yes; then | |
8071 | 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' | |
8072 | # Try to use the -exported_symbol ld option, if it does not | |
8073 | # work, assume that -exports_file does not work either and | |
8074 | # implicitly export all symbols. | |
8075 | save_LDFLAGS="$LDFLAGS" | |
8076 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8078 | /* end confdefs.h. */ | |
8079 | int foo(void) {} | |
8080 | _ACEOF | |
8081 | if ac_fn_c_try_link "$LINENO"; then : | |
8082 | 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' | |
8083 | ||
8084 | fi | |
8085 | rm -f core conftest.err conftest.$ac_objext \ | |
8086 | conftest$ac_exeext conftest.$ac_ext | |
8087 | LDFLAGS="$save_LDFLAGS" | |
8088 | else | |
8089 | 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' | |
8090 | 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' | |
8091 | fi | |
8092 | archive_cmds_need_lc='no' | |
8093 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8094 | hardcode_libdir_separator=: | |
8095 | inherit_rpath=yes | |
8096 | link_all_deplibs=yes | |
8097 | ;; | |
8098 | ||
1504c9b8 | 8099 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
8100 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8101 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8102 | else | |
8103 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8104 | fi | |
8105 | hardcode_libdir_flag_spec='-R$libdir' | |
8106 | hardcode_direct=yes | |
8107 | hardcode_shlibpath_var=no | |
8108 | ;; | |
8109 | ||
8110 | newsos6) | |
8111 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8112 | hardcode_direct=yes | |
8113 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8114 | hardcode_libdir_separator=: | |
8115 | hardcode_shlibpath_var=no | |
8116 | ;; | |
8117 | ||
8118 | *nto* | *qnx*) | |
8119 | ;; | |
8120 | ||
8121 | openbsd*) | |
8122 | if test -f /usr/libexec/ld.so; then | |
8123 | hardcode_direct=yes | |
8124 | hardcode_shlibpath_var=no | |
8125 | hardcode_direct_absolute=yes | |
8126 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8127 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8128 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8129 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8130 | export_dynamic_flag_spec='${wl}-E' | |
8131 | else | |
8132 | case $host_os in | |
8133 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8134 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8135 | hardcode_libdir_flag_spec='-R$libdir' | |
8136 | ;; | |
8137 | *) | |
8138 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8139 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8140 | ;; | |
8141 | esac | |
8142 | fi | |
8143 | else | |
8144 | ld_shlibs=no | |
8145 | fi | |
8146 | ;; | |
8147 | ||
8148 | os2*) | |
8149 | hardcode_libdir_flag_spec='-L$libdir' | |
8150 | hardcode_minus_L=yes | |
8151 | allow_undefined_flag=unsupported | |
8152 | 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' | |
8153 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8154 | ;; | |
8155 | ||
8156 | osf3*) | |
8157 | if test "$GCC" = yes; then | |
8158 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8159 | 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' | |
8160 | else | |
8161 | allow_undefined_flag=' -expect_unresolved \*' | |
8162 | 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' | |
8163 | fi | |
8164 | archive_cmds_need_lc='no' | |
8165 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8166 | hardcode_libdir_separator=: | |
8167 | ;; | |
8168 | ||
8169 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8170 | if test "$GCC" = yes; then | |
8171 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8172 | 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' | |
8173 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8174 | else | |
8175 | allow_undefined_flag=' -expect_unresolved \*' | |
8176 | 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' | |
8177 | 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~ | |
8178 | $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' | |
8179 | ||
8180 | # Both c and cxx compiler support -rpath directly | |
8181 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8182 | fi | |
8183 | archive_cmds_need_lc='no' | |
8184 | hardcode_libdir_separator=: | |
8185 | ;; | |
8186 | ||
8187 | solaris*) | |
8188 | no_undefined_flag=' -z defs' | |
8189 | if test "$GCC" = yes; then | |
8190 | wlarc='${wl}' | |
8191 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8192 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8193 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8194 | else | |
8195 | case `$CC -V 2>&1` in | |
8196 | *"Compilers 5.0"*) | |
8197 | wlarc='' | |
8198 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8199 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8200 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8201 | ;; | |
8202 | *) | |
8203 | wlarc='${wl}' | |
8204 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8205 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8206 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8207 | ;; | |
8208 | esac | |
8209 | fi | |
8210 | hardcode_libdir_flag_spec='-R$libdir' | |
8211 | hardcode_shlibpath_var=no | |
8212 | case $host_os in | |
8213 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8214 | *) | |
8215 | # The compiler driver will combine and reorder linker options, | |
8216 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8217 | # but is careful enough not to reorder. | |
8218 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8219 | if test "$GCC" = yes; then | |
8220 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8221 | else | |
8222 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8223 | fi | |
8224 | ;; | |
8225 | esac | |
8226 | link_all_deplibs=yes | |
8227 | ;; | |
8228 | ||
8229 | sunos4*) | |
8230 | if test "x$host_vendor" = xsequent; then | |
8231 | # Use $CC to link under sequent, because it throws in some extra .o | |
8232 | # files that make .init and .fini sections work. | |
8233 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8234 | else | |
8235 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8236 | fi | |
8237 | hardcode_libdir_flag_spec='-L$libdir' | |
8238 | hardcode_direct=yes | |
8239 | hardcode_minus_L=yes | |
8240 | hardcode_shlibpath_var=no | |
8241 | ;; | |
8242 | ||
8243 | sysv4) | |
8244 | case $host_vendor in | |
8245 | sni) | |
8246 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8247 | hardcode_direct=yes # is this really true??? | |
8248 | ;; | |
8249 | siemens) | |
8250 | ## LD is ld it makes a PLAMLIB | |
8251 | ## CC just makes a GrossModule. | |
8252 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8253 | reload_cmds='$CC -r -o $output$reload_objs' | |
8254 | hardcode_direct=no | |
8255 | ;; | |
8256 | motorola) | |
8257 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8258 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8259 | ;; | |
8260 | esac | |
8261 | runpath_var='LD_RUN_PATH' | |
8262 | hardcode_shlibpath_var=no | |
8263 | ;; | |
8264 | ||
8265 | sysv4.3*) | |
8266 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8267 | hardcode_shlibpath_var=no | |
8268 | export_dynamic_flag_spec='-Bexport' | |
8269 | ;; | |
8270 | ||
8271 | sysv4*MP*) | |
8272 | if test -d /usr/nec; then | |
8273 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8274 | hardcode_shlibpath_var=no | |
8275 | runpath_var=LD_RUN_PATH | |
8276 | hardcode_runpath_var=yes | |
8277 | ld_shlibs=yes | |
8278 | fi | |
8279 | ;; | |
8280 | ||
8281 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8282 | no_undefined_flag='${wl}-z,text' | |
8283 | archive_cmds_need_lc=no | |
8284 | hardcode_shlibpath_var=no | |
8285 | runpath_var='LD_RUN_PATH' | |
8286 | ||
8287 | if test "$GCC" = yes; then | |
8288 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8289 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8290 | else | |
8291 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8292 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8293 | fi | |
8294 | ;; | |
8295 | ||
8296 | sysv5* | sco3.2v5* | sco5v6*) | |
8297 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8298 | # link with -lc, and that would cause any symbols used from libc to | |
8299 | # always be unresolved, which means just about no library would | |
8300 | # ever link correctly. If we're not using GNU ld we use -z text | |
8301 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8302 | # as -z defs. | |
8303 | no_undefined_flag='${wl}-z,text' | |
8304 | allow_undefined_flag='${wl}-z,nodefs' | |
8305 | archive_cmds_need_lc=no | |
8306 | hardcode_shlibpath_var=no | |
8307 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8308 | hardcode_libdir_separator=':' | |
8309 | link_all_deplibs=yes | |
8310 | export_dynamic_flag_spec='${wl}-Bexport' | |
8311 | runpath_var='LD_RUN_PATH' | |
8312 | ||
8313 | if test "$GCC" = yes; then | |
8314 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8315 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8316 | else | |
8317 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8318 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8319 | fi | |
8320 | ;; | |
8321 | ||
8322 | uts4*) | |
8323 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8324 | hardcode_libdir_flag_spec='-L$libdir' | |
8325 | hardcode_shlibpath_var=no | |
8326 | ;; | |
8327 | ||
8328 | *) | |
8329 | ld_shlibs=no | |
8330 | ;; | |
8331 | esac | |
8332 | ||
8333 | if test x$host_vendor = xsni; then | |
8334 | case $host in | |
8335 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8336 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8337 | ;; | |
8338 | esac | |
8339 | fi | |
8340 | fi | |
8341 | ||
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8343 | $as_echo "$ld_shlibs" >&6; } | |
8344 | test "$ld_shlibs" = no && can_build_shared=no | |
8345 | ||
8346 | with_gnu_ld=$with_gnu_ld | |
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | ||
8354 | ||
8355 | ||
8356 | ||
8357 | ||
8358 | ||
8359 | ||
8360 | ||
8361 | ||
8362 | # | |
8363 | # Do we need to explicitly link libc? | |
8364 | # | |
8365 | case "x$archive_cmds_need_lc" in | |
8366 | x|xyes) | |
8367 | # Assume -lc should be added | |
8368 | archive_cmds_need_lc=yes | |
8369 | ||
8370 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8371 | case $archive_cmds in | |
8372 | *'~'*) | |
8373 | # FIXME: we may have to deal with multi-command sequences. | |
8374 | ;; | |
8375 | '$CC '*) | |
8376 | # Test whether the compiler implicitly links with -lc since on some | |
8377 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8378 | # to ld, don't add -lc before -lgcc. | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8380 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8381 | $RM conftest* | |
8382 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8383 | ||
8384 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8385 | (eval $ac_compile) 2>&5 | |
8386 | ac_status=$? | |
8387 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8388 | test $ac_status = 0; } 2>conftest.err; then | |
8389 | soname=conftest | |
8390 | lib=conftest | |
8391 | libobjs=conftest.$ac_objext | |
8392 | deplibs= | |
8393 | wl=$lt_prog_compiler_wl | |
8394 | pic_flag=$lt_prog_compiler_pic | |
8395 | compiler_flags=-v | |
8396 | linker_flags=-v | |
8397 | verstring= | |
8398 | output_objdir=. | |
8399 | libname=conftest | |
8400 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8401 | allow_undefined_flag= | |
8402 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8403 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8404 | ac_status=$? | |
8405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8406 | test $ac_status = 0; } | |
8407 | then | |
8408 | archive_cmds_need_lc=no | |
8409 | else | |
8410 | archive_cmds_need_lc=yes | |
8411 | fi | |
8412 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8413 | else | |
8414 | cat conftest.err 1>&5 | |
8415 | fi | |
8416 | $RM conftest* | |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8418 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8419 | ;; | |
8420 | esac | |
8421 | fi | |
8422 | ;; | |
8423 | esac | |
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 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8582 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8583 | ||
8584 | if test "$GCC" = yes; then | |
8585 | case $host_os in | |
8586 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8587 | *) lt_awk_arg="/^libraries:/" ;; | |
8588 | esac | |
8589 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8590 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8591 | # if the path contains ";" then we assume it to be the separator | |
8592 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8593 | # assumed that no part of a normal pathname contains ";" but that should | |
8594 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8595 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8596 | else | |
8597 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8598 | fi | |
8599 | # Ok, now we have the path, separated by spaces, we can step through it | |
8600 | # and add multilib dir if necessary. | |
8601 | lt_tmp_lt_search_path_spec= | |
8602 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8603 | for lt_sys_path in $lt_search_path_spec; do | |
8604 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8605 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8606 | else | |
8607 | test -d "$lt_sys_path" && \ | |
8608 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8609 | fi | |
8610 | done | |
8611 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8612 | BEGIN {RS=" "; FS="/|\n";} { | |
8613 | lt_foo=""; | |
8614 | lt_count=0; | |
8615 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8616 | if ($lt_i != "" && $lt_i != ".") { | |
8617 | if ($lt_i == "..") { | |
8618 | lt_count++; | |
8619 | } else { | |
8620 | if (lt_count == 0) { | |
8621 | lt_foo="/" $lt_i lt_foo; | |
8622 | } else { | |
8623 | lt_count--; | |
8624 | } | |
8625 | } | |
8626 | } | |
8627 | } | |
8628 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8629 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8630 | }'` | |
8631 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8632 | else | |
8633 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8634 | fi | |
8635 | library_names_spec= | |
8636 | libname_spec='lib$name' | |
8637 | soname_spec= | |
8638 | shrext_cmds=".so" | |
8639 | postinstall_cmds= | |
8640 | postuninstall_cmds= | |
8641 | finish_cmds= | |
8642 | finish_eval= | |
8643 | shlibpath_var= | |
8644 | shlibpath_overrides_runpath=unknown | |
8645 | version_type=none | |
8646 | dynamic_linker="$host_os ld.so" | |
8647 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8648 | need_lib_prefix=unknown | |
8649 | hardcode_into_libs=no | |
8650 | ||
8651 | # when you set need_version to no, make sure it does not cause -set_version | |
8652 | # flags to be left without arguments | |
8653 | need_version=unknown | |
8654 | ||
8655 | case $host_os in | |
8656 | aix3*) | |
8657 | version_type=linux | |
8658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8659 | shlibpath_var=LIBPATH | |
8660 | ||
8661 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8662 | soname_spec='${libname}${release}${shared_ext}$major' | |
8663 | ;; | |
8664 | ||
8665 | aix[4-9]*) | |
8666 | version_type=linux | |
8667 | need_lib_prefix=no | |
8668 | need_version=no | |
8669 | hardcode_into_libs=yes | |
8670 | if test "$host_cpu" = ia64; then | |
8671 | # AIX 5 supports IA64 | |
8672 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8673 | shlibpath_var=LD_LIBRARY_PATH | |
8674 | else | |
8675 | # With GCC up to 2.95.x, collect2 would create an import file | |
8676 | # for dependence libraries. The import file would start with | |
8677 | # the line `#! .'. This would cause the generated library to | |
8678 | # depend on `.', always an invalid library. This was fixed in | |
8679 | # development snapshots of GCC prior to 3.0. | |
8680 | case $host_os in | |
8681 | aix4 | aix4.[01] | aix4.[01].*) | |
8682 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8683 | echo ' yes ' | |
8684 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8685 | : | |
8686 | else | |
8687 | can_build_shared=no | |
8688 | fi | |
8689 | ;; | |
8690 | esac | |
8691 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8692 | # soname into executable. Probably we can add versioning support to | |
8693 | # collect2, so additional links can be useful in future. | |
8694 | if test "$aix_use_runtimelinking" = yes; then | |
8695 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8696 | # instead of lib<name>.a to let people know that these are not | |
8697 | # typical AIX shared libraries. | |
8698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8699 | else | |
8700 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8701 | # and later when we are not doing run time linking. | |
8702 | library_names_spec='${libname}${release}.a $libname.a' | |
8703 | soname_spec='${libname}${release}${shared_ext}$major' | |
8704 | fi | |
8705 | shlibpath_var=LIBPATH | |
8706 | fi | |
8707 | ;; | |
8708 | ||
8709 | amigaos*) | |
8710 | case $host_cpu in | |
8711 | powerpc) | |
8712 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8713 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8715 | ;; | |
8716 | m68k) | |
8717 | library_names_spec='$libname.ixlibrary $libname.a' | |
8718 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8719 | 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' | |
8720 | ;; | |
8721 | esac | |
8722 | ;; | |
8723 | ||
8724 | beos*) | |
8725 | library_names_spec='${libname}${shared_ext}' | |
8726 | dynamic_linker="$host_os ld.so" | |
8727 | shlibpath_var=LIBRARY_PATH | |
8728 | ;; | |
8729 | ||
8730 | bsdi[45]*) | |
8731 | version_type=linux | |
8732 | need_version=no | |
8733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8734 | soname_spec='${libname}${release}${shared_ext}$major' | |
8735 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8736 | shlibpath_var=LD_LIBRARY_PATH | |
8737 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8738 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8739 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8740 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8741 | # libtool to hard-code these into programs | |
8742 | ;; | |
8743 | ||
8744 | cygwin* | mingw* | pw32* | cegcc*) | |
8745 | version_type=windows | |
8746 | shrext_cmds=".dll" | |
8747 | need_version=no | |
8748 | need_lib_prefix=no | |
8749 | ||
8750 | case $GCC,$host_os in | |
8751 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8752 | library_names_spec='$libname.dll.a' | |
8753 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8754 | postinstall_cmds='base_file=`basename \${file}`~ | |
8755 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8756 | dldir=$destdir/`dirname \$dlpath`~ | |
8757 | test -d \$dldir || mkdir -p \$dldir~ | |
8758 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8759 | chmod a+x \$dldir/$dlname~ | |
8760 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8761 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8762 | fi' | |
8763 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8764 | dlpath=$dir/\$dldll~ | |
8765 | $RM \$dlpath' | |
8766 | shlibpath_overrides_runpath=yes | |
8767 | ||
8768 | case $host_os in | |
8769 | cygwin*) | |
8770 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8771 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8772 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8773 | ;; | |
8774 | mingw* | cegcc*) | |
8775 | # MinGW DLLs use traditional 'lib' prefix | |
8776 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8777 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8778 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8779 | # It is most probably a Windows format PATH printed by | |
8780 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8781 | # path with ; separators, and with drive letters. We can handle the | |
8782 | # drive letters (cygwin fileutils understands them), so leave them, | |
8783 | # especially as we might pass files found there to a mingw objdump, | |
8784 | # which wouldn't understand a cygwinified path. Ahh. | |
8785 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8786 | else | |
8787 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8788 | fi | |
8789 | ;; | |
8790 | pw32*) | |
8791 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8792 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8793 | ;; | |
8794 | esac | |
8795 | ;; | |
8796 | ||
8797 | *) | |
8798 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8799 | ;; | |
8800 | esac | |
8801 | dynamic_linker='Win32 ld.exe' | |
8802 | # FIXME: first we should search . and the directory the executable is in | |
8803 | shlibpath_var=PATH | |
8804 | ;; | |
8805 | ||
8806 | darwin* | rhapsody*) | |
8807 | dynamic_linker="$host_os dyld" | |
8808 | version_type=darwin | |
8809 | need_lib_prefix=no | |
8810 | need_version=no | |
8811 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8812 | soname_spec='${libname}${release}${major}$shared_ext' | |
8813 | shlibpath_overrides_runpath=yes | |
8814 | shlibpath_var=DYLD_LIBRARY_PATH | |
8815 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8816 | ||
8817 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8818 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8819 | ;; | |
8820 | ||
8821 | dgux*) | |
8822 | version_type=linux | |
8823 | need_lib_prefix=no | |
8824 | need_version=no | |
8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8826 | soname_spec='${libname}${release}${shared_ext}$major' | |
8827 | shlibpath_var=LD_LIBRARY_PATH | |
8828 | ;; | |
8829 | ||
8830 | freebsd1*) | |
8831 | dynamic_linker=no | |
8832 | ;; | |
8833 | ||
8834 | freebsd* | dragonfly*) | |
8835 | # DragonFly does not have aout. When/if they implement a new | |
8836 | # versioning mechanism, adjust this. | |
8837 | if test -x /usr/bin/objformat; then | |
8838 | objformat=`/usr/bin/objformat` | |
8839 | else | |
8840 | case $host_os in | |
8841 | freebsd[123]*) objformat=aout ;; | |
8842 | *) objformat=elf ;; | |
8843 | esac | |
8844 | fi | |
8845 | version_type=freebsd-$objformat | |
8846 | case $version_type in | |
8847 | freebsd-elf*) | |
8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8849 | need_version=no | |
8850 | need_lib_prefix=no | |
8851 | ;; | |
8852 | freebsd-*) | |
8853 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8854 | need_version=yes | |
8855 | ;; | |
8856 | esac | |
8857 | shlibpath_var=LD_LIBRARY_PATH | |
8858 | case $host_os in | |
8859 | freebsd2*) | |
8860 | shlibpath_overrides_runpath=yes | |
8861 | ;; | |
8862 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8863 | shlibpath_overrides_runpath=yes | |
8864 | hardcode_into_libs=yes | |
8865 | ;; | |
8866 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8867 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8868 | shlibpath_overrides_runpath=no | |
8869 | hardcode_into_libs=yes | |
8870 | ;; | |
8871 | *) # from 4.6 on, and DragonFly | |
8872 | shlibpath_overrides_runpath=yes | |
8873 | hardcode_into_libs=yes | |
8874 | ;; | |
8875 | esac | |
8876 | ;; | |
8877 | ||
8878 | gnu*) | |
8879 | version_type=linux | |
8880 | need_lib_prefix=no | |
8881 | need_version=no | |
8882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8883 | soname_spec='${libname}${release}${shared_ext}$major' | |
8884 | shlibpath_var=LD_LIBRARY_PATH | |
8885 | hardcode_into_libs=yes | |
8886 | ;; | |
8887 | ||
8888 | hpux9* | hpux10* | hpux11*) | |
8889 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8890 | # link against other versions. | |
8891 | version_type=sunos | |
8892 | need_lib_prefix=no | |
8893 | need_version=no | |
8894 | case $host_cpu in | |
8895 | ia64*) | |
8896 | shrext_cmds='.so' | |
8897 | hardcode_into_libs=yes | |
8898 | dynamic_linker="$host_os dld.so" | |
8899 | shlibpath_var=LD_LIBRARY_PATH | |
8900 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8902 | soname_spec='${libname}${release}${shared_ext}$major' | |
8903 | if test "X$HPUX_IA64_MODE" = X32; then | |
8904 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8905 | else | |
8906 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8907 | fi | |
8908 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8909 | ;; | |
8910 | hppa*64*) | |
8911 | shrext_cmds='.sl' | |
8912 | hardcode_into_libs=yes | |
8913 | dynamic_linker="$host_os dld.sl" | |
8914 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8915 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8917 | soname_spec='${libname}${release}${shared_ext}$major' | |
8918 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8919 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8920 | ;; | |
8921 | *) | |
8922 | shrext_cmds='.sl' | |
8923 | dynamic_linker="$host_os dld.sl" | |
8924 | shlibpath_var=SHLIB_PATH | |
8925 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8927 | soname_spec='${libname}${release}${shared_ext}$major' | |
8928 | ;; | |
8929 | esac | |
8930 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8931 | postinstall_cmds='chmod 555 $lib' | |
8932 | ;; | |
8933 | ||
8934 | interix[3-9]*) | |
8935 | version_type=linux | |
8936 | need_lib_prefix=no | |
8937 | need_version=no | |
8938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8939 | soname_spec='${libname}${release}${shared_ext}$major' | |
8940 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8941 | shlibpath_var=LD_LIBRARY_PATH | |
8942 | shlibpath_overrides_runpath=no | |
8943 | hardcode_into_libs=yes | |
8944 | ;; | |
8945 | ||
8946 | irix5* | irix6* | nonstopux*) | |
8947 | case $host_os in | |
8948 | nonstopux*) version_type=nonstopux ;; | |
8949 | *) | |
8950 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8951 | version_type=linux | |
8952 | else | |
8953 | version_type=irix | |
8954 | fi ;; | |
8955 | esac | |
8956 | need_lib_prefix=no | |
8957 | need_version=no | |
8958 | soname_spec='${libname}${release}${shared_ext}$major' | |
8959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8960 | case $host_os in | |
8961 | irix5* | nonstopux*) | |
8962 | libsuff= shlibsuff= | |
8963 | ;; | |
8964 | *) | |
8965 | case $LD in # libtool.m4 will add one of these switches to LD | |
8966 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8967 | libsuff= shlibsuff= libmagic=32-bit;; | |
8968 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8969 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8970 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8971 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8972 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8973 | esac | |
8974 | ;; | |
8975 | esac | |
8976 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8977 | shlibpath_overrides_runpath=no | |
8978 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8979 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8980 | hardcode_into_libs=yes | |
8981 | ;; | |
8982 | ||
8983 | # No shared lib support for Linux oldld, aout, or coff. | |
8984 | linux*oldld* | linux*aout* | linux*coff*) | |
8985 | dynamic_linker=no | |
8986 | ;; | |
8987 | ||
8988 | # This must be Linux ELF. | |
1504c9b8 | 8989 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
8990 | version_type=linux |
8991 | need_lib_prefix=no | |
8992 | need_version=no | |
8993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8994 | soname_spec='${libname}${release}${shared_ext}$major' | |
8995 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8996 | shlibpath_var=LD_LIBRARY_PATH | |
8997 | shlibpath_overrides_runpath=no | |
8998 | # Some binutils ld are patched to set DT_RUNPATH | |
8999 | save_LDFLAGS=$LDFLAGS | |
9000 | save_libdir=$libdir | |
9001 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9002 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9004 | /* end confdefs.h. */ | |
9005 | ||
9006 | int | |
9007 | main () | |
9008 | { | |
9009 | ||
9010 | ; | |
9011 | return 0; | |
9012 | } | |
9013 | _ACEOF | |
9014 | if ac_fn_c_try_link "$LINENO"; then : | |
9015 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9016 | shlibpath_overrides_runpath=yes | |
9017 | fi | |
9018 | fi | |
9019 | rm -f core conftest.err conftest.$ac_objext \ | |
9020 | conftest$ac_exeext conftest.$ac_ext | |
9021 | LDFLAGS=$save_LDFLAGS | |
9022 | libdir=$save_libdir | |
9023 | ||
9024 | # This implies no fast_install, which is unacceptable. | |
9025 | # Some rework will be needed to allow for fast_install | |
9026 | # before this can be enabled. | |
9027 | hardcode_into_libs=yes | |
9028 | ||
9029 | # Append ld.so.conf contents to the search path | |
9030 | if test -f /etc/ld.so.conf; then | |
9031 | 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' ' '` | |
9032 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9033 | fi | |
9034 | ||
9035 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9036 | # powerpc, because MkLinux only supported shared libraries with the | |
9037 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9038 | # most powerpc-linux boxes support dynamic linking these days and | |
9039 | # people can always --disable-shared, the test was removed, and we | |
9040 | # assume the GNU/Linux dynamic linker is in use. | |
9041 | dynamic_linker='GNU/Linux ld.so' | |
9042 | ;; | |
9043 | ||
1504c9b8 DWT |
9044 | netbsdelf*-gnu) |
9045 | version_type=linux | |
9046 | need_lib_prefix=no | |
9047 | need_version=no | |
9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9049 | soname_spec='${libname}${release}${shared_ext}$major' | |
9050 | shlibpath_var=LD_LIBRARY_PATH | |
9051 | shlibpath_overrides_runpath=no | |
9052 | hardcode_into_libs=yes | |
9053 | dynamic_linker='NetBSD ld.elf_so' | |
9054 | ;; | |
9055 | ||
9c60689e DWT |
9056 | netbsd*) |
9057 | version_type=sunos | |
9058 | need_lib_prefix=no | |
9059 | need_version=no | |
9060 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9062 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9063 | dynamic_linker='NetBSD (a.out) ld.so' | |
9064 | else | |
9065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9066 | soname_spec='${libname}${release}${shared_ext}$major' | |
9067 | dynamic_linker='NetBSD ld.elf_so' | |
9068 | fi | |
9069 | shlibpath_var=LD_LIBRARY_PATH | |
9070 | shlibpath_overrides_runpath=yes | |
9071 | hardcode_into_libs=yes | |
9072 | ;; | |
9073 | ||
9074 | newsos6) | |
9075 | version_type=linux | |
9076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9077 | shlibpath_var=LD_LIBRARY_PATH | |
9078 | shlibpath_overrides_runpath=yes | |
9079 | ;; | |
9080 | ||
9081 | *nto* | *qnx*) | |
9082 | version_type=qnx | |
9083 | need_lib_prefix=no | |
9084 | need_version=no | |
9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9086 | soname_spec='${libname}${release}${shared_ext}$major' | |
9087 | shlibpath_var=LD_LIBRARY_PATH | |
9088 | shlibpath_overrides_runpath=no | |
9089 | hardcode_into_libs=yes | |
9090 | dynamic_linker='ldqnx.so' | |
9091 | ;; | |
9092 | ||
9093 | openbsd*) | |
9094 | version_type=sunos | |
9095 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9096 | need_lib_prefix=no | |
9097 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9098 | case $host_os in | |
9099 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9100 | *) need_version=no ;; | |
9101 | esac | |
9102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9103 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9104 | shlibpath_var=LD_LIBRARY_PATH | |
9105 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9106 | case $host_os in | |
9107 | openbsd2.[89] | openbsd2.[89].*) | |
9108 | shlibpath_overrides_runpath=no | |
9109 | ;; | |
9110 | *) | |
9111 | shlibpath_overrides_runpath=yes | |
9112 | ;; | |
9113 | esac | |
9114 | else | |
9115 | shlibpath_overrides_runpath=yes | |
9116 | fi | |
9117 | ;; | |
9118 | ||
9119 | os2*) | |
9120 | libname_spec='$name' | |
9121 | shrext_cmds=".dll" | |
9122 | need_lib_prefix=no | |
9123 | library_names_spec='$libname${shared_ext} $libname.a' | |
9124 | dynamic_linker='OS/2 ld.exe' | |
9125 | shlibpath_var=LIBPATH | |
9126 | ;; | |
9127 | ||
9128 | osf3* | osf4* | osf5*) | |
9129 | version_type=osf | |
9130 | need_lib_prefix=no | |
9131 | need_version=no | |
9132 | soname_spec='${libname}${release}${shared_ext}$major' | |
9133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9134 | shlibpath_var=LD_LIBRARY_PATH | |
9135 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9136 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9137 | ;; | |
9138 | ||
9139 | rdos*) | |
9140 | dynamic_linker=no | |
9141 | ;; | |
9142 | ||
9143 | solaris*) | |
9144 | version_type=linux | |
9145 | need_lib_prefix=no | |
9146 | need_version=no | |
9147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9148 | soname_spec='${libname}${release}${shared_ext}$major' | |
9149 | shlibpath_var=LD_LIBRARY_PATH | |
9150 | shlibpath_overrides_runpath=yes | |
9151 | hardcode_into_libs=yes | |
9152 | # ldd complains unless libraries are executable | |
9153 | postinstall_cmds='chmod +x $lib' | |
9154 | ;; | |
9155 | ||
9156 | sunos4*) | |
9157 | version_type=sunos | |
9158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9159 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9160 | shlibpath_var=LD_LIBRARY_PATH | |
9161 | shlibpath_overrides_runpath=yes | |
9162 | if test "$with_gnu_ld" = yes; then | |
9163 | need_lib_prefix=no | |
9164 | fi | |
9165 | need_version=yes | |
9166 | ;; | |
9167 | ||
9168 | sysv4 | sysv4.3*) | |
9169 | version_type=linux | |
9170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9171 | soname_spec='${libname}${release}${shared_ext}$major' | |
9172 | shlibpath_var=LD_LIBRARY_PATH | |
9173 | case $host_vendor in | |
9174 | sni) | |
9175 | shlibpath_overrides_runpath=no | |
9176 | need_lib_prefix=no | |
9177 | runpath_var=LD_RUN_PATH | |
9178 | ;; | |
9179 | siemens) | |
9180 | need_lib_prefix=no | |
9181 | ;; | |
9182 | motorola) | |
9183 | need_lib_prefix=no | |
9184 | need_version=no | |
9185 | shlibpath_overrides_runpath=no | |
9186 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9187 | ;; | |
9188 | esac | |
9189 | ;; | |
9190 | ||
9191 | sysv4*MP*) | |
9192 | if test -d /usr/nec ;then | |
9193 | version_type=linux | |
9194 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9195 | soname_spec='$libname${shared_ext}.$major' | |
9196 | shlibpath_var=LD_LIBRARY_PATH | |
9197 | fi | |
9198 | ;; | |
9199 | ||
9200 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9201 | version_type=freebsd-elf | |
9202 | need_lib_prefix=no | |
9203 | need_version=no | |
9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9205 | soname_spec='${libname}${release}${shared_ext}$major' | |
9206 | shlibpath_var=LD_LIBRARY_PATH | |
9207 | shlibpath_overrides_runpath=yes | |
9208 | hardcode_into_libs=yes | |
9209 | if test "$with_gnu_ld" = yes; then | |
9210 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9211 | else | |
9212 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9213 | case $host_os in | |
9214 | sco3.2v5*) | |
9215 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9216 | ;; | |
9217 | esac | |
9218 | fi | |
9219 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9220 | ;; | |
9221 | ||
9222 | tpf*) | |
9223 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9224 | version_type=linux | |
9225 | need_lib_prefix=no | |
9226 | need_version=no | |
9227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9228 | shlibpath_var=LD_LIBRARY_PATH | |
9229 | shlibpath_overrides_runpath=no | |
9230 | hardcode_into_libs=yes | |
9231 | ;; | |
9232 | ||
9233 | uts4*) | |
9234 | version_type=linux | |
9235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9236 | soname_spec='${libname}${release}${shared_ext}$major' | |
9237 | shlibpath_var=LD_LIBRARY_PATH | |
9238 | ;; | |
9239 | ||
9240 | *) | |
9241 | dynamic_linker=no | |
9242 | ;; | |
9243 | esac | |
9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9245 | $as_echo "$dynamic_linker" >&6; } | |
9246 | test "$dynamic_linker" = no && can_build_shared=no | |
9247 | ||
9248 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9249 | if test "$GCC" = yes; then | |
9250 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9251 | fi | |
9252 | ||
9253 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9254 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9255 | fi | |
9256 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9257 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9258 | fi | |
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 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | ||
9345 | ||
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9347 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9348 | hardcode_action= | |
9349 | if test -n "$hardcode_libdir_flag_spec" || | |
9350 | test -n "$runpath_var" || | |
9351 | test "X$hardcode_automatic" = "Xyes" ; then | |
9352 | ||
9353 | # We can hardcode non-existent directories. | |
9354 | if test "$hardcode_direct" != no && | |
9355 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9356 | # have to relink, otherwise we might link with an installed library | |
9357 | # when we should be linking with a yet-to-be-installed one | |
9358 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9359 | test "$hardcode_minus_L" != no; then | |
9360 | # Linking always hardcodes the temporary library directory. | |
9361 | hardcode_action=relink | |
9362 | else | |
9363 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9364 | hardcode_action=immediate | |
9365 | fi | |
9366 | else | |
9367 | # We cannot hardcode anything, or else we can only hardcode existing | |
9368 | # directories. | |
9369 | hardcode_action=unsupported | |
9370 | fi | |
9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9372 | $as_echo "$hardcode_action" >&6; } | |
9373 | ||
9374 | if test "$hardcode_action" = relink || | |
9375 | test "$inherit_rpath" = yes; then | |
9376 | # Fast installation is not supported | |
9377 | enable_fast_install=no | |
9378 | elif test "$shlibpath_overrides_runpath" = yes || | |
9379 | test "$enable_shared" = no; then | |
9380 | # Fast installation is not necessary | |
9381 | enable_fast_install=needless | |
9382 | fi | |
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | if test "x$enable_dlopen" != xyes; then | |
9390 | enable_dlopen=unknown | |
9391 | enable_dlopen_self=unknown | |
9392 | enable_dlopen_self_static=unknown | |
9393 | else | |
9394 | lt_cv_dlopen=no | |
9395 | lt_cv_dlopen_libs= | |
9396 | ||
9397 | case $host_os in | |
9398 | beos*) | |
9399 | lt_cv_dlopen="load_add_on" | |
9400 | lt_cv_dlopen_libs= | |
9401 | lt_cv_dlopen_self=yes | |
9402 | ;; | |
9403 | ||
9404 | mingw* | pw32* | cegcc*) | |
9405 | lt_cv_dlopen="LoadLibrary" | |
9406 | lt_cv_dlopen_libs= | |
9407 | ;; | |
9408 | ||
9409 | cygwin*) | |
9410 | lt_cv_dlopen="dlopen" | |
9411 | lt_cv_dlopen_libs= | |
9412 | ;; | |
9413 | ||
9414 | darwin*) | |
9415 | # if libdl is installed we need to link against it | |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9417 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9418 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9419 | $as_echo_n "(cached) " >&6 | |
9420 | else | |
9421 | ac_check_lib_save_LIBS=$LIBS | |
9422 | LIBS="-ldl $LIBS" | |
9423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9424 | /* end confdefs.h. */ | |
9425 | ||
9426 | /* Override any GCC internal prototype to avoid an error. | |
9427 | Use char because int might match the return type of a GCC | |
9428 | builtin and then its argument prototype would still apply. */ | |
9429 | #ifdef __cplusplus | |
9430 | extern "C" | |
9431 | #endif | |
9432 | char dlopen (); | |
9433 | int | |
9434 | main () | |
9435 | { | |
9436 | return dlopen (); | |
9437 | ; | |
9438 | return 0; | |
9439 | } | |
9440 | _ACEOF | |
9441 | if ac_fn_c_try_link "$LINENO"; then : | |
9442 | ac_cv_lib_dl_dlopen=yes | |
9443 | else | |
9444 | ac_cv_lib_dl_dlopen=no | |
9445 | fi | |
9446 | rm -f core conftest.err conftest.$ac_objext \ | |
9447 | conftest$ac_exeext conftest.$ac_ext | |
9448 | LIBS=$ac_check_lib_save_LIBS | |
9449 | fi | |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9451 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9452 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9453 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9454 | else | |
9455 | ||
9456 | lt_cv_dlopen="dyld" | |
9457 | lt_cv_dlopen_libs= | |
9458 | lt_cv_dlopen_self=yes | |
9459 | ||
9460 | fi | |
9461 | ||
9462 | ;; | |
9463 | ||
9464 | *) | |
9465 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9466 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9467 | lt_cv_dlopen="shl_load" | |
9468 | else | |
9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9470 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9471 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9472 | $as_echo_n "(cached) " >&6 | |
9473 | else | |
9474 | ac_check_lib_save_LIBS=$LIBS | |
9475 | LIBS="-ldld $LIBS" | |
9476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9477 | /* end confdefs.h. */ | |
9478 | ||
9479 | /* Override any GCC internal prototype to avoid an error. | |
9480 | Use char because int might match the return type of a GCC | |
9481 | builtin and then its argument prototype would still apply. */ | |
9482 | #ifdef __cplusplus | |
9483 | extern "C" | |
9484 | #endif | |
9485 | char shl_load (); | |
9486 | int | |
9487 | main () | |
9488 | { | |
9489 | return shl_load (); | |
9490 | ; | |
9491 | return 0; | |
9492 | } | |
9493 | _ACEOF | |
9494 | if ac_fn_c_try_link "$LINENO"; then : | |
9495 | ac_cv_lib_dld_shl_load=yes | |
9496 | else | |
9497 | ac_cv_lib_dld_shl_load=no | |
9498 | fi | |
9499 | rm -f core conftest.err conftest.$ac_objext \ | |
9500 | conftest$ac_exeext conftest.$ac_ext | |
9501 | LIBS=$ac_check_lib_save_LIBS | |
9502 | fi | |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9504 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9505 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9506 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9507 | else | |
9508 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9509 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9510 | lt_cv_dlopen="dlopen" | |
9511 | else | |
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9513 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9514 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9515 | $as_echo_n "(cached) " >&6 | |
9516 | else | |
9517 | ac_check_lib_save_LIBS=$LIBS | |
9518 | LIBS="-ldl $LIBS" | |
9519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9520 | /* end confdefs.h. */ | |
9521 | ||
9522 | /* Override any GCC internal prototype to avoid an error. | |
9523 | Use char because int might match the return type of a GCC | |
9524 | builtin and then its argument prototype would still apply. */ | |
9525 | #ifdef __cplusplus | |
9526 | extern "C" | |
9527 | #endif | |
9528 | char dlopen (); | |
9529 | int | |
9530 | main () | |
9531 | { | |
9532 | return dlopen (); | |
9533 | ; | |
9534 | return 0; | |
9535 | } | |
9536 | _ACEOF | |
9537 | if ac_fn_c_try_link "$LINENO"; then : | |
9538 | ac_cv_lib_dl_dlopen=yes | |
9539 | else | |
9540 | ac_cv_lib_dl_dlopen=no | |
9541 | fi | |
9542 | rm -f core conftest.err conftest.$ac_objext \ | |
9543 | conftest$ac_exeext conftest.$ac_ext | |
9544 | LIBS=$ac_check_lib_save_LIBS | |
9545 | fi | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9547 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9548 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9549 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9550 | else | |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9552 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9553 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9554 | $as_echo_n "(cached) " >&6 | |
9555 | else | |
9556 | ac_check_lib_save_LIBS=$LIBS | |
9557 | LIBS="-lsvld $LIBS" | |
9558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9559 | /* end confdefs.h. */ | |
9560 | ||
9561 | /* Override any GCC internal prototype to avoid an error. | |
9562 | Use char because int might match the return type of a GCC | |
9563 | builtin and then its argument prototype would still apply. */ | |
9564 | #ifdef __cplusplus | |
9565 | extern "C" | |
9566 | #endif | |
9567 | char dlopen (); | |
9568 | int | |
9569 | main () | |
9570 | { | |
9571 | return dlopen (); | |
9572 | ; | |
9573 | return 0; | |
9574 | } | |
9575 | _ACEOF | |
9576 | if ac_fn_c_try_link "$LINENO"; then : | |
9577 | ac_cv_lib_svld_dlopen=yes | |
9578 | else | |
9579 | ac_cv_lib_svld_dlopen=no | |
9580 | fi | |
9581 | rm -f core conftest.err conftest.$ac_objext \ | |
9582 | conftest$ac_exeext conftest.$ac_ext | |
9583 | LIBS=$ac_check_lib_save_LIBS | |
9584 | fi | |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9586 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9587 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9588 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9589 | else | |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9591 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9592 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9593 | $as_echo_n "(cached) " >&6 | |
9594 | else | |
9595 | ac_check_lib_save_LIBS=$LIBS | |
9596 | LIBS="-ldld $LIBS" | |
9597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9598 | /* end confdefs.h. */ | |
9599 | ||
9600 | /* Override any GCC internal prototype to avoid an error. | |
9601 | Use char because int might match the return type of a GCC | |
9602 | builtin and then its argument prototype would still apply. */ | |
9603 | #ifdef __cplusplus | |
9604 | extern "C" | |
9605 | #endif | |
9606 | char dld_link (); | |
9607 | int | |
9608 | main () | |
9609 | { | |
9610 | return dld_link (); | |
9611 | ; | |
9612 | return 0; | |
9613 | } | |
9614 | _ACEOF | |
9615 | if ac_fn_c_try_link "$LINENO"; then : | |
9616 | ac_cv_lib_dld_dld_link=yes | |
9617 | else | |
9618 | ac_cv_lib_dld_dld_link=no | |
9619 | fi | |
9620 | rm -f core conftest.err conftest.$ac_objext \ | |
9621 | conftest$ac_exeext conftest.$ac_ext | |
9622 | LIBS=$ac_check_lib_save_LIBS | |
9623 | fi | |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9625 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9626 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9627 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9628 | fi | |
9629 | ||
9630 | ||
9631 | fi | |
9632 | ||
9633 | ||
9634 | fi | |
9635 | ||
9636 | ||
9637 | fi | |
9638 | ||
9639 | ||
9640 | fi | |
9641 | ||
9642 | ||
9643 | fi | |
9644 | ||
9645 | ;; | |
9646 | esac | |
9647 | ||
9648 | if test "x$lt_cv_dlopen" != xno; then | |
9649 | enable_dlopen=yes | |
9650 | else | |
9651 | enable_dlopen=no | |
9652 | fi | |
9653 | ||
9654 | case $lt_cv_dlopen in | |
9655 | dlopen) | |
9656 | save_CPPFLAGS="$CPPFLAGS" | |
9657 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9658 | ||
9659 | save_LDFLAGS="$LDFLAGS" | |
9660 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9661 | ||
9662 | save_LIBS="$LIBS" | |
9663 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9664 | ||
9665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9666 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9667 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9668 | $as_echo_n "(cached) " >&6 | |
9669 | else | |
9670 | if test "$cross_compiling" = yes; then : | |
9671 | lt_cv_dlopen_self=cross | |
9672 | else | |
9673 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9674 | lt_status=$lt_dlunknown | |
9675 | cat > conftest.$ac_ext <<_LT_EOF | |
794e88e7 | 9676 | #line 9675 "configure" |
9c60689e DWT |
9677 | #include "confdefs.h" |
9678 | ||
9679 | #if HAVE_DLFCN_H | |
9680 | #include <dlfcn.h> | |
9681 | #endif | |
9682 | ||
9683 | #include <stdio.h> | |
9684 | ||
9685 | #ifdef RTLD_GLOBAL | |
9686 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9687 | #else | |
9688 | # ifdef DL_GLOBAL | |
9689 | # define LT_DLGLOBAL DL_GLOBAL | |
9690 | # else | |
9691 | # define LT_DLGLOBAL 0 | |
9692 | # endif | |
9693 | #endif | |
9694 | ||
9695 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9696 | find out it does not work in some platform. */ | |
9697 | #ifndef LT_DLLAZY_OR_NOW | |
9698 | # ifdef RTLD_LAZY | |
9699 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9700 | # else | |
9701 | # ifdef DL_LAZY | |
9702 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9703 | # else | |
9704 | # ifdef RTLD_NOW | |
9705 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9706 | # else | |
9707 | # ifdef DL_NOW | |
9708 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9709 | # else | |
9710 | # define LT_DLLAZY_OR_NOW 0 | |
9711 | # endif | |
9712 | # endif | |
9713 | # endif | |
9714 | # endif | |
9715 | #endif | |
9716 | ||
9717 | void fnord() { int i=42;} | |
9718 | int main () | |
9719 | { | |
9720 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9721 | int status = $lt_dlunknown; | |
9722 | ||
9723 | if (self) | |
9724 | { | |
9725 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9726 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9727 | /* dlclose (self); */ | |
9728 | } | |
9729 | else | |
9730 | puts (dlerror ()); | |
9731 | ||
9732 | return status; | |
9733 | } | |
9734 | _LT_EOF | |
9735 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9736 | (eval $ac_link) 2>&5 | |
9737 | ac_status=$? | |
9738 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9739 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9740 | (./conftest; exit; ) >&5 2>/dev/null | |
9741 | lt_status=$? | |
9742 | case x$lt_status in | |
9743 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9744 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9745 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9746 | esac | |
9747 | else : | |
9748 | # compilation failed | |
9749 | lt_cv_dlopen_self=no | |
9750 | fi | |
9751 | fi | |
9752 | rm -fr conftest* | |
9753 | ||
9754 | ||
9755 | fi | |
9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9757 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9758 | ||
9759 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9760 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9762 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9763 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9764 | $as_echo_n "(cached) " >&6 | |
9765 | else | |
9766 | if test "$cross_compiling" = yes; then : | |
9767 | lt_cv_dlopen_self_static=cross | |
9768 | else | |
9769 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9770 | lt_status=$lt_dlunknown | |
9771 | cat > conftest.$ac_ext <<_LT_EOF | |
794e88e7 | 9772 | #line 9771 "configure" |
9c60689e DWT |
9773 | #include "confdefs.h" |
9774 | ||
9775 | #if HAVE_DLFCN_H | |
9776 | #include <dlfcn.h> | |
9777 | #endif | |
9778 | ||
9779 | #include <stdio.h> | |
9780 | ||
9781 | #ifdef RTLD_GLOBAL | |
9782 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9783 | #else | |
9784 | # ifdef DL_GLOBAL | |
9785 | # define LT_DLGLOBAL DL_GLOBAL | |
9786 | # else | |
9787 | # define LT_DLGLOBAL 0 | |
9788 | # endif | |
9789 | #endif | |
9790 | ||
9791 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9792 | find out it does not work in some platform. */ | |
9793 | #ifndef LT_DLLAZY_OR_NOW | |
9794 | # ifdef RTLD_LAZY | |
9795 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9796 | # else | |
9797 | # ifdef DL_LAZY | |
9798 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9799 | # else | |
9800 | # ifdef RTLD_NOW | |
9801 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9802 | # else | |
9803 | # ifdef DL_NOW | |
9804 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9805 | # else | |
9806 | # define LT_DLLAZY_OR_NOW 0 | |
9807 | # endif | |
9808 | # endif | |
9809 | # endif | |
9810 | # endif | |
9811 | #endif | |
9812 | ||
9813 | void fnord() { int i=42;} | |
9814 | int main () | |
9815 | { | |
9816 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9817 | int status = $lt_dlunknown; | |
9818 | ||
9819 | if (self) | |
9820 | { | |
9821 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9822 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9823 | /* dlclose (self); */ | |
9824 | } | |
9825 | else | |
9826 | puts (dlerror ()); | |
9827 | ||
9828 | return status; | |
9829 | } | |
9830 | _LT_EOF | |
9831 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9832 | (eval $ac_link) 2>&5 | |
9833 | ac_status=$? | |
9834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9835 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9836 | (./conftest; exit; ) >&5 2>/dev/null | |
9837 | lt_status=$? | |
9838 | case x$lt_status in | |
9839 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9840 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9841 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9842 | esac | |
9843 | else : | |
9844 | # compilation failed | |
9845 | lt_cv_dlopen_self_static=no | |
9846 | fi | |
9847 | fi | |
9848 | rm -fr conftest* | |
9849 | ||
9850 | ||
9851 | fi | |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9853 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9854 | fi | |
9855 | ||
9856 | CPPFLAGS="$save_CPPFLAGS" | |
9857 | LDFLAGS="$save_LDFLAGS" | |
9858 | LIBS="$save_LIBS" | |
9859 | ;; | |
9860 | esac | |
9861 | ||
9862 | case $lt_cv_dlopen_self in | |
9863 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9864 | *) enable_dlopen_self=unknown ;; | |
9865 | esac | |
9866 | ||
9867 | case $lt_cv_dlopen_self_static in | |
9868 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9869 | *) enable_dlopen_self_static=unknown ;; | |
9870 | esac | |
9871 | fi | |
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | striplib= | |
9890 | old_striplib= | |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9892 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9893 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9894 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9895 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9897 | $as_echo "yes" >&6; } | |
9898 | else | |
9899 | # FIXME - insert some real tests, host_os isn't really good enough | |
9900 | case $host_os in | |
9901 | darwin*) | |
9902 | if test -n "$STRIP" ; then | |
9903 | striplib="$STRIP -x" | |
9904 | old_striplib="$STRIP -S" | |
9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9906 | $as_echo "yes" >&6; } | |
9907 | else | |
9908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9909 | $as_echo "no" >&6; } | |
9910 | fi | |
9911 | ;; | |
9912 | *) | |
9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9914 | $as_echo "no" >&6; } | |
9915 | ;; | |
9916 | esac | |
9917 | fi | |
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | # Report which library types will actually be built | |
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9932 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9934 | $as_echo "$can_build_shared" >&6; } | |
9935 | ||
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9937 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9938 | test "$can_build_shared" = "no" && enable_shared=no | |
9939 | ||
9940 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9941 | # are all built from PIC. | |
9942 | case $host_os in | |
9943 | aix3*) | |
9944 | test "$enable_shared" = yes && enable_static=no | |
9945 | if test -n "$RANLIB"; then | |
9946 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9947 | postinstall_cmds='$RANLIB $lib' | |
9948 | fi | |
9949 | ;; | |
9950 | ||
9951 | aix[4-9]*) | |
9952 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9953 | test "$enable_shared" = yes && enable_static=no | |
9954 | fi | |
9955 | ;; | |
9956 | esac | |
9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9958 | $as_echo "$enable_shared" >&6; } | |
9959 | ||
9960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9961 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9962 | # Make sure either enable_shared or enable_static is yes. | |
9963 | test "$enable_shared" = yes || enable_static=yes | |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9965 | $as_echo "$enable_static" >&6; } | |
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | fi | |
9971 | ac_ext=c | |
9972 | ac_cpp='$CPP $CPPFLAGS' | |
9973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9976 | ||
9977 | CC="$lt_save_CC" | |
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ac_config_commands="$ac_config_commands libtool" | |
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | # Only expand once: | |
9997 | ||
9998 | ||
3fd51f51 DWT |
9999 | |
10000 | ||
10001 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
10002 | if test -n "$ac_tool_prefix"; then | |
10003 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10004 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10006 | $as_echo_n "checking for $ac_word... " >&6; } | |
10007 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
10008 | $as_echo_n "(cached) " >&6 | |
10009 | else | |
10010 | case $PKG_CONFIG in | |
10011 | [\\/]* | ?:[\\/]*) | |
10012 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10013 | ;; | |
10014 | *) | |
10015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10016 | for as_dir in $PATH | |
10017 | do | |
10018 | IFS=$as_save_IFS | |
10019 | test -z "$as_dir" && as_dir=. | |
10020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10022 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10024 | break 2 | |
10025 | fi | |
10026 | done | |
10027 | done | |
10028 | IFS=$as_save_IFS | |
10029 | ||
10030 | ;; | |
10031 | esac | |
10032 | fi | |
10033 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10034 | if test -n "$PKG_CONFIG"; then | |
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10036 | $as_echo "$PKG_CONFIG" >&6; } | |
10037 | else | |
10038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10039 | $as_echo "no" >&6; } | |
10040 | fi | |
10041 | ||
10042 | ||
10043 | fi | |
10044 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10045 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10046 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10047 | set dummy pkg-config; ac_word=$2 | |
10048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10049 | $as_echo_n "checking for $ac_word... " >&6; } | |
10050 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10051 | $as_echo_n "(cached) " >&6 | |
10052 | else | |
10053 | case $ac_pt_PKG_CONFIG in | |
10054 | [\\/]* | ?:[\\/]*) | |
10055 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10056 | ;; | |
10057 | *) | |
10058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10059 | for as_dir in $PATH | |
10060 | do | |
10061 | IFS=$as_save_IFS | |
10062 | test -z "$as_dir" && as_dir=. | |
10063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10065 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10067 | break 2 | |
10068 | fi | |
10069 | done | |
10070 | done | |
10071 | IFS=$as_save_IFS | |
10072 | ||
10073 | ;; | |
10074 | esac | |
10075 | fi | |
10076 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10077 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10079 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10080 | else | |
10081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10082 | $as_echo "no" >&6; } | |
10083 | fi | |
10084 | ||
10085 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10086 | PKG_CONFIG="" | |
10087 | else | |
10088 | case $cross_compiling:$ac_tool_warned in | |
10089 | yes:) | |
10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10092 | ac_tool_warned=yes ;; | |
10093 | esac | |
10094 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10095 | fi | |
10096 | else | |
10097 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10098 | fi | |
10099 | ||
10100 | fi | |
10101 | if test -n "$PKG_CONFIG"; then | |
10102 | _pkg_min_version=0.22 | |
10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10104 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10105 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10107 | $as_echo "yes" >&6; } | |
10108 | else | |
10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10110 | $as_echo "no" >&6; } | |
10111 | PKG_CONFIG="" | |
10112 | fi | |
10113 | ||
632b71ea DWT |
10114 | fi |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
10116 | $as_echo_n "checking for GNU make... " >&6; } | |
10117 | if test "${_cv_gnu_make_command+set}" = set; then : | |
10118 | $as_echo_n "(cached) " >&6 | |
10119 | else | |
10120 | _cv_gnu_make_command='' ; | |
10121 | for a in "$MAKE" make gmake gnumake ; do | |
10122 | if test -z "$a" ; then continue ; fi ; | |
10123 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10124 | _cv_gnu_make_command=$a ; | |
10125 | break; | |
10126 | fi | |
10127 | done ; | |
10128 | ||
10129 | fi | |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
10131 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
10132 | if test "x$_cv_gnu_make_command" != "x" ; then | |
10133 | ifGNUmake='' ; | |
10134 | else | |
10135 | ifGNUmake='#' ; | |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
10137 | $as_echo "\"Not found\"" >&6; }; | |
10138 | fi | |
10139 | ||
10140 | ||
790e5246 DWT |
10141 | GMAKE=$_cv_gnu_make_command |
10142 | ||
10143 | if test "x$GMAKE" = x; then : | |
632b71ea | 10144 | as_fn_error "You need GNU make" "$LINENO" 5 |
3fd51f51 | 10145 | fi |
e9c9a47c DWT |
10146 | for ac_prog in bash |
10147 | do | |
10148 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10149 | set dummy $ac_prog; ac_word=$2 | |
9c60689e DWT |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10151 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10152 | if test "${ac_cv_path__BASH+set}" = set; then : |
9c60689e DWT |
10153 | $as_echo_n "(cached) " >&6 |
10154 | else | |
e9c9a47c DWT |
10155 | case $_BASH in |
10156 | [\\/]* | ?:[\\/]*) | |
10157 | ac_cv_path__BASH="$_BASH" # Let the user override the test with a path. | |
10158 | ;; | |
10159 | *) | |
10160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10161 | for as_dir in $PATH |
10162 | do | |
10163 | IFS=$as_save_IFS | |
10164 | test -z "$as_dir" && as_dir=. | |
10165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10167 | ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10169 | break 2 | |
10170 | fi | |
10171 | done | |
10172 | done | |
10173 | IFS=$as_save_IFS | |
10174 | ||
e9c9a47c DWT |
10175 | ;; |
10176 | esac | |
9c60689e | 10177 | fi |
e9c9a47c DWT |
10178 | _BASH=$ac_cv_path__BASH |
10179 | if test -n "$_BASH"; then | |
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
10181 | $as_echo "$_BASH" >&6; } | |
9c60689e DWT |
10182 | else |
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10184 | $as_echo "no" >&6; } | |
10185 | fi | |
10186 | ||
10187 | ||
e9c9a47c DWT |
10188 | test -n "$_BASH" && break |
10189 | done | |
10190 | ||
10191 | if test "x$_BASH" = x; then : | |
10192 | as_fn_error "You need GNU bash" "$LINENO" 5 | |
9c60689e | 10193 | fi |
e9c9a47c | 10194 | for ac_prog in time |
9c60689e DWT |
10195 | do |
10196 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10197 | set dummy $ac_prog; ac_word=$2 | |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10199 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 10200 | if test "${ac_cv_path_TIME+set}" = set; then : |
9c60689e DWT |
10201 | $as_echo_n "(cached) " >&6 |
10202 | else | |
e9c9a47c DWT |
10203 | case $TIME in |
10204 | [\\/]* | ?:[\\/]*) | |
10205 | ac_cv_path_TIME="$TIME" # Let the user override the test with a path. | |
10206 | ;; | |
10207 | *) | |
10208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10209 | for as_dir in $PATH |
10210 | do | |
10211 | IFS=$as_save_IFS | |
10212 | test -z "$as_dir" && as_dir=. | |
10213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 10215 | ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" |
9c60689e DWT |
10216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10217 | break 2 | |
10218 | fi | |
10219 | done | |
10220 | done | |
10221 | IFS=$as_save_IFS | |
10222 | ||
e9c9a47c DWT |
10223 | ;; |
10224 | esac | |
9c60689e | 10225 | fi |
e9c9a47c DWT |
10226 | TIME=$ac_cv_path_TIME |
10227 | if test -n "$TIME"; then | |
10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
10229 | $as_echo "$TIME" >&6; } | |
9c60689e DWT |
10230 | else |
10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10232 | $as_echo "no" >&6; } | |
10233 | fi | |
10234 | ||
10235 | ||
e9c9a47c | 10236 | test -n "$TIME" && break |
9c60689e DWT |
10237 | done |
10238 | ||
e9c9a47c DWT |
10239 | |
10240 | ||
10241 | ||
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5 | |
10243 | $as_echo_n "checking for bison >= 2.3... " >&6; } | |
10244 | if test -z "$BISON"; then | |
10245 | ac_path_BISON_found=false | |
10246 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10248 | for as_dir in $PATH | |
10249 | do | |
10250 | IFS=$as_save_IFS | |
10251 | test -z "$as_dir" && as_dir=. | |
10252 | for ac_prog in bison; do | |
10253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10254 | ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext" | |
10255 | { test -f "$ac_path_BISON" && $as_test_x "$ac_path_BISON"; } || continue | |
10256 | as_awk_strverscmp=' | |
10257 | # Use only awk features that work with 7th edition Unix awk (1978). | |
10258 | # My, what an old awk you have, Mr. Solaris! | |
10259 | END { | |
10260 | while (length(v1) && length(v2)) { | |
10261 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
10262 | # Normally this is a single character, but if v1 and v2 contain digits, | |
10263 | # compare them as integers and fractions as strverscmp does. | |
10264 | if (v1 ~ /^0-9/ && v2 ~ /^0-9/) { | |
10265 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
10266 | # and advance v1 and v2 past the leading digit strings. | |
10267 | for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue | |
10268 | for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue | |
10269 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
10270 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
10271 | if (d1 ~ /^0/) { | |
10272 | if (d2 ~ /^0/) { | |
10273 | # Compare two fractions. | |
10274 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
10275 | d1 = substr(d1, 2); len1-- | |
10276 | d2 = substr(d2, 2); len2-- | |
10277 | } | |
10278 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
10279 | # The two components differ in length, and the common prefix | |
10280 | # contains only leading zeros. Consider the longer to be less. | |
10281 | d1 = -len1 | |
10282 | d2 = -len2 | |
10283 | } else { | |
10284 | # Otherwise, compare as strings. | |
10285 | d1 = "x" d1 | |
10286 | d2 = "x" d2 | |
10287 | } | |
10288 | } else { | |
10289 | # A fraction is less than an integer. | |
10290 | exit 1 | |
10291 | } | |
10292 | } else { | |
10293 | if (d2 ~ /^0/) { | |
10294 | # An integer is greater than a fraction. | |
10295 | exit 2 | |
10296 | } else { | |
10297 | # Compare two integers. | |
10298 | d1 += 0 | |
10299 | d2 += 0 | |
10300 | } | |
10301 | } | |
10302 | } else { | |
10303 | # The normal case, without worrying about digits. | |
10304 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
10305 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
10306 | } | |
10307 | if (d1 < d2) exit 1 | |
10308 | if (d1 > d2) exit 2 | |
10309 | } | |
10310 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
10311 | # which mishandles some comparisons of empty strings to integers. | |
10312 | if (length(v2)) exit 1 | |
10313 | if (length(v1)) exit 2 | |
10314 | } | |
10315 | ' | |
10316 | as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
10317 | as_arg_v2=2.3 | |
10318 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10319 | case $? in #( | |
10320 | 1) : | |
10321 | ;; #( | |
10322 | 0) : | |
10323 | ac_cv_path_BISON=$ac_path_BISON | |
10324 | ;; #( | |
10325 | 2) : | |
10326 | ac_cv_path_BISON=$ac_path_BISON | |
10327 | ;; #( | |
10328 | *) : | |
10329 | ;; | |
9c60689e | 10330 | esac |
e9c9a47c DWT |
10331 | |
10332 | $ac_path_BISON_found && break 3 | |
10333 | done | |
10334 | done | |
10335 | done | |
10336 | IFS=$as_save_IFS | |
10337 | if test -z "$ac_cv_path_BISON"; then | |
b5bd4353 DWT |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10339 | $as_echo "no" >&6; } | |
e9c9a47c | 10340 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
9c60689e | 10341 | |
9c60689e | 10342 | fi |
e9c9a47c DWT |
10343 | else |
10344 | ac_cv_path_BISON=$BISON | |
9c60689e | 10345 | fi |
9c60689e | 10346 | |
e9c9a47c | 10347 | BISON=$ac_cv_path_BISON |
9c60689e | 10348 | |
e9c9a47c DWT |
10349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
10350 | $as_echo "$BISON" >&6; } | |
9c60689e | 10351 | |
9c60689e | 10352 | |
9c60689e | 10353 | |
e9c9a47c DWT |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5 |
10355 | $as_echo_n "checking for flex >= 2.5.33... " >&6; } | |
10356 | if test -z "$FLEX"; then | |
10357 | ac_path_FLEX_found=false | |
10358 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10360 | for as_dir in $PATH |
10361 | do | |
10362 | IFS=$as_save_IFS | |
10363 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10364 | for ac_prog in flex; do |
9c60689e | 10365 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10366 | ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext" |
10367 | { test -f "$ac_path_FLEX" && $as_test_x "$ac_path_FLEX"; } || continue | |
10368 | as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10369 | as_arg_v2=2.5.33 | |
10370 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10371 | case $? in #( | |
10372 | 1) : | |
10373 | ;; #( | |
10374 | 0) : | |
10375 | ac_cv_path_FLEX=$ac_path_FLEX | |
10376 | ;; #( | |
10377 | 2) : | |
10378 | ac_cv_path_FLEX=$ac_path_FLEX | |
10379 | ;; #( | |
10380 | *) : | |
10381 | ;; | |
10382 | esac | |
10383 | ||
10384 | $ac_path_FLEX_found && break 3 | |
10385 | done | |
10386 | done | |
9c60689e DWT |
10387 | done |
10388 | IFS=$as_save_IFS | |
e9c9a47c | 10389 | if test -z "$ac_cv_path_FLEX"; then |
b5bd4353 DWT |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10391 | $as_echo "no" >&6; } | |
e9c9a47c | 10392 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 |
9c60689e | 10393 | |
e9c9a47c | 10394 | fi |
9c60689e | 10395 | else |
e9c9a47c | 10396 | ac_cv_path_FLEX=$FLEX |
9c60689e DWT |
10397 | fi |
10398 | ||
e9c9a47c | 10399 | FLEX=$ac_cv_path_FLEX |
9c60689e | 10400 | |
e9c9a47c DWT |
10401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
10402 | $as_echo "$FLEX" >&6; } | |
10403 | ||
10404 | ||
10405 | ||
10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5 | |
10407 | $as_echo_n "checking for gperf >= 3.0.3... " >&6; } | |
10408 | if test -z "$GPERF"; then | |
10409 | ac_path_GPERF_found=false | |
10410 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
10412 | for as_dir in $PATH |
10413 | do | |
10414 | IFS=$as_save_IFS | |
10415 | test -z "$as_dir" && as_dir=. | |
e9c9a47c | 10416 | for ac_prog in gperf; do |
9c60689e | 10417 | for ac_exec_ext in '' $ac_executable_extensions; do |
e9c9a47c DWT |
10418 | ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext" |
10419 | { test -f "$ac_path_GPERF" && $as_test_x "$ac_path_GPERF"; } || continue | |
10420 | as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'` | |
10421 | as_arg_v2=3.0.3 | |
10422 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10423 | case $? in #( | |
10424 | 1) : | |
10425 | ;; #( | |
10426 | 0) : | |
10427 | ac_cv_path_GPERF=$ac_path_GPERF | |
10428 | ;; #( | |
10429 | 2) : | |
10430 | ac_cv_path_GPERF=$ac_path_GPERF | |
10431 | ;; #( | |
10432 | *) : | |
10433 | ;; | |
10434 | esac | |
10435 | ||
10436 | $ac_path_GPERF_found && break 3 | |
10437 | done | |
10438 | done | |
9c60689e DWT |
10439 | done |
10440 | IFS=$as_save_IFS | |
e9c9a47c | 10441 | if test -z "$ac_cv_path_GPERF"; then |
b5bd4353 DWT |
10442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10443 | $as_echo "no" >&6; } | |
e9c9a47c | 10444 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 |
9c60689e | 10445 | |
e9c9a47c | 10446 | fi |
9c60689e | 10447 | else |
e9c9a47c | 10448 | ac_cv_path_GPERF=$GPERF |
9c60689e DWT |
10449 | fi |
10450 | ||
e9c9a47c | 10451 | GPERF=$ac_cv_path_GPERF |
9c60689e | 10452 | |
e9c9a47c DWT |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 |
10454 | $as_echo "$GPERF" >&6; } | |
3fd51f51 | 10455 | |
e9c9a47c DWT |
10456 | # Find a good install program. We prefer a C program (faster), |
10457 | # so one script is as good as another. But avoid the broken or | |
10458 | # incompatible versions: | |
10459 | # SysV /etc/install, /usr/sbin/install | |
10460 | # SunOS /usr/etc/install | |
10461 | # IRIX /sbin/install | |
10462 | # AIX /bin/install | |
10463 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
10464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
10465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
10466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
10467 | # OS/2's system install, which has a completely different semantic | |
10468 | # ./install, which can be erroneously created by make from ./install.sh. | |
10469 | # Reject install programs that cannot install multiple files. | |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
10471 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
10472 | if test -z "$INSTALL"; then | |
10473 | if test "${ac_cv_path_install+set}" = set; then : | |
10474 | $as_echo_n "(cached) " >&6 | |
10475 | else | |
10476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10477 | for as_dir in $PATH | |
10478 | do | |
10479 | IFS=$as_save_IFS | |
10480 | test -z "$as_dir" && as_dir=. | |
10481 | # Account for people who put trailing slashes in PATH elements. | |
10482 | case $as_dir/ in #(( | |
10483 | ./ | .// | /[cC]/* | \ | |
10484 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10485 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
10486 | /usr/ucb/* ) ;; | |
10487 | *) | |
10488 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10489 | # Don't use installbsd from OSF since it installs stuff as root | |
10490 | # by default. | |
10491 | for ac_prog in ginstall scoinst install; do | |
10492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10493 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
10494 | if test $ac_prog = install && | |
10495 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10496 | # AIX install. It has an incompatible calling convention. | |
10497 | : | |
10498 | elif test $ac_prog = install && | |
10499 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10500 | # program-specific install script used by HP pwplus--don't use. | |
10501 | : | |
10502 | else | |
10503 | rm -rf conftest.one conftest.two conftest.dir | |
10504 | echo one > conftest.one | |
10505 | echo two > conftest.two | |
10506 | mkdir conftest.dir | |
10507 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
10508 | test -s conftest.one && test -s conftest.two && | |
10509 | test -s conftest.dir/conftest.one && | |
10510 | test -s conftest.dir/conftest.two | |
10511 | then | |
10512 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
10513 | break 3 | |
10514 | fi | |
10515 | fi | |
10516 | fi | |
10517 | done | |
10518 | done | |
10519 | ;; | |
10520 | esac | |
10521 | ||
10522 | done | |
10523 | IFS=$as_save_IFS | |
10524 | ||
10525 | rm -rf conftest.one conftest.two conftest.dir | |
10526 | ||
10527 | fi | |
10528 | if test "${ac_cv_path_install+set}" = set; then | |
10529 | INSTALL=$ac_cv_path_install | |
10530 | else | |
10531 | # As a last resort, use the slow shell script. Don't cache a | |
10532 | # value for INSTALL within a source directory, because that will | |
10533 | # break other packages using the cache if that directory is | |
10534 | # removed, or if the value is a relative name. | |
10535 | INSTALL=$ac_install_sh | |
10536 | fi | |
10537 | fi | |
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
10539 | $as_echo "$INSTALL" >&6; } | |
10540 | ||
10541 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10542 | # It thinks the first close brace ends the variable substitution. | |
10543 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10544 | ||
10545 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
10546 | ||
10547 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
10548 | ||
b5bd4353 DWT |
10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5 |
10550 | $as_echo_n "checking for GNU tar >=1.19... " >&6; } | |
e9c9a47c DWT |
10551 | if test -z "$GNUTAR"; then |
10552 | ac_path_GNUTAR_found=false | |
10553 | # Loop through the user's path and test for each of PROGNAME-LIST | |
10554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10555 | for as_dir in $PATH | |
10556 | do | |
10557 | IFS=$as_save_IFS | |
10558 | test -z "$as_dir" && as_dir=. | |
10559 | for ac_prog in tar gtar gnutar; do | |
10560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10561 | ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext" | |
10562 | { test -f "$ac_path_GNUTAR" && $as_test_x "$ac_path_GNUTAR"; } || continue | |
10563 | ||
10564 | if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then : | |
10565 | ||
b5bd4353 DWT |
10566 | as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'` |
10567 | as_arg_v2=1.19 | |
10568 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10569 | case $? in #( | |
10570 | 1) : | |
10571 | ;; #( | |
10572 | 0) : | |
10573 | ||
10574 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10575 | ;; #( | |
10576 | 2) : | |
10577 | ||
10578 | ac_cv_path_GNUTAR=$ac_path_GNUTAR | |
10579 | ;; #( | |
10580 | *) : | |
10581 | ;; | |
10582 | esac | |
e9c9a47c DWT |
10583 | |
10584 | fi | |
10585 | ||
10586 | $ac_path_GNUTAR_found && break 3 | |
10587 | done | |
10588 | done | |
10589 | done | |
10590 | IFS=$as_save_IFS | |
10591 | if test -z "$ac_cv_path_GNUTAR"; then | |
10592 | : | |
10593 | fi | |
10594 | else | |
10595 | ac_cv_path_GNUTAR=$GNUTAR | |
10596 | fi | |
10597 | ||
10598 | if test "x$ac_cv_path_GNUTAR" != x; then : | |
10599 | ||
10600 | GNUTAR=$ac_cv_path_GNUTAR | |
10601 | ||
10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5 | |
10603 | $as_echo "$GNUTAR" >&6; } | |
10604 | ||
10605 | else | |
10606 | ||
10607 | GNUTAR=: | |
10608 | ||
b5bd4353 DWT |
10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10610 | $as_echo "no" >&6; } | |
e9c9a47c DWT |
10611 | |
10612 | fi | |
b65019fe DWT |
10613 | for ac_prog in svn |
10614 | do | |
10615 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10616 | set dummy $ac_prog; ac_word=$2 | |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10618 | $as_echo_n "checking for $ac_word... " >&6; } | |
10619 | if test "${ac_cv_prog_SVN+set}" = set; then : | |
10620 | $as_echo_n "(cached) " >&6 | |
10621 | else | |
10622 | if test -n "$SVN"; then | |
10623 | ac_cv_prog_SVN="$SVN" # Let the user override the test. | |
10624 | else | |
10625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10626 | for as_dir in $PATH | |
10627 | do | |
10628 | IFS=$as_save_IFS | |
10629 | test -z "$as_dir" && as_dir=. | |
10630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10632 | ac_cv_prog_SVN="$ac_prog" | |
10633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10634 | break 2 | |
10635 | fi | |
10636 | done | |
10637 | done | |
10638 | IFS=$as_save_IFS | |
10639 | ||
10640 | fi | |
10641 | fi | |
10642 | SVN=$ac_cv_prog_SVN | |
10643 | if test -n "$SVN"; then | |
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5 | |
10645 | $as_echo "$SVN" >&6; } | |
10646 | else | |
10647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10648 | $as_echo "no" >&6; } | |
10649 | fi | |
10650 | ||
10651 | ||
10652 | test -n "$SVN" && break | |
10653 | done | |
10654 | ||
10655 | for ac_prog in svnversion | |
10656 | do | |
10657 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10658 | set dummy $ac_prog; ac_word=$2 | |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10660 | $as_echo_n "checking for $ac_word... " >&6; } | |
10661 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then : | |
10662 | $as_echo_n "(cached) " >&6 | |
10663 | else | |
10664 | if test -n "$SVNVERSION"; then | |
10665 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. | |
10666 | else | |
10667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10668 | for as_dir in $PATH | |
10669 | do | |
10670 | IFS=$as_save_IFS | |
10671 | test -z "$as_dir" && as_dir=. | |
10672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10674 | ac_cv_prog_SVNVERSION="$ac_prog" | |
10675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10676 | break 2 | |
10677 | fi | |
10678 | done | |
10679 | done | |
10680 | IFS=$as_save_IFS | |
10681 | ||
10682 | fi | |
10683 | fi | |
10684 | SVNVERSION=$ac_cv_prog_SVNVERSION | |
10685 | if test -n "$SVNVERSION"; then | |
10686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5 | |
10687 | $as_echo "$SVNVERSION" >&6; } | |
10688 | else | |
10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10690 | $as_echo "no" >&6; } | |
10691 | fi | |
10692 | ||
10693 | ||
10694 | test -n "$SVNVERSION" && break | |
10695 | done | |
10696 | ||
e9c9a47c DWT |
10697 | ac_ext=cpp |
10698 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10699 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10700 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10701 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10702 | if test -z "$CXX"; then | |
10703 | if test -n "$CCC"; then | |
10704 | CXX=$CCC | |
10705 | else | |
10706 | if test -n "$ac_tool_prefix"; then | |
10707 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10708 | do | |
10709 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10710 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10712 | $as_echo_n "checking for $ac_word... " >&6; } | |
10713 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10714 | $as_echo_n "(cached) " >&6 | |
10715 | else | |
10716 | if test -n "$CXX"; then | |
10717 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10718 | else | |
10719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10720 | for as_dir in $PATH | |
10721 | do | |
10722 | IFS=$as_save_IFS | |
10723 | test -z "$as_dir" && as_dir=. | |
10724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10726 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10728 | break 2 | |
10729 | fi | |
10730 | done | |
10731 | done | |
10732 | IFS=$as_save_IFS | |
10733 | ||
10734 | fi | |
10735 | fi | |
10736 | CXX=$ac_cv_prog_CXX | |
10737 | if test -n "$CXX"; then | |
10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10739 | $as_echo "$CXX" >&6; } | |
10740 | else | |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10742 | $as_echo "no" >&6; } | |
10743 | fi | |
10744 | ||
10745 | ||
10746 | test -n "$CXX" && break | |
10747 | done | |
10748 | fi | |
10749 | if test -z "$CXX"; then | |
10750 | ac_ct_CXX=$CXX | |
10751 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10752 | do | |
10753 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10754 | set dummy $ac_prog; ac_word=$2 | |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10756 | $as_echo_n "checking for $ac_word... " >&6; } | |
10757 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10758 | $as_echo_n "(cached) " >&6 | |
10759 | else | |
10760 | if test -n "$ac_ct_CXX"; then | |
10761 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10762 | else | |
10763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10764 | for as_dir in $PATH | |
10765 | do | |
10766 | IFS=$as_save_IFS | |
10767 | test -z "$as_dir" && as_dir=. | |
10768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10770 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10772 | break 2 | |
10773 | fi | |
10774 | done | |
10775 | done | |
10776 | IFS=$as_save_IFS | |
10777 | ||
10778 | fi | |
10779 | fi | |
10780 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10781 | if test -n "$ac_ct_CXX"; then | |
10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10783 | $as_echo "$ac_ct_CXX" >&6; } | |
10784 | else | |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10786 | $as_echo "no" >&6; } | |
10787 | fi | |
10788 | ||
10789 | ||
10790 | test -n "$ac_ct_CXX" && break | |
10791 | done | |
10792 | ||
10793 | if test "x$ac_ct_CXX" = x; then | |
10794 | CXX="g++" | |
10795 | else | |
10796 | case $cross_compiling:$ac_tool_warned in | |
10797 | yes:) | |
10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10799 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10800 | ac_tool_warned=yes ;; | |
10801 | esac | |
10802 | CXX=$ac_ct_CXX | |
10803 | fi | |
10804 | fi | |
10805 | ||
10806 | fi | |
10807 | fi | |
10808 | # Provide some information about the compiler. | |
10809 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10810 | set X $ac_compile | |
10811 | ac_compiler=$2 | |
10812 | for ac_option in --version -v -V -qversion; do | |
10813 | { { ac_try="$ac_compiler $ac_option >&5" | |
10814 | case "(($ac_try" in | |
10815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10816 | *) ac_try_echo=$ac_try;; | |
10817 | esac | |
47aaa820 DWT |
10818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10819 | $as_echo "$ac_try_echo"; } >&5 | |
10820 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10821 | ac_status=$? | |
10822 | if test -s conftest.err; then | |
10823 | sed '10a\ | |
10824 | ... rest of stderr output deleted ... | |
10825 | 10q' conftest.err >conftest.er1 | |
10826 | cat conftest.er1 >&5 | |
3530897b | 10827 | fi |
47aaa820 DWT |
10828 | rm -f conftest.er1 conftest.err |
10829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10830 | test $ac_status = 0; } | |
3530897b | 10831 | done |
3530897b | 10832 | |
47aaa820 DWT |
10833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10834 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10835 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10836 | $as_echo_n "(cached) " >&6 | |
10837 | else | |
10838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10839 | /* end confdefs.h. */ | |
10840 | ||
10841 | int | |
10842 | main () | |
10843 | { | |
10844 | #ifndef __GNUC__ | |
10845 | choke me | |
10846 | #endif | |
10847 | ||
10848 | ; | |
10849 | return 0; | |
10850 | } | |
10851 | _ACEOF | |
10852 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10853 | ac_compiler_gnu=yes | |
10854 | else | |
10855 | ac_compiler_gnu=no | |
3530897b | 10856 | fi |
47aaa820 DWT |
10857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10858 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10859 | ||
3530897b | 10860 | fi |
47aaa820 DWT |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10862 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10863 | if test $ac_compiler_gnu = yes; then | |
10864 | GXX=yes | |
3530897b | 10865 | else |
47aaa820 | 10866 | GXX= |
3530897b | 10867 | fi |
47aaa820 DWT |
10868 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10869 | ac_save_CXXFLAGS=$CXXFLAGS | |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10871 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10872 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10873 | $as_echo_n "(cached) " >&6 | |
10874 | else | |
10875 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10876 | ac_cxx_werror_flag=yes | |
10877 | ac_cv_prog_cxx_g=no | |
10878 | CXXFLAGS="-g" | |
10879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10880 | /* end confdefs.h. */ | |
3530897b | 10881 | |
47aaa820 DWT |
10882 | int |
10883 | main () | |
10884 | { | |
3530897b | 10885 | |
47aaa820 DWT |
10886 | ; |
10887 | return 0; | |
10888 | } | |
10889 | _ACEOF | |
10890 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10891 | ac_cv_prog_cxx_g=yes | |
10892 | else | |
10893 | CXXFLAGS="" | |
10894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10895 | /* end confdefs.h. */ | |
9c60689e | 10896 | |
47aaa820 DWT |
10897 | int |
10898 | main () | |
10899 | { | |
9c60689e | 10900 | |
47aaa820 DWT |
10901 | ; |
10902 | return 0; | |
10903 | } | |
10904 | _ACEOF | |
10905 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10906 | |
47aaa820 DWT |
10907 | else |
10908 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10909 | CXXFLAGS="-g" | |
10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10911 | /* end confdefs.h. */ | |
9c60689e | 10912 | |
47aaa820 DWT |
10913 | int |
10914 | main () | |
10915 | { | |
9c60689e | 10916 | |
47aaa820 DWT |
10917 | ; |
10918 | return 0; | |
10919 | } | |
10920 | _ACEOF | |
10921 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10922 | ac_cv_prog_cxx_g=yes | |
10923 | fi | |
10924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10925 | fi | |
10926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10927 | fi | |
10928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10929 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10930 | fi | |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10932 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10933 | if test "$ac_test_CXXFLAGS" = set; then | |
10934 | CXXFLAGS=$ac_save_CXXFLAGS | |
10935 | elif test $ac_cv_prog_cxx_g = yes; then | |
10936 | if test "$GXX" = yes; then | |
10937 | CXXFLAGS="-g -O2" | |
10938 | else | |
10939 | CXXFLAGS="-g" | |
10940 | fi | |
10941 | else | |
10942 | if test "$GXX" = yes; then | |
10943 | CXXFLAGS="-O2" | |
10944 | else | |
10945 | CXXFLAGS= | |
10946 | fi | |
10947 | fi | |
10948 | ac_ext=c | |
10949 | ac_cpp='$CPP $CPPFLAGS' | |
10950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10953 | |
e9c9a47c DWT |
10954 | |
10955 | ac_ext=cpp | |
47aaa820 DWT |
10956 | ac_cpp='$CXXCPP $CPPFLAGS' |
10957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e9c9a47c DWT |
10960 | if test -z "$CXX"; then |
10961 | if test -n "$CCC"; then | |
10962 | CXX=$CCC | |
10963 | else | |
10964 | if test -n "$ac_tool_prefix"; then | |
10965 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10966 | do | |
10967 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10968 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10970 | $as_echo_n "checking for $ac_word... " >&6; } | |
10971 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10972 | $as_echo_n "(cached) " >&6 | |
10973 | else | |
10974 | if test -n "$CXX"; then | |
10975 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10976 | else | |
10977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10978 | for as_dir in $PATH | |
47aaa820 | 10979 | do |
e9c9a47c DWT |
10980 | IFS=$as_save_IFS |
10981 | test -z "$as_dir" && as_dir=. | |
10982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10984 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10986 | break 2 | |
10987 | fi | |
10988 | done | |
10989 | done | |
10990 | IFS=$as_save_IFS | |
9c60689e | 10991 | |
9c60689e | 10992 | fi |
47aaa820 | 10993 | fi |
e9c9a47c DWT |
10994 | CXX=$ac_cv_prog_CXX |
10995 | if test -n "$CXX"; then | |
10996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10997 | $as_echo "$CXX" >&6; } | |
10998 | else | |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11000 | $as_echo "no" >&6; } | |
47aaa820 | 11001 | fi |
9c60689e | 11002 | |
9c60689e | 11003 | |
e9c9a47c DWT |
11004 | test -n "$CXX" && break |
11005 | done | |
47aaa820 | 11006 | fi |
e9c9a47c DWT |
11007 | if test -z "$CXX"; then |
11008 | ac_ct_CXX=$CXX | |
11009 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
11010 | do | |
11011 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11012 | set dummy $ac_prog; ac_word=$2 | |
11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11014 | $as_echo_n "checking for $ac_word... " >&6; } | |
11015 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
11016 | $as_echo_n "(cached) " >&6 | |
9c60689e | 11017 | else |
e9c9a47c DWT |
11018 | if test -n "$ac_ct_CXX"; then |
11019 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11020 | else | |
11021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11022 | for as_dir in $PATH | |
47aaa820 | 11023 | do |
e9c9a47c DWT |
11024 | IFS=$as_save_IFS |
11025 | test -z "$as_dir" && as_dir=. | |
11026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11028 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11030 | break 2 | |
11031 | fi | |
11032 | done | |
11033 | done | |
11034 | IFS=$as_save_IFS | |
9c60689e | 11035 | |
e9c9a47c DWT |
11036 | fi |
11037 | fi | |
11038 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11039 | if test -n "$ac_ct_CXX"; then | |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
11041 | $as_echo "$ac_ct_CXX" >&6; } | |
47aaa820 | 11042 | else |
e9c9a47c DWT |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11044 | $as_echo "no" >&6; } | |
9c60689e | 11045 | fi |
9c60689e | 11046 | |
e9c9a47c DWT |
11047 | |
11048 | test -n "$ac_ct_CXX" && break | |
11049 | done | |
11050 | ||
11051 | if test "x$ac_ct_CXX" = x; then | |
11052 | CXX="g++" | |
11053 | else | |
11054 | case $cross_compiling:$ac_tool_warned in | |
11055 | yes:) | |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11057 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11058 | ac_tool_warned=yes ;; | |
11059 | esac | |
11060 | CXX=$ac_ct_CXX | |
11061 | fi | |
9c60689e DWT |
11062 | fi |
11063 | ||
e9c9a47c DWT |
11064 | fi |
11065 | fi | |
11066 | # Provide some information about the compiler. | |
11067 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
11068 | set X $ac_compile | |
11069 | ac_compiler=$2 | |
11070 | for ac_option in --version -v -V -qversion; do | |
11071 | { { ac_try="$ac_compiler $ac_option >&5" | |
11072 | case "(($ac_try" in | |
11073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11074 | *) ac_try_echo=$ac_try;; | |
11075 | esac | |
11076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11077 | $as_echo "$ac_try_echo"; } >&5 | |
11078 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
11079 | ac_status=$? | |
11080 | if test -s conftest.err; then | |
11081 | sed '10a\ | |
11082 | ... rest of stderr output deleted ... | |
11083 | 10q' conftest.err >conftest.er1 | |
11084 | cat conftest.er1 >&5 | |
11085 | fi | |
11086 | rm -f conftest.er1 conftest.err | |
11087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11088 | test $ac_status = 0; } | |
9c60689e DWT |
11089 | done |
11090 | ||
e9c9a47c DWT |
11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
11092 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
11093 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
11094 | $as_echo_n "(cached) " >&6 | |
9c60689e | 11095 | else |
e9c9a47c DWT |
11096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11097 | /* end confdefs.h. */ | |
9c60689e | 11098 | |
e9c9a47c DWT |
11099 | int |
11100 | main () | |
11101 | { | |
11102 | #ifndef __GNUC__ | |
11103 | choke me | |
11104 | #endif | |
9c60689e | 11105 | |
e9c9a47c DWT |
11106 | ; |
11107 | return 0; | |
11108 | } | |
11109 | _ACEOF | |
11110 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11111 | ac_compiler_gnu=yes | |
47aaa820 | 11112 | else |
e9c9a47c | 11113 | ac_compiler_gnu=no |
47aaa820 | 11114 | fi |
e9c9a47c DWT |
11115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11116 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11117 | ||
11118 | fi | |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11120 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
11121 | if test $ac_compiler_gnu = yes; then | |
11122 | GXX=yes | |
11123 | else | |
11124 | GXX= | |
11125 | fi | |
11126 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11127 | ac_save_CXXFLAGS=$CXXFLAGS | |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
11129 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
11130 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
11131 | $as_echo_n "(cached) " >&6 | |
11132 | else | |
11133 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
11134 | ac_cxx_werror_flag=yes | |
11135 | ac_cv_prog_cxx_g=no | |
11136 | CXXFLAGS="-g" | |
11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11138 | /* end confdefs.h. */ | |
11139 | ||
11140 | int | |
11141 | main () | |
11142 | { | |
11143 | ||
11144 | ; | |
11145 | return 0; | |
11146 | } | |
11147 | _ACEOF | |
11148 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11149 | ac_cv_prog_cxx_g=yes | |
11150 | else | |
11151 | CXXFLAGS="" | |
11152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11153 | /* end confdefs.h. */ | |
11154 | ||
11155 | int | |
11156 | main () | |
11157 | { | |
11158 | ||
11159 | ; | |
11160 | return 0; | |
11161 | } | |
11162 | _ACEOF | |
11163 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11164 | ||
11165 | else | |
11166 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11167 | CXXFLAGS="-g" | |
11168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11169 | /* end confdefs.h. */ | |
11170 | ||
11171 | int | |
11172 | main () | |
11173 | { | |
11174 | ||
11175 | ; | |
11176 | return 0; | |
11177 | } | |
11178 | _ACEOF | |
11179 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11180 | ac_cv_prog_cxx_g=yes | |
11181 | fi | |
11182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11183 | fi | |
11184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11185 | fi | |
11186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11187 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11188 | fi | |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
11190 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
11191 | if test "$ac_test_CXXFLAGS" = set; then | |
11192 | CXXFLAGS=$ac_save_CXXFLAGS | |
11193 | elif test $ac_cv_prog_cxx_g = yes; then | |
11194 | if test "$GXX" = yes; then | |
11195 | CXXFLAGS="-g -O2" | |
11196 | else | |
11197 | CXXFLAGS="-g" | |
11198 | fi | |
11199 | else | |
11200 | if test "$GXX" = yes; then | |
11201 | CXXFLAGS="-O2" | |
11202 | else | |
11203 | CXXFLAGS= | |
11204 | fi | |
11205 | fi | |
11206 | ac_ext=c | |
11207 | ac_cpp='$CPP $CPPFLAGS' | |
11208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11211 | ||
11212 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11213 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11214 | (test "X$CXX" != "Xg++"))) ; then | |
11215 | ac_ext=cpp | |
11216 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11217 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11218 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11219 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11221 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11222 | if test -z "$CXXCPP"; then | |
11223 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
11224 | $as_echo_n "(cached) " >&6 | |
11225 | else | |
11226 | # Double quotes because CXXCPP needs to be expanded | |
11227 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11228 | do | |
11229 | ac_preproc_ok=false | |
11230 | for ac_cxx_preproc_warn_flag in '' yes | |
11231 | do | |
11232 | # Use a header file that comes with gcc, so configuring glibc | |
11233 | # with a fresh cross-compiler works. | |
11234 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11235 | # <limits.h> exists even on freestanding compilers. | |
11236 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11237 | # not just through cpp. "Syntax error" is here to catch this case. | |
11238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11239 | /* end confdefs.h. */ | |
11240 | #ifdef __STDC__ | |
11241 | # include <limits.h> | |
11242 | #else | |
11243 | # include <assert.h> | |
11244 | #endif | |
11245 | Syntax error | |
11246 | _ACEOF | |
11247 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11248 | ||
11249 | else | |
11250 | # Broken: fails on valid input. | |
11251 | continue | |
11252 | fi | |
11253 | rm -f conftest.err conftest.$ac_ext | |
11254 | ||
11255 | # OK, works on sane cases. Now check whether nonexistent headers | |
11256 | # can be detected and how. | |
11257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11258 | /* end confdefs.h. */ | |
11259 | #include <ac_nonexistent.h> | |
11260 | _ACEOF | |
11261 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11262 | # Broken: success on invalid input. | |
11263 | continue | |
11264 | else | |
11265 | # Passes both tests. | |
11266 | ac_preproc_ok=: | |
11267 | break | |
11268 | fi | |
11269 | rm -f conftest.err conftest.$ac_ext | |
11270 | ||
11271 | done | |
11272 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11273 | rm -f conftest.err conftest.$ac_ext | |
11274 | if $ac_preproc_ok; then : | |
11275 | break | |
11276 | fi | |
11277 | ||
11278 | done | |
11279 | ac_cv_prog_CXXCPP=$CXXCPP | |
11280 | ||
11281 | fi | |
11282 | CXXCPP=$ac_cv_prog_CXXCPP | |
11283 | else | |
11284 | ac_cv_prog_CXXCPP=$CXXCPP | |
11285 | fi | |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11287 | $as_echo "$CXXCPP" >&6; } | |
11288 | ac_preproc_ok=false | |
11289 | for ac_cxx_preproc_warn_flag in '' yes | |
11290 | do | |
11291 | # Use a header file that comes with gcc, so configuring glibc | |
11292 | # with a fresh cross-compiler works. | |
11293 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11294 | # <limits.h> exists even on freestanding compilers. | |
11295 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11296 | # not just through cpp. "Syntax error" is here to catch this case. | |
11297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11298 | /* end confdefs.h. */ | |
11299 | #ifdef __STDC__ | |
11300 | # include <limits.h> | |
11301 | #else | |
11302 | # include <assert.h> | |
11303 | #endif | |
11304 | Syntax error | |
11305 | _ACEOF | |
11306 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11307 | ||
11308 | else | |
11309 | # Broken: fails on valid input. | |
11310 | continue | |
11311 | fi | |
11312 | rm -f conftest.err conftest.$ac_ext | |
11313 | ||
11314 | # OK, works on sane cases. Now check whether nonexistent headers | |
11315 | # can be detected and how. | |
11316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11317 | /* end confdefs.h. */ | |
11318 | #include <ac_nonexistent.h> | |
11319 | _ACEOF | |
11320 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11321 | # Broken: success on invalid input. | |
11322 | continue | |
11323 | else | |
11324 | # Passes both tests. | |
11325 | ac_preproc_ok=: | |
11326 | break | |
11327 | fi | |
11328 | rm -f conftest.err conftest.$ac_ext | |
11329 | ||
11330 | done | |
11331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11332 | rm -f conftest.err conftest.$ac_ext | |
11333 | if $ac_preproc_ok; then : | |
11334 | ||
11335 | else | |
11336 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11338 | _lt_caught_CXX_error=yes; } | |
11339 | fi | |
11340 | ||
11341 | ac_ext=c | |
11342 | ac_cpp='$CPP $CPPFLAGS' | |
11343 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11344 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11345 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11346 | ||
11347 | else | |
11348 | _lt_caught_CXX_error=yes | |
11349 | fi | |
11350 | ||
9c60689e | 11351 | |
9c60689e | 11352 | |
9c60689e | 11353 | |
9c60689e DWT |
11354 | ac_ext=cpp |
11355 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 11359 | |
47aaa820 DWT |
11360 | archive_cmds_need_lc_CXX=no |
11361 | allow_undefined_flag_CXX= | |
11362 | always_export_symbols_CXX=no | |
11363 | archive_expsym_cmds_CXX= | |
11364 | compiler_needs_object_CXX=no | |
11365 | export_dynamic_flag_spec_CXX= | |
11366 | hardcode_direct_CXX=no | |
11367 | hardcode_direct_absolute_CXX=no | |
11368 | hardcode_libdir_flag_spec_CXX= | |
11369 | hardcode_libdir_flag_spec_ld_CXX= | |
11370 | hardcode_libdir_separator_CXX= | |
11371 | hardcode_minus_L_CXX=no | |
11372 | hardcode_shlibpath_var_CXX=unsupported | |
11373 | hardcode_automatic_CXX=no | |
11374 | inherit_rpath_CXX=no | |
11375 | module_cmds_CXX= | |
11376 | module_expsym_cmds_CXX= | |
11377 | link_all_deplibs_CXX=unknown | |
11378 | old_archive_cmds_CXX=$old_archive_cmds | |
11379 | no_undefined_flag_CXX= | |
11380 | whole_archive_flag_spec_CXX= | |
11381 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 11382 | |
47aaa820 DWT |
11383 | # Source file extension for C++ test sources. |
11384 | ac_ext=cpp | |
9c60689e | 11385 | |
47aaa820 DWT |
11386 | # Object file extension for compiled C++ test sources. |
11387 | objext=o | |
11388 | objext_CXX=$objext | |
9c60689e | 11389 | |
47aaa820 DWT |
11390 | # No sense in running all these tests if we already determined that |
11391 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11392 | # are currently assumed to apply to all compilers on this platform, | |
11393 | # and will be corrupted by setting them based on a non-working compiler. | |
11394 | if test "$_lt_caught_CXX_error" != yes; then | |
11395 | # Code to be used in simple compile tests | |
11396 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 11397 | |
47aaa820 DWT |
11398 | # Code to be used in simple link tests |
11399 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 11400 | |
47aaa820 | 11401 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 11402 | |
9c60689e | 11403 | |
9c60689e | 11404 | |
9c60689e | 11405 | |
9c60689e | 11406 | |
9c60689e | 11407 | |
47aaa820 DWT |
11408 | # If no C compiler was specified, use CC. |
11409 | LTCC=${LTCC-"$CC"} | |
9c60689e | 11410 | |
47aaa820 DWT |
11411 | # If no C compiler flags were specified, use CFLAGS. |
11412 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 11413 | |
47aaa820 DWT |
11414 | # Allow CC to be a program name with arguments. |
11415 | compiler=$CC | |
9c60689e | 11416 | |
9c60689e | 11417 | |
47aaa820 DWT |
11418 | # save warnings/boilerplate of simple test code |
11419 | ac_outfile=conftest.$ac_objext | |
11420 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11421 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11422 | _lt_compiler_boilerplate=`cat conftest.err` | |
11423 | $RM conftest* | |
9c60689e | 11424 | |
47aaa820 DWT |
11425 | ac_outfile=conftest.$ac_objext |
11426 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11427 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11428 | _lt_linker_boilerplate=`cat conftest.err` | |
11429 | $RM -r conftest* | |
9c60689e | 11430 | |
9c60689e | 11431 | |
47aaa820 DWT |
11432 | # Allow CC to be a program name with arguments. |
11433 | lt_save_CC=$CC | |
11434 | lt_save_LD=$LD | |
11435 | lt_save_GCC=$GCC | |
11436 | GCC=$GXX | |
11437 | lt_save_with_gnu_ld=$with_gnu_ld | |
11438 | lt_save_path_LD=$lt_cv_path_LD | |
11439 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11440 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 11441 | else |
47aaa820 | 11442 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 11443 | fi |
47aaa820 DWT |
11444 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11445 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 11446 | else |
47aaa820 | 11447 | $as_unset lt_cv_path_LD |
9c60689e | 11448 | fi |
47aaa820 DWT |
11449 | test -z "${LDCXX+set}" || LD=$LDCXX |
11450 | CC=${CXX-"c++"} | |
11451 | compiler=$CC | |
11452 | compiler_CXX=$CC | |
11453 | for cc_temp in $compiler""; do | |
11454 | case $cc_temp in | |
11455 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11456 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11457 | \-*) ;; | |
11458 | *) break;; | |
11459 | esac | |
11460 | done | |
11461 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
11462 | |
11463 | ||
47aaa820 DWT |
11464 | if test -n "$compiler"; then |
11465 | # We don't want -fno-exception when compiling C++ code, so set the | |
11466 | # no_builtin_flag separately | |
11467 | if test "$GXX" = yes; then | |
11468 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11469 | else | |
11470 | lt_prog_compiler_no_builtin_flag_CXX= | |
11471 | fi | |
9c60689e | 11472 | |
47aaa820 DWT |
11473 | if test "$GXX" = yes; then |
11474 | # Set up default GNU C++ configuration | |
11475 | ||
11476 | ||
11477 | ||
11478 | # Check whether --with-gnu-ld was given. | |
11479 | if test "${with_gnu_ld+set}" = set; then : | |
11480 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 11481 | else |
47aaa820 | 11482 | with_gnu_ld=no |
9c60689e DWT |
11483 | fi |
11484 | ||
47aaa820 DWT |
11485 | ac_prog=ld |
11486 | if test "$GCC" = yes; then | |
11487 | # Check if gcc -print-prog-name=ld gives a path. | |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11489 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
11490 | case $host in | |
11491 | *-*-mingw*) | |
11492 | # gcc leaves a trailing carriage return which upsets mingw | |
11493 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11494 | *) | |
11495 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11496 | esac | |
11497 | case $ac_prog in | |
11498 | # Accept absolute paths. | |
11499 | [\\/]* | ?:[\\/]*) | |
11500 | re_direlt='/[^/][^/]*/\.\./' | |
11501 | # Canonicalize the pathname of ld | |
11502 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11503 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11504 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11505 | done | |
11506 | test -z "$LD" && LD="$ac_prog" | |
11507 | ;; | |
11508 | "") | |
11509 | # If it fails, then pretend we aren't using GCC. | |
11510 | ac_prog=ld | |
11511 | ;; | |
11512 | *) | |
11513 | # If it is relative, then search for the first ld in PATH. | |
11514 | with_gnu_ld=unknown | |
11515 | ;; | |
11516 | esac | |
11517 | elif test "$with_gnu_ld" = yes; then | |
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11519 | $as_echo_n "checking for GNU ld... " >&6; } | |
11520 | else | |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11522 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 11523 | fi |
47aaa820 | 11524 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
11525 | $as_echo_n "(cached) " >&6 |
11526 | else | |
47aaa820 DWT |
11527 | if test -z "$LD"; then |
11528 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11529 | for ac_dir in $PATH; do | |
11530 | IFS="$lt_save_ifs" | |
11531 | test -z "$ac_dir" && ac_dir=. | |
11532 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11533 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11534 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11535 | # but apparently some variants of GNU ld only accept -v. | |
11536 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11537 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11538 | *GNU* | *'with BFD'*) | |
11539 | test "$with_gnu_ld" != no && break | |
11540 | ;; | |
11541 | *) | |
11542 | test "$with_gnu_ld" != yes && break | |
11543 | ;; | |
11544 | esac | |
11545 | fi | |
9c60689e | 11546 | done |
47aaa820 DWT |
11547 | IFS="$lt_save_ifs" |
11548 | else | |
11549 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11550 | fi |
11551 | fi | |
47aaa820 DWT |
11552 | |
11553 | LD="$lt_cv_path_LD" | |
11554 | if test -n "$LD"; then | |
11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11556 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11557 | else |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11559 | $as_echo "no" >&6; } | |
11560 | fi | |
47aaa820 DWT |
11561 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11563 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11564 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11565 | $as_echo_n "(cached) " >&6 | |
11566 | else | |
11567 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11568 | case `$LD -v 2>&1 </dev/null` in | |
11569 | *GNU* | *'with BFD'*) | |
11570 | lt_cv_prog_gnu_ld=yes | |
11571 | ;; | |
11572 | *) | |
11573 | lt_cv_prog_gnu_ld=no | |
11574 | ;; | |
11575 | esac | |
11576 | fi | |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11578 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11579 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11580 | |
11581 | ||
9c60689e | 11582 | |
9c60689e | 11583 | |
9c60689e | 11584 | |
9c60689e | 11585 | |
9c60689e | 11586 | |
47aaa820 DWT |
11587 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11588 | # archiving commands below assume that GNU ld is being used. | |
11589 | if test "$with_gnu_ld" = yes; then | |
11590 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11591 | 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 | 11592 | |
47aaa820 DWT |
11593 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11594 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11595 | |
47aaa820 DWT |
11596 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11597 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11598 | # investigate it a little bit more. (MM) | |
11599 | wlarc='${wl}' | |
9c60689e | 11600 | |
47aaa820 DWT |
11601 | # ancient GNU ld didn't support --whole-archive et. al. |
11602 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11603 | $GREP 'no-whole-archive' > /dev/null; then | |
11604 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11605 | else | |
11606 | whole_archive_flag_spec_CXX= | |
11607 | fi | |
11608 | else | |
11609 | with_gnu_ld=no | |
11610 | wlarc= | |
11611 | ||
11612 | # A generic and very simple default shared library creation | |
11613 | # command for GNU C++ for the case where it uses the native | |
11614 | # linker, instead of GNU ld. If possible, this setting should | |
11615 | # overridden to take advantage of the native linker features on | |
11616 | # the platform it is being used on. | |
11617 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11618 | fi | |
11619 | ||
11620 | # Commands to make compiler produce verbose output that lists | |
11621 | # what "hidden" libraries, object files and flags are used when | |
11622 | # linking a shared library. | |
11623 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11624 | ||
11625 | else | |
11626 | GXX=no | |
11627 | with_gnu_ld=no | |
11628 | wlarc= | |
11629 | fi | |
11630 | ||
11631 | # PORTME: fill in a description of your system's C++ link characteristics | |
11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11633 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11634 | ld_shlibs_CXX=yes | |
11635 | case $host_os in | |
11636 | aix3*) | |
11637 | # FIXME: insert proper C++ library support | |
11638 | ld_shlibs_CXX=no | |
11639 | ;; | |
11640 | aix[4-9]*) | |
11641 | if test "$host_cpu" = ia64; then | |
11642 | # On IA64, the linker does run time linking by default, so we don't | |
11643 | # have to do anything special. | |
11644 | aix_use_runtimelinking=no | |
11645 | exp_sym_flag='-Bexport' | |
11646 | no_entry_flag="" | |
11647 | else | |
11648 | aix_use_runtimelinking=no | |
11649 | ||
11650 | # Test if we are trying to use run time linking or normal | |
11651 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11652 | # need to do runtime linking. | |
11653 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11654 | for ld_flag in $LDFLAGS; do | |
11655 | case $ld_flag in | |
11656 | *-brtl*) | |
11657 | aix_use_runtimelinking=yes | |
11658 | break | |
11659 | ;; | |
11660 | esac | |
11661 | done | |
11662 | ;; | |
11663 | esac | |
11664 | ||
11665 | exp_sym_flag='-bexport' | |
11666 | no_entry_flag='-bnoentry' | |
11667 | fi | |
11668 | ||
11669 | # When large executables or shared objects are built, AIX ld can | |
11670 | # have problems creating the table of contents. If linking a library | |
11671 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11672 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11673 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11674 | ||
11675 | archive_cmds_CXX='' | |
11676 | hardcode_direct_CXX=yes | |
11677 | hardcode_direct_absolute_CXX=yes | |
11678 | hardcode_libdir_separator_CXX=':' | |
11679 | link_all_deplibs_CXX=yes | |
11680 | file_list_spec_CXX='${wl}-f,' | |
11681 | ||
11682 | if test "$GXX" = yes; then | |
11683 | case $host_os in aix4.[012]|aix4.[012].*) | |
11684 | # We only want to do this on AIX 4.2 and lower, the check | |
11685 | # below for broken collect2 doesn't work under 4.3+ | |
11686 | collect2name=`${CC} -print-prog-name=collect2` | |
11687 | if test -f "$collect2name" && | |
11688 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11689 | then | |
11690 | # We have reworked collect2 | |
11691 | : | |
11692 | else | |
11693 | # We have old collect2 | |
11694 | hardcode_direct_CXX=unsupported | |
11695 | # It fails to find uninstalled libraries when the uninstalled | |
11696 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11697 | # to unsupported forces relinking | |
11698 | hardcode_minus_L_CXX=yes | |
11699 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11700 | hardcode_libdir_separator_CXX= | |
11701 | fi | |
11702 | esac | |
11703 | shared_flag='-shared' | |
11704 | if test "$aix_use_runtimelinking" = yes; then | |
11705 | shared_flag="$shared_flag "'${wl}-G' | |
11706 | fi | |
11707 | else | |
11708 | # not using gcc | |
11709 | if test "$host_cpu" = ia64; then | |
11710 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11711 | # chokes on -Wl,-G. The following line is correct: | |
11712 | shared_flag='-G' | |
11713 | else | |
11714 | if test "$aix_use_runtimelinking" = yes; then | |
11715 | shared_flag='${wl}-G' | |
11716 | else | |
11717 | shared_flag='${wl}-bM:SRE' | |
11718 | fi | |
11719 | fi | |
11720 | fi | |
11721 | ||
11722 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11723 | # It seems that -bexpall does not export symbols beginning with | |
11724 | # underscore (_), so it is better to generate a list of symbols to | |
11725 | # export. | |
11726 | always_export_symbols_CXX=yes | |
11727 | if test "$aix_use_runtimelinking" = yes; then | |
11728 | # Warning - without using the other runtime loading flags (-brtl), | |
11729 | # -berok will link without error, but may produce a broken library. | |
11730 | allow_undefined_flag_CXX='-berok' | |
11731 | # Determine the default libpath from the value encoded in an empty | |
11732 | # executable. | |
11733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11734 | /* end confdefs.h. */ |
11735 | ||
11736 | int | |
11737 | main () | |
11738 | { | |
11739 | ||
11740 | ; | |
11741 | return 0; | |
11742 | } | |
11743 | _ACEOF | |
47aaa820 | 11744 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11745 | |
47aaa820 DWT |
11746 | lt_aix_libpath_sed=' |
11747 | /Import File Strings/,/^$/ { | |
11748 | /^0/ { | |
11749 | s/^0 *\(.*\)$/\1/ | |
11750 | p | |
11751 | } | |
11752 | }' | |
11753 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11754 | # Check for a 64-bit object if we didn't find anything. | |
11755 | if test -z "$aix_libpath"; then | |
11756 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11757 | fi | |
11758 | fi | |
11759 | rm -f core conftest.err conftest.$ac_objext \ | |
11760 | conftest$ac_exeext conftest.$ac_ext | |
11761 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11762 | ||
11763 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11764 | ||
11765 | 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" | |
11766 | else | |
11767 | if test "$host_cpu" = ia64; then | |
11768 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11769 | allow_undefined_flag_CXX="-z nodefs" | |
11770 | 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" | |
11771 | else | |
11772 | # Determine the default libpath from the value encoded in an | |
11773 | # empty executable. | |
11774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11775 | /* end confdefs.h. */ |
11776 | ||
11777 | int | |
11778 | main () | |
11779 | { | |
11780 | ||
11781 | ; | |
11782 | return 0; | |
11783 | } | |
11784 | _ACEOF | |
47aaa820 | 11785 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11786 | |
47aaa820 DWT |
11787 | lt_aix_libpath_sed=' |
11788 | /Import File Strings/,/^$/ { | |
11789 | /^0/ { | |
11790 | s/^0 *\(.*\)$/\1/ | |
11791 | p | |
11792 | } | |
11793 | }' | |
11794 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11795 | # Check for a 64-bit object if we didn't find anything. | |
11796 | if test -z "$aix_libpath"; then | |
11797 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11798 | fi |
9c60689e | 11799 | fi |
47aaa820 DWT |
11800 | rm -f core conftest.err conftest.$ac_objext \ |
11801 | conftest$ac_exeext conftest.$ac_ext | |
11802 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11803 | |
47aaa820 DWT |
11804 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11805 | # Warning - without using the other run time loading flags, | |
11806 | # -berok will link without error, but may produce a broken library. | |
11807 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11808 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11809 | # Exported symbols can be pulled into shared objects from archives | |
11810 | whole_archive_flag_spec_CXX='$convenience' | |
11811 | archive_cmds_need_lc_CXX=yes | |
11812 | # This is similar to how AIX traditionally builds its shared | |
11813 | # libraries. | |
11814 | 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' | |
11815 | fi | |
11816 | fi | |
11817 | ;; | |
9c60689e | 11818 | |
47aaa820 DWT |
11819 | beos*) |
11820 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11821 | allow_undefined_flag_CXX=unsupported | |
11822 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11823 | # support --undefined. This deserves some investigation. FIXME | |
11824 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11825 | else | |
11826 | ld_shlibs_CXX=no | |
11827 | fi | |
11828 | ;; | |
9c60689e | 11829 | |
47aaa820 DWT |
11830 | chorus*) |
11831 | case $cc_basename in | |
11832 | *) | |
11833 | # FIXME: insert proper C++ library support | |
11834 | ld_shlibs_CXX=no | |
11835 | ;; | |
11836 | esac | |
11837 | ;; | |
9c60689e | 11838 | |
47aaa820 DWT |
11839 | cygwin* | mingw* | pw32* | cegcc*) |
11840 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11841 | # as there is no search path for DLLs. | |
11842 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11843 | allow_undefined_flag_CXX=unsupported | |
11844 | always_export_symbols_CXX=no | |
11845 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11846 | |
47aaa820 DWT |
11847 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11848 | 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' | |
11849 | # If the export-symbols file already is a .def file (1st line | |
11850 | # is EXPORTS), use it as is; otherwise, prepend... | |
11851 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11852 | cp $export_symbols $output_objdir/$soname.def; | |
11853 | else | |
11854 | echo EXPORTS > $output_objdir/$soname.def; | |
11855 | cat $export_symbols >> $output_objdir/$soname.def; | |
11856 | fi~ | |
11857 | $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' | |
11858 | else | |
11859 | ld_shlibs_CXX=no | |
11860 | fi | |
11861 | ;; | |
11862 | darwin* | rhapsody*) | |
9c60689e | 11863 | |
9c60689e | 11864 | |
47aaa820 DWT |
11865 | archive_cmds_need_lc_CXX=no |
11866 | hardcode_direct_CXX=no | |
11867 | hardcode_automatic_CXX=yes | |
11868 | hardcode_shlibpath_var_CXX=unsupported | |
11869 | whole_archive_flag_spec_CXX='' | |
11870 | link_all_deplibs_CXX=yes | |
11871 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11872 | case $cc_basename in | |
11873 | ifort*) _lt_dar_can_shared=yes ;; | |
11874 | *) _lt_dar_can_shared=$GCC ;; | |
11875 | esac | |
11876 | if test "$_lt_dar_can_shared" = "yes"; then | |
11877 | output_verbose_link_cmd=echo | |
11878 | 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}" | |
11879 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11880 | 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}" | |
11881 | 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}" | |
11882 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11883 | 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}" | |
11884 | 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}" | |
11885 | fi | |
9c60689e | 11886 | |
47aaa820 DWT |
11887 | else |
11888 | ld_shlibs_CXX=no | |
11889 | fi | |
9c60689e | 11890 | |
47aaa820 | 11891 | ;; |
9c60689e | 11892 | |
47aaa820 DWT |
11893 | dgux*) |
11894 | case $cc_basename in | |
11895 | ec++*) | |
11896 | # FIXME: insert proper C++ library support | |
11897 | ld_shlibs_CXX=no | |
11898 | ;; | |
11899 | ghcx*) | |
11900 | # Green Hills C++ Compiler | |
11901 | # FIXME: insert proper C++ library support | |
11902 | ld_shlibs_CXX=no | |
11903 | ;; | |
11904 | *) | |
11905 | # FIXME: insert proper C++ library support | |
11906 | ld_shlibs_CXX=no | |
11907 | ;; | |
11908 | esac | |
11909 | ;; | |
9c60689e | 11910 | |
47aaa820 DWT |
11911 | freebsd[12]*) |
11912 | # C++ shared libraries reported to be fairly broken before | |
11913 | # switch to ELF | |
11914 | ld_shlibs_CXX=no | |
11915 | ;; | |
9c60689e | 11916 | |
47aaa820 DWT |
11917 | freebsd-elf*) |
11918 | archive_cmds_need_lc_CXX=no | |
11919 | ;; | |
9c60689e | 11920 | |
47aaa820 DWT |
11921 | freebsd* | dragonfly*) |
11922 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11923 | # conventions | |
11924 | ld_shlibs_CXX=yes | |
11925 | ;; | |
9c60689e | 11926 | |
47aaa820 DWT |
11927 | gnu*) |
11928 | ;; | |
9c60689e | 11929 | |
47aaa820 DWT |
11930 | hpux9*) |
11931 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11932 | hardcode_libdir_separator_CXX=: | |
11933 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11934 | hardcode_direct_CXX=yes | |
11935 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11936 | # but as the default | |
11937 | # location of the library. | |
9c60689e | 11938 | |
47aaa820 DWT |
11939 | case $cc_basename in |
11940 | CC*) | |
11941 | # FIXME: insert proper C++ library support | |
11942 | ld_shlibs_CXX=no | |
11943 | ;; | |
11944 | aCC*) | |
11945 | 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' | |
11946 | # Commands to make compiler produce verbose output that lists | |
11947 | # what "hidden" libraries, object files and flags are used when | |
11948 | # linking a shared library. | |
11949 | # | |
11950 | # There doesn't appear to be a way to prevent this compiler from | |
11951 | # explicitly linking system object files so we need to strip them | |
11952 | # from the output so that they don't get included in the library | |
11953 | # dependencies. | |
11954 | 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' | |
11955 | ;; | |
11956 | *) | |
11957 | if test "$GXX" = yes; then | |
11958 | 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' | |
11959 | else | |
11960 | # FIXME: insert proper C++ library support | |
11961 | ld_shlibs_CXX=no | |
11962 | fi | |
11963 | ;; | |
11964 | esac | |
11965 | ;; | |
9c60689e | 11966 | |
47aaa820 DWT |
11967 | hpux10*|hpux11*) |
11968 | if test $with_gnu_ld = no; then | |
11969 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11970 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11971 | |
47aaa820 DWT |
11972 | case $host_cpu in |
11973 | hppa*64*|ia64*) | |
11974 | ;; | |
11975 | *) | |
11976 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11977 | ;; | |
11978 | esac | |
11979 | fi | |
11980 | case $host_cpu in | |
11981 | hppa*64*|ia64*) | |
11982 | hardcode_direct_CXX=no | |
11983 | hardcode_shlibpath_var_CXX=no | |
11984 | ;; | |
11985 | *) | |
11986 | hardcode_direct_CXX=yes | |
11987 | hardcode_direct_absolute_CXX=yes | |
11988 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11989 | # but as the default | |
11990 | # location of the library. | |
11991 | ;; | |
11992 | esac | |
9c60689e | 11993 | |
47aaa820 DWT |
11994 | case $cc_basename in |
11995 | CC*) | |
11996 | # FIXME: insert proper C++ library support | |
11997 | ld_shlibs_CXX=no | |
11998 | ;; | |
11999 | aCC*) | |
12000 | case $host_cpu in | |
12001 | hppa*64*) | |
12002 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12003 | ;; | |
12004 | ia64*) | |
12005 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12006 | ;; | |
12007 | *) | |
12008 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12009 | ;; | |
12010 | esac | |
12011 | # Commands to make compiler produce verbose output that lists | |
12012 | # what "hidden" libraries, object files and flags are used when | |
12013 | # linking a shared library. | |
12014 | # | |
12015 | # There doesn't appear to be a way to prevent this compiler from | |
12016 | # explicitly linking system object files so we need to strip them | |
12017 | # from the output so that they don't get included in the library | |
12018 | # dependencies. | |
12019 | 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' | |
12020 | ;; | |
12021 | *) | |
12022 | if test "$GXX" = yes; then | |
12023 | if test $with_gnu_ld = no; then | |
12024 | case $host_cpu in | |
12025 | hppa*64*) | |
12026 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12027 | ;; | |
12028 | ia64*) | |
12029 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12030 | ;; | |
12031 | *) | |
12032 | 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' | |
12033 | ;; | |
12034 | esac | |
12035 | fi | |
12036 | else | |
12037 | # FIXME: insert proper C++ library support | |
12038 | ld_shlibs_CXX=no | |
12039 | fi | |
12040 | ;; | |
12041 | esac | |
12042 | ;; | |
9c60689e | 12043 | |
47aaa820 DWT |
12044 | interix[3-9]*) |
12045 | hardcode_direct_CXX=no | |
12046 | hardcode_shlibpath_var_CXX=no | |
12047 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12048 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12049 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12050 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12051 | # default) and relocated if they conflict, which is a slow very memory | |
12052 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12053 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12054 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12055 | 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' | |
12056 | 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' | |
12057 | ;; | |
12058 | irix5* | irix6*) | |
12059 | case $cc_basename in | |
12060 | CC*) | |
12061 | # SGI C++ | |
12062 | 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 | 12063 | |
47aaa820 DWT |
12064 | # Archives containing C++ object files must be created using |
12065 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12066 | # necessary to make sure instantiated templates are included | |
12067 | # in the archive. | |
12068 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12069 | ;; | |
12070 | *) | |
12071 | if test "$GXX" = yes; then | |
12072 | if test "$with_gnu_ld" = no; then | |
12073 | 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' | |
12074 | else | |
12075 | 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' | |
12076 | fi | |
12077 | fi | |
12078 | link_all_deplibs_CXX=yes | |
12079 | ;; | |
12080 | esac | |
12081 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12082 | hardcode_libdir_separator_CXX=: | |
12083 | inherit_rpath_CXX=yes | |
12084 | ;; | |
9c60689e | 12085 | |
1504c9b8 | 12086 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
12087 | case $cc_basename in |
12088 | KCC*) | |
12089 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12090 | |
47aaa820 DWT |
12091 | # KCC will only create a shared library if the output file |
12092 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12093 | # to its proper name (with version) after linking. | |
12094 | 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' | |
12095 | 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' | |
12096 | # Commands to make compiler produce verbose output that lists | |
12097 | # what "hidden" libraries, object files and flags are used when | |
12098 | # linking a shared library. | |
12099 | # | |
12100 | # There doesn't appear to be a way to prevent this compiler from | |
12101 | # explicitly linking system object files so we need to strip them | |
12102 | # from the output so that they don't get included in the library | |
12103 | # dependencies. | |
12104 | 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 | 12105 | |
47aaa820 DWT |
12106 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12107 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 12108 | |
47aaa820 DWT |
12109 | # Archives containing C++ object files must be created using |
12110 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12111 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12112 | ;; | |
12113 | icpc* | ecpc* ) | |
12114 | # Intel C++ | |
12115 | with_gnu_ld=yes | |
12116 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12117 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12118 | # earlier do not add the objects themselves. | |
12119 | case `$CC -V 2>&1` in | |
12120 | *"Version 7."*) | |
12121 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12122 | 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' | |
12123 | ;; | |
12124 | *) # Version 8.0 or newer | |
12125 | tmp_idyn= | |
12126 | case $host_cpu in | |
12127 | ia64*) tmp_idyn=' -i_dynamic';; | |
12128 | esac | |
12129 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12130 | 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' | |
12131 | ;; | |
12132 | esac | |
12133 | archive_cmds_need_lc_CXX=no | |
12134 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12135 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12136 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12137 | ;; | |
12138 | pgCC* | pgcpp*) | |
12139 | # Portland Group C++ compiler | |
12140 | case `$CC -V` in | |
12141 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
12142 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12143 | rm -rf $tpldir~ | |
12144 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12145 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12146 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12147 | rm -rf $tpldir~ | |
12148 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12149 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12150 | $RANLIB $oldlib' | |
12151 | archive_cmds_CXX='tpldir=Template.dir~ | |
12152 | rm -rf $tpldir~ | |
12153 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12154 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12155 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12156 | rm -rf $tpldir~ | |
12157 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12158 | $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' | |
12159 | ;; | |
12160 | *) # Version 6 will use weak symbols | |
12161 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12162 | 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' | |
12163 | ;; | |
12164 | esac | |
9c60689e | 12165 | |
47aaa820 DWT |
12166 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
12167 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12168 | 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' | |
12169 | ;; | |
12170 | cxx*) | |
12171 | # Compaq C++ | |
12172 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12173 | 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 | 12174 | |
47aaa820 DWT |
12175 | runpath_var=LD_RUN_PATH |
12176 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12177 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12178 | |
47aaa820 DWT |
12179 | # Commands to make compiler produce verbose output that lists |
12180 | # what "hidden" libraries, object files and flags are used when | |
12181 | # linking a shared library. | |
12182 | # | |
12183 | # There doesn't appear to be a way to prevent this compiler from | |
12184 | # explicitly linking system object files so we need to strip them | |
12185 | # from the output so that they don't get included in the library | |
12186 | # dependencies. | |
12187 | 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' | |
12188 | ;; | |
12189 | xl*) | |
12190 | # IBM XL 8.0 on PPC, with GNU ld | |
12191 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12192 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12193 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12194 | if test "x$supports_anon_versioning" = xyes; then | |
12195 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12196 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12197 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12198 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12199 | fi | |
12200 | ;; | |
12201 | *) | |
12202 | case `$CC -V 2>&1 | sed 5q` in | |
12203 | *Sun\ C*) | |
12204 | # Sun C++ 5.9 | |
12205 | no_undefined_flag_CXX=' -zdefs' | |
12206 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12207 | 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' | |
12208 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12209 | 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' | |
12210 | compiler_needs_object_CXX=yes | |
9c60689e | 12211 | |
47aaa820 DWT |
12212 | # Not sure whether something based on |
12213 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12214 | # would be better. | |
12215 | output_verbose_link_cmd='echo' | |
9c60689e | 12216 | |
47aaa820 DWT |
12217 | # Archives containing C++ object files must be created using |
12218 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12219 | # necessary to make sure instantiated templates are included | |
12220 | # in the archive. | |
12221 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12222 | ;; | |
12223 | esac | |
12224 | ;; | |
12225 | esac | |
12226 | ;; | |
9c60689e | 12227 | |
47aaa820 DWT |
12228 | lynxos*) |
12229 | # FIXME: insert proper C++ library support | |
12230 | ld_shlibs_CXX=no | |
12231 | ;; | |
9c60689e | 12232 | |
47aaa820 DWT |
12233 | m88k*) |
12234 | # FIXME: insert proper C++ library support | |
12235 | ld_shlibs_CXX=no | |
12236 | ;; | |
9c60689e | 12237 | |
47aaa820 DWT |
12238 | mvs*) |
12239 | case $cc_basename in | |
12240 | cxx*) | |
12241 | # FIXME: insert proper C++ library support | |
12242 | ld_shlibs_CXX=no | |
12243 | ;; | |
12244 | *) | |
12245 | # FIXME: insert proper C++ library support | |
12246 | ld_shlibs_CXX=no | |
12247 | ;; | |
12248 | esac | |
12249 | ;; | |
9c60689e | 12250 | |
47aaa820 DWT |
12251 | netbsd*) |
12252 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12253 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12254 | wlarc= | |
12255 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12256 | hardcode_direct_CXX=yes | |
12257 | hardcode_shlibpath_var_CXX=no | |
12258 | fi | |
12259 | # Workaround some broken pre-1.5 toolchains | |
12260 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 12261 | ;; |
47aaa820 DWT |
12262 | |
12263 | *nto* | *qnx*) | |
12264 | ld_shlibs_CXX=yes | |
9c60689e | 12265 | ;; |
9c60689e | 12266 | |
47aaa820 DWT |
12267 | openbsd2*) |
12268 | # C++ shared libraries are fairly broken | |
12269 | ld_shlibs_CXX=no | |
12270 | ;; | |
9c60689e | 12271 | |
47aaa820 DWT |
12272 | openbsd*) |
12273 | if test -f /usr/libexec/ld.so; then | |
12274 | hardcode_direct_CXX=yes | |
12275 | hardcode_shlibpath_var_CXX=no | |
12276 | hardcode_direct_absolute_CXX=yes | |
12277 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12278 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12279 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12280 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12281 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12282 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12283 | fi | |
12284 | output_verbose_link_cmd=echo | |
12285 | else | |
12286 | ld_shlibs_CXX=no | |
12287 | fi | |
12288 | ;; | |
9c60689e | 12289 | |
47aaa820 DWT |
12290 | osf3* | osf4* | osf5*) |
12291 | case $cc_basename in | |
12292 | KCC*) | |
12293 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 12294 | |
47aaa820 DWT |
12295 | # KCC will only create a shared library if the output file |
12296 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12297 | # to its proper name (with version) after linking. | |
12298 | 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 | 12299 | |
47aaa820 DWT |
12300 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12301 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12302 | |
47aaa820 DWT |
12303 | # Archives containing C++ object files must be created using |
12304 | # the KAI C++ compiler. | |
12305 | case $host in | |
12306 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12307 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12308 | esac | |
12309 | ;; | |
12310 | RCC*) | |
12311 | # Rational C++ 2.4.1 | |
12312 | # FIXME: insert proper C++ library support | |
12313 | ld_shlibs_CXX=no | |
12314 | ;; | |
12315 | cxx*) | |
12316 | case $host in | |
12317 | osf3*) | |
12318 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12319 | 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' | |
12320 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12321 | ;; | |
12322 | *) | |
12323 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12324 | 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' | |
12325 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12326 | echo "-hidden">> $lib.exp~ | |
12327 | $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~ | |
12328 | $RM $lib.exp' | |
12329 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12330 | ;; | |
12331 | esac | |
9c60689e | 12332 | |
47aaa820 | 12333 | hardcode_libdir_separator_CXX=: |
9c60689e | 12334 | |
47aaa820 DWT |
12335 | # Commands to make compiler produce verbose output that lists |
12336 | # what "hidden" libraries, object files and flags are used when | |
12337 | # linking a shared library. | |
12338 | # | |
12339 | # There doesn't appear to be a way to prevent this compiler from | |
12340 | # explicitly linking system object files so we need to strip them | |
12341 | # from the output so that they don't get included in the library | |
12342 | # dependencies. | |
12343 | 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' | |
12344 | ;; | |
12345 | *) | |
12346 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12347 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12348 | case $host in | |
12349 | osf3*) | |
12350 | 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' | |
12351 | ;; | |
12352 | *) | |
12353 | 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' | |
12354 | ;; | |
12355 | esac | |
9c60689e | 12356 | |
47aaa820 DWT |
12357 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12358 | hardcode_libdir_separator_CXX=: | |
9c60689e | 12359 | |
47aaa820 DWT |
12360 | # Commands to make compiler produce verbose output that lists |
12361 | # what "hidden" libraries, object files and flags are used when | |
12362 | # linking a shared library. | |
12363 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 12364 | |
47aaa820 DWT |
12365 | else |
12366 | # FIXME: insert proper C++ library support | |
12367 | ld_shlibs_CXX=no | |
12368 | fi | |
12369 | ;; | |
12370 | esac | |
12371 | ;; | |
9c60689e | 12372 | |
47aaa820 | 12373 | psos*) |
9c60689e DWT |
12374 | # FIXME: insert proper C++ library support |
12375 | ld_shlibs_CXX=no | |
12376 | ;; | |
9c60689e | 12377 | |
47aaa820 DWT |
12378 | sunos4*) |
12379 | case $cc_basename in | |
12380 | CC*) | |
12381 | # Sun C++ 4.x | |
12382 | # FIXME: insert proper C++ library support | |
12383 | ld_shlibs_CXX=no | |
9c60689e | 12384 | ;; |
47aaa820 DWT |
12385 | lcc*) |
12386 | # Lucid | |
12387 | # FIXME: insert proper C++ library support | |
12388 | ld_shlibs_CXX=no | |
12389 | ;; | |
12390 | *) | |
12391 | # FIXME: insert proper C++ library support | |
12392 | ld_shlibs_CXX=no | |
12393 | ;; | |
12394 | esac | |
12395 | ;; | |
9c60689e | 12396 | |
47aaa820 DWT |
12397 | solaris*) |
12398 | case $cc_basename in | |
12399 | CC*) | |
12400 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12401 | archive_cmds_need_lc_CXX=yes | |
12402 | no_undefined_flag_CXX=' -zdefs' | |
12403 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12404 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12405 | $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 | 12406 | |
47aaa820 DWT |
12407 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12408 | hardcode_shlibpath_var_CXX=no | |
12409 | case $host_os in | |
12410 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12411 | *) | |
12412 | # The compiler driver will combine and reorder linker options, | |
12413 | # but understands `-z linker_flag'. | |
12414 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12415 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12416 | ;; | |
12417 | esac | |
12418 | link_all_deplibs_CXX=yes | |
9c60689e | 12419 | |
47aaa820 | 12420 | output_verbose_link_cmd='echo' |
9c60689e | 12421 | |
47aaa820 DWT |
12422 | # Archives containing C++ object files must be created using |
12423 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12424 | # necessary to make sure instantiated templates are included | |
12425 | # in the archive. | |
12426 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12427 | ;; | |
12428 | gcx*) | |
12429 | # Green Hills C++ Compiler | |
12430 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 12431 | |
47aaa820 DWT |
12432 | # The C++ compiler must be used to create the archive. |
12433 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12434 | ;; | |
12435 | *) | |
12436 | # GNU C++ compiler with Solaris linker | |
12437 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12438 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12439 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12440 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12441 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12442 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12443 | |
47aaa820 DWT |
12444 | # Commands to make compiler produce verbose output that lists |
12445 | # what "hidden" libraries, object files and flags are used when | |
12446 | # linking a shared library. | |
12447 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12448 | else | |
12449 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12450 | # platform. | |
12451 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12452 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12453 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 12454 | |
47aaa820 DWT |
12455 | # Commands to make compiler produce verbose output that lists |
12456 | # what "hidden" libraries, object files and flags are used when | |
12457 | # linking a shared library. | |
12458 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12459 | fi | |
9c60689e | 12460 | |
47aaa820 DWT |
12461 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12462 | case $host_os in | |
12463 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12464 | *) | |
12465 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12466 | ;; | |
12467 | esac | |
12468 | fi | |
12469 | ;; | |
12470 | esac | |
12471 | ;; | |
9c60689e | 12472 | |
47aaa820 DWT |
12473 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12474 | no_undefined_flag_CXX='${wl}-z,text' | |
12475 | archive_cmds_need_lc_CXX=no | |
12476 | hardcode_shlibpath_var_CXX=no | |
12477 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12478 | |
47aaa820 DWT |
12479 | case $cc_basename in |
12480 | CC*) | |
12481 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12482 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12483 | ;; | |
12484 | *) | |
12485 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12486 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12487 | ;; | |
12488 | esac | |
12489 | ;; | |
9c60689e | 12490 | |
47aaa820 DWT |
12491 | sysv5* | sco3.2v5* | sco5v6*) |
12492 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12493 | # link with -lc, and that would cause any symbols used from libc to | |
12494 | # always be unresolved, which means just about no library would | |
12495 | # ever link correctly. If we're not using GNU ld we use -z text | |
12496 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12497 | # as -z defs. | |
12498 | no_undefined_flag_CXX='${wl}-z,text' | |
12499 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12500 | archive_cmds_need_lc_CXX=no | |
12501 | hardcode_shlibpath_var_CXX=no | |
12502 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12503 | hardcode_libdir_separator_CXX=':' | |
12504 | link_all_deplibs_CXX=yes | |
12505 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12506 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12507 | |
47aaa820 DWT |
12508 | case $cc_basename in |
12509 | CC*) | |
12510 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12511 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12512 | ;; | |
12513 | *) | |
12514 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12515 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12516 | ;; | |
12517 | esac | |
12518 | ;; | |
9c60689e | 12519 | |
47aaa820 | 12520 | tandem*) |
9c60689e | 12521 | case $cc_basename in |
47aaa820 DWT |
12522 | NCC*) |
12523 | # NonStop-UX NCC 3.20 | |
12524 | # FIXME: insert proper C++ library support | |
12525 | ld_shlibs_CXX=no | |
12526 | ;; | |
9c60689e | 12527 | *) |
47aaa820 DWT |
12528 | # FIXME: insert proper C++ library support |
12529 | ld_shlibs_CXX=no | |
12530 | ;; | |
9c60689e DWT |
12531 | esac |
12532 | ;; | |
12533 | ||
47aaa820 DWT |
12534 | vxworks*) |
12535 | # FIXME: insert proper C++ library support | |
12536 | ld_shlibs_CXX=no | |
12537 | ;; | |
9c60689e | 12538 | |
47aaa820 DWT |
12539 | *) |
12540 | # FIXME: insert proper C++ library support | |
12541 | ld_shlibs_CXX=no | |
9c60689e | 12542 | ;; |
47aaa820 | 12543 | esac |
9c60689e | 12544 | |
47aaa820 DWT |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12546 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12547 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12548 | |
47aaa820 DWT |
12549 | GCC_CXX="$GXX" |
12550 | LD_CXX="$LD" | |
9c60689e | 12551 | |
47aaa820 DWT |
12552 | ## CAVEAT EMPTOR: |
12553 | ## There is no encapsulation within the following macros, do not change | |
12554 | ## the running order or otherwise move them around unless you know exactly | |
12555 | ## what you are doing... | |
12556 | # Dependencies to place before and after the object being linked: | |
12557 | predep_objects_CXX= | |
12558 | postdep_objects_CXX= | |
12559 | predeps_CXX= | |
12560 | postdeps_CXX= | |
12561 | compiler_lib_search_path_CXX= | |
9c60689e | 12562 | |
47aaa820 DWT |
12563 | cat > conftest.$ac_ext <<_LT_EOF |
12564 | class Foo | |
12565 | { | |
12566 | public: | |
12567 | Foo (void) { a = 0; } | |
12568 | private: | |
12569 | int a; | |
12570 | }; | |
12571 | _LT_EOF | |
9c60689e | 12572 | |
47aaa820 DWT |
12573 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12574 | (eval $ac_compile) 2>&5 | |
12575 | ac_status=$? | |
12576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12577 | test $ac_status = 0; }; then | |
12578 | # Parse the compiler output and extract the necessary | |
12579 | # objects, libraries and library flags. | |
9c60689e | 12580 | |
47aaa820 DWT |
12581 | # Sentinel used to keep track of whether or not we are before |
12582 | # the conftest object file. | |
12583 | pre_test_object_deps_done=no | |
9c60689e | 12584 | |
47aaa820 DWT |
12585 | for p in `eval "$output_verbose_link_cmd"`; do |
12586 | case $p in | |
9c60689e | 12587 | |
47aaa820 DWT |
12588 | -L* | -R* | -l*) |
12589 | # Some compilers place space between "-{L,R}" and the path. | |
12590 | # Remove the space. | |
12591 | if test $p = "-L" || | |
12592 | test $p = "-R"; then | |
12593 | prev=$p | |
12594 | continue | |
12595 | else | |
12596 | prev= | |
12597 | fi | |
9c60689e | 12598 | |
47aaa820 DWT |
12599 | if test "$pre_test_object_deps_done" = no; then |
12600 | case $p in | |
12601 | -L* | -R*) | |
12602 | # Internal compiler library paths should come after those | |
12603 | # provided the user. The postdeps already come after the | |
12604 | # user supplied libs so there is no need to process them. | |
12605 | if test -z "$compiler_lib_search_path_CXX"; then | |
12606 | compiler_lib_search_path_CXX="${prev}${p}" | |
12607 | else | |
12608 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12609 | fi | |
12610 | ;; | |
12611 | # The "-l" case would never come before the object being | |
12612 | # linked, so don't bother handling this case. | |
12613 | esac | |
12614 | else | |
12615 | if test -z "$postdeps_CXX"; then | |
12616 | postdeps_CXX="${prev}${p}" | |
12617 | else | |
12618 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12619 | fi | |
12620 | fi | |
12621 | ;; | |
9c60689e | 12622 | |
47aaa820 DWT |
12623 | *.$objext) |
12624 | # This assumes that the test object file only shows up | |
12625 | # once in the compiler output. | |
12626 | if test "$p" = "conftest.$objext"; then | |
12627 | pre_test_object_deps_done=yes | |
12628 | continue | |
12629 | fi | |
9c60689e | 12630 | |
47aaa820 DWT |
12631 | if test "$pre_test_object_deps_done" = no; then |
12632 | if test -z "$predep_objects_CXX"; then | |
12633 | predep_objects_CXX="$p" | |
12634 | else | |
12635 | predep_objects_CXX="$predep_objects_CXX $p" | |
12636 | fi | |
12637 | else | |
12638 | if test -z "$postdep_objects_CXX"; then | |
12639 | postdep_objects_CXX="$p" | |
12640 | else | |
12641 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12642 | fi | |
12643 | fi | |
12644 | ;; | |
9c60689e | 12645 | |
47aaa820 | 12646 | *) ;; # Ignore the rest. |
9c60689e | 12647 | |
47aaa820 DWT |
12648 | esac |
12649 | done | |
9c60689e | 12650 | |
47aaa820 DWT |
12651 | # Clean up. |
12652 | rm -f a.out a.exe | |
12653 | else | |
12654 | echo "libtool.m4: error: problem compiling CXX test program" | |
12655 | fi | |
9c60689e | 12656 | |
47aaa820 | 12657 | $RM -f confest.$objext |
9c60689e | 12658 | |
47aaa820 DWT |
12659 | # PORTME: override above test on systems where it is broken |
12660 | case $host_os in | |
12661 | interix[3-9]*) | |
12662 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12663 | # hack all around it, let's just trust "g++" to DTRT. | |
12664 | predep_objects_CXX= | |
12665 | postdep_objects_CXX= | |
12666 | postdeps_CXX= | |
12667 | ;; | |
9c60689e | 12668 | |
47aaa820 DWT |
12669 | linux*) |
12670 | case `$CC -V 2>&1 | sed 5q` in | |
12671 | *Sun\ C*) | |
12672 | # Sun C++ 5.9 | |
9c60689e | 12673 | |
47aaa820 DWT |
12674 | # The more standards-conforming stlport4 library is |
12675 | # incompatible with the Cstd library. Avoid specifying | |
12676 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12677 | # -library=stlport4 depends on it. | |
12678 | case " $CXX $CXXFLAGS " in | |
12679 | *" -library=stlport4 "*) | |
12680 | solaris_use_stlport4=yes | |
12681 | ;; | |
12682 | esac | |
9c60689e | 12683 | |
47aaa820 DWT |
12684 | if test "$solaris_use_stlport4" != yes; then |
12685 | postdeps_CXX='-library=Cstd -library=Crun' | |
12686 | fi | |
12687 | ;; | |
12688 | esac | |
12689 | ;; | |
9c60689e | 12690 | |
47aaa820 DWT |
12691 | solaris*) |
12692 | case $cc_basename in | |
12693 | CC*) | |
12694 | # The more standards-conforming stlport4 library is | |
12695 | # incompatible with the Cstd library. Avoid specifying | |
12696 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12697 | # -library=stlport4 depends on it. | |
12698 | case " $CXX $CXXFLAGS " in | |
12699 | *" -library=stlport4 "*) | |
12700 | solaris_use_stlport4=yes | |
12701 | ;; | |
12702 | esac | |
9c60689e | 12703 | |
47aaa820 DWT |
12704 | # Adding this requires a known-good setup of shared libraries for |
12705 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12706 | # archive will be linked into the output, leading to subtle bugs. | |
12707 | if test "$solaris_use_stlport4" != yes; then | |
12708 | postdeps_CXX='-library=Cstd -library=Crun' | |
12709 | fi | |
12710 | ;; | |
12711 | esac | |
12712 | ;; | |
12713 | esac | |
9c60689e | 12714 | |
9c60689e | 12715 | |
47aaa820 DWT |
12716 | case " $postdeps_CXX " in |
12717 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12718 | esac | |
12719 | compiler_lib_search_dirs_CXX= | |
12720 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12721 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12722 | fi | |
9c60689e | 12723 | |
9c60689e | 12724 | |
9c60689e | 12725 | |
9c60689e | 12726 | |
9c60689e | 12727 | |
9c60689e | 12728 | |
9c60689e | 12729 | |
9c60689e | 12730 | |
9c60689e | 12731 | |
9c60689e | 12732 | |
9c60689e | 12733 | |
9c60689e | 12734 | |
9c60689e | 12735 | |
9c60689e | 12736 | |
9c60689e | 12737 | |
9c60689e | 12738 | |
9c60689e | 12739 | |
9c60689e | 12740 | |
9c60689e | 12741 | |
9c60689e | 12742 | |
9c60689e | 12743 | |
9c60689e | 12744 | |
9c60689e | 12745 | |
9c60689e | 12746 | |
9c60689e | 12747 | |
9c60689e | 12748 | |
9c60689e | 12749 | |
9c60689e | 12750 | |
9c60689e | 12751 | |
9c60689e | 12752 | |
9c60689e | 12753 | |
47aaa820 DWT |
12754 | lt_prog_compiler_wl_CXX= |
12755 | lt_prog_compiler_pic_CXX= | |
12756 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12757 | |
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12759 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12760 | ||
12761 | # C++ specific cases for pic, static, wl, etc. | |
12762 | if test "$GXX" = yes; then | |
12763 | lt_prog_compiler_wl_CXX='-Wl,' | |
12764 | lt_prog_compiler_static_CXX='-static' | |
12765 | ||
12766 | case $host_os in | |
12767 | aix*) | |
12768 | # All AIX code is PIC. | |
12769 | if test "$host_cpu" = ia64; then | |
12770 | # AIX 5 now supports IA64 processor | |
12771 | lt_prog_compiler_static_CXX='-Bstatic' | |
12772 | fi | |
12773 | ;; | |
12774 | ||
12775 | amigaos*) | |
12776 | case $host_cpu in | |
12777 | powerpc) | |
12778 | # see comment about AmigaOS4 .so support | |
12779 | lt_prog_compiler_pic_CXX='-fPIC' | |
12780 | ;; | |
12781 | m68k) | |
12782 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12783 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12784 | # like `-m68040'. | |
12785 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12786 | ;; | |
12787 | esac | |
12788 | ;; | |
12789 | ||
12790 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12791 | # PIC is the default for these OSes. | |
12792 | ;; | |
12793 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12794 | # This hack is so that the source file can tell whether it is being | |
12795 | # built for inclusion in a dll (and should export symbols for example). | |
12796 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12797 | # (--disable-auto-import) libraries | |
12798 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12799 | ;; | |
12800 | darwin* | rhapsody*) | |
12801 | # PIC is the default on this platform | |
12802 | # Common symbols not allowed in MH_DYLIB files | |
12803 | lt_prog_compiler_pic_CXX='-fno-common' | |
12804 | ;; | |
12805 | *djgpp*) | |
12806 | # DJGPP does not support shared libraries at all | |
12807 | lt_prog_compiler_pic_CXX= | |
12808 | ;; | |
12809 | interix[3-9]*) | |
12810 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12811 | # Instead, we relocate shared libraries at runtime. | |
12812 | ;; | |
12813 | sysv4*MP*) | |
12814 | if test -d /usr/nec; then | |
12815 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12816 | fi | |
12817 | ;; | |
12818 | hpux*) | |
12819 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12820 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12821 | # sets the default TLS model and affects inlining. | |
12822 | case $host_cpu in | |
12823 | hppa*64*) | |
12824 | ;; | |
12825 | *) | |
12826 | lt_prog_compiler_pic_CXX='-fPIC' | |
12827 | ;; | |
12828 | esac | |
12829 | ;; | |
12830 | *qnx* | *nto*) | |
12831 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12832 | # it will coredump. | |
12833 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12834 | ;; | |
12835 | *) | |
12836 | lt_prog_compiler_pic_CXX='-fPIC' | |
12837 | ;; | |
12838 | esac | |
12839 | else | |
12840 | case $host_os in | |
12841 | aix[4-9]*) | |
12842 | # All AIX code is PIC. | |
12843 | if test "$host_cpu" = ia64; then | |
12844 | # AIX 5 now supports IA64 processor | |
12845 | lt_prog_compiler_static_CXX='-Bstatic' | |
12846 | else | |
12847 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12848 | fi | |
12849 | ;; | |
12850 | chorus*) | |
12851 | case $cc_basename in | |
12852 | cxch68*) | |
12853 | # Green Hills C++ Compiler | |
12854 | # _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" | |
12855 | ;; | |
12856 | esac | |
12857 | ;; | |
12858 | dgux*) | |
12859 | case $cc_basename in | |
12860 | ec++*) | |
12861 | lt_prog_compiler_pic_CXX='-KPIC' | |
12862 | ;; | |
12863 | ghcx*) | |
12864 | # Green Hills C++ Compiler | |
12865 | lt_prog_compiler_pic_CXX='-pic' | |
12866 | ;; | |
12867 | *) | |
12868 | ;; | |
12869 | esac | |
12870 | ;; | |
12871 | freebsd* | dragonfly*) | |
12872 | # FreeBSD uses GNU C++ | |
12873 | ;; | |
12874 | hpux9* | hpux10* | hpux11*) | |
12875 | case $cc_basename in | |
12876 | CC*) | |
12877 | lt_prog_compiler_wl_CXX='-Wl,' | |
12878 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12879 | if test "$host_cpu" != ia64; then | |
12880 | lt_prog_compiler_pic_CXX='+Z' | |
12881 | fi | |
12882 | ;; | |
12883 | aCC*) | |
12884 | lt_prog_compiler_wl_CXX='-Wl,' | |
12885 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12886 | case $host_cpu in | |
12887 | hppa*64*|ia64*) | |
12888 | # +Z the default | |
12889 | ;; | |
12890 | *) | |
12891 | lt_prog_compiler_pic_CXX='+Z' | |
12892 | ;; | |
12893 | esac | |
12894 | ;; | |
12895 | *) | |
12896 | ;; | |
12897 | esac | |
12898 | ;; | |
12899 | interix*) | |
12900 | # This is c89, which is MS Visual C++ (no shared libs) | |
12901 | # Anyone wants to do a port? | |
12902 | ;; | |
12903 | irix5* | irix6* | nonstopux*) | |
12904 | case $cc_basename in | |
12905 | CC*) | |
12906 | lt_prog_compiler_wl_CXX='-Wl,' | |
12907 | lt_prog_compiler_static_CXX='-non_shared' | |
12908 | # CC pic flag -KPIC is the default. | |
12909 | ;; | |
12910 | *) | |
12911 | ;; | |
12912 | esac | |
12913 | ;; | |
1504c9b8 | 12914 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9c60689e DWT |
12915 | case $cc_basename in |
12916 | KCC*) | |
12917 | # KAI C++ Compiler | |
12918 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12919 | lt_prog_compiler_pic_CXX='-fPIC' | |
12920 | ;; | |
12921 | ecpc* ) | |
12922 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12923 | lt_prog_compiler_wl_CXX='-Wl,' | |
12924 | lt_prog_compiler_pic_CXX='-KPIC' | |
12925 | lt_prog_compiler_static_CXX='-static' | |
12926 | ;; | |
12927 | icpc* ) | |
12928 | # Intel C++, used to be incompatible with GCC. | |
12929 | # ICC 10 doesn't accept -KPIC any more. | |
12930 | lt_prog_compiler_wl_CXX='-Wl,' | |
12931 | lt_prog_compiler_pic_CXX='-fPIC' | |
12932 | lt_prog_compiler_static_CXX='-static' | |
12933 | ;; | |
12934 | pgCC* | pgcpp*) | |
12935 | # Portland Group C++ compiler | |
12936 | lt_prog_compiler_wl_CXX='-Wl,' | |
12937 | lt_prog_compiler_pic_CXX='-fpic' | |
12938 | lt_prog_compiler_static_CXX='-Bstatic' | |
12939 | ;; | |
12940 | cxx*) | |
12941 | # Compaq C++ | |
12942 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12943 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12944 | lt_prog_compiler_pic_CXX= | |
12945 | lt_prog_compiler_static_CXX='-non_shared' | |
12946 | ;; | |
12947 | xlc* | xlC*) | |
12948 | # IBM XL 8.0 on PPC | |
12949 | lt_prog_compiler_wl_CXX='-Wl,' | |
12950 | lt_prog_compiler_pic_CXX='-qpic' | |
12951 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12952 | ;; | |
12953 | *) | |
12954 | case `$CC -V 2>&1 | sed 5q` in | |
12955 | *Sun\ C*) | |
12956 | # Sun C++ 5.9 | |
12957 | lt_prog_compiler_pic_CXX='-KPIC' | |
12958 | lt_prog_compiler_static_CXX='-Bstatic' | |
12959 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12960 | ;; | |
12961 | esac | |
12962 | ;; | |
12963 | esac | |
12964 | ;; | |
12965 | lynxos*) | |
12966 | ;; | |
12967 | m88k*) | |
12968 | ;; | |
12969 | mvs*) | |
12970 | case $cc_basename in | |
12971 | cxx*) | |
12972 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12973 | ;; | |
12974 | *) | |
12975 | ;; | |
12976 | esac | |
12977 | ;; | |
1504c9b8 | 12978 | netbsd* | netbsdelf*-gnu) |
9c60689e DWT |
12979 | ;; |
12980 | *qnx* | *nto*) | |
12981 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12982 | # it will coredump. | |
12983 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12984 | ;; | |
12985 | osf3* | osf4* | osf5*) | |
12986 | case $cc_basename in | |
12987 | KCC*) | |
12988 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12989 | ;; | |
12990 | RCC*) | |
12991 | # Rational C++ 2.4.1 | |
12992 | lt_prog_compiler_pic_CXX='-pic' | |
12993 | ;; | |
12994 | cxx*) | |
12995 | # Digital/Compaq C++ | |
12996 | lt_prog_compiler_wl_CXX='-Wl,' | |
12997 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12998 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12999 | lt_prog_compiler_pic_CXX= | |
13000 | lt_prog_compiler_static_CXX='-non_shared' | |
13001 | ;; | |
13002 | *) | |
13003 | ;; | |
13004 | esac | |
13005 | ;; | |
13006 | psos*) | |
13007 | ;; | |
13008 | solaris*) | |
13009 | case $cc_basename in | |
13010 | CC*) | |
13011 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13012 | lt_prog_compiler_pic_CXX='-KPIC' | |
13013 | lt_prog_compiler_static_CXX='-Bstatic' | |
13014 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13015 | ;; | |
13016 | gcx*) | |
13017 | # Green Hills C++ Compiler | |
13018 | lt_prog_compiler_pic_CXX='-PIC' | |
13019 | ;; | |
13020 | *) | |
13021 | ;; | |
13022 | esac | |
13023 | ;; | |
13024 | sunos4*) | |
13025 | case $cc_basename in | |
13026 | CC*) | |
13027 | # Sun C++ 4.x | |
13028 | lt_prog_compiler_pic_CXX='-pic' | |
13029 | lt_prog_compiler_static_CXX='-Bstatic' | |
13030 | ;; | |
13031 | lcc*) | |
13032 | # Lucid | |
13033 | lt_prog_compiler_pic_CXX='-pic' | |
13034 | ;; | |
13035 | *) | |
13036 | ;; | |
13037 | esac | |
13038 | ;; | |
13039 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13040 | case $cc_basename in | |
13041 | CC*) | |
13042 | lt_prog_compiler_wl_CXX='-Wl,' | |
13043 | lt_prog_compiler_pic_CXX='-KPIC' | |
13044 | lt_prog_compiler_static_CXX='-Bstatic' | |
13045 | ;; | |
13046 | esac | |
13047 | ;; | |
13048 | tandem*) | |
13049 | case $cc_basename in | |
13050 | NCC*) | |
13051 | # NonStop-UX NCC 3.20 | |
13052 | lt_prog_compiler_pic_CXX='-KPIC' | |
13053 | ;; | |
13054 | *) | |
13055 | ;; | |
13056 | esac | |
13057 | ;; | |
13058 | vxworks*) | |
13059 | ;; | |
13060 | *) | |
13061 | lt_prog_compiler_can_build_shared_CXX=no | |
13062 | ;; | |
13063 | esac | |
13064 | fi | |
13065 | ||
13066 | case $host_os in | |
13067 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13068 | *djgpp*) | |
13069 | lt_prog_compiler_pic_CXX= | |
13070 | ;; | |
13071 | *) | |
13072 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13073 | ;; | |
13074 | esac | |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13076 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13077 | ||
13078 | ||
13079 | ||
13080 | # | |
13081 | # Check to make sure the PIC flag actually works. | |
13082 | # | |
13083 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13085 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13086 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13087 | $as_echo_n "(cached) " >&6 | |
13088 | else | |
13089 | lt_cv_prog_compiler_pic_works_CXX=no | |
13090 | ac_outfile=conftest.$ac_objext | |
13091 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13092 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13093 | # Insert the option either (1) after the last *FLAGS variable, or | |
13094 | # (2) before a word containing "conftest.", or (3) at the end. | |
13095 | # Note that $ac_compile itself does not contain backslashes and begins | |
13096 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13097 | # The option is referenced via a variable to avoid confusing sed. | |
13098 | lt_compile=`echo "$ac_compile" | $SED \ | |
13099 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13100 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13101 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13102 | (eval echo "\"\$as_me:13101: $lt_compile\"" >&5) |
9c60689e DWT |
13103 | (eval "$lt_compile" 2>conftest.err) |
13104 | ac_status=$? | |
13105 | cat conftest.err >&5 | |
794e88e7 | 13106 | echo "$as_me:13105: \$? = $ac_status" >&5 |
9c60689e DWT |
13107 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13108 | # The compiler can only warn and ignore the option if not recognized | |
13109 | # So say no if there are warnings other than the usual output. | |
13110 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13111 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13112 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13113 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13114 | fi | |
13115 | fi | |
13116 | $RM conftest* | |
13117 | ||
13118 | fi | |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13120 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13121 | ||
13122 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13123 | case $lt_prog_compiler_pic_CXX in | |
13124 | "" | " "*) ;; | |
13125 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13126 | esac | |
13127 | else | |
13128 | lt_prog_compiler_pic_CXX= | |
13129 | lt_prog_compiler_can_build_shared_CXX=no | |
13130 | fi | |
13131 | ||
13132 | fi | |
13133 | ||
13134 | ||
13135 | ||
47aaa820 DWT |
13136 | # |
13137 | # Check to make sure the static flag actually works. | |
13138 | # | |
13139 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13141 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13142 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13143 | $as_echo_n "(cached) " >&6 | |
13144 | else | |
13145 | lt_cv_prog_compiler_static_works_CXX=no | |
13146 | save_LDFLAGS="$LDFLAGS" | |
13147 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13148 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13149 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13150 | # The linker can only warn and ignore the option if not recognized | |
13151 | # So say no if there are warnings | |
13152 | if test -s conftest.err; then | |
13153 | # Append any errors to the config.log. | |
13154 | cat conftest.err 1>&5 | |
13155 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13156 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13157 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13158 | lt_cv_prog_compiler_static_works_CXX=yes | |
13159 | fi | |
13160 | else | |
13161 | lt_cv_prog_compiler_static_works_CXX=yes | |
13162 | fi | |
13163 | fi | |
13164 | $RM -r conftest* | |
13165 | LDFLAGS="$save_LDFLAGS" | |
13166 | ||
13167 | fi | |
13168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13169 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13170 | ||
13171 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13172 | : | |
13173 | else | |
13174 | lt_prog_compiler_static_CXX= | |
13175 | fi | |
13176 | ||
13177 | ||
13178 | ||
13179 | ||
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13181 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13182 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13183 | $as_echo_n "(cached) " >&6 | |
13184 | else | |
13185 | lt_cv_prog_compiler_c_o_CXX=no | |
13186 | $RM -r conftest 2>/dev/null | |
13187 | mkdir conftest | |
13188 | cd conftest | |
13189 | mkdir out | |
13190 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13191 | ||
13192 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13193 | # Insert the option either (1) after the last *FLAGS variable, or | |
13194 | # (2) before a word containing "conftest.", or (3) at the end. | |
13195 | # Note that $ac_compile itself does not contain backslashes and begins | |
13196 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13197 | lt_compile=`echo "$ac_compile" | $SED \ | |
13198 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13199 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13200 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13201 | (eval echo "\"\$as_me:13200: $lt_compile\"" >&5) |
47aaa820 DWT |
13202 | (eval "$lt_compile" 2>out/conftest.err) |
13203 | ac_status=$? | |
13204 | cat out/conftest.err >&5 | |
794e88e7 | 13205 | echo "$as_me:13204: \$? = $ac_status" >&5 |
47aaa820 DWT |
13206 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13207 | then | |
13208 | # The compiler can only warn and ignore the option if not recognized | |
13209 | # So say no if there are warnings | |
13210 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13211 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13212 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13213 | lt_cv_prog_compiler_c_o_CXX=yes | |
13214 | fi | |
13215 | fi | |
13216 | chmod u+w . 2>&5 | |
13217 | $RM conftest* | |
13218 | # SGI C++ compiler will create directory out/ii_files/ for | |
13219 | # template instantiation | |
13220 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13221 | $RM out/* && rmdir out | |
13222 | cd .. | |
13223 | $RM -r conftest | |
13224 | $RM conftest* | |
13225 | ||
13226 | fi | |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13228 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13229 | ||
13230 | ||
13231 | ||
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13233 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13234 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13235 | $as_echo_n "(cached) " >&6 | |
13236 | else | |
13237 | lt_cv_prog_compiler_c_o_CXX=no | |
13238 | $RM -r conftest 2>/dev/null | |
13239 | mkdir conftest | |
13240 | cd conftest | |
13241 | mkdir out | |
13242 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13243 | ||
13244 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13245 | # Insert the option either (1) after the last *FLAGS variable, or | |
13246 | # (2) before a word containing "conftest.", or (3) at the end. | |
13247 | # Note that $ac_compile itself does not contain backslashes and begins | |
13248 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13249 | lt_compile=`echo "$ac_compile" | $SED \ | |
13250 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13251 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13252 | -e 's:$: $lt_compiler_flag:'` | |
794e88e7 | 13253 | (eval echo "\"\$as_me:13252: $lt_compile\"" >&5) |
47aaa820 DWT |
13254 | (eval "$lt_compile" 2>out/conftest.err) |
13255 | ac_status=$? | |
13256 | cat out/conftest.err >&5 | |
794e88e7 | 13257 | echo "$as_me:13256: \$? = $ac_status" >&5 |
47aaa820 DWT |
13258 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13259 | then | |
13260 | # The compiler can only warn and ignore the option if not recognized | |
13261 | # So say no if there are warnings | |
13262 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13263 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13264 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13265 | lt_cv_prog_compiler_c_o_CXX=yes | |
13266 | fi | |
13267 | fi | |
13268 | chmod u+w . 2>&5 | |
13269 | $RM conftest* | |
13270 | # SGI C++ compiler will create directory out/ii_files/ for | |
13271 | # template instantiation | |
13272 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13273 | $RM out/* && rmdir out | |
13274 | cd .. | |
13275 | $RM -r conftest | |
13276 | $RM conftest* | |
13277 | ||
13278 | fi | |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13280 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | hard_links="nottested" | |
13286 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13287 | # do not overwrite the value of need_locks provided by the user | |
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13289 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13290 | hard_links=yes | |
13291 | $RM conftest* | |
13292 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13293 | touch conftest.a | |
13294 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13295 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13297 | $as_echo "$hard_links" >&6; } | |
13298 | if test "$hard_links" = no; then | |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13300 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13301 | need_locks=warn | |
13302 | fi | |
13303 | else | |
13304 | need_locks=no | |
13305 | fi | |
13306 | ||
13307 | ||
13308 | ||
13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13310 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13311 | ||
13312 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13313 | case $host_os in | |
13314 | aix[4-9]*) | |
13315 | # If we're using GNU nm, then we don't want the "-C" option. | |
13316 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13317 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13318 | 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' | |
13319 | else | |
13320 | 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' | |
13321 | fi | |
13322 | ;; | |
13323 | pw32*) | |
13324 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13325 | ;; | |
13326 | cygwin* | mingw* | cegcc*) | |
13327 | 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' | |
13328 | ;; | |
1504c9b8 DWT |
13329 | linux* | k*bsd*-gnu) |
13330 | link_all_deplibs_CXX=no | |
13331 | ;; | |
47aaa820 DWT |
13332 | *) |
13333 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13334 | ;; | |
13335 | esac | |
13336 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13337 | ||
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13339 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13340 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13341 | ||
13342 | with_gnu_ld_CXX=$with_gnu_ld | |
13343 | ||
13344 | ||
13345 | ||
13346 | ||
13347 | ||
13348 | ||
13349 | # | |
13350 | # Do we need to explicitly link libc? | |
13351 | # | |
13352 | case "x$archive_cmds_need_lc_CXX" in | |
13353 | x|xyes) | |
13354 | # Assume -lc should be added | |
13355 | archive_cmds_need_lc_CXX=yes | |
13356 | ||
13357 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13358 | case $archive_cmds_CXX in | |
13359 | *'~'*) | |
13360 | # FIXME: we may have to deal with multi-command sequences. | |
13361 | ;; | |
13362 | '$CC '*) | |
13363 | # Test whether the compiler implicitly links with -lc since on some | |
13364 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13365 | # to ld, don't add -lc before -lgcc. | |
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13367 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13368 | $RM conftest* | |
13369 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13370 | ||
13371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13372 | (eval $ac_compile) 2>&5 | |
13373 | ac_status=$? | |
13374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13375 | test $ac_status = 0; } 2>conftest.err; then | |
13376 | soname=conftest | |
13377 | lib=conftest | |
13378 | libobjs=conftest.$ac_objext | |
13379 | deplibs= | |
13380 | wl=$lt_prog_compiler_wl_CXX | |
13381 | pic_flag=$lt_prog_compiler_pic_CXX | |
13382 | compiler_flags=-v | |
13383 | linker_flags=-v | |
13384 | verstring= | |
13385 | output_objdir=. | |
13386 | libname=conftest | |
13387 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13388 | allow_undefined_flag_CXX= | |
13389 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13390 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13391 | ac_status=$? | |
13392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13393 | test $ac_status = 0; } | |
13394 | then | |
13395 | archive_cmds_need_lc_CXX=no | |
13396 | else | |
13397 | archive_cmds_need_lc_CXX=yes | |
13398 | fi | |
13399 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13400 | else | |
13401 | cat conftest.err 1>&5 | |
13402 | fi | |
13403 | $RM conftest* | |
13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
13405 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
13406 | ;; | |
13407 | esac | |
13408 | fi | |
13409 | ;; | |
13410 | esac | |
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | ||
13419 | ||
13420 | ||
13421 | ||
13422 | ||
13423 | ||
13424 | ||
13425 | ||
13426 | ||
13427 | ||
13428 | ||
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | ||
13434 | ||
13435 | ||
13436 | ||
13437 | ||
13438 | ||
13439 | ||
13440 | ||
13441 | ||
13442 | ||
13443 | ||
13444 | ||
13445 | ||
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | ||
13453 | ||
13454 | ||
13455 | ||
13456 | ||
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | ||
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | ||
13474 | ||
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13476 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13477 | ||
13478 | library_names_spec= | |
13479 | libname_spec='lib$name' | |
13480 | soname_spec= | |
13481 | shrext_cmds=".so" | |
13482 | postinstall_cmds= | |
13483 | postuninstall_cmds= | |
13484 | finish_cmds= | |
13485 | finish_eval= | |
13486 | shlibpath_var= | |
13487 | shlibpath_overrides_runpath=unknown | |
13488 | version_type=none | |
13489 | dynamic_linker="$host_os ld.so" | |
13490 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13491 | need_lib_prefix=unknown | |
13492 | hardcode_into_libs=no | |
13493 | ||
13494 | # when you set need_version to no, make sure it does not cause -set_version | |
13495 | # flags to be left without arguments | |
13496 | need_version=unknown | |
13497 | ||
13498 | case $host_os in | |
13499 | aix3*) | |
13500 | version_type=linux | |
13501 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13502 | shlibpath_var=LIBPATH | |
13503 | ||
13504 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13505 | soname_spec='${libname}${release}${shared_ext}$major' | |
13506 | ;; | |
13507 | ||
13508 | aix[4-9]*) | |
13509 | version_type=linux | |
13510 | need_lib_prefix=no | |
13511 | need_version=no | |
13512 | hardcode_into_libs=yes | |
13513 | if test "$host_cpu" = ia64; then | |
13514 | # AIX 5 supports IA64 | |
13515 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13516 | shlibpath_var=LD_LIBRARY_PATH | |
13517 | else | |
13518 | # With GCC up to 2.95.x, collect2 would create an import file | |
13519 | # for dependence libraries. The import file would start with | |
13520 | # the line `#! .'. This would cause the generated library to | |
13521 | # depend on `.', always an invalid library. This was fixed in | |
13522 | # development snapshots of GCC prior to 3.0. | |
13523 | case $host_os in | |
13524 | aix4 | aix4.[01] | aix4.[01].*) | |
13525 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13526 | echo ' yes ' | |
13527 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13528 | : | |
13529 | else | |
13530 | can_build_shared=no | |
13531 | fi | |
13532 | ;; | |
13533 | esac | |
13534 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13535 | # soname into executable. Probably we can add versioning support to | |
13536 | # collect2, so additional links can be useful in future. | |
13537 | if test "$aix_use_runtimelinking" = yes; then | |
13538 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13539 | # instead of lib<name>.a to let people know that these are not | |
13540 | # typical AIX shared libraries. | |
13541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13542 | else | |
13543 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13544 | # and later when we are not doing run time linking. | |
13545 | library_names_spec='${libname}${release}.a $libname.a' | |
13546 | soname_spec='${libname}${release}${shared_ext}$major' | |
13547 | fi | |
13548 | shlibpath_var=LIBPATH | |
13549 | fi | |
13550 | ;; | |
13551 | ||
13552 | amigaos*) | |
13553 | case $host_cpu in | |
13554 | powerpc) | |
13555 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13556 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13558 | ;; | |
13559 | m68k) | |
13560 | library_names_spec='$libname.ixlibrary $libname.a' | |
13561 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13562 | 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' | |
13563 | ;; | |
13564 | esac | |
13565 | ;; | |
13566 | ||
13567 | beos*) | |
13568 | library_names_spec='${libname}${shared_ext}' | |
13569 | dynamic_linker="$host_os ld.so" | |
13570 | shlibpath_var=LIBRARY_PATH | |
13571 | ;; | |
13572 | ||
13573 | bsdi[45]*) | |
13574 | version_type=linux | |
13575 | need_version=no | |
13576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13577 | soname_spec='${libname}${release}${shared_ext}$major' | |
13578 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13579 | shlibpath_var=LD_LIBRARY_PATH | |
13580 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13581 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13582 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13583 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13584 | # libtool to hard-code these into programs | |
13585 | ;; | |
9c60689e | 13586 | |
47aaa820 DWT |
13587 | cygwin* | mingw* | pw32* | cegcc*) |
13588 | version_type=windows | |
13589 | shrext_cmds=".dll" | |
13590 | need_version=no | |
13591 | need_lib_prefix=no | |
9c60689e | 13592 | |
47aaa820 DWT |
13593 | case $GCC,$host_os in |
13594 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13595 | library_names_spec='$libname.dll.a' | |
13596 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13597 | postinstall_cmds='base_file=`basename \${file}`~ | |
13598 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13599 | dldir=$destdir/`dirname \$dlpath`~ | |
13600 | test -d \$dldir || mkdir -p \$dldir~ | |
13601 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13602 | chmod a+x \$dldir/$dlname~ | |
13603 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13604 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13605 | fi' | |
13606 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13607 | dlpath=$dir/\$dldll~ | |
13608 | $RM \$dlpath' | |
13609 | shlibpath_overrides_runpath=yes | |
9c60689e | 13610 | |
47aaa820 DWT |
13611 | case $host_os in |
13612 | cygwin*) | |
13613 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13614 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13615 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13616 | ;; | |
13617 | mingw* | cegcc*) | |
13618 | # MinGW DLLs use traditional 'lib' prefix | |
13619 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13620 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13621 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13622 | # It is most probably a Windows format PATH printed by | |
13623 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13624 | # path with ; separators, and with drive letters. We can handle the | |
13625 | # drive letters (cygwin fileutils understands them), so leave them, | |
13626 | # especially as we might pass files found there to a mingw objdump, | |
13627 | # which wouldn't understand a cygwinified path. Ahh. | |
13628 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13629 | else | |
13630 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13631 | fi | |
13632 | ;; | |
13633 | pw32*) | |
13634 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13635 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13636 | ;; | |
13637 | esac | |
13638 | ;; | |
9c60689e | 13639 | |
47aaa820 DWT |
13640 | *) |
13641 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13642 | ;; | |
13643 | esac | |
13644 | dynamic_linker='Win32 ld.exe' | |
13645 | # FIXME: first we should search . and the directory the executable is in | |
13646 | shlibpath_var=PATH | |
13647 | ;; | |
9c60689e | 13648 | |
47aaa820 DWT |
13649 | darwin* | rhapsody*) |
13650 | dynamic_linker="$host_os dyld" | |
13651 | version_type=darwin | |
13652 | need_lib_prefix=no | |
13653 | need_version=no | |
13654 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13655 | soname_spec='${libname}${release}${major}$shared_ext' | |
13656 | shlibpath_overrides_runpath=yes | |
13657 | shlibpath_var=DYLD_LIBRARY_PATH | |
13658 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13659 | |
47aaa820 DWT |
13660 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13661 | ;; | |
9c60689e | 13662 | |
47aaa820 DWT |
13663 | dgux*) |
13664 | version_type=linux | |
13665 | need_lib_prefix=no | |
13666 | need_version=no | |
13667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13668 | soname_spec='${libname}${release}${shared_ext}$major' | |
13669 | shlibpath_var=LD_LIBRARY_PATH | |
13670 | ;; | |
9c60689e | 13671 | |
47aaa820 DWT |
13672 | freebsd1*) |
13673 | dynamic_linker=no | |
13674 | ;; | |
9c60689e | 13675 | |
47aaa820 DWT |
13676 | freebsd* | dragonfly*) |
13677 | # DragonFly does not have aout. When/if they implement a new | |
13678 | # versioning mechanism, adjust this. | |
13679 | if test -x /usr/bin/objformat; then | |
13680 | objformat=`/usr/bin/objformat` | |
13681 | else | |
13682 | case $host_os in | |
13683 | freebsd[123]*) objformat=aout ;; | |
13684 | *) objformat=elf ;; | |
13685 | esac | |
13686 | fi | |
13687 | version_type=freebsd-$objformat | |
13688 | case $version_type in | |
13689 | freebsd-elf*) | |
13690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13691 | need_version=no | |
13692 | need_lib_prefix=no | |
13693 | ;; | |
13694 | freebsd-*) | |
13695 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13696 | need_version=yes | |
13697 | ;; | |
13698 | esac | |
13699 | shlibpath_var=LD_LIBRARY_PATH | |
13700 | case $host_os in | |
13701 | freebsd2*) | |
13702 | shlibpath_overrides_runpath=yes | |
13703 | ;; | |
13704 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13705 | shlibpath_overrides_runpath=yes | |
13706 | hardcode_into_libs=yes | |
13707 | ;; | |
13708 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13709 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13710 | shlibpath_overrides_runpath=no | |
13711 | hardcode_into_libs=yes | |
13712 | ;; | |
13713 | *) # from 4.6 on, and DragonFly | |
13714 | shlibpath_overrides_runpath=yes | |
13715 | hardcode_into_libs=yes | |
13716 | ;; | |
13717 | esac | |
13718 | ;; | |
9c60689e | 13719 | |
47aaa820 DWT |
13720 | gnu*) |
13721 | version_type=linux | |
13722 | need_lib_prefix=no | |
13723 | need_version=no | |
13724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13725 | soname_spec='${libname}${release}${shared_ext}$major' | |
13726 | shlibpath_var=LD_LIBRARY_PATH | |
13727 | hardcode_into_libs=yes | |
13728 | ;; | |
9c60689e | 13729 | |
47aaa820 DWT |
13730 | hpux9* | hpux10* | hpux11*) |
13731 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13732 | # link against other versions. | |
13733 | version_type=sunos | |
13734 | need_lib_prefix=no | |
13735 | need_version=no | |
13736 | case $host_cpu in | |
13737 | ia64*) | |
13738 | shrext_cmds='.so' | |
13739 | hardcode_into_libs=yes | |
13740 | dynamic_linker="$host_os dld.so" | |
13741 | shlibpath_var=LD_LIBRARY_PATH | |
13742 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13744 | soname_spec='${libname}${release}${shared_ext}$major' | |
13745 | if test "X$HPUX_IA64_MODE" = X32; then | |
13746 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13747 | else | |
13748 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13749 | fi | |
13750 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13751 | ;; | |
13752 | hppa*64*) | |
13753 | shrext_cmds='.sl' | |
13754 | hardcode_into_libs=yes | |
13755 | dynamic_linker="$host_os dld.sl" | |
13756 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13757 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13759 | soname_spec='${libname}${release}${shared_ext}$major' | |
13760 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13761 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13762 | ;; | |
13763 | *) | |
13764 | shrext_cmds='.sl' | |
13765 | dynamic_linker="$host_os dld.sl" | |
13766 | shlibpath_var=SHLIB_PATH | |
13767 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13769 | soname_spec='${libname}${release}${shared_ext}$major' | |
13770 | ;; | |
13771 | esac | |
13772 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13773 | postinstall_cmds='chmod 555 $lib' | |
13774 | ;; | |
9c60689e | 13775 | |
47aaa820 DWT |
13776 | interix[3-9]*) |
13777 | version_type=linux | |
13778 | need_lib_prefix=no | |
13779 | need_version=no | |
13780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13781 | soname_spec='${libname}${release}${shared_ext}$major' | |
13782 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13783 | shlibpath_var=LD_LIBRARY_PATH | |
13784 | shlibpath_overrides_runpath=no | |
13785 | hardcode_into_libs=yes | |
13786 | ;; | |
9c60689e | 13787 | |
47aaa820 DWT |
13788 | irix5* | irix6* | nonstopux*) |
13789 | case $host_os in | |
13790 | nonstopux*) version_type=nonstopux ;; | |
13791 | *) | |
13792 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13793 | version_type=linux | |
13794 | else | |
13795 | version_type=irix | |
13796 | fi ;; | |
13797 | esac | |
13798 | need_lib_prefix=no | |
13799 | need_version=no | |
13800 | soname_spec='${libname}${release}${shared_ext}$major' | |
13801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13802 | case $host_os in | |
13803 | irix5* | nonstopux*) | |
13804 | libsuff= shlibsuff= | |
13805 | ;; | |
13806 | *) | |
13807 | case $LD in # libtool.m4 will add one of these switches to LD | |
13808 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13809 | libsuff= shlibsuff= libmagic=32-bit;; | |
13810 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13811 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13812 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13813 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13814 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13815 | esac | |
13816 | ;; | |
13817 | esac | |
13818 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13819 | shlibpath_overrides_runpath=no | |
13820 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13821 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13822 | hardcode_into_libs=yes | |
13823 | ;; | |
9c60689e | 13824 | |
47aaa820 DWT |
13825 | # No shared lib support for Linux oldld, aout, or coff. |
13826 | linux*oldld* | linux*aout* | linux*coff*) | |
13827 | dynamic_linker=no | |
13828 | ;; | |
9c60689e | 13829 | |
47aaa820 | 13830 | # This must be Linux ELF. |
1504c9b8 | 13831 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
47aaa820 DWT |
13832 | version_type=linux |
13833 | need_lib_prefix=no | |
13834 | need_version=no | |
13835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13836 | soname_spec='${libname}${release}${shared_ext}$major' | |
13837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13838 | shlibpath_var=LD_LIBRARY_PATH | |
13839 | shlibpath_overrides_runpath=no | |
13840 | # Some binutils ld are patched to set DT_RUNPATH | |
13841 | save_LDFLAGS=$LDFLAGS | |
13842 | save_libdir=$libdir | |
13843 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13844 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13846 | /* end confdefs.h. */ | |
9c60689e | 13847 | |
47aaa820 DWT |
13848 | int |
13849 | main () | |
13850 | { | |
9c60689e | 13851 | |
47aaa820 DWT |
13852 | ; |
13853 | return 0; | |
13854 | } | |
13855 | _ACEOF | |
13856 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13857 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13858 | shlibpath_overrides_runpath=yes | |
9c60689e | 13859 | fi |
47aaa820 DWT |
13860 | fi |
13861 | rm -f core conftest.err conftest.$ac_objext \ | |
13862 | conftest$ac_exeext conftest.$ac_ext | |
13863 | LDFLAGS=$save_LDFLAGS | |
13864 | libdir=$save_libdir | |
9c60689e | 13865 | |
47aaa820 DWT |
13866 | # This implies no fast_install, which is unacceptable. |
13867 | # Some rework will be needed to allow for fast_install | |
13868 | # before this can be enabled. | |
13869 | hardcode_into_libs=yes | |
9c60689e | 13870 | |
47aaa820 DWT |
13871 | # Append ld.so.conf contents to the search path |
13872 | if test -f /etc/ld.so.conf; then | |
13873 | 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' ' '` | |
13874 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13875 | fi | |
9c60689e | 13876 | |
47aaa820 DWT |
13877 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13878 | # powerpc, because MkLinux only supported shared libraries with the | |
13879 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13880 | # most powerpc-linux boxes support dynamic linking these days and | |
13881 | # people can always --disable-shared, the test was removed, and we | |
13882 | # assume the GNU/Linux dynamic linker is in use. | |
13883 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13884 | ;; |
47aaa820 | 13885 | |
1504c9b8 DWT |
13886 | netbsdelf*-gnu) |
13887 | version_type=linux | |
13888 | need_lib_prefix=no | |
13889 | need_version=no | |
13890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13891 | soname_spec='${libname}${release}${shared_ext}$major' | |
13892 | shlibpath_var=LD_LIBRARY_PATH | |
13893 | shlibpath_overrides_runpath=no | |
13894 | hardcode_into_libs=yes | |
13895 | dynamic_linker='NetBSD ld.elf_so' | |
13896 | ;; | |
13897 | ||
47aaa820 DWT |
13898 | netbsd*) |
13899 | version_type=sunos | |
13900 | need_lib_prefix=no | |
13901 | need_version=no | |
13902 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13904 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13905 | dynamic_linker='NetBSD (a.out) ld.so' | |
13906 | else | |
13907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13908 | soname_spec='${libname}${release}${shared_ext}$major' | |
13909 | dynamic_linker='NetBSD ld.elf_so' | |
13910 | fi | |
13911 | shlibpath_var=LD_LIBRARY_PATH | |
13912 | shlibpath_overrides_runpath=yes | |
13913 | hardcode_into_libs=yes | |
9c60689e | 13914 | ;; |
9c60689e | 13915 | |
47aaa820 DWT |
13916 | newsos6) |
13917 | version_type=linux | |
13918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13919 | shlibpath_var=LD_LIBRARY_PATH | |
13920 | shlibpath_overrides_runpath=yes | |
13921 | ;; | |
9c60689e | 13922 | |
47aaa820 DWT |
13923 | *nto* | *qnx*) |
13924 | version_type=qnx | |
13925 | need_lib_prefix=no | |
13926 | need_version=no | |
13927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13928 | soname_spec='${libname}${release}${shared_ext}$major' | |
13929 | shlibpath_var=LD_LIBRARY_PATH | |
13930 | shlibpath_overrides_runpath=no | |
13931 | hardcode_into_libs=yes | |
13932 | dynamic_linker='ldqnx.so' | |
13933 | ;; | |
9c60689e | 13934 | |
47aaa820 DWT |
13935 | openbsd*) |
13936 | version_type=sunos | |
13937 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13938 | need_lib_prefix=no | |
13939 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13940 | case $host_os in | |
13941 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13942 | *) need_version=no ;; | |
13943 | esac | |
13944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13945 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13946 | shlibpath_var=LD_LIBRARY_PATH | |
13947 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13948 | case $host_os in | |
13949 | openbsd2.[89] | openbsd2.[89].*) | |
13950 | shlibpath_overrides_runpath=no | |
13951 | ;; | |
13952 | *) | |
13953 | shlibpath_overrides_runpath=yes | |
13954 | ;; | |
13955 | esac | |
13956 | else | |
13957 | shlibpath_overrides_runpath=yes | |
13958 | fi | |
13959 | ;; | |
9c60689e | 13960 | |
47aaa820 DWT |
13961 | os2*) |
13962 | libname_spec='$name' | |
13963 | shrext_cmds=".dll" | |
13964 | need_lib_prefix=no | |
13965 | library_names_spec='$libname${shared_ext} $libname.a' | |
13966 | dynamic_linker='OS/2 ld.exe' | |
13967 | shlibpath_var=LIBPATH | |
13968 | ;; | |
9c60689e | 13969 | |
47aaa820 DWT |
13970 | osf3* | osf4* | osf5*) |
13971 | version_type=osf | |
13972 | need_lib_prefix=no | |
13973 | need_version=no | |
13974 | soname_spec='${libname}${release}${shared_ext}$major' | |
13975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13976 | shlibpath_var=LD_LIBRARY_PATH | |
13977 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13978 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13979 | ;; | |
9c60689e | 13980 | |
47aaa820 DWT |
13981 | rdos*) |
13982 | dynamic_linker=no | |
13983 | ;; | |
9c60689e | 13984 | |
47aaa820 DWT |
13985 | solaris*) |
13986 | version_type=linux | |
13987 | need_lib_prefix=no | |
13988 | need_version=no | |
13989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13990 | soname_spec='${libname}${release}${shared_ext}$major' | |
13991 | shlibpath_var=LD_LIBRARY_PATH | |
13992 | shlibpath_overrides_runpath=yes | |
13993 | hardcode_into_libs=yes | |
13994 | # ldd complains unless libraries are executable | |
13995 | postinstall_cmds='chmod +x $lib' | |
13996 | ;; | |
9c60689e | 13997 | |
47aaa820 DWT |
13998 | sunos4*) |
13999 | version_type=sunos | |
14000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14001 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14002 | shlibpath_var=LD_LIBRARY_PATH | |
14003 | shlibpath_overrides_runpath=yes | |
14004 | if test "$with_gnu_ld" = yes; then | |
14005 | need_lib_prefix=no | |
14006 | fi | |
14007 | need_version=yes | |
14008 | ;; | |
9c60689e | 14009 | |
47aaa820 DWT |
14010 | sysv4 | sysv4.3*) |
14011 | version_type=linux | |
14012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14013 | soname_spec='${libname}${release}${shared_ext}$major' | |
14014 | shlibpath_var=LD_LIBRARY_PATH | |
14015 | case $host_vendor in | |
14016 | sni) | |
14017 | shlibpath_overrides_runpath=no | |
14018 | need_lib_prefix=no | |
14019 | runpath_var=LD_RUN_PATH | |
9c60689e | 14020 | ;; |
47aaa820 DWT |
14021 | siemens) |
14022 | need_lib_prefix=no | |
9c60689e | 14023 | ;; |
47aaa820 DWT |
14024 | motorola) |
14025 | need_lib_prefix=no | |
14026 | need_version=no | |
14027 | shlibpath_overrides_runpath=no | |
14028 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14029 | ;; | |
14030 | esac | |
9c60689e | 14031 | ;; |
9c60689e | 14032 | |
47aaa820 DWT |
14033 | sysv4*MP*) |
14034 | if test -d /usr/nec ;then | |
14035 | version_type=linux | |
14036 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14037 | soname_spec='$libname${shared_ext}.$major' | |
14038 | shlibpath_var=LD_LIBRARY_PATH | |
14039 | fi | |
14040 | ;; | |
9c60689e | 14041 | |
47aaa820 DWT |
14042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
14043 | version_type=freebsd-elf | |
14044 | need_lib_prefix=no | |
14045 | need_version=no | |
14046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14047 | soname_spec='${libname}${release}${shared_ext}$major' | |
14048 | shlibpath_var=LD_LIBRARY_PATH | |
14049 | shlibpath_overrides_runpath=yes | |
14050 | hardcode_into_libs=yes | |
14051 | if test "$with_gnu_ld" = yes; then | |
14052 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14053 | else | |
14054 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14055 | case $host_os in | |
14056 | sco3.2v5*) | |
14057 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14058 | ;; | |
14059 | esac | |
14060 | fi | |
14061 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14062 | ;; | |
9c60689e | 14063 | |
47aaa820 DWT |
14064 | tpf*) |
14065 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14066 | version_type=linux | |
14067 | need_lib_prefix=no | |
14068 | need_version=no | |
14069 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14070 | shlibpath_var=LD_LIBRARY_PATH | |
14071 | shlibpath_overrides_runpath=no | |
14072 | hardcode_into_libs=yes | |
14073 | ;; | |
9c60689e | 14074 | |
47aaa820 DWT |
14075 | uts4*) |
14076 | version_type=linux | |
14077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14078 | soname_spec='${libname}${release}${shared_ext}$major' | |
14079 | shlibpath_var=LD_LIBRARY_PATH | |
14080 | ;; | |
9c60689e | 14081 | |
47aaa820 DWT |
14082 | *) |
14083 | dynamic_linker=no | |
e9c9a47c DWT |
14084 | ;; |
14085 | esac | |
14086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14087 | $as_echo "$dynamic_linker" >&6; } | |
14088 | test "$dynamic_linker" = no && can_build_shared=no | |
14089 | ||
14090 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14091 | if test "$GCC" = yes; then | |
14092 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47aaa820 | 14093 | fi |
9c60689e | 14094 | |
e9c9a47c DWT |
14095 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14096 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
47aaa820 | 14097 | fi |
e9c9a47c DWT |
14098 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
14099 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
47aaa820 | 14100 | fi |
9c60689e | 14101 | |
9c60689e | 14102 | |
9c60689e | 14103 | |
9c60689e | 14104 | |
47aaa820 | 14105 | |
47aaa820 | 14106 | |
47aaa820 | 14107 | |
9c60689e | 14108 | |
9c60689e | 14109 | |
47aaa820 | 14110 | |
47aaa820 | 14111 | |
47aaa820 | 14112 | |
47aaa820 | 14113 | |
47aaa820 | 14114 | |
47aaa820 | 14115 | |
47aaa820 | 14116 | |
47aaa820 | 14117 | |
9c60689e | 14118 | |
9c60689e | 14119 | |
9c60689e | 14120 | |
9c60689e | 14121 | |
9c60689e | 14122 | |
e9c9a47c DWT |
14123 | |
14124 | ||
14125 | ||
14126 | ||
14127 | ||
14128 | ||
14129 | ||
14130 | ||
14131 | ||
14132 | ||
14133 | ||
14134 | ||
14135 | ||
14136 | ||
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14138 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14139 | hardcode_action_CXX= | |
14140 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14141 | test -n "$runpath_var_CXX" || | |
14142 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14143 | ||
14144 | # We can hardcode non-existent directories. | |
14145 | if test "$hardcode_direct_CXX" != no && | |
14146 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14147 | # have to relink, otherwise we might link with an installed library | |
14148 | # when we should be linking with a yet-to-be-installed one | |
14149 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14150 | test "$hardcode_minus_L_CXX" != no; then | |
14151 | # Linking always hardcodes the temporary library directory. | |
14152 | hardcode_action_CXX=relink | |
14153 | else | |
14154 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14155 | hardcode_action_CXX=immediate | |
14156 | fi | |
14157 | else | |
14158 | # We cannot hardcode anything, or else we can only hardcode existing | |
14159 | # directories. | |
14160 | hardcode_action_CXX=unsupported | |
14161 | fi | |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14163 | $as_echo "$hardcode_action_CXX" >&6; } | |
14164 | ||
14165 | if test "$hardcode_action_CXX" = relink || | |
14166 | test "$inherit_rpath_CXX" = yes; then | |
14167 | # Fast installation is not supported | |
14168 | enable_fast_install=no | |
14169 | elif test "$shlibpath_overrides_runpath" = yes || | |
14170 | test "$enable_shared" = no; then | |
14171 | # Fast installation is not necessary | |
14172 | enable_fast_install=needless | |
47aaa820 | 14173 | fi |
9c60689e | 14174 | |
47aaa820 | 14175 | |
47aaa820 | 14176 | |
e9c9a47c DWT |
14177 | |
14178 | ||
14179 | ||
14180 | ||
14181 | fi # test -n "$compiler" | |
14182 | ||
14183 | CC=$lt_save_CC | |
14184 | LDCXX=$LD | |
14185 | LD=$lt_save_LD | |
14186 | GCC=$lt_save_GCC | |
14187 | with_gnu_ld=$lt_save_with_gnu_ld | |
14188 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14189 | lt_cv_path_LD=$lt_save_path_LD | |
14190 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14191 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14192 | fi # test "$_lt_caught_CXX_error" != yes | |
14193 | ||
14194 | ac_ext=c | |
14195 | ac_cpp='$CPP $CPPFLAGS' | |
14196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14199 | ||
14200 | ||
14201 | ac_ext=mm | |
14202 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
14203 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14204 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14205 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
14206 | if test -n "$ac_tool_prefix"; then | |
14207 | for ac_prog in g++ objc++ objcxx c++ CXX | |
14208 | do | |
14209 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14210 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
632b71ea DWT |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14212 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14213 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : |
632b71ea DWT |
14214 | $as_echo_n "(cached) " >&6 |
14215 | else | |
e9c9a47c DWT |
14216 | if test -n "$OBJCXX"; then |
14217 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
632b71ea DWT |
14218 | else |
14219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14220 | for as_dir in $PATH | |
14221 | do | |
14222 | IFS=$as_save_IFS | |
14223 | test -z "$as_dir" && as_dir=. | |
14224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14225 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14226 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
632b71ea DWT |
14227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14228 | break 2 | |
14229 | fi | |
14230 | done | |
14231 | done | |
14232 | IFS=$as_save_IFS | |
14233 | ||
14234 | fi | |
14235 | fi | |
e9c9a47c DWT |
14236 | OBJCXX=$ac_cv_prog_OBJCXX |
14237 | if test -n "$OBJCXX"; then | |
14238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
14239 | $as_echo "$OBJCXX" >&6; } | |
632b71ea DWT |
14240 | else |
14241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14242 | $as_echo "no" >&6; } | |
14243 | fi | |
14244 | ||
14245 | ||
e9c9a47c DWT |
14246 | test -n "$OBJCXX" && break |
14247 | done | |
632b71ea | 14248 | fi |
e9c9a47c DWT |
14249 | if test -z "$OBJCXX"; then |
14250 | ac_ct_OBJCXX=$OBJCXX | |
14251 | for ac_prog in g++ objc++ objcxx c++ CXX | |
47aaa820 DWT |
14252 | do |
14253 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14254 | set dummy $ac_prog; ac_word=$2 | |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14256 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9c9a47c | 14257 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : |
47aaa820 DWT |
14258 | $as_echo_n "(cached) " >&6 |
14259 | else | |
e9c9a47c DWT |
14260 | if test -n "$ac_ct_OBJCXX"; then |
14261 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
47aaa820 DWT |
14262 | else |
14263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14264 | for as_dir in $PATH | |
14265 | do | |
14266 | IFS=$as_save_IFS | |
14267 | test -z "$as_dir" && as_dir=. | |
14268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
e9c9a47c | 14270 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
47aaa820 DWT |
14271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14272 | break 2 | |
14273 | fi | |
14274 | done | |
14275 | done | |
14276 | IFS=$as_save_IFS | |
9c60689e | 14277 | |
9c60689e | 14278 | fi |
9c60689e | 14279 | fi |
e9c9a47c DWT |
14280 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
14281 | if test -n "$ac_ct_OBJCXX"; then | |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
14283 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
47aaa820 DWT |
14284 | else |
14285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14286 | $as_echo "no" >&6; } | |
9c60689e DWT |
14287 | fi |
14288 | ||
14289 | ||
e9c9a47c | 14290 | test -n "$ac_ct_OBJCXX" && break |
47aaa820 | 14291 | done |
e9c9a47c DWT |
14292 | |
14293 | if test "x$ac_ct_OBJCXX" = x; then | |
14294 | OBJCXX="g++" | |
14295 | else | |
14296 | case $cross_compiling:$ac_tool_warned in | |
14297 | yes:) | |
14298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14300 | ac_tool_warned=yes ;; | |
14301 | esac | |
14302 | OBJCXX=$ac_ct_OBJCXX | |
14303 | fi | |
14304 | fi | |
14305 | ||
14306 | # Provide some information about the compiler. | |
14307 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
14308 | set X $ac_compile | |
14309 | ac_compiler=$2 | |
14310 | for ac_option in --version -v -V -qversion; do | |
14311 | { { ac_try="$ac_compiler $ac_option >&5" | |
632b71ea DWT |
14312 | case "(($ac_try" in |
14313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14314 | *) ac_try_echo=$ac_try;; | |
14315 | esac | |
14316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14317 | $as_echo "$ac_try_echo"; } >&5 | |
e9c9a47c | 14318 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
632b71ea | 14319 | ac_status=$? |
e9c9a47c DWT |
14320 | if test -s conftest.err; then |
14321 | sed '10a\ | |
14322 | ... rest of stderr output deleted ... | |
14323 | 10q' conftest.err >conftest.er1 | |
14324 | cat conftest.er1 >&5 | |
14325 | fi | |
14326 | rm -f conftest.er1 conftest.err | |
632b71ea DWT |
14327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14328 | test $ac_status = 0; } | |
e9c9a47c | 14329 | done |
9c60689e | 14330 | |
e9c9a47c DWT |
14331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
14332 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
14333 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
632b71ea DWT |
14334 | $as_echo_n "(cached) " >&6 |
14335 | else | |
e9c9a47c | 14336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
632b71ea | 14337 | /* end confdefs.h. */ |
e9c9a47c DWT |
14338 | |
14339 | int | |
14340 | main () | |
14341 | { | |
14342 | #ifndef __GNUC__ | |
14343 | choke me | |
14344 | #endif | |
14345 | ||
14346 | ; | |
14347 | return 0; | |
14348 | } | |
632b71ea | 14349 | _ACEOF |
e9c9a47c DWT |
14350 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
14351 | ac_compiler_gnu=yes | |
14352 | else | |
14353 | ac_compiler_gnu=no | |
632b71ea | 14354 | fi |
e9c9a47c DWT |
14355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14356 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 14357 | |
632b71ea | 14358 | fi |
e9c9a47c DWT |
14359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
14360 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
14361 | if test $ac_compiler_gnu = yes; then | |
14362 | GOBJCXX=yes | |
14363 | else | |
14364 | GOBJCXX= | |
632b71ea | 14365 | fi |
e9c9a47c DWT |
14366 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
14367 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
14369 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
14370 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
632b71ea | 14371 | $as_echo_n "(cached) " >&6 |
47aaa820 | 14372 | else |
e9c9a47c DWT |
14373 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
14374 | ac_objcxx_werror_flag=yes | |
14375 | ac_cv_prog_objcxx_g=no | |
14376 | OBJCXXFLAGS="-g" | |
14377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 14378 | /* end confdefs.h. */ |
9c60689e | 14379 | |
e9c9a47c DWT |
14380 | int |
14381 | main () | |
14382 | { | |
9c60689e | 14383 | |
e9c9a47c DWT |
14384 | ; |
14385 | return 0; | |
14386 | } | |
14387 | _ACEOF | |
14388 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14389 | ac_cv_prog_objcxx_g=yes | |
632b71ea | 14390 | else |
e9c9a47c DWT |
14391 | OBJCXXFLAGS="" |
14392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14393 | /* end confdefs.h. */ | |
9c60689e | 14394 | |
e9c9a47c DWT |
14395 | int |
14396 | main () | |
14397 | { | |
9c60689e | 14398 | |
e9c9a47c DWT |
14399 | ; |
14400 | return 0; | |
14401 | } | |
14402 | _ACEOF | |
14403 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 14404 | |
47aaa820 | 14405 | else |
e9c9a47c DWT |
14406 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
14407 | OBJCXXFLAGS="-g" | |
14408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14409 | /* end confdefs.h. */ | |
9c60689e | 14410 | |
e9c9a47c DWT |
14411 | int |
14412 | main () | |
14413 | { | |
9c60689e | 14414 | |
e9c9a47c DWT |
14415 | ; |
14416 | return 0; | |
14417 | } | |
14418 | _ACEOF | |
14419 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
14420 | ac_cv_prog_objcxx_g=yes | |
47aaa820 | 14421 | fi |
e9c9a47c | 14422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14423 | fi |
e9c9a47c | 14424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 14425 | fi |
e9c9a47c DWT |
14426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14427 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
790e5246 | 14428 | fi |
e9c9a47c DWT |
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
14430 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
14431 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
14432 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
14433 | elif test $ac_cv_prog_objcxx_g = yes; then | |
14434 | if test "$GOBJCXX" = yes; then | |
14435 | OBJCXXFLAGS="-g -O2" | |
14436 | else | |
14437 | OBJCXXFLAGS="-g" | |
632b71ea | 14438 | fi |
632b71ea | 14439 | else |
e9c9a47c DWT |
14440 | if test "$GOBJCXX" = yes; then |
14441 | OBJCXXFLAGS="-O2" | |
14442 | else | |
14443 | OBJCXXFLAGS= | |
14444 | fi | |
632b71ea | 14445 | fi |
e9c9a47c DWT |
14446 | ac_ext=c |
14447 | ac_cpp='$CPP $CPPFLAGS' | |
14448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
632b71ea | 14451 | |
9c60689e | 14452 | |
1504c9b8 DWT |
14453 | # Check whether --enable-universal-binary was given. |
14454 | if test "${enable_universal_binary+set}" = set; then : | |
14455 | enableval=$enable_universal_binary; | |
14456 | case $enableval in #( | |
14457 | no) : | |
14458 | ;; #( | |
14459 | *) : | |
14460 | ||
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5 | |
14462 | $as_echo_n "checking for universal binary support... " >&6; } | |
14463 | case $host_vendor in #( | |
14464 | apple) : | |
14465 | ||
14466 | case $host_cpu in #( | |
9d13f949 | 14467 | armv6|i386|x86_64) : |
1504c9b8 | 14468 | |
9d13f949 | 14469 | for cy_arch in armv6 i386 x86_64; do |
1504c9b8 DWT |
14470 | cy_save_CXXFLAGS=$CXXFLAGS |
14471 | ||
14472 | for element in "-arch $cy_arch"; do | |
14473 | haveit= | |
14474 | for x in $CXXFLAGS; do | |
14475 | ||
14476 | acl_save_prefix="$prefix" | |
14477 | prefix="$acl_final_prefix" | |
14478 | acl_save_exec_prefix="$exec_prefix" | |
14479 | exec_prefix="$acl_final_exec_prefix" | |
14480 | eval x=\"$x\" | |
14481 | exec_prefix="$acl_save_exec_prefix" | |
14482 | prefix="$acl_save_prefix" | |
14483 | ||
14484 | if test "X$x" = "X$element"; then | |
14485 | haveit=yes | |
14486 | break | |
14487 | fi | |
14488 | done | |
14489 | if test -z "$haveit"; then | |
14490 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14491 | fi | |
14492 | done | |
14493 | ||
14494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14495 | /* end confdefs.h. */ | |
14496 | ||
14497 | int | |
14498 | main () | |
14499 | { | |
14500 | ||
14501 | ; | |
14502 | return 0; | |
14503 | } | |
14504 | _ACEOF | |
14505 | if ac_fn_c_try_link "$LINENO"; then : | |
14506 | ||
14507 | ||
14508 | for element in $cy_arch; do | |
14509 | haveit= | |
14510 | for x in $cy_arches; do | |
14511 | ||
14512 | acl_save_prefix="$prefix" | |
14513 | prefix="$acl_final_prefix" | |
14514 | acl_save_exec_prefix="$exec_prefix" | |
14515 | exec_prefix="$acl_final_exec_prefix" | |
14516 | eval x=\"$x\" | |
14517 | exec_prefix="$acl_save_exec_prefix" | |
14518 | prefix="$acl_save_prefix" | |
14519 | ||
14520 | if test "X$x" = "X$element"; then | |
14521 | haveit=yes | |
14522 | break | |
14523 | fi | |
14524 | done | |
14525 | if test -z "$haveit"; then | |
14526 | cy_arches="${cy_arches}${cy_arches:+ }$element" | |
14527 | fi | |
14528 | done | |
14529 | ||
14530 | ||
14531 | for element in "-arch $cy_arch"; do | |
14532 | haveit= | |
14533 | for x in $CFLAGS; do | |
14534 | ||
14535 | acl_save_prefix="$prefix" | |
14536 | prefix="$acl_final_prefix" | |
14537 | acl_save_exec_prefix="$exec_prefix" | |
14538 | exec_prefix="$acl_final_exec_prefix" | |
14539 | eval x=\"$x\" | |
14540 | exec_prefix="$acl_save_exec_prefix" | |
14541 | prefix="$acl_save_prefix" | |
14542 | ||
14543 | if test "X$x" = "X$element"; then | |
14544 | haveit=yes | |
14545 | break | |
14546 | fi | |
14547 | done | |
14548 | if test -z "$haveit"; then | |
14549 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14550 | fi | |
14551 | done | |
14552 | ||
14553 | ||
14554 | for element in "-arch $cy_arch"; do | |
14555 | haveit= | |
14556 | for x in $LDFLAGS; do | |
14557 | ||
14558 | acl_save_prefix="$prefix" | |
14559 | prefix="$acl_final_prefix" | |
14560 | acl_save_exec_prefix="$exec_prefix" | |
14561 | exec_prefix="$acl_final_exec_prefix" | |
14562 | eval x=\"$x\" | |
14563 | exec_prefix="$acl_save_exec_prefix" | |
14564 | prefix="$acl_save_prefix" | |
14565 | ||
14566 | if test "X$x" = "X$element"; then | |
14567 | haveit=yes | |
14568 | break | |
14569 | fi | |
14570 | done | |
14571 | if test -z "$haveit"; then | |
14572 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element" | |
14573 | fi | |
14574 | done | |
14575 | ||
14576 | ||
14577 | for element in "-arch $cy_arch"; do | |
14578 | haveit= | |
14579 | for x in $OBJCXXFLAGS; do | |
14580 | ||
14581 | acl_save_prefix="$prefix" | |
14582 | prefix="$acl_final_prefix" | |
14583 | acl_save_exec_prefix="$exec_prefix" | |
14584 | exec_prefix="$acl_final_exec_prefix" | |
14585 | eval x=\"$x\" | |
14586 | exec_prefix="$acl_save_exec_prefix" | |
14587 | prefix="$acl_save_prefix" | |
14588 | ||
14589 | if test "X$x" = "X$element"; then | |
14590 | haveit=yes | |
14591 | break | |
14592 | fi | |
14593 | done | |
14594 | if test -z "$haveit"; then | |
14595 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
14596 | fi | |
14597 | done | |
14598 | ||
14599 | ||
14600 | else | |
14601 | ||
14602 | CXXFLAGS=$cy_save_CXXFLAGS | |
14603 | ||
14604 | fi | |
14605 | rm -f core conftest.err conftest.$ac_objext \ | |
14606 | conftest$ac_exeext conftest.$ac_ext | |
14607 | done | |
14608 | ;; #( | |
14609 | *) : | |
14610 | ;; | |
14611 | esac | |
14612 | ;; #( | |
14613 | *) : | |
14614 | ;; | |
14615 | esac | |
14616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5 | |
14617 | $as_echo "${cy_arches-no}" >&6; } | |
14618 | ;; | |
14619 | esac | |
14620 | ||
14621 | else | |
14622 | ||
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5 | |
14624 | $as_echo_n "checking for universal binary support... " >&6; } | |
14625 | case $host_vendor in #( | |
14626 | apple) : | |
14627 | ||
14628 | case $host_cpu in #( | |
9d13f949 | 14629 | armv6|i386|x86_64) : |
1504c9b8 | 14630 | |
9d13f949 | 14631 | for cy_arch in armv6 i386 x86_64; do |
1504c9b8 DWT |
14632 | cy_save_CXXFLAGS=$CXXFLAGS |
14633 | ||
14634 | for element in "-arch $cy_arch"; do | |
14635 | haveit= | |
14636 | for x in $CXXFLAGS; do | |
14637 | ||
14638 | acl_save_prefix="$prefix" | |
14639 | prefix="$acl_final_prefix" | |
14640 | acl_save_exec_prefix="$exec_prefix" | |
14641 | exec_prefix="$acl_final_exec_prefix" | |
14642 | eval x=\"$x\" | |
14643 | exec_prefix="$acl_save_exec_prefix" | |
14644 | prefix="$acl_save_prefix" | |
14645 | ||
14646 | if test "X$x" = "X$element"; then | |
14647 | haveit=yes | |
14648 | break | |
14649 | fi | |
14650 | done | |
14651 | if test -z "$haveit"; then | |
14652 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14653 | fi | |
14654 | done | |
14655 | ||
14656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14657 | /* end confdefs.h. */ | |
14658 | ||
14659 | int | |
14660 | main () | |
14661 | { | |
14662 | ||
14663 | ; | |
14664 | return 0; | |
14665 | } | |
14666 | _ACEOF | |
14667 | if ac_fn_c_try_link "$LINENO"; then : | |
14668 | ||
14669 | ||
14670 | for element in $cy_arch; do | |
14671 | haveit= | |
14672 | for x in $cy_arches; do | |
14673 | ||
14674 | acl_save_prefix="$prefix" | |
14675 | prefix="$acl_final_prefix" | |
14676 | acl_save_exec_prefix="$exec_prefix" | |
14677 | exec_prefix="$acl_final_exec_prefix" | |
14678 | eval x=\"$x\" | |
14679 | exec_prefix="$acl_save_exec_prefix" | |
14680 | prefix="$acl_save_prefix" | |
14681 | ||
14682 | if test "X$x" = "X$element"; then | |
14683 | haveit=yes | |
14684 | break | |
14685 | fi | |
14686 | done | |
14687 | if test -z "$haveit"; then | |
14688 | cy_arches="${cy_arches}${cy_arches:+ }$element" | |
14689 | fi | |
14690 | done | |
14691 | ||
14692 | ||
14693 | for element in "-arch $cy_arch"; do | |
14694 | haveit= | |
14695 | for x in $CFLAGS; do | |
14696 | ||
14697 | acl_save_prefix="$prefix" | |
14698 | prefix="$acl_final_prefix" | |
14699 | acl_save_exec_prefix="$exec_prefix" | |
14700 | exec_prefix="$acl_final_exec_prefix" | |
14701 | eval x=\"$x\" | |
14702 | exec_prefix="$acl_save_exec_prefix" | |
14703 | prefix="$acl_save_prefix" | |
14704 | ||
14705 | if test "X$x" = "X$element"; then | |
14706 | haveit=yes | |
14707 | break | |
14708 | fi | |
14709 | done | |
14710 | if test -z "$haveit"; then | |
14711 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14712 | fi | |
14713 | done | |
14714 | ||
14715 | ||
14716 | for element in "-arch $cy_arch"; do | |
14717 | haveit= | |
14718 | for x in $LDFLAGS; do | |
14719 | ||
14720 | acl_save_prefix="$prefix" | |
14721 | prefix="$acl_final_prefix" | |
14722 | acl_save_exec_prefix="$exec_prefix" | |
14723 | exec_prefix="$acl_final_exec_prefix" | |
14724 | eval x=\"$x\" | |
14725 | exec_prefix="$acl_save_exec_prefix" | |
14726 | prefix="$acl_save_prefix" | |
14727 | ||
14728 | if test "X$x" = "X$element"; then | |
14729 | haveit=yes | |
14730 | break | |
14731 | fi | |
14732 | done | |
14733 | if test -z "$haveit"; then | |
14734 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element" | |
14735 | fi | |
14736 | done | |
14737 | ||
14738 | ||
14739 | for element in "-arch $cy_arch"; do | |
14740 | haveit= | |
14741 | for x in $OBJCXXFLAGS; do | |
14742 | ||
14743 | acl_save_prefix="$prefix" | |
14744 | prefix="$acl_final_prefix" | |
14745 | acl_save_exec_prefix="$exec_prefix" | |
14746 | exec_prefix="$acl_final_exec_prefix" | |
14747 | eval x=\"$x\" | |
14748 | exec_prefix="$acl_save_exec_prefix" | |
14749 | prefix="$acl_save_prefix" | |
14750 | ||
14751 | if test "X$x" = "X$element"; then | |
14752 | haveit=yes | |
14753 | break | |
14754 | fi | |
14755 | done | |
14756 | if test -z "$haveit"; then | |
14757 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
14758 | fi | |
14759 | done | |
14760 | ||
14761 | ||
14762 | else | |
14763 | ||
14764 | CXXFLAGS=$cy_save_CXXFLAGS | |
14765 | ||
14766 | fi | |
14767 | rm -f core conftest.err conftest.$ac_objext \ | |
14768 | conftest$ac_exeext conftest.$ac_ext | |
14769 | done | |
14770 | ;; #( | |
14771 | *) : | |
14772 | ;; | |
14773 | esac | |
14774 | ;; #( | |
14775 | *) : | |
14776 | ;; | |
14777 | esac | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5 | |
14779 | $as_echo "${cy_arches-no}" >&6; } | |
14780 | ||
14781 | fi | |
14782 | ||
14783 | ||
e9c9a47c DWT |
14784 | # Check whether --with-frameworks was given. |
14785 | if test "${with_frameworks+set}" = set; then : | |
14786 | withval=$with_frameworks; | |
1504c9b8 | 14787 | for cy_framework in $withval; do |
9c60689e | 14788 | |
1504c9b8 | 14789 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14790 | haveit= |
14791 | for x in $CFLAGS; do | |
9c60689e | 14792 | |
e9c9a47c DWT |
14793 | acl_save_prefix="$prefix" |
14794 | prefix="$acl_final_prefix" | |
14795 | acl_save_exec_prefix="$exec_prefix" | |
14796 | exec_prefix="$acl_final_exec_prefix" | |
14797 | eval x=\"$x\" | |
14798 | exec_prefix="$acl_save_exec_prefix" | |
14799 | prefix="$acl_save_prefix" | |
14800 | ||
14801 | if test "X$x" = "X$element"; then | |
14802 | haveit=yes | |
14803 | break | |
14804 | fi | |
14805 | done | |
14806 | if test -z "$haveit"; then | |
14807 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
14808 | fi | |
9c60689e | 14809 | done |
9c60689e | 14810 | |
94690cff | 14811 | |
1504c9b8 | 14812 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14813 | haveit= |
14814 | for x in $CXXFLAGS; do | |
9c60689e | 14815 | |
e9c9a47c DWT |
14816 | acl_save_prefix="$prefix" |
14817 | prefix="$acl_final_prefix" | |
14818 | acl_save_exec_prefix="$exec_prefix" | |
14819 | exec_prefix="$acl_final_exec_prefix" | |
14820 | eval x=\"$x\" | |
14821 | exec_prefix="$acl_save_exec_prefix" | |
14822 | prefix="$acl_save_prefix" | |
9c60689e | 14823 | |
e9c9a47c DWT |
14824 | if test "X$x" = "X$element"; then |
14825 | haveit=yes | |
14826 | break | |
14827 | fi | |
14828 | done | |
14829 | if test -z "$haveit"; then | |
14830 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
14831 | fi | |
14832 | done | |
9c60689e | 14833 | |
e9c9a47c | 14834 | |
1504c9b8 | 14835 | for element in -F$cy_framework; do |
e9c9a47c DWT |
14836 | haveit= |
14837 | for x in $OBJCCXXFLAGS; do | |
14838 | ||
14839 | acl_save_prefix="$prefix" | |
14840 | prefix="$acl_final_prefix" | |
14841 | acl_save_exec_prefix="$exec_prefix" | |
14842 | exec_prefix="$acl_final_exec_prefix" | |
14843 | eval x=\"$x\" | |
14844 | exec_prefix="$acl_save_exec_prefix" | |
14845 | prefix="$acl_save_prefix" | |
14846 | ||
14847 | if test "X$x" = "X$element"; then | |
14848 | haveit=yes | |
14849 | break | |
14850 | fi | |
14851 | done | |
14852 | if test -z "$haveit"; then | |
14853 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
14854 | fi | |
9c60689e | 14855 | done |
632b71ea | 14856 | |
e9c9a47c | 14857 | done |
9c60689e | 14858 | |
e9c9a47c | 14859 | fi |
9c60689e | 14860 | |
e9c9a47c DWT |
14861 | ac_ext=cpp |
14862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e DWT |
14866 | |
14867 | ||
632b71ea | 14868 | apr_found="no" |
9c60689e | 14869 | |
632b71ea DWT |
14870 | if test "$target_os" = "os2-emx"; then |
14871 | # Scripts don't pass test -x on OS/2 | |
14872 | TEST_X="test -f" | |
14873 | else | |
14874 | TEST_X="test -x" | |
14875 | fi | |
9c60689e | 14876 | |
632b71ea | 14877 | acceptable_majors="1" |
9c60689e | 14878 | |
632b71ea DWT |
14879 | apr_temp_acceptable_apr_config="" |
14880 | for apr_temp_major in $acceptable_majors | |
14881 | do | |
14882 | case $apr_temp_major in | |
14883 | 0) | |
14884 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14885 | ;; | |
14886 | *) | |
14887 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14888 | ;; | |
14889 | esac | |
14890 | done | |
9c60689e | 14891 | |
632b71ea DWT |
14892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14893 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14894 | |
632b71ea DWT |
14895 | # Check whether --with-apr was given. |
14896 | if test "${with_apr+set}" = set; then : | |
14897 | withval=$with_apr; | |
14898 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14899 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14900 | fi | |
9c60689e | 14901 | |
632b71ea DWT |
14902 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14903 | do | |
14904 | for lookdir in "$withval/bin" "$withval" | |
14905 | do | |
14906 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14907 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14908 | |
632b71ea DWT |
14909 | apr_found="yes" |
14910 | break 2 | |
14911 | fi | |
14912 | done | |
14913 | done | |
9c60689e | 14914 | |
632b71ea DWT |
14915 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14916 | apr_config="$withval" | |
14917 | apr_found="yes" | |
14918 | fi | |
9c60689e | 14919 | |
632b71ea DWT |
14920 | if test "$apr_found" != "yes"; then |
14921 | 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 | |
14922 | fi | |
9c60689e | 14923 | |
632b71ea | 14924 | else |
9c60689e | 14925 | |
632b71ea DWT |
14926 | if test -n "1" && test "1" = "1"; then |
14927 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14928 | do | |
14929 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14930 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14931 | |
632b71ea DWT |
14932 | apr_found="yes" |
14933 | break | |
14934 | else | |
14935 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14936 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14937 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14938 | |
632b71ea DWT |
14939 | apr_found="yes" |
14940 | break 2 | |
14941 | fi | |
14942 | done | |
14943 | fi | |
14944 | done | |
14945 | fi | |
14946 | if test "$apr_found" = "no" && test -d ""; then | |
14947 | apr_temp_abs_srcdir="`cd && pwd`" | |
14948 | apr_found="reconfig" | |
14949 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14950 | case $apr_bundled_major in | |
14951 | "") | |
14952 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14953 | ;; | |
14954 | 0) | |
14955 | apr_temp_apr_config_file="apr-config" | |
14956 | ;; | |
14957 | *) | |
14958 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14959 | ;; | |
14960 | esac | |
14961 | if test -n ""; then | |
14962 | apr_config="/$apr_temp_apr_config_file" | |
14963 | else | |
14964 | apr_config="/$apr_temp_apr_config_file" | |
14965 | fi | |
14966 | fi | |
9c60689e | 14967 | |
632b71ea | 14968 | fi |
9c60689e | 14969 | |
9c60689e | 14970 | |
632b71ea DWT |
14971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14972 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14973 | |
632b71ea DWT |
14974 | case $apr_found in #( |
14975 | yes) : | |
9c60689e DWT |
14976 | |
14977 | ||
632b71ea DWT |
14978 | for element in `$apr_config --includes`; do |
14979 | haveit= | |
14980 | for x in $CPPFLAGS; do | |
9c60689e DWT |
14981 | |
14982 | acl_save_prefix="$prefix" | |
14983 | prefix="$acl_final_prefix" | |
14984 | acl_save_exec_prefix="$exec_prefix" | |
14985 | exec_prefix="$acl_final_exec_prefix" | |
632b71ea | 14986 | eval x=\"$x\" |
9c60689e DWT |
14987 | exec_prefix="$acl_save_exec_prefix" |
14988 | prefix="$acl_save_prefix" | |
14989 | ||
632b71ea DWT |
14990 | if test "X$x" = "X$element"; then |
14991 | haveit=yes | |
14992 | break | |
9c60689e | 14993 | fi |
632b71ea DWT |
14994 | done |
14995 | if test -z "$haveit"; then | |
14996 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9c60689e | 14997 | fi |
632b71ea | 14998 | done |
9c60689e | 14999 | |
632b71ea | 15000 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 15001 | |
632b71ea DWT |
15002 | ;; #( |
15003 | *) : | |
15004 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
15005 | esac | |
15006 | ||
15007 | ||
5053a6d1 DWT |
15008 | # Check whether --enable-javascript was given. |
15009 | if test "${enable_javascript+set}" = set; then : | |
15010 | enableval=$enable_javascript; | |
15011 | case $enableval in #( | |
15012 | yes) : | |
9c60689e DWT |
15013 | |
15014 | ||
9c60689e | 15015 | |
5053a6d1 DWT |
15016 | pkg_failed=no |
15017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15018 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15019 | ||
1504c9b8 DWT |
15020 | if test -n "$PKG_CONFIG"; then |
15021 | if test -n "$WEBKIT_CFLAGS"; then | |
15022 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15023 | else | |
15024 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15025 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15026 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15027 | ac_status=$? | |
15028 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15029 | test $ac_status = 0; }; then | |
15030 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 15031 | else |
5053a6d1 | 15032 | pkg_failed=yes |
9c60689e | 15033 | fi |
1504c9b8 DWT |
15034 | fi |
15035 | else | |
15036 | pkg_failed=untried | |
632b71ea | 15037 | fi |
1504c9b8 DWT |
15038 | if test -n "$PKG_CONFIG"; then |
15039 | if test -n "$WEBKIT_LIBS"; then | |
15040 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15041 | else | |
15042 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15044 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15045 | ac_status=$? | |
15046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15047 | test $ac_status = 0; }; then | |
15048 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
9c60689e | 15049 | else |
5053a6d1 | 15050 | pkg_failed=yes |
9c60689e | 15051 | fi |
1504c9b8 DWT |
15052 | fi |
15053 | else | |
15054 | pkg_failed=untried | |
9c60689e DWT |
15055 | fi |
15056 | ||
15057 | ||
15058 | ||
5053a6d1 | 15059 | if test $pkg_failed = yes; then |
9c60689e | 15060 | |
5053a6d1 DWT |
15061 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
15062 | _pkg_short_errors_supported=yes | |
9c60689e | 15063 | else |
5053a6d1 DWT |
15064 | _pkg_short_errors_supported=no |
15065 | fi | |
15066 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15067 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
5053a6d1 | 15068 | else |
1504c9b8 | 15069 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
5053a6d1 DWT |
15070 | fi |
15071 | # Put the nasty error message in config.log where it belongs | |
15072 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
632b71ea | 15073 | |
5053a6d1 DWT |
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15075 | $as_echo "no" >&6; } | |
15076 | ||
15077 | ||
15078 | pkg_failed=no | |
15079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15080 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 15081 | |
1504c9b8 DWT |
15082 | if test -n "$PKG_CONFIG"; then |
15083 | if test -n "$WEBKIT_CFLAGS"; then | |
15084 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15085 | else | |
15086 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15087 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15088 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15089 | ac_status=$? | |
15090 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15091 | test $ac_status = 0; }; then | |
15092 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15093 | else | |
15094 | pkg_failed=yes | |
9c60689e | 15095 | fi |
1504c9b8 DWT |
15096 | fi |
15097 | else | |
15098 | pkg_failed=untried | |
5053a6d1 | 15099 | fi |
1504c9b8 DWT |
15100 | if test -n "$PKG_CONFIG"; then |
15101 | if test -n "$WEBKIT_LIBS"; then | |
15102 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15103 | else | |
15104 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15105 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15106 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15107 | ac_status=$? | |
15108 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15109 | test $ac_status = 0; }; then | |
15110 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15111 | else | |
15112 | pkg_failed=yes | |
15113 | fi | |
1504c9b8 DWT |
15114 | fi |
15115 | else | |
15116 | pkg_failed=untried | |
632b71ea DWT |
15117 | fi |
15118 | ||
15119 | ||
15120 | ||
5053a6d1 DWT |
15121 | if test $pkg_failed = yes; then |
15122 | ||
15123 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15124 | _pkg_short_errors_supported=yes | |
15125 | else | |
15126 | _pkg_short_errors_supported=no | |
15127 | fi | |
15128 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15129 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 | 15130 | else |
1504c9b8 | 15131 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 DWT |
15132 | fi |
15133 | # Put the nasty error message in config.log where it belongs | |
15134 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15135 | ||
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15137 | $as_echo "no" >&6; } | |
15138 | ||
632b71ea | 15139 | |
5053a6d1 DWT |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
15141 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15142 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15143 | $as_echo_n "(cached) " >&6 | |
15144 | else | |
632b71ea | 15145 | |
5053a6d1 DWT |
15146 | ac_check_framework_save_LIBS=$LIBS |
15147 | LIBS="-framework JavaScriptCore $LIBS" | |
15148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15149 | /* end confdefs.h. */ | |
632b71ea | 15150 | |
5053a6d1 | 15151 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 15152 | |
5053a6d1 DWT |
15153 | int |
15154 | main () | |
15155 | { | |
15156 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15157 | ; | |
15158 | return 0; | |
15159 | } | |
15160 | _ACEOF | |
15161 | if ac_fn_cxx_try_link "$LINENO"; then : | |
632b71ea | 15162 | |
5053a6d1 | 15163 | ac_cv_framework_JavaScriptCore=yes |
632b71ea | 15164 | |
5053a6d1 DWT |
15165 | else |
15166 | ac_cv_framework_JavaScriptCore=no | |
15167 | fi | |
15168 | rm -f core conftest.err conftest.$ac_objext \ | |
15169 | conftest$ac_exeext conftest.$ac_ext | |
15170 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 15171 | |
5053a6d1 DWT |
15172 | fi |
15173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15174 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15175 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
632b71ea DWT |
15176 | |
15177 | ||
5053a6d1 DWT |
15178 | for element in "-framework JavaScriptCore $LIBS"; do |
15179 | haveit= | |
15180 | for x in $LIBS; do | |
632b71ea DWT |
15181 | |
15182 | acl_save_prefix="$prefix" | |
15183 | prefix="$acl_final_prefix" | |
15184 | acl_save_exec_prefix="$exec_prefix" | |
15185 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 | 15186 | eval x=\"$x\" |
632b71ea DWT |
15187 | exec_prefix="$acl_save_exec_prefix" |
15188 | prefix="$acl_save_prefix" | |
15189 | ||
5053a6d1 DWT |
15190 | if test "X$x" = "X$element"; then |
15191 | haveit=yes | |
15192 | break | |
15193 | fi | |
15194 | done | |
15195 | if test -z "$haveit"; then | |
15196 | LIBS="${LIBS}${LIBS:+ }$element" | |
15197 | fi | |
15198 | done | |
15199 | ||
15200 | CY_EXECUTE=1 | |
632b71ea | 15201 | |
5053a6d1 DWT |
15202 | fi |
15203 | ||
15204 | elif test $pkg_failed = untried; then | |
15205 | ||
15206 | ||
15207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15208 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15209 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15210 | $as_echo_n "(cached) " >&6 | |
15211 | else | |
15212 | ||
15213 | ac_check_framework_save_LIBS=$LIBS | |
15214 | LIBS="-framework JavaScriptCore $LIBS" | |
15215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15216 | /* end confdefs.h. */ | |
15217 | ||
15218 | #include <JavaScriptCore/JSBase.h> | |
15219 | ||
15220 | int | |
15221 | main () | |
15222 | { | |
15223 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15224 | ; | |
15225 | return 0; | |
15226 | } | |
15227 | _ACEOF | |
15228 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15229 | ||
15230 | ac_cv_framework_JavaScriptCore=yes | |
15231 | ||
15232 | else | |
15233 | ac_cv_framework_JavaScriptCore=no | |
15234 | fi | |
15235 | rm -f core conftest.err conftest.$ac_objext \ | |
15236 | conftest$ac_exeext conftest.$ac_ext | |
15237 | LIBS=$ac_check_framework_save_LIBS | |
15238 | ||
15239 | fi | |
15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15241 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15242 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15243 | ||
15244 | ||
15245 | for element in "-framework JavaScriptCore $LIBS"; do | |
15246 | haveit= | |
15247 | for x in $LIBS; do | |
632b71ea DWT |
15248 | |
15249 | acl_save_prefix="$prefix" | |
15250 | prefix="$acl_final_prefix" | |
15251 | acl_save_exec_prefix="$exec_prefix" | |
15252 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
15253 | eval x=\"$x\" |
15254 | exec_prefix="$acl_save_exec_prefix" | |
15255 | prefix="$acl_save_prefix" | |
632b71ea | 15256 | |
5053a6d1 DWT |
15257 | if test "X$x" = "X$element"; then |
15258 | haveit=yes | |
15259 | break | |
15260 | fi | |
15261 | done | |
15262 | if test -z "$haveit"; then | |
15263 | LIBS="${LIBS}${LIBS:+ }$element" | |
15264 | fi | |
15265 | done | |
15266 | ||
15267 | CY_EXECUTE=1 | |
15268 | ||
15269 | fi | |
15270 | ||
15271 | else | |
15272 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15273 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15275 | $as_echo "yes" >&6; } | |
15276 | ||
15277 | CY_EXECUTE=1 | |
15278 | ||
15279 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15280 | haveit= | |
15281 | for x in $CXXFLAGS; do | |
632b71ea | 15282 | |
5053a6d1 DWT |
15283 | acl_save_prefix="$prefix" |
15284 | prefix="$acl_final_prefix" | |
15285 | acl_save_exec_prefix="$exec_prefix" | |
15286 | exec_prefix="$acl_final_exec_prefix" | |
15287 | eval x=\"$x\" | |
632b71ea DWT |
15288 | exec_prefix="$acl_save_exec_prefix" |
15289 | prefix="$acl_save_prefix" | |
15290 | ||
5053a6d1 DWT |
15291 | if test "X$x" = "X$element"; then |
15292 | haveit=yes | |
15293 | break | |
632b71ea | 15294 | fi |
5053a6d1 DWT |
15295 | done |
15296 | if test -z "$haveit"; then | |
15297 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
632b71ea | 15298 | fi |
5053a6d1 | 15299 | done |
632b71ea | 15300 | |
632b71ea | 15301 | |
5053a6d1 DWT |
15302 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
15303 | haveit= | |
15304 | for x in $LIBS; do | |
632b71ea DWT |
15305 | |
15306 | acl_save_prefix="$prefix" | |
15307 | prefix="$acl_final_prefix" | |
15308 | acl_save_exec_prefix="$exec_prefix" | |
15309 | exec_prefix="$acl_final_exec_prefix" | |
15310 | eval x=\"$x\" | |
15311 | exec_prefix="$acl_save_exec_prefix" | |
15312 | prefix="$acl_save_prefix" | |
15313 | ||
5053a6d1 DWT |
15314 | if test "X$x" = "X$element"; then |
15315 | haveit=yes | |
15316 | break | |
15317 | fi | |
15318 | done | |
15319 | if test -z "$haveit"; then | |
15320 | LIBS="${LIBS}${LIBS:+ }$element" | |
15321 | fi | |
15322 | done | |
632b71ea | 15323 | |
632b71ea | 15324 | |
5053a6d1 | 15325 | fi |
632b71ea | 15326 | |
5053a6d1 | 15327 | elif test $pkg_failed = untried; then |
632b71ea | 15328 | |
632b71ea | 15329 | |
5053a6d1 DWT |
15330 | pkg_failed=no |
15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15332 | $as_echo_n "checking for WEBKIT... " >&6; } | |
632b71ea | 15333 | |
1504c9b8 DWT |
15334 | if test -n "$PKG_CONFIG"; then |
15335 | if test -n "$WEBKIT_CFLAGS"; then | |
15336 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15337 | else | |
15338 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15339 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15340 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15341 | ac_status=$? | |
15342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15343 | test $ac_status = 0; }; then | |
15344 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15345 | else | |
15346 | pkg_failed=yes | |
15347 | fi | |
1504c9b8 DWT |
15348 | fi |
15349 | else | |
15350 | pkg_failed=untried | |
5053a6d1 | 15351 | fi |
1504c9b8 DWT |
15352 | if test -n "$PKG_CONFIG"; then |
15353 | if test -n "$WEBKIT_LIBS"; then | |
15354 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15355 | else | |
15356 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
15357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15358 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15359 | ac_status=$? | |
15360 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15361 | test $ac_status = 0; }; then | |
15362 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15363 | else | |
15364 | pkg_failed=yes | |
15365 | fi | |
1504c9b8 DWT |
15366 | fi |
15367 | else | |
15368 | pkg_failed=untried | |
5053a6d1 | 15369 | fi |
9c60689e | 15370 | |
9c60689e DWT |
15371 | |
15372 | ||
5053a6d1 DWT |
15373 | if test $pkg_failed = yes; then |
15374 | ||
15375 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15376 | _pkg_short_errors_supported=yes | |
15377 | else | |
15378 | _pkg_short_errors_supported=no | |
15379 | fi | |
15380 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15381 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 | 15382 | else |
1504c9b8 | 15383 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
5053a6d1 DWT |
15384 | fi |
15385 | # Put the nasty error message in config.log where it belongs | |
15386 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15387 | ||
15388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15389 | $as_echo "no" >&6; } | |
9c60689e | 15390 | |
9c60689e | 15391 | |
5053a6d1 DWT |
15392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 |
15393 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15394 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15395 | $as_echo_n "(cached) " >&6 | |
15396 | else | |
9c60689e | 15397 | |
5053a6d1 DWT |
15398 | ac_check_framework_save_LIBS=$LIBS |
15399 | LIBS="-framework JavaScriptCore $LIBS" | |
15400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15401 | /* end confdefs.h. */ | |
9c60689e | 15402 | |
5053a6d1 | 15403 | #include <JavaScriptCore/JSBase.h> |
9c60689e | 15404 | |
5053a6d1 DWT |
15405 | int |
15406 | main () | |
15407 | { | |
15408 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15409 | ; | |
15410 | return 0; | |
15411 | } | |
15412 | _ACEOF | |
15413 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15414 | ||
15415 | ac_cv_framework_JavaScriptCore=yes | |
15416 | ||
15417 | else | |
15418 | ac_cv_framework_JavaScriptCore=no | |
15419 | fi | |
15420 | rm -f core conftest.err conftest.$ac_objext \ | |
15421 | conftest$ac_exeext conftest.$ac_ext | |
15422 | LIBS=$ac_check_framework_save_LIBS | |
15423 | ||
15424 | fi | |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15426 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15427 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15428 | ||
15429 | ||
15430 | for element in "-framework JavaScriptCore $LIBS"; do | |
632b71ea | 15431 | haveit= |
5053a6d1 | 15432 | for x in $LIBS; do |
9c60689e | 15433 | |
632b71ea DWT |
15434 | acl_save_prefix="$prefix" |
15435 | prefix="$acl_final_prefix" | |
15436 | acl_save_exec_prefix="$exec_prefix" | |
15437 | exec_prefix="$acl_final_exec_prefix" | |
15438 | eval x=\"$x\" | |
15439 | exec_prefix="$acl_save_exec_prefix" | |
15440 | prefix="$acl_save_prefix" | |
15441 | ||
15442 | if test "X$x" = "X$element"; then | |
15443 | haveit=yes | |
15444 | break | |
15445 | fi | |
15446 | done | |
15447 | if test -z "$haveit"; then | |
5053a6d1 | 15448 | LIBS="${LIBS}${LIBS:+ }$element" |
632b71ea DWT |
15449 | fi |
15450 | done | |
b128dfee | 15451 | |
5053a6d1 DWT |
15452 | CY_EXECUTE=1 |
15453 | ||
15454 | fi | |
c823f118 | 15455 | |
5053a6d1 DWT |
15456 | elif test $pkg_failed = untried; then |
15457 | ||
15458 | ||
15459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15460 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15461 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
c823f118 DWT |
15462 | $as_echo_n "(cached) " >&6 |
15463 | else | |
15464 | ||
5053a6d1 DWT |
15465 | ac_check_framework_save_LIBS=$LIBS |
15466 | LIBS="-framework JavaScriptCore $LIBS" | |
15467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
632b71ea | 15468 | /* end confdefs.h. */ |
5053a6d1 DWT |
15469 | |
15470 | #include <JavaScriptCore/JSBase.h> | |
15471 | ||
632b71ea DWT |
15472 | int |
15473 | main () | |
15474 | { | |
5053a6d1 | 15475 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
632b71ea DWT |
15476 | ; |
15477 | return 0; | |
15478 | } | |
15479 | _ACEOF | |
5053a6d1 DWT |
15480 | if ac_fn_cxx_try_link "$LINENO"; then : |
15481 | ||
15482 | ac_cv_framework_JavaScriptCore=yes | |
15483 | ||
15484 | else | |
15485 | ac_cv_framework_JavaScriptCore=no | |
632b71ea DWT |
15486 | fi |
15487 | rm -f core conftest.err conftest.$ac_objext \ | |
15488 | conftest$ac_exeext conftest.$ac_ext | |
5053a6d1 | 15489 | LIBS=$ac_check_framework_save_LIBS |
b128dfee | 15490 | |
c823f118 | 15491 | fi |
5053a6d1 DWT |
15492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
15493 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15494 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
c823f118 DWT |
15495 | |
15496 | ||
5053a6d1 DWT |
15497 | for element in "-framework JavaScriptCore $LIBS"; do |
15498 | haveit= | |
15499 | for x in $LIBS; do | |
15500 | ||
15501 | acl_save_prefix="$prefix" | |
15502 | prefix="$acl_final_prefix" | |
15503 | acl_save_exec_prefix="$exec_prefix" | |
15504 | exec_prefix="$acl_final_exec_prefix" | |
15505 | eval x=\"$x\" | |
15506 | exec_prefix="$acl_save_exec_prefix" | |
15507 | prefix="$acl_save_prefix" | |
15508 | ||
15509 | if test "X$x" = "X$element"; then | |
15510 | haveit=yes | |
15511 | break | |
15512 | fi | |
15513 | done | |
15514 | if test -z "$haveit"; then | |
15515 | LIBS="${LIBS}${LIBS:+ }$element" | |
15516 | fi | |
15517 | done | |
c823f118 | 15518 | |
5053a6d1 | 15519 | CY_EXECUTE=1 |
b128dfee | 15520 | |
632b71ea | 15521 | fi |
c823f118 | 15522 | |
5053a6d1 DWT |
15523 | else |
15524 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15525 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15527 | $as_echo "yes" >&6; } | |
c823f118 | 15528 | |
5053a6d1 | 15529 | CY_EXECUTE=1 |
b128dfee | 15530 | |
5053a6d1 DWT |
15531 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
15532 | haveit= | |
15533 | for x in $CXXFLAGS; do | |
b128dfee | 15534 | |
5053a6d1 DWT |
15535 | acl_save_prefix="$prefix" |
15536 | prefix="$acl_final_prefix" | |
15537 | acl_save_exec_prefix="$exec_prefix" | |
15538 | exec_prefix="$acl_final_exec_prefix" | |
15539 | eval x=\"$x\" | |
15540 | exec_prefix="$acl_save_exec_prefix" | |
15541 | prefix="$acl_save_prefix" | |
c823f118 | 15542 | |
5053a6d1 DWT |
15543 | if test "X$x" = "X$element"; then |
15544 | haveit=yes | |
15545 | break | |
15546 | fi | |
15547 | done | |
15548 | if test -z "$haveit"; then | |
15549 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15550 | fi | |
15551 | done | |
c823f118 | 15552 | |
c823f118 | 15553 | |
5053a6d1 DWT |
15554 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
15555 | haveit= | |
15556 | for x in $LIBS; do | |
15557 | ||
15558 | acl_save_prefix="$prefix" | |
15559 | prefix="$acl_final_prefix" | |
15560 | acl_save_exec_prefix="$exec_prefix" | |
15561 | exec_prefix="$acl_final_exec_prefix" | |
15562 | eval x=\"$x\" | |
15563 | exec_prefix="$acl_save_exec_prefix" | |
15564 | prefix="$acl_save_prefix" | |
15565 | ||
15566 | if test "X$x" = "X$element"; then | |
15567 | haveit=yes | |
15568 | break | |
15569 | fi | |
15570 | done | |
15571 | if test -z "$haveit"; then | |
15572 | LIBS="${LIBS}${LIBS:+ }$element" | |
15573 | fi | |
15574 | done | |
c823f118 | 15575 | |
632b71ea | 15576 | |
b128dfee DWT |
15577 | fi |
15578 | ||
5053a6d1 DWT |
15579 | else |
15580 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15581 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15583 | $as_echo "yes" >&6; } | |
b128dfee | 15584 | |
5053a6d1 | 15585 | CY_EXECUTE=1 |
c823f118 | 15586 | |
5053a6d1 DWT |
15587 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do |
15588 | haveit= | |
15589 | for x in $CXXFLAGS; do | |
c823f118 | 15590 | |
5053a6d1 DWT |
15591 | acl_save_prefix="$prefix" |
15592 | prefix="$acl_final_prefix" | |
15593 | acl_save_exec_prefix="$exec_prefix" | |
15594 | exec_prefix="$acl_final_exec_prefix" | |
15595 | eval x=\"$x\" | |
15596 | exec_prefix="$acl_save_exec_prefix" | |
15597 | prefix="$acl_save_prefix" | |
c823f118 | 15598 | |
5053a6d1 DWT |
15599 | if test "X$x" = "X$element"; then |
15600 | haveit=yes | |
15601 | break | |
15602 | fi | |
15603 | done | |
15604 | if test -z "$haveit"; then | |
15605 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15606 | fi | |
15607 | done | |
c823f118 | 15608 | |
b66977f1 | 15609 | |
5053a6d1 DWT |
15610 | for element in `$PKG_CONFIG --libs webkit-1.0`; do |
15611 | haveit= | |
15612 | for x in $LIBS; do | |
15613 | ||
15614 | acl_save_prefix="$prefix" | |
15615 | prefix="$acl_final_prefix" | |
15616 | acl_save_exec_prefix="$exec_prefix" | |
15617 | exec_prefix="$acl_final_exec_prefix" | |
15618 | eval x=\"$x\" | |
15619 | exec_prefix="$acl_save_exec_prefix" | |
15620 | prefix="$acl_save_prefix" | |
15621 | ||
15622 | if test "X$x" = "X$element"; then | |
15623 | haveit=yes | |
15624 | break | |
15625 | fi | |
15626 | done | |
15627 | if test -z "$haveit"; then | |
15628 | LIBS="${LIBS}${LIBS:+ }$element" | |
15629 | fi | |
15630 | done | |
15631 | ||
15632 | ||
15633 | fi | |
15634 | ||
15635 | ;; #( | |
15636 | no) : | |
15637 | ||
15638 | CY_EXECUTE=0 | |
15639 | ||
15640 | ;; #( | |
15641 | JavaScriptCore) : | |
b66977f1 DWT |
15642 | |
15643 | ||
15644 | ||
15645 | pkg_failed=no | |
15646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15647 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15648 | ||
1504c9b8 DWT |
15649 | if test -n "$PKG_CONFIG"; then |
15650 | if test -n "$WEBKIT_CFLAGS"; then | |
15651 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15652 | else | |
15653 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15654 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15655 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15656 | ac_status=$? | |
15657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15658 | test $ac_status = 0; }; then | |
15659 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15660 | else | |
15661 | pkg_failed=yes | |
15662 | fi | |
1504c9b8 DWT |
15663 | fi |
15664 | else | |
15665 | pkg_failed=untried | |
b66977f1 | 15666 | fi |
1504c9b8 DWT |
15667 | if test -n "$PKG_CONFIG"; then |
15668 | if test -n "$WEBKIT_LIBS"; then | |
15669 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15670 | else | |
15671 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15672 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
15673 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15674 | ac_status=$? | |
15675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15676 | test $ac_status = 0; }; then | |
15677 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15678 | else | |
15679 | pkg_failed=yes | |
15680 | fi | |
1504c9b8 DWT |
15681 | fi |
15682 | else | |
15683 | pkg_failed=untried | |
b66977f1 DWT |
15684 | fi |
15685 | ||
15686 | ||
15687 | ||
15688 | if test $pkg_failed = yes; then | |
15689 | ||
15690 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15691 | _pkg_short_errors_supported=yes | |
15692 | else | |
15693 | _pkg_short_errors_supported=no | |
15694 | fi | |
15695 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15696 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 | 15697 | else |
1504c9b8 | 15698 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 DWT |
15699 | fi |
15700 | # Put the nasty error message in config.log where it belongs | |
15701 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15702 | ||
15703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15704 | $as_echo "no" >&6; } | |
15705 | ||
15706 | ||
15707 | pkg_failed=no | |
15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15709 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15710 | ||
1504c9b8 DWT |
15711 | if test -n "$PKG_CONFIG"; then |
15712 | if test -n "$WEBKIT_CFLAGS"; then | |
15713 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15714 | else | |
15715 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15716 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15717 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15718 | ac_status=$? | |
15719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15720 | test $ac_status = 0; }; then | |
15721 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15722 | else | |
15723 | pkg_failed=yes | |
15724 | fi | |
1504c9b8 DWT |
15725 | fi |
15726 | else | |
15727 | pkg_failed=untried | |
b66977f1 | 15728 | fi |
1504c9b8 DWT |
15729 | if test -n "$PKG_CONFIG"; then |
15730 | if test -n "$WEBKIT_LIBS"; then | |
15731 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15732 | else | |
15733 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15734 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15735 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15736 | ac_status=$? | |
15737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15738 | test $ac_status = 0; }; then | |
15739 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15740 | else | |
15741 | pkg_failed=yes | |
15742 | fi | |
1504c9b8 DWT |
15743 | fi |
15744 | else | |
15745 | pkg_failed=untried | |
b66977f1 DWT |
15746 | fi |
15747 | ||
15748 | ||
15749 | ||
15750 | if test $pkg_failed = yes; then | |
15751 | ||
15752 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15753 | _pkg_short_errors_supported=yes | |
15754 | else | |
15755 | _pkg_short_errors_supported=no | |
15756 | fi | |
15757 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 15758 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 15759 | else |
1504c9b8 | 15760 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
15761 | fi |
15762 | # Put the nasty error message in config.log where it belongs | |
15763 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15764 | ||
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15766 | $as_echo "no" >&6; } | |
15767 | ||
15768 | ||
15769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15770 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15771 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15772 | $as_echo_n "(cached) " >&6 | |
15773 | else | |
15774 | ||
15775 | ac_check_framework_save_LIBS=$LIBS | |
15776 | LIBS="-framework JavaScriptCore $LIBS" | |
15777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15778 | /* end confdefs.h. */ | |
15779 | ||
15780 | #include <JavaScriptCore/JSBase.h> | |
15781 | ||
15782 | int | |
15783 | main () | |
15784 | { | |
15785 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15786 | ; | |
15787 | return 0; | |
15788 | } | |
15789 | _ACEOF | |
15790 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15791 | ||
15792 | ac_cv_framework_JavaScriptCore=yes | |
15793 | ||
15794 | else | |
15795 | ac_cv_framework_JavaScriptCore=no | |
15796 | fi | |
15797 | rm -f core conftest.err conftest.$ac_objext \ | |
15798 | conftest$ac_exeext conftest.$ac_ext | |
15799 | LIBS=$ac_check_framework_save_LIBS | |
15800 | ||
15801 | fi | |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15803 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15804 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15805 | ||
15806 | ||
15807 | for element in "-framework JavaScriptCore $LIBS"; do | |
15808 | haveit= | |
15809 | for x in $LIBS; do | |
15810 | ||
15811 | acl_save_prefix="$prefix" | |
15812 | prefix="$acl_final_prefix" | |
15813 | acl_save_exec_prefix="$exec_prefix" | |
15814 | exec_prefix="$acl_final_exec_prefix" | |
15815 | eval x=\"$x\" | |
15816 | exec_prefix="$acl_save_exec_prefix" | |
15817 | prefix="$acl_save_prefix" | |
15818 | ||
15819 | if test "X$x" = "X$element"; then | |
15820 | haveit=yes | |
15821 | break | |
15822 | fi | |
15823 | done | |
15824 | if test -z "$haveit"; then | |
15825 | LIBS="${LIBS}${LIBS:+ }$element" | |
15826 | fi | |
15827 | done | |
15828 | ||
15829 | CY_EXECUTE=1 | |
15830 | ||
15831 | fi | |
15832 | ||
15833 | elif test $pkg_failed = untried; then | |
15834 | ||
15835 | ||
15836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
15837 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
15838 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
15839 | $as_echo_n "(cached) " >&6 | |
15840 | else | |
15841 | ||
15842 | ac_check_framework_save_LIBS=$LIBS | |
15843 | LIBS="-framework JavaScriptCore $LIBS" | |
15844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15845 | /* end confdefs.h. */ | |
15846 | ||
15847 | #include <JavaScriptCore/JSBase.h> | |
15848 | ||
15849 | int | |
15850 | main () | |
15851 | { | |
15852 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
15853 | ; | |
15854 | return 0; | |
15855 | } | |
15856 | _ACEOF | |
15857 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15858 | ||
15859 | ac_cv_framework_JavaScriptCore=yes | |
15860 | ||
15861 | else | |
15862 | ac_cv_framework_JavaScriptCore=no | |
15863 | fi | |
15864 | rm -f core conftest.err conftest.$ac_objext \ | |
15865 | conftest$ac_exeext conftest.$ac_ext | |
15866 | LIBS=$ac_check_framework_save_LIBS | |
15867 | ||
15868 | fi | |
15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
15870 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
15871 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
15872 | ||
15873 | ||
15874 | for element in "-framework JavaScriptCore $LIBS"; do | |
15875 | haveit= | |
15876 | for x in $LIBS; do | |
15877 | ||
15878 | acl_save_prefix="$prefix" | |
15879 | prefix="$acl_final_prefix" | |
15880 | acl_save_exec_prefix="$exec_prefix" | |
15881 | exec_prefix="$acl_final_exec_prefix" | |
15882 | eval x=\"$x\" | |
15883 | exec_prefix="$acl_save_exec_prefix" | |
15884 | prefix="$acl_save_prefix" | |
15885 | ||
15886 | if test "X$x" = "X$element"; then | |
15887 | haveit=yes | |
15888 | break | |
15889 | fi | |
15890 | done | |
15891 | if test -z "$haveit"; then | |
15892 | LIBS="${LIBS}${LIBS:+ }$element" | |
15893 | fi | |
15894 | done | |
15895 | ||
15896 | CY_EXECUTE=1 | |
15897 | ||
15898 | fi | |
15899 | ||
15900 | else | |
15901 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15902 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15904 | $as_echo "yes" >&6; } | |
15905 | ||
15906 | CY_EXECUTE=1 | |
15907 | ||
15908 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
15909 | haveit= | |
15910 | for x in $CXXFLAGS; do | |
15911 | ||
15912 | acl_save_prefix="$prefix" | |
15913 | prefix="$acl_final_prefix" | |
15914 | acl_save_exec_prefix="$exec_prefix" | |
15915 | exec_prefix="$acl_final_exec_prefix" | |
15916 | eval x=\"$x\" | |
15917 | exec_prefix="$acl_save_exec_prefix" | |
15918 | prefix="$acl_save_prefix" | |
15919 | ||
15920 | if test "X$x" = "X$element"; then | |
15921 | haveit=yes | |
15922 | break | |
15923 | fi | |
15924 | done | |
15925 | if test -z "$haveit"; then | |
15926 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
15927 | fi | |
15928 | done | |
15929 | ||
15930 | ||
15931 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
15932 | haveit= | |
15933 | for x in $LIBS; do | |
15934 | ||
15935 | acl_save_prefix="$prefix" | |
15936 | prefix="$acl_final_prefix" | |
15937 | acl_save_exec_prefix="$exec_prefix" | |
15938 | exec_prefix="$acl_final_exec_prefix" | |
15939 | eval x=\"$x\" | |
15940 | exec_prefix="$acl_save_exec_prefix" | |
15941 | prefix="$acl_save_prefix" | |
15942 | ||
15943 | if test "X$x" = "X$element"; then | |
15944 | haveit=yes | |
15945 | break | |
15946 | fi | |
15947 | done | |
15948 | if test -z "$haveit"; then | |
15949 | LIBS="${LIBS}${LIBS:+ }$element" | |
15950 | fi | |
15951 | done | |
15952 | ||
15953 | ||
15954 | fi | |
15955 | ||
15956 | elif test $pkg_failed = untried; then | |
15957 | ||
15958 | ||
15959 | pkg_failed=no | |
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15961 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15962 | ||
1504c9b8 DWT |
15963 | if test -n "$PKG_CONFIG"; then |
15964 | if test -n "$WEBKIT_CFLAGS"; then | |
15965 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15966 | else | |
15967 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15969 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15970 | ac_status=$? | |
15971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15972 | test $ac_status = 0; }; then | |
15973 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15974 | else | |
15975 | pkg_failed=yes | |
15976 | fi | |
1504c9b8 DWT |
15977 | fi |
15978 | else | |
15979 | pkg_failed=untried | |
b66977f1 | 15980 | fi |
1504c9b8 DWT |
15981 | if test -n "$PKG_CONFIG"; then |
15982 | if test -n "$WEBKIT_LIBS"; then | |
15983 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15984 | else | |
15985 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
15986 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
15987 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15988 | ac_status=$? | |
15989 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15990 | test $ac_status = 0; }; then | |
15991 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15992 | else | |
15993 | pkg_failed=yes | |
15994 | fi | |
1504c9b8 DWT |
15995 | fi |
15996 | else | |
15997 | pkg_failed=untried | |
b66977f1 DWT |
15998 | fi |
15999 | ||
16000 | ||
16001 | ||
16002 | if test $pkg_failed = yes; then | |
16003 | ||
16004 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16005 | _pkg_short_errors_supported=yes | |
16006 | else | |
16007 | _pkg_short_errors_supported=no | |
16008 | fi | |
16009 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16010 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16011 | else |
1504c9b8 | 16012 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16013 | fi |
16014 | # Put the nasty error message in config.log where it belongs | |
16015 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16016 | ||
16017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16018 | $as_echo "no" >&6; } | |
16019 | ||
16020 | ||
16021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16022 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16023 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16024 | $as_echo_n "(cached) " >&6 | |
16025 | else | |
16026 | ||
16027 | ac_check_framework_save_LIBS=$LIBS | |
16028 | LIBS="-framework JavaScriptCore $LIBS" | |
16029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16030 | /* end confdefs.h. */ | |
16031 | ||
16032 | #include <JavaScriptCore/JSBase.h> | |
16033 | ||
16034 | int | |
16035 | main () | |
16036 | { | |
16037 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16038 | ; | |
16039 | return 0; | |
16040 | } | |
16041 | _ACEOF | |
16042 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16043 | ||
16044 | ac_cv_framework_JavaScriptCore=yes | |
16045 | ||
16046 | else | |
16047 | ac_cv_framework_JavaScriptCore=no | |
16048 | fi | |
16049 | rm -f core conftest.err conftest.$ac_objext \ | |
16050 | conftest$ac_exeext conftest.$ac_ext | |
16051 | LIBS=$ac_check_framework_save_LIBS | |
16052 | ||
16053 | fi | |
16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16055 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16056 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16057 | ||
16058 | ||
16059 | for element in "-framework JavaScriptCore $LIBS"; do | |
16060 | haveit= | |
16061 | for x in $LIBS; do | |
16062 | ||
16063 | acl_save_prefix="$prefix" | |
16064 | prefix="$acl_final_prefix" | |
16065 | acl_save_exec_prefix="$exec_prefix" | |
16066 | exec_prefix="$acl_final_exec_prefix" | |
16067 | eval x=\"$x\" | |
16068 | exec_prefix="$acl_save_exec_prefix" | |
16069 | prefix="$acl_save_prefix" | |
16070 | ||
16071 | if test "X$x" = "X$element"; then | |
16072 | haveit=yes | |
16073 | break | |
16074 | fi | |
16075 | done | |
16076 | if test -z "$haveit"; then | |
16077 | LIBS="${LIBS}${LIBS:+ }$element" | |
16078 | fi | |
16079 | done | |
16080 | ||
16081 | CY_EXECUTE=1 | |
16082 | ||
16083 | fi | |
16084 | ||
16085 | elif test $pkg_failed = untried; then | |
16086 | ||
16087 | ||
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16089 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16090 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16091 | $as_echo_n "(cached) " >&6 | |
16092 | else | |
16093 | ||
16094 | ac_check_framework_save_LIBS=$LIBS | |
16095 | LIBS="-framework JavaScriptCore $LIBS" | |
16096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16097 | /* end confdefs.h. */ | |
16098 | ||
16099 | #include <JavaScriptCore/JSBase.h> | |
16100 | ||
16101 | int | |
16102 | main () | |
16103 | { | |
16104 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16105 | ; | |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16110 | ||
16111 | ac_cv_framework_JavaScriptCore=yes | |
16112 | ||
16113 | else | |
16114 | ac_cv_framework_JavaScriptCore=no | |
16115 | fi | |
16116 | rm -f core conftest.err conftest.$ac_objext \ | |
16117 | conftest$ac_exeext conftest.$ac_ext | |
16118 | LIBS=$ac_check_framework_save_LIBS | |
16119 | ||
16120 | fi | |
16121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16122 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16123 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16124 | ||
16125 | ||
16126 | for element in "-framework JavaScriptCore $LIBS"; do | |
16127 | haveit= | |
16128 | for x in $LIBS; do | |
16129 | ||
16130 | acl_save_prefix="$prefix" | |
16131 | prefix="$acl_final_prefix" | |
16132 | acl_save_exec_prefix="$exec_prefix" | |
16133 | exec_prefix="$acl_final_exec_prefix" | |
16134 | eval x=\"$x\" | |
16135 | exec_prefix="$acl_save_exec_prefix" | |
16136 | prefix="$acl_save_prefix" | |
16137 | ||
16138 | if test "X$x" = "X$element"; then | |
16139 | haveit=yes | |
16140 | break | |
16141 | fi | |
16142 | done | |
16143 | if test -z "$haveit"; then | |
16144 | LIBS="${LIBS}${LIBS:+ }$element" | |
16145 | fi | |
16146 | done | |
16147 | ||
16148 | CY_EXECUTE=1 | |
16149 | ||
16150 | fi | |
16151 | ||
16152 | else | |
16153 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16154 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16156 | $as_echo "yes" >&6; } | |
16157 | ||
16158 | CY_EXECUTE=1 | |
16159 | ||
16160 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16161 | haveit= | |
16162 | for x in $CXXFLAGS; do | |
16163 | ||
16164 | acl_save_prefix="$prefix" | |
16165 | prefix="$acl_final_prefix" | |
16166 | acl_save_exec_prefix="$exec_prefix" | |
16167 | exec_prefix="$acl_final_exec_prefix" | |
16168 | eval x=\"$x\" | |
16169 | exec_prefix="$acl_save_exec_prefix" | |
16170 | prefix="$acl_save_prefix" | |
16171 | ||
16172 | if test "X$x" = "X$element"; then | |
16173 | haveit=yes | |
16174 | break | |
16175 | fi | |
16176 | done | |
16177 | if test -z "$haveit"; then | |
16178 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16179 | fi | |
16180 | done | |
16181 | ||
16182 | ||
16183 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16184 | haveit= | |
16185 | for x in $LIBS; do | |
16186 | ||
16187 | acl_save_prefix="$prefix" | |
16188 | prefix="$acl_final_prefix" | |
16189 | acl_save_exec_prefix="$exec_prefix" | |
16190 | exec_prefix="$acl_final_exec_prefix" | |
16191 | eval x=\"$x\" | |
16192 | exec_prefix="$acl_save_exec_prefix" | |
16193 | prefix="$acl_save_prefix" | |
16194 | ||
16195 | if test "X$x" = "X$element"; then | |
16196 | haveit=yes | |
16197 | break | |
16198 | fi | |
16199 | done | |
16200 | if test -z "$haveit"; then | |
16201 | LIBS="${LIBS}${LIBS:+ }$element" | |
16202 | fi | |
16203 | done | |
16204 | ||
16205 | ||
16206 | fi | |
16207 | ||
16208 | else | |
16209 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16210 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16212 | $as_echo "yes" >&6; } | |
16213 | ||
16214 | CY_EXECUTE=1 | |
16215 | ||
16216 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16217 | haveit= | |
16218 | for x in $CXXFLAGS; do | |
16219 | ||
16220 | acl_save_prefix="$prefix" | |
16221 | prefix="$acl_final_prefix" | |
16222 | acl_save_exec_prefix="$exec_prefix" | |
16223 | exec_prefix="$acl_final_exec_prefix" | |
16224 | eval x=\"$x\" | |
16225 | exec_prefix="$acl_save_exec_prefix" | |
16226 | prefix="$acl_save_prefix" | |
16227 | ||
16228 | if test "X$x" = "X$element"; then | |
16229 | haveit=yes | |
16230 | break | |
16231 | fi | |
16232 | done | |
16233 | if test -z "$haveit"; then | |
16234 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16235 | fi | |
16236 | done | |
16237 | ||
16238 | ||
16239 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16240 | haveit= | |
16241 | for x in $LIBS; do | |
16242 | ||
16243 | acl_save_prefix="$prefix" | |
16244 | prefix="$acl_final_prefix" | |
16245 | acl_save_exec_prefix="$exec_prefix" | |
16246 | exec_prefix="$acl_final_exec_prefix" | |
16247 | eval x=\"$x\" | |
16248 | exec_prefix="$acl_save_exec_prefix" | |
16249 | prefix="$acl_save_prefix" | |
16250 | ||
16251 | if test "X$x" = "X$element"; then | |
16252 | haveit=yes | |
16253 | break | |
16254 | fi | |
16255 | done | |
16256 | if test -z "$haveit"; then | |
16257 | LIBS="${LIBS}${LIBS:+ }$element" | |
16258 | fi | |
16259 | done | |
16260 | ||
16261 | ||
16262 | fi | |
16263 | ||
b66977f1 | 16264 | ;; #( |
5053a6d1 DWT |
16265 | *) : |
16266 | as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
16267 | esac | |
16268 | ||
16269 | else | |
b66977f1 DWT |
16270 | |
16271 | ||
16272 | ||
16273 | pkg_failed=no | |
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16275 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16276 | ||
1504c9b8 DWT |
16277 | if test -n "$PKG_CONFIG"; then |
16278 | if test -n "$WEBKIT_CFLAGS"; then | |
16279 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16280 | else | |
16281 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
16283 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16284 | ac_status=$? | |
16285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16286 | test $ac_status = 0; }; then | |
16287 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
16288 | else | |
16289 | pkg_failed=yes | |
16290 | fi | |
1504c9b8 DWT |
16291 | fi |
16292 | else | |
16293 | pkg_failed=untried | |
b66977f1 | 16294 | fi |
1504c9b8 DWT |
16295 | if test -n "$PKG_CONFIG"; then |
16296 | if test -n "$WEBKIT_LIBS"; then | |
16297 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16298 | else | |
16299 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16300 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 |
16301 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16302 | ac_status=$? | |
16303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16304 | test $ac_status = 0; }; then | |
16305 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
16306 | else | |
16307 | pkg_failed=yes | |
16308 | fi | |
1504c9b8 DWT |
16309 | fi |
16310 | else | |
16311 | pkg_failed=untried | |
b66977f1 DWT |
16312 | fi |
16313 | ||
16314 | ||
16315 | ||
16316 | if test $pkg_failed = yes; then | |
16317 | ||
16318 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16319 | _pkg_short_errors_supported=yes | |
16320 | else | |
16321 | _pkg_short_errors_supported=no | |
16322 | fi | |
16323 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16324 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 | 16325 | else |
1504c9b8 | 16326 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` |
b66977f1 DWT |
16327 | fi |
16328 | # Put the nasty error message in config.log where it belongs | |
16329 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16330 | ||
16331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16332 | $as_echo "no" >&6; } | |
16333 | ||
16334 | ||
16335 | pkg_failed=no | |
16336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16337 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16338 | ||
1504c9b8 DWT |
16339 | if test -n "$PKG_CONFIG"; then |
16340 | if test -n "$WEBKIT_CFLAGS"; then | |
16341 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16342 | else | |
16343 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16345 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16346 | ac_status=$? | |
16347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16348 | test $ac_status = 0; }; then | |
16349 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16350 | else | |
16351 | pkg_failed=yes | |
16352 | fi | |
1504c9b8 DWT |
16353 | fi |
16354 | else | |
16355 | pkg_failed=untried | |
b66977f1 | 16356 | fi |
1504c9b8 DWT |
16357 | if test -n "$PKG_CONFIG"; then |
16358 | if test -n "$WEBKIT_LIBS"; then | |
16359 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16360 | else | |
16361 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16362 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16363 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16364 | ac_status=$? | |
16365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16366 | test $ac_status = 0; }; then | |
16367 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16368 | else | |
16369 | pkg_failed=yes | |
16370 | fi | |
1504c9b8 DWT |
16371 | fi |
16372 | else | |
16373 | pkg_failed=untried | |
b66977f1 DWT |
16374 | fi |
16375 | ||
16376 | ||
16377 | ||
16378 | if test $pkg_failed = yes; then | |
16379 | ||
16380 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16381 | _pkg_short_errors_supported=yes | |
16382 | else | |
16383 | _pkg_short_errors_supported=no | |
16384 | fi | |
16385 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16386 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16387 | else |
1504c9b8 | 16388 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16389 | fi |
16390 | # Put the nasty error message in config.log where it belongs | |
16391 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16392 | ||
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16394 | $as_echo "no" >&6; } | |
16395 | ||
16396 | ||
16397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16398 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16399 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16400 | $as_echo_n "(cached) " >&6 | |
16401 | else | |
16402 | ||
16403 | ac_check_framework_save_LIBS=$LIBS | |
16404 | LIBS="-framework JavaScriptCore $LIBS" | |
16405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16406 | /* end confdefs.h. */ | |
16407 | ||
16408 | #include <JavaScriptCore/JSBase.h> | |
16409 | ||
16410 | int | |
16411 | main () | |
16412 | { | |
16413 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16414 | ; | |
16415 | return 0; | |
16416 | } | |
16417 | _ACEOF | |
16418 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16419 | ||
16420 | ac_cv_framework_JavaScriptCore=yes | |
16421 | ||
16422 | else | |
16423 | ac_cv_framework_JavaScriptCore=no | |
16424 | fi | |
16425 | rm -f core conftest.err conftest.$ac_objext \ | |
16426 | conftest$ac_exeext conftest.$ac_ext | |
16427 | LIBS=$ac_check_framework_save_LIBS | |
16428 | ||
16429 | fi | |
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16431 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16432 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16433 | ||
16434 | ||
16435 | for element in "-framework JavaScriptCore $LIBS"; do | |
16436 | haveit= | |
16437 | for x in $LIBS; do | |
16438 | ||
16439 | acl_save_prefix="$prefix" | |
16440 | prefix="$acl_final_prefix" | |
16441 | acl_save_exec_prefix="$exec_prefix" | |
16442 | exec_prefix="$acl_final_exec_prefix" | |
16443 | eval x=\"$x\" | |
16444 | exec_prefix="$acl_save_exec_prefix" | |
16445 | prefix="$acl_save_prefix" | |
16446 | ||
16447 | if test "X$x" = "X$element"; then | |
16448 | haveit=yes | |
16449 | break | |
16450 | fi | |
16451 | done | |
16452 | if test -z "$haveit"; then | |
16453 | LIBS="${LIBS}${LIBS:+ }$element" | |
16454 | fi | |
16455 | done | |
16456 | ||
16457 | CY_EXECUTE=1 | |
16458 | ||
16459 | fi | |
16460 | ||
16461 | elif test $pkg_failed = untried; then | |
16462 | ||
16463 | ||
16464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16465 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16466 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16467 | $as_echo_n "(cached) " >&6 | |
16468 | else | |
16469 | ||
16470 | ac_check_framework_save_LIBS=$LIBS | |
16471 | LIBS="-framework JavaScriptCore $LIBS" | |
16472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16473 | /* end confdefs.h. */ | |
16474 | ||
16475 | #include <JavaScriptCore/JSBase.h> | |
16476 | ||
16477 | int | |
16478 | main () | |
16479 | { | |
16480 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16481 | ; | |
16482 | return 0; | |
16483 | } | |
16484 | _ACEOF | |
16485 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16486 | ||
16487 | ac_cv_framework_JavaScriptCore=yes | |
16488 | ||
16489 | else | |
16490 | ac_cv_framework_JavaScriptCore=no | |
16491 | fi | |
16492 | rm -f core conftest.err conftest.$ac_objext \ | |
16493 | conftest$ac_exeext conftest.$ac_ext | |
16494 | LIBS=$ac_check_framework_save_LIBS | |
16495 | ||
16496 | fi | |
16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16498 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16499 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16500 | ||
16501 | ||
16502 | for element in "-framework JavaScriptCore $LIBS"; do | |
16503 | haveit= | |
16504 | for x in $LIBS; do | |
16505 | ||
16506 | acl_save_prefix="$prefix" | |
16507 | prefix="$acl_final_prefix" | |
16508 | acl_save_exec_prefix="$exec_prefix" | |
16509 | exec_prefix="$acl_final_exec_prefix" | |
16510 | eval x=\"$x\" | |
16511 | exec_prefix="$acl_save_exec_prefix" | |
16512 | prefix="$acl_save_prefix" | |
16513 | ||
16514 | if test "X$x" = "X$element"; then | |
16515 | haveit=yes | |
16516 | break | |
16517 | fi | |
16518 | done | |
16519 | if test -z "$haveit"; then | |
16520 | LIBS="${LIBS}${LIBS:+ }$element" | |
16521 | fi | |
16522 | done | |
16523 | ||
16524 | CY_EXECUTE=1 | |
16525 | ||
16526 | fi | |
16527 | ||
16528 | else | |
16529 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16530 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16532 | $as_echo "yes" >&6; } | |
16533 | ||
16534 | CY_EXECUTE=1 | |
16535 | ||
16536 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16537 | haveit= | |
16538 | for x in $CXXFLAGS; do | |
16539 | ||
16540 | acl_save_prefix="$prefix" | |
16541 | prefix="$acl_final_prefix" | |
16542 | acl_save_exec_prefix="$exec_prefix" | |
16543 | exec_prefix="$acl_final_exec_prefix" | |
16544 | eval x=\"$x\" | |
16545 | exec_prefix="$acl_save_exec_prefix" | |
16546 | prefix="$acl_save_prefix" | |
16547 | ||
16548 | if test "X$x" = "X$element"; then | |
16549 | haveit=yes | |
16550 | break | |
16551 | fi | |
16552 | done | |
16553 | if test -z "$haveit"; then | |
16554 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16555 | fi | |
16556 | done | |
16557 | ||
16558 | ||
16559 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16560 | haveit= | |
16561 | for x in $LIBS; do | |
16562 | ||
16563 | acl_save_prefix="$prefix" | |
16564 | prefix="$acl_final_prefix" | |
16565 | acl_save_exec_prefix="$exec_prefix" | |
16566 | exec_prefix="$acl_final_exec_prefix" | |
16567 | eval x=\"$x\" | |
16568 | exec_prefix="$acl_save_exec_prefix" | |
16569 | prefix="$acl_save_prefix" | |
16570 | ||
16571 | if test "X$x" = "X$element"; then | |
16572 | haveit=yes | |
16573 | break | |
16574 | fi | |
16575 | done | |
16576 | if test -z "$haveit"; then | |
16577 | LIBS="${LIBS}${LIBS:+ }$element" | |
16578 | fi | |
16579 | done | |
16580 | ||
16581 | ||
16582 | fi | |
16583 | ||
16584 | elif test $pkg_failed = untried; then | |
16585 | ||
16586 | ||
16587 | pkg_failed=no | |
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16589 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16590 | ||
1504c9b8 DWT |
16591 | if test -n "$PKG_CONFIG"; then |
16592 | if test -n "$WEBKIT_CFLAGS"; then | |
16593 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16594 | else | |
16595 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16596 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16597 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16598 | ac_status=$? | |
16599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16600 | test $ac_status = 0; }; then | |
16601 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16602 | else | |
16603 | pkg_failed=yes | |
16604 | fi | |
1504c9b8 DWT |
16605 | fi |
16606 | else | |
16607 | pkg_failed=untried | |
b66977f1 | 16608 | fi |
1504c9b8 DWT |
16609 | if test -n "$PKG_CONFIG"; then |
16610 | if test -n "$WEBKIT_LIBS"; then | |
16611 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16612 | else | |
16613 | if test -n "$PKG_CONFIG" && \ | |
b66977f1 DWT |
16614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 |
16615 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16616 | ac_status=$? | |
16617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16618 | test $ac_status = 0; }; then | |
16619 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16620 | else | |
16621 | pkg_failed=yes | |
16622 | fi | |
1504c9b8 DWT |
16623 | fi |
16624 | else | |
16625 | pkg_failed=untried | |
b66977f1 DWT |
16626 | fi |
16627 | ||
16628 | ||
16629 | ||
16630 | if test $pkg_failed = yes; then | |
16631 | ||
16632 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16633 | _pkg_short_errors_supported=yes | |
16634 | else | |
16635 | _pkg_short_errors_supported=no | |
16636 | fi | |
16637 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16638 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 | 16639 | else |
1504c9b8 | 16640 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` |
b66977f1 DWT |
16641 | fi |
16642 | # Put the nasty error message in config.log where it belongs | |
16643 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16644 | ||
16645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16646 | $as_echo "no" >&6; } | |
16647 | ||
16648 | ||
16649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16650 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16651 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16652 | $as_echo_n "(cached) " >&6 | |
16653 | else | |
16654 | ||
16655 | ac_check_framework_save_LIBS=$LIBS | |
16656 | LIBS="-framework JavaScriptCore $LIBS" | |
16657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16658 | /* end confdefs.h. */ | |
16659 | ||
16660 | #include <JavaScriptCore/JSBase.h> | |
16661 | ||
16662 | int | |
16663 | main () | |
16664 | { | |
16665 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16666 | ; | |
16667 | return 0; | |
16668 | } | |
16669 | _ACEOF | |
16670 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16671 | ||
16672 | ac_cv_framework_JavaScriptCore=yes | |
16673 | ||
16674 | else | |
16675 | ac_cv_framework_JavaScriptCore=no | |
16676 | fi | |
16677 | rm -f core conftest.err conftest.$ac_objext \ | |
16678 | conftest$ac_exeext conftest.$ac_ext | |
16679 | LIBS=$ac_check_framework_save_LIBS | |
16680 | ||
16681 | fi | |
16682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16683 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16684 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16685 | ||
16686 | ||
16687 | for element in "-framework JavaScriptCore $LIBS"; do | |
16688 | haveit= | |
16689 | for x in $LIBS; do | |
16690 | ||
16691 | acl_save_prefix="$prefix" | |
16692 | prefix="$acl_final_prefix" | |
16693 | acl_save_exec_prefix="$exec_prefix" | |
16694 | exec_prefix="$acl_final_exec_prefix" | |
16695 | eval x=\"$x\" | |
16696 | exec_prefix="$acl_save_exec_prefix" | |
16697 | prefix="$acl_save_prefix" | |
16698 | ||
16699 | if test "X$x" = "X$element"; then | |
16700 | haveit=yes | |
16701 | break | |
16702 | fi | |
16703 | done | |
16704 | if test -z "$haveit"; then | |
16705 | LIBS="${LIBS}${LIBS:+ }$element" | |
16706 | fi | |
16707 | done | |
16708 | ||
16709 | CY_EXECUTE=1 | |
16710 | ||
16711 | fi | |
16712 | ||
16713 | elif test $pkg_failed = untried; then | |
16714 | ||
16715 | ||
16716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16717 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16718 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16719 | $as_echo_n "(cached) " >&6 | |
16720 | else | |
16721 | ||
16722 | ac_check_framework_save_LIBS=$LIBS | |
16723 | LIBS="-framework JavaScriptCore $LIBS" | |
16724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16725 | /* end confdefs.h. */ | |
16726 | ||
16727 | #include <JavaScriptCore/JSBase.h> | |
16728 | ||
16729 | int | |
16730 | main () | |
16731 | { | |
16732 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16733 | ; | |
16734 | return 0; | |
16735 | } | |
16736 | _ACEOF | |
16737 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16738 | ||
16739 | ac_cv_framework_JavaScriptCore=yes | |
16740 | ||
16741 | else | |
16742 | ac_cv_framework_JavaScriptCore=no | |
16743 | fi | |
16744 | rm -f core conftest.err conftest.$ac_objext \ | |
16745 | conftest$ac_exeext conftest.$ac_ext | |
16746 | LIBS=$ac_check_framework_save_LIBS | |
16747 | ||
16748 | fi | |
16749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16750 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16751 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16752 | ||
16753 | ||
16754 | for element in "-framework JavaScriptCore $LIBS"; do | |
16755 | haveit= | |
16756 | for x in $LIBS; do | |
16757 | ||
16758 | acl_save_prefix="$prefix" | |
16759 | prefix="$acl_final_prefix" | |
16760 | acl_save_exec_prefix="$exec_prefix" | |
16761 | exec_prefix="$acl_final_exec_prefix" | |
16762 | eval x=\"$x\" | |
16763 | exec_prefix="$acl_save_exec_prefix" | |
16764 | prefix="$acl_save_prefix" | |
16765 | ||
16766 | if test "X$x" = "X$element"; then | |
16767 | haveit=yes | |
16768 | break | |
16769 | fi | |
16770 | done | |
16771 | if test -z "$haveit"; then | |
16772 | LIBS="${LIBS}${LIBS:+ }$element" | |
16773 | fi | |
16774 | done | |
16775 | ||
16776 | CY_EXECUTE=1 | |
16777 | ||
16778 | fi | |
16779 | ||
16780 | else | |
16781 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16782 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16784 | $as_echo "yes" >&6; } | |
16785 | ||
16786 | CY_EXECUTE=1 | |
16787 | ||
16788 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16789 | haveit= | |
16790 | for x in $CXXFLAGS; do | |
16791 | ||
16792 | acl_save_prefix="$prefix" | |
16793 | prefix="$acl_final_prefix" | |
16794 | acl_save_exec_prefix="$exec_prefix" | |
16795 | exec_prefix="$acl_final_exec_prefix" | |
16796 | eval x=\"$x\" | |
16797 | exec_prefix="$acl_save_exec_prefix" | |
16798 | prefix="$acl_save_prefix" | |
16799 | ||
16800 | if test "X$x" = "X$element"; then | |
16801 | haveit=yes | |
16802 | break | |
16803 | fi | |
16804 | done | |
16805 | if test -z "$haveit"; then | |
16806 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16807 | fi | |
16808 | done | |
16809 | ||
16810 | ||
16811 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16812 | haveit= | |
16813 | for x in $LIBS; do | |
16814 | ||
16815 | acl_save_prefix="$prefix" | |
16816 | prefix="$acl_final_prefix" | |
16817 | acl_save_exec_prefix="$exec_prefix" | |
16818 | exec_prefix="$acl_final_exec_prefix" | |
16819 | eval x=\"$x\" | |
16820 | exec_prefix="$acl_save_exec_prefix" | |
16821 | prefix="$acl_save_prefix" | |
16822 | ||
16823 | if test "X$x" = "X$element"; then | |
16824 | haveit=yes | |
16825 | break | |
16826 | fi | |
16827 | done | |
16828 | if test -z "$haveit"; then | |
16829 | LIBS="${LIBS}${LIBS:+ }$element" | |
16830 | fi | |
16831 | done | |
16832 | ||
16833 | ||
16834 | fi | |
16835 | ||
16836 | else | |
16837 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16838 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16840 | $as_echo "yes" >&6; } | |
16841 | ||
16842 | CY_EXECUTE=1 | |
16843 | ||
16844 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16845 | haveit= | |
16846 | for x in $CXXFLAGS; do | |
16847 | ||
16848 | acl_save_prefix="$prefix" | |
16849 | prefix="$acl_final_prefix" | |
16850 | acl_save_exec_prefix="$exec_prefix" | |
16851 | exec_prefix="$acl_final_exec_prefix" | |
16852 | eval x=\"$x\" | |
16853 | exec_prefix="$acl_save_exec_prefix" | |
16854 | prefix="$acl_save_prefix" | |
16855 | ||
16856 | if test "X$x" = "X$element"; then | |
16857 | haveit=yes | |
16858 | break | |
16859 | fi | |
16860 | done | |
16861 | if test -z "$haveit"; then | |
16862 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16863 | fi | |
16864 | done | |
16865 | ||
16866 | ||
16867 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16868 | haveit= | |
16869 | for x in $LIBS; do | |
16870 | ||
16871 | acl_save_prefix="$prefix" | |
16872 | prefix="$acl_final_prefix" | |
16873 | acl_save_exec_prefix="$exec_prefix" | |
16874 | exec_prefix="$acl_final_exec_prefix" | |
16875 | eval x=\"$x\" | |
16876 | exec_prefix="$acl_save_exec_prefix" | |
16877 | prefix="$acl_save_prefix" | |
16878 | ||
16879 | if test "X$x" = "X$element"; then | |
16880 | haveit=yes | |
16881 | break | |
16882 | fi | |
16883 | done | |
16884 | if test -z "$haveit"; then | |
16885 | LIBS="${LIBS}${LIBS:+ }$element" | |
16886 | fi | |
16887 | done | |
16888 | ||
16889 | ||
16890 | fi | |
5053a6d1 DWT |
16891 | |
16892 | ||
9c60689e DWT |
16893 | fi |
16894 | ||
5053a6d1 | 16895 | |
058f1bc8 | 16896 | |
e5cca37d | 16897 | |
5053a6d1 DWT |
16898 | case $CY_EXECUTE in #( |
16899 | 1) : | |
16900 | ||
9c60689e | 16901 | |
e5cca37d DWT |
16902 | for ac_header in ffi.h ffi/ffi.h |
16903 | do : | |
16904 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16905 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16906 | eval as_val=\$$as_ac_Header | |
16907 | if test "x$as_val" = x""yes; then : | |
16908 | cat >>confdefs.h <<_ACEOF | |
16909 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16910 | _ACEOF | |
16911 | break | |
16912 | fi | |
16913 | ||
16914 | done | |
16915 | ||
16916 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
16917 | ||
16918 | ||
9c60689e DWT |
16919 | |
16920 | pkg_failed=no | |
5053a6d1 DWT |
16921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 |
16922 | $as_echo_n "checking for LIBFFI... " >&6; } | |
9c60689e | 16923 | |
1504c9b8 DWT |
16924 | if test -n "$PKG_CONFIG"; then |
16925 | if test -n "$LIBFFI_CFLAGS"; then | |
16926 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
16927 | else | |
16928 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16930 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16931 | ac_status=$? |
16932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16933 | test $ac_status = 0; }; then | |
5053a6d1 | 16934 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` |
9c60689e DWT |
16935 | else |
16936 | pkg_failed=yes | |
16937 | fi | |
1504c9b8 DWT |
16938 | fi |
16939 | else | |
16940 | pkg_failed=untried | |
9c60689e | 16941 | fi |
1504c9b8 DWT |
16942 | if test -n "$PKG_CONFIG"; then |
16943 | if test -n "$LIBFFI_LIBS"; then | |
16944 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
16945 | else | |
16946 | if test -n "$PKG_CONFIG" && \ | |
5053a6d1 DWT |
16947 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
16948 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
9c60689e DWT |
16949 | ac_status=$? |
16950 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16951 | test $ac_status = 0; }; then | |
5053a6d1 | 16952 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` |
9c60689e DWT |
16953 | else |
16954 | pkg_failed=yes | |
16955 | fi | |
1504c9b8 DWT |
16956 | fi |
16957 | else | |
16958 | pkg_failed=untried | |
9c60689e DWT |
16959 | fi |
16960 | ||
16961 | ||
16962 | ||
16963 | if test $pkg_failed = yes; then | |
16964 | ||
16965 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16966 | _pkg_short_errors_supported=yes | |
16967 | else | |
16968 | _pkg_short_errors_supported=no | |
16969 | fi | |
16970 | if test $_pkg_short_errors_supported = yes; then | |
1504c9b8 | 16971 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` |
9c60689e | 16972 | else |
1504c9b8 | 16973 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` |
9c60689e DWT |
16974 | fi |
16975 | # Put the nasty error message in config.log where it belongs | |
5053a6d1 | 16976 | echo "$LIBFFI_PKG_ERRORS" >&5 |
9c60689e DWT |
16977 | |
16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16979 | $as_echo "no" >&6; } | |
b128dfee | 16980 | |
e5cca37d | 16981 | as_fn_error "You need libffi" "$LINENO" 5 |
5053a6d1 | 16982 | |
e5cca37d DWT |
16983 | elif test $pkg_failed = untried; then |
16984 | ||
16985 | as_fn_error "You need libffi" "$LINENO" 5 | |
16986 | ||
16987 | else | |
16988 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
16989 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16991 | $as_echo "yes" >&6; } | |
16992 | ||
16993 | ||
16994 | for element in `$PKG_CONFIG --cflags libffi`; do | |
16995 | haveit= | |
16996 | for x in $CXXFLAGS; do | |
16997 | ||
16998 | acl_save_prefix="$prefix" | |
16999 | prefix="$acl_final_prefix" | |
17000 | acl_save_exec_prefix="$exec_prefix" | |
17001 | exec_prefix="$acl_final_exec_prefix" | |
17002 | eval x=\"$x\" | |
17003 | exec_prefix="$acl_save_exec_prefix" | |
17004 | prefix="$acl_save_prefix" | |
17005 | ||
17006 | if test "X$x" = "X$element"; then | |
17007 | haveit=yes | |
17008 | break | |
17009 | fi | |
17010 | done | |
17011 | if test -z "$haveit"; then | |
17012 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17013 | fi | |
17014 | done | |
c823f118 | 17015 | |
5053a6d1 | 17016 | |
e5cca37d DWT |
17017 | for element in `$PKG_CONFIG --libs libffi`; do |
17018 | haveit= | |
17019 | for x in $LIBS; do | |
17020 | ||
17021 | acl_save_prefix="$prefix" | |
17022 | prefix="$acl_final_prefix" | |
17023 | acl_save_exec_prefix="$exec_prefix" | |
17024 | exec_prefix="$acl_final_exec_prefix" | |
17025 | eval x=\"$x\" | |
17026 | exec_prefix="$acl_save_exec_prefix" | |
17027 | prefix="$acl_save_prefix" | |
17028 | ||
17029 | if test "X$x" = "X$element"; then | |
17030 | haveit=yes | |
17031 | break | |
17032 | fi | |
17033 | done | |
17034 | if test -z "$haveit"; then | |
17035 | LIBS="${LIBS}${LIBS:+ }$element" | |
17036 | fi | |
17037 | done | |
17038 | ||
5053a6d1 DWT |
17039 | |
17040 | fi | |
e5cca37d DWT |
17041 | |
17042 | ||
17043 | else | |
17044 | ||
5053a6d1 DWT |
17045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 |
17046 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17047 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
c823f118 DWT |
17048 | $as_echo_n "(cached) " >&6 |
17049 | else | |
5053a6d1 DWT |
17050 | ac_func_search_save_LIBS=$LIBS |
17051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 DWT |
17052 | /* end confdefs.h. */ |
17053 | ||
5053a6d1 DWT |
17054 | /* Override any GCC internal prototype to avoid an error. |
17055 | Use char because int might match the return type of a GCC | |
17056 | builtin and then its argument prototype would still apply. */ | |
17057 | #ifdef __cplusplus | |
17058 | extern "C" | |
17059 | #endif | |
17060 | char ffi_call (); | |
c823f118 DWT |
17061 | int |
17062 | main () | |
17063 | { | |
5053a6d1 | 17064 | return ffi_call (); |
c823f118 DWT |
17065 | ; |
17066 | return 0; | |
17067 | } | |
b128dfee | 17068 | _ACEOF |
5053a6d1 DWT |
17069 | for ac_lib in '' ffi; do |
17070 | if test -z "$ac_lib"; then | |
17071 | ac_res="none required" | |
17072 | else | |
17073 | ac_res=-l$ac_lib | |
17074 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17075 | fi | |
17076 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17077 | ac_cv_search_ffi_call=$ac_res | |
c823f118 DWT |
17078 | fi |
17079 | rm -f core conftest.err conftest.$ac_objext \ | |
5053a6d1 DWT |
17080 | conftest$ac_exeext |
17081 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17082 | break | |
b128dfee | 17083 | fi |
5053a6d1 DWT |
17084 | done |
17085 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
b128dfee | 17086 | |
5053a6d1 DWT |
17087 | else |
17088 | ac_cv_search_ffi_call=no | |
17089 | fi | |
17090 | rm conftest.$ac_ext | |
17091 | LIBS=$ac_func_search_save_LIBS | |
17092 | fi | |
17093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
17094 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
17095 | ac_res=$ac_cv_search_ffi_call | |
17096 | if test "$ac_res" != no; then : | |
17097 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b128dfee | 17098 | |
5053a6d1 | 17099 | fi |
c823f118 | 17100 | |
5053a6d1 DWT |
17101 | case $ac_cv_search_ffi_call in #( |
17102 | no) : | |
c823f118 | 17103 | |
c823f118 | 17104 | |
e5cca37d DWT |
17105 | pkg_failed=no |
17106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
17107 | $as_echo_n "checking for LIBFFI... " >&6; } | |
c823f118 | 17108 | |
1504c9b8 DWT |
17109 | if test -n "$PKG_CONFIG"; then |
17110 | if test -n "$LIBFFI_CFLAGS"; then | |
17111 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
17112 | else | |
17113 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
17114 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
17115 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17116 | ac_status=$? | |
17117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17118 | test $ac_status = 0; }; then | |
17119 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
17120 | else | |
17121 | pkg_failed=yes | |
c823f118 | 17122 | fi |
1504c9b8 DWT |
17123 | fi |
17124 | else | |
17125 | pkg_failed=untried | |
5053a6d1 | 17126 | fi |
1504c9b8 DWT |
17127 | if test -n "$PKG_CONFIG"; then |
17128 | if test -n "$LIBFFI_LIBS"; then | |
17129 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
17130 | else | |
17131 | if test -n "$PKG_CONFIG" && \ | |
e5cca37d DWT |
17132 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 |
17133 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17134 | ac_status=$? | |
17135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17136 | test $ac_status = 0; }; then | |
17137 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
c823f118 | 17138 | else |
e5cca37d | 17139 | pkg_failed=yes |
632b71ea | 17140 | fi |
1504c9b8 DWT |
17141 | fi |
17142 | else | |
17143 | pkg_failed=untried | |
632b71ea | 17144 | fi |
3fd51f51 | 17145 | |
e5cca37d DWT |
17146 | |
17147 | ||
17148 | if test $pkg_failed = yes; then | |
17149 | ||
17150 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17151 | _pkg_short_errors_supported=yes | |
5053a6d1 | 17152 | else |
e5cca37d | 17153 | _pkg_short_errors_supported=no |
5053a6d1 | 17154 | fi |
e5cca37d | 17155 | if test $_pkg_short_errors_supported = yes; then |
1504c9b8 | 17156 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` |
e5cca37d | 17157 | else |
1504c9b8 | 17158 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` |
e5cca37d DWT |
17159 | fi |
17160 | # Put the nasty error message in config.log where it belongs | |
17161 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
3fd51f51 | 17162 | |
e5cca37d DWT |
17163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17164 | $as_echo "no" >&6; } | |
3fd51f51 | 17165 | |
e5cca37d | 17166 | as_fn_error "You need libffi" "$LINENO" 5 |
3fd51f51 | 17167 | |
e5cca37d DWT |
17168 | elif test $pkg_failed = untried; then |
17169 | ||
17170 | as_fn_error "You need libffi" "$LINENO" 5 | |
9c60689e DWT |
17171 | |
17172 | else | |
5053a6d1 DWT |
17173 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS |
17174 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
9c60689e DWT |
17175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17176 | $as_echo "yes" >&6; } | |
3fd51f51 | 17177 | |
3fd51f51 | 17178 | |
5053a6d1 | 17179 | for element in `$PKG_CONFIG --cflags libffi`; do |
3fd51f51 DWT |
17180 | haveit= |
17181 | for x in $CXXFLAGS; do | |
17182 | ||
17183 | acl_save_prefix="$prefix" | |
17184 | prefix="$acl_final_prefix" | |
17185 | acl_save_exec_prefix="$exec_prefix" | |
17186 | exec_prefix="$acl_final_exec_prefix" | |
17187 | eval x=\"$x\" | |
17188 | exec_prefix="$acl_save_exec_prefix" | |
17189 | prefix="$acl_save_prefix" | |
17190 | ||
17191 | if test "X$x" = "X$element"; then | |
17192 | haveit=yes | |
17193 | break | |
17194 | fi | |
17195 | done | |
17196 | if test -z "$haveit"; then | |
17197 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17198 | fi | |
17199 | done | |
17200 | ||
17201 | ||
5053a6d1 | 17202 | for element in `$PKG_CONFIG --libs libffi`; do |
3fd51f51 DWT |
17203 | haveit= |
17204 | for x in $LIBS; do | |
17205 | ||
17206 | acl_save_prefix="$prefix" | |
17207 | prefix="$acl_final_prefix" | |
17208 | acl_save_exec_prefix="$exec_prefix" | |
17209 | exec_prefix="$acl_final_exec_prefix" | |
17210 | eval x=\"$x\" | |
17211 | exec_prefix="$acl_save_exec_prefix" | |
17212 | prefix="$acl_save_prefix" | |
17213 | ||
17214 | if test "X$x" = "X$element"; then | |
17215 | haveit=yes | |
17216 | break | |
17217 | fi | |
17218 | done | |
17219 | if test -z "$haveit"; then | |
17220 | LIBS="${LIBS}${LIBS:+ }$element" | |
17221 | fi | |
17222 | done | |
17223 | ||
17224 | ||
e5cca37d DWT |
17225 | fi |
17226 | ;; #( | |
17227 | *) : | |
17228 | ;; | |
17229 | esac | |
17230 | ||
9c60689e | 17231 | fi |
5053a6d1 DWT |
17232 | ac_ext=mm |
17233 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
17234 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17235 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17236 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
a667869d | 17237 | |
5053a6d1 DWT |
17238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
17239 | $as_echo_n "checking if we really have Objective C++... " >&6; } | |
17240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17241 | /* end confdefs.h. */ | |
9c60689e | 17242 | |
5053a6d1 | 17243 | // This space intentionally left blank |
a667869d | 17244 | |
5053a6d1 DWT |
17245 | _ACEOF |
17246 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
9c60689e | 17247 | |
5053a6d1 DWT |
17248 | CY_OBJECTIVEC=1 |
17249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17250 | $as_echo "yes" >&6; } | |
632b71ea | 17251 | |
632b71ea | 17252 | else |
5053a6d1 | 17253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
632b71ea | 17254 | $as_echo "no" >&6; } |
5053a6d1 DWT |
17255 | fi |
17256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17257 | if test "x$CY_OBJECTIVEC" = x1; then : | |
9c60689e | 17258 | |
632b71ea | 17259 | |
5053a6d1 DWT |
17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 |
17261 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
17262 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
9c60689e DWT |
17263 | $as_echo_n "(cached) " >&6 |
17264 | else | |
632b71ea DWT |
17265 | |
17266 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 17267 | LIBS="-framework CoreFoundation $LIBS" |
632b71ea | 17268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9c60689e DWT |
17269 | /* end confdefs.h. */ |
17270 | ||
5053a6d1 | 17271 | #include <CoreFoundation/CFBase.h> |
632b71ea | 17272 | |
9c60689e DWT |
17273 | int |
17274 | main () | |
17275 | { | |
5053a6d1 | 17276 | CFAllocatorGetDefault(); |
9c60689e DWT |
17277 | ; |
17278 | return 0; | |
17279 | } | |
17280 | _ACEOF | |
5053a6d1 | 17281 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 17282 | |
5053a6d1 | 17283 | ac_cv_framework_CoreFoundation=yes |
632b71ea | 17284 | |
9c60689e | 17285 | else |
5053a6d1 | 17286 | ac_cv_framework_CoreFoundation=no |
9c60689e | 17287 | fi |
632b71ea DWT |
17288 | rm -f core conftest.err conftest.$ac_objext \ |
17289 | conftest$ac_exeext conftest.$ac_ext | |
17290 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
17291 | |
17292 | fi | |
5053a6d1 DWT |
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 |
17294 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
17295 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
632b71ea DWT |
17296 | |
17297 | ||
5053a6d1 | 17298 | for element in "-framework CoreFoundation $LIBS"; do |
632b71ea DWT |
17299 | haveit= |
17300 | for x in $LIBS; do | |
17301 | ||
17302 | acl_save_prefix="$prefix" | |
17303 | prefix="$acl_final_prefix" | |
17304 | acl_save_exec_prefix="$exec_prefix" | |
17305 | exec_prefix="$acl_final_exec_prefix" | |
17306 | eval x=\"$x\" | |
17307 | exec_prefix="$acl_save_exec_prefix" | |
17308 | prefix="$acl_save_prefix" | |
17309 | ||
17310 | if test "X$x" = "X$element"; then | |
17311 | haveit=yes | |
17312 | break | |
17313 | fi | |
17314 | done | |
17315 | if test -z "$haveit"; then | |
17316 | LIBS="${LIBS}${LIBS:+ }$element" | |
17317 | fi | |
17318 | done | |
17319 | ||
632b71ea | 17320 | |
632b71ea | 17321 | |
632b71ea DWT |
17322 | |
17323 | ||
5053a6d1 DWT |
17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 |
17325 | $as_echo_n "checking for framework Foundation... " >&6; } | |
17326 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
a667869d DWT |
17327 | $as_echo_n "(cached) " >&6 |
17328 | else | |
632b71ea DWT |
17329 | |
17330 | ac_check_framework_save_LIBS=$LIBS | |
5053a6d1 | 17331 | LIBS="-framework Foundation $LIBS" |
632b71ea | 17332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a667869d DWT |
17333 | /* end confdefs.h. */ |
17334 | ||
5053a6d1 | 17335 | #include <Foundation/NSObject.h> |
632b71ea | 17336 | |
a667869d DWT |
17337 | int |
17338 | main () | |
17339 | { | |
5053a6d1 | 17340 | [[NSObject alloc] init]; |
a667869d DWT |
17341 | ; |
17342 | return 0; | |
17343 | } | |
17344 | _ACEOF | |
5053a6d1 | 17345 | if ac_fn_objcxx_try_link "$LINENO"; then : |
632b71ea | 17346 | |
5053a6d1 | 17347 | ac_cv_framework_Foundation=yes |
632b71ea | 17348 | |
a667869d | 17349 | else |
5053a6d1 | 17350 | ac_cv_framework_Foundation=no |
632b71ea DWT |
17351 | fi |
17352 | rm -f core conftest.err conftest.$ac_objext \ | |
17353 | conftest$ac_exeext conftest.$ac_ext | |
17354 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 17355 | |
632b71ea | 17356 | fi |
5053a6d1 DWT |
17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 |
17358 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
17359 | if test $ac_cv_framework_Foundation = yes; then : | |
a667869d | 17360 | |
a667869d | 17361 | |
5053a6d1 | 17362 | for element in "-framework Foundation $LIBS"; do |
632b71ea DWT |
17363 | haveit= |
17364 | for x in $LIBS; do | |
a667869d | 17365 | |
632b71ea DWT |
17366 | acl_save_prefix="$prefix" |
17367 | prefix="$acl_final_prefix" | |
17368 | acl_save_exec_prefix="$exec_prefix" | |
17369 | exec_prefix="$acl_final_exec_prefix" | |
17370 | eval x=\"$x\" | |
17371 | exec_prefix="$acl_save_exec_prefix" | |
17372 | prefix="$acl_save_prefix" | |
17373 | ||
17374 | if test "X$x" = "X$element"; then | |
17375 | haveit=yes | |
17376 | break | |
17377 | fi | |
17378 | done | |
17379 | if test -z "$haveit"; then | |
17380 | LIBS="${LIBS}${LIBS:+ }$element" | |
17381 | fi | |
17382 | done | |
17383 | ||
5053a6d1 DWT |
17384 | cat >>confdefs.h <<_ACEOF |
17385 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
17386 | _ACEOF | |
17387 | ||
a667869d | 17388 | |
a667869d | 17389 | fi |
632b71ea | 17390 | |
5053a6d1 DWT |
17391 | |
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
17393 | $as_echo_n "checking for framework WebKit... " >&6; } | |
17394 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
17395 | $as_echo_n "(cached) " >&6 | |
a667869d | 17396 | else |
632b71ea | 17397 | |
5053a6d1 DWT |
17398 | ac_check_framework_save_LIBS=$LIBS |
17399 | LIBS="-framework WebKit $LIBS" | |
17400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17401 | /* end confdefs.h. */ | |
632b71ea | 17402 | |
5053a6d1 | 17403 | #include <WebKit/WebScriptObject.h> |
632b71ea | 17404 | |
5053a6d1 DWT |
17405 | int |
17406 | main () | |
17407 | { | |
17408 | [[WebScriptObject alloc] init]; | |
17409 | ; | |
17410 | return 0; | |
17411 | } | |
17412 | _ACEOF | |
17413 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
632b71ea | 17414 | |
5053a6d1 | 17415 | ac_cv_framework_WebKit=yes |
632b71ea | 17416 | |
5053a6d1 DWT |
17417 | else |
17418 | ac_cv_framework_WebKit=no | |
17419 | fi | |
17420 | rm -f core conftest.err conftest.$ac_objext \ | |
17421 | conftest$ac_exeext conftest.$ac_ext | |
17422 | LIBS=$ac_check_framework_save_LIBS | |
632b71ea | 17423 | |
5053a6d1 DWT |
17424 | fi |
17425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
17426 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
17427 | if test $ac_cv_framework_WebKit = yes; then : | |
17428 | ||
17429 | ||
17430 | for element in "-framework WebKit $LIBS"; do | |
632b71ea DWT |
17431 | haveit= |
17432 | for x in $LIBS; do | |
17433 | ||
17434 | acl_save_prefix="$prefix" | |
17435 | prefix="$acl_final_prefix" | |
17436 | acl_save_exec_prefix="$exec_prefix" | |
17437 | exec_prefix="$acl_final_exec_prefix" | |
17438 | eval x=\"$x\" | |
17439 | exec_prefix="$acl_save_exec_prefix" | |
17440 | prefix="$acl_save_prefix" | |
17441 | ||
17442 | if test "X$x" = "X$element"; then | |
17443 | haveit=yes | |
17444 | break | |
17445 | fi | |
17446 | done | |
17447 | if test -z "$haveit"; then | |
17448 | LIBS="${LIBS}${LIBS:+ }$element" | |
17449 | fi | |
17450 | done | |
17451 | ||
5053a6d1 DWT |
17452 | cat >>confdefs.h <<_ACEOF |
17453 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
17454 | _ACEOF | |
17455 | ||
17456 | ||
17457 | fi | |
17458 | ||
17459 | ||
17460 | else | |
17461 | ||
17462 | ||
17463 | for ac_prog in gnustep-config | |
17464 | do | |
17465 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
17466 | set dummy $ac_prog; ac_word=$2 | |
17467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
17468 | $as_echo_n "checking for $ac_word... " >&6; } | |
17469 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
17470 | $as_echo_n "(cached) " >&6 | |
17471 | else | |
17472 | if test -n "$GNUSTEP_CONFIG"; then | |
17473 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
17474 | else | |
17475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17476 | for as_dir in $PATH | |
17477 | do | |
17478 | IFS=$as_save_IFS | |
17479 | test -z "$as_dir" && as_dir=. | |
17480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
17482 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
17483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17484 | break 2 | |
17485 | fi | |
17486 | done | |
17487 | done | |
17488 | IFS=$as_save_IFS | |
17489 | ||
17490 | fi | |
17491 | fi | |
17492 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
17493 | if test -n "$GNUSTEP_CONFIG"; then | |
17494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
17495 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
17496 | else | |
17497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17498 | $as_echo "no" >&6; } | |
17499 | fi | |
17500 | ||
17501 | ||
17502 | test -n "$GNUSTEP_CONFIG" && break | |
17503 | done | |
632b71ea | 17504 | |
5053a6d1 | 17505 | if test "x$GNUSTEP_CONFIG" != x; then : |
a667869d | 17506 | |
632b71ea | 17507 | |
632b71ea | 17508 | |
5053a6d1 | 17509 | for element in `$GNUSTEP_CONFIG --objc-flags`; do |
632b71ea | 17510 | haveit= |
5053a6d1 | 17511 | for x in $OBJCXXFLAGS; do |
632b71ea DWT |
17512 | |
17513 | acl_save_prefix="$prefix" | |
17514 | prefix="$acl_final_prefix" | |
17515 | acl_save_exec_prefix="$exec_prefix" | |
17516 | exec_prefix="$acl_final_exec_prefix" | |
17517 | eval x=\"$x\" | |
17518 | exec_prefix="$acl_save_exec_prefix" | |
17519 | prefix="$acl_save_prefix" | |
17520 | ||
17521 | if test "X$x" = "X$element"; then | |
17522 | haveit=yes | |
17523 | break | |
17524 | fi | |
17525 | done | |
17526 | if test -z "$haveit"; then | |
5053a6d1 | 17527 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" |
632b71ea DWT |
17528 | fi |
17529 | done | |
17530 | ||
17531 | ||
5053a6d1 | 17532 | for element in `$GNUSTEP_CONFIG --base-libs`; do |
632b71ea DWT |
17533 | haveit= |
17534 | for x in $LIBS; do | |
17535 | ||
17536 | acl_save_prefix="$prefix" | |
17537 | prefix="$acl_final_prefix" | |
17538 | acl_save_exec_prefix="$exec_prefix" | |
17539 | exec_prefix="$acl_final_exec_prefix" | |
17540 | eval x=\"$x\" | |
17541 | exec_prefix="$acl_save_exec_prefix" | |
17542 | prefix="$acl_save_prefix" | |
17543 | ||
17544 | if test "X$x" = "X$element"; then | |
17545 | haveit=yes | |
17546 | break | |
17547 | fi | |
17548 | done | |
17549 | if test -z "$haveit"; then | |
17550 | LIBS="${LIBS}${LIBS:+ }$element" | |
17551 | fi | |
17552 | done | |
17553 | ||
17554 | ||
5053a6d1 DWT |
17555 | else |
17556 | CY_OBJECTIVEC=0 | |
a667869d | 17557 | |
5053a6d1 | 17558 | fi |
b66977f1 DWT |
17559 | |
17560 | fi | |
17561 | ||
5053a6d1 DWT |
17562 | fi |
17563 | ac_ext=cpp | |
17564 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17565 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17566 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17567 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
b66977f1 | 17568 | |
5053a6d1 DWT |
17569 | ;; #( |
17570 | *) : | |
17571 | ;; | |
17572 | esac | |
a667869d | 17573 | |
058f1bc8 DWT |
17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 |
17575 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
17576 | if test "${vl_cv_lib_readline+set}" = set; then : | |
17577 | $as_echo_n "(cached) " >&6 | |
17578 | else | |
a667869d | 17579 | |
058f1bc8 DWT |
17580 | ORIG_LIBS="$LIBS" |
17581 | for readline_lib in readline edit editline; do | |
17582 | for termcap_lib in "" termcap curses ncurses; do | |
17583 | if test -z "$termcap_lib"; then | |
17584 | TRY_LIB="-l$readline_lib" | |
17585 | else | |
17586 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
17587 | fi | |
17588 | LIBS="$ORIG_LIBS $TRY_LIB" | |
17589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17590 | /* end confdefs.h. */ | |
a667869d | 17591 | |
058f1bc8 DWT |
17592 | /* Override any GCC internal prototype to avoid an error. |
17593 | Use char because int might match the return type of a GCC | |
17594 | builtin and then its argument prototype would still apply. */ | |
17595 | #ifdef __cplusplus | |
17596 | extern "C" | |
17597 | #endif | |
17598 | char readline (); | |
17599 | int | |
17600 | main () | |
17601 | { | |
17602 | return readline (); | |
17603 | ; | |
17604 | return 0; | |
17605 | } | |
17606 | _ACEOF | |
17607 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17608 | vl_cv_lib_readline="$TRY_LIB" | |
17609 | fi | |
17610 | rm -f core conftest.err conftest.$ac_objext \ | |
17611 | conftest$ac_exeext conftest.$ac_ext | |
17612 | if test -n "$vl_cv_lib_readline"; then | |
17613 | break | |
17614 | fi | |
17615 | done | |
17616 | if test -n "$vl_cv_lib_readline"; then | |
17617 | break | |
17618 | fi | |
17619 | done | |
17620 | if test -z "$vl_cv_lib_readline"; then | |
17621 | vl_cv_lib_readline="no" | |
17622 | LIBS="$ORIG_LIBS" | |
17623 | fi | |
a667869d | 17624 | |
a667869d | 17625 | fi |
058f1bc8 DWT |
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 |
17627 | $as_echo "$vl_cv_lib_readline" >&6; } | |
17628 | ||
17629 | if test "$vl_cv_lib_readline" != "no"; then | |
17630 | ||
17631 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
17632 | ||
17633 | for ac_header in readline.h readline/readline.h | |
17634 | do : | |
17635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17636 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17637 | eval as_val=\$$as_ac_Header | |
17638 | if test "x$as_val" = x""yes; then : | |
17639 | cat >>confdefs.h <<_ACEOF | |
17640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17641 | _ACEOF | |
5053a6d1 | 17642 | |
a667869d | 17643 | fi |
058f1bc8 DWT |
17644 | |
17645 | done | |
17646 | ||
17647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
17648 | $as_echo_n "checking whether readline supports history... " >&6; } | |
17649 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
17650 | $as_echo_n "(cached) " >&6 | |
17651 | else | |
17652 | ||
17653 | vl_cv_lib_readline_history="no" | |
17654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17655 | /* end confdefs.h. */ | |
17656 | ||
17657 | /* Override any GCC internal prototype to avoid an error. | |
17658 | Use char because int might match the return type of a GCC | |
17659 | builtin and then its argument prototype would still apply. */ | |
17660 | #ifdef __cplusplus | |
17661 | extern "C" | |
17662 | #endif | |
17663 | char add_history (); | |
17664 | int | |
17665 | main () | |
17666 | { | |
17667 | return add_history (); | |
17668 | ; | |
17669 | return 0; | |
17670 | } | |
17671 | _ACEOF | |
17672 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17673 | vl_cv_lib_readline_history="yes" | |
17674 | fi | |
17675 | rm -f core conftest.err conftest.$ac_objext \ | |
17676 | conftest$ac_exeext conftest.$ac_ext | |
17677 | ||
17678 | fi | |
17679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
17680 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
17681 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
17682 | ||
17683 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
17684 | ||
17685 | for ac_header in history.h readline/history.h | |
17686 | do : | |
17687 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17688 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17689 | eval as_val=\$$as_ac_Header | |
17690 | if test "x$as_val" = x""yes; then : | |
17691 | cat >>confdefs.h <<_ACEOF | |
17692 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17693 | _ACEOF | |
17694 | ||
17695 | fi | |
17696 | ||
17697 | done | |
17698 | ||
17699 | fi | |
17700 | fi | |
17701 | ||
17702 | case $vl_cv_lib_readline in #( | |
17703 | no) : | |
17704 | as_fn_error "You need readline" "$LINENO" 5 ;; #( | |
17705 | *) : | |
17706 | ;; | |
17707 | esac | |
17708 | ac_ext=c | |
17709 | ac_cpp='$CPP $CPPFLAGS' | |
17710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17713 | ||
17714 | ||
17715 | if test "X$prefix" = "XNONE"; then | |
17716 | acl_final_prefix="$ac_default_prefix" | |
17717 | else | |
17718 | acl_final_prefix="$prefix" | |
17719 | fi | |
17720 | if test "X$exec_prefix" = "XNONE"; then | |
17721 | acl_final_exec_prefix='${prefix}' | |
17722 | else | |
17723 | acl_final_exec_prefix="$exec_prefix" | |
17724 | fi | |
17725 | acl_save_prefix="$prefix" | |
17726 | prefix="$acl_final_prefix" | |
17727 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
17728 | prefix="$acl_save_prefix" | |
17729 | ||
17730 | ||
17731 | # Check whether --with-gnu-ld was given. | |
17732 | if test "${with_gnu_ld+set}" = set; then : | |
17733 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
17734 | else | |
17735 | with_gnu_ld=no | |
17736 | fi | |
17737 | ||
17738 | # Prepare PATH_SEPARATOR. | |
17739 | # The user is always right. | |
17740 | if test "${PATH_SEPARATOR+set}" != set; then | |
17741 | echo "#! /bin/sh" >conf$$.sh | |
17742 | echo "exit 0" >>conf$$.sh | |
17743 | chmod +x conf$$.sh | |
17744 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17745 | PATH_SEPARATOR=';' | |
17746 | else | |
17747 | PATH_SEPARATOR=: | |
17748 | fi | |
17749 | rm -f conf$$.sh | |
17750 | fi | |
17751 | ac_prog=ld | |
17752 | if test "$GCC" = yes; then | |
17753 | # Check if gcc -print-prog-name=ld gives a path. | |
17754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
17755 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
17756 | case $host in | |
17757 | *-*-mingw*) | |
17758 | # gcc leaves a trailing carriage return which upsets mingw | |
17759 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
17760 | *) | |
17761 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
17762 | esac | |
17763 | case $ac_prog in | |
17764 | # Accept absolute paths. | |
17765 | [\\/]* | [A-Za-z]:[\\/]*) | |
17766 | re_direlt='/[^/][^/]*/\.\./' | |
17767 | # Canonicalize the path of ld | |
17768 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
17769 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5053a6d1 DWT |
17770 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
17771 | done | |
17772 | test -z "$LD" && LD="$ac_prog" | |
17773 | ;; | |
17774 | "") | |
17775 | # If it fails, then pretend we aren't using GCC. | |
17776 | ac_prog=ld | |
17777 | ;; | |
17778 | *) | |
17779 | # If it is relative, then search for the first ld in PATH. | |
17780 | with_gnu_ld=unknown | |
17781 | ;; | |
17782 | esac | |
17783 | elif test "$with_gnu_ld" = yes; then | |
17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
17785 | $as_echo_n "checking for GNU ld... " >&6; } | |
a667869d | 17786 | else |
5053a6d1 DWT |
17787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
17788 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
a667869d | 17789 | fi |
5053a6d1 DWT |
17790 | if test "${acl_cv_path_LD+set}" = set; then : |
17791 | $as_echo_n "(cached) " >&6 | |
17792 | else | |
17793 | if test -z "$LD"; then | |
17794 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
17795 | for ac_dir in $PATH; do | |
17796 | test -z "$ac_dir" && ac_dir=. | |
17797 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
17798 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
17799 | # Check to see if the program is GNU ld. I'd rather use --version, | |
17800 | # but apparently some GNU ld's only accept -v. | |
17801 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
17802 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
17803 | *GNU* | *'with BFD'*) | |
17804 | test "$with_gnu_ld" != no && break ;; | |
17805 | *) | |
17806 | test "$with_gnu_ld" != yes && break ;; | |
17807 | esac | |
a667869d | 17808 | fi |
5053a6d1 DWT |
17809 | done |
17810 | IFS="$ac_save_ifs" | |
a667869d | 17811 | else |
5053a6d1 | 17812 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
a667869d | 17813 | fi |
a667869d | 17814 | fi |
a667869d | 17815 | |
5053a6d1 DWT |
17816 | LD="$acl_cv_path_LD" |
17817 | if test -n "$LD"; then | |
17818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
17819 | $as_echo "$LD" >&6; } | |
17820 | else | |
17821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
a667869d | 17822 | $as_echo "no" >&6; } |
a667869d | 17823 | fi |
5053a6d1 DWT |
17824 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
17825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
17826 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
17827 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
a667869d DWT |
17828 | $as_echo_n "(cached) " >&6 |
17829 | else | |
5053a6d1 DWT |
17830 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
17831 | case `$LD -v 2>&1 </dev/null` in | |
17832 | *GNU* | *'with BFD'*) | |
17833 | acl_cv_prog_gnu_ld=yes ;; | |
17834 | *) | |
17835 | acl_cv_prog_gnu_ld=no ;; | |
17836 | esac | |
a667869d | 17837 | fi |
5053a6d1 DWT |
17838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
17839 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
17840 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
17841 | ||
17842 | ||
17843 | ||
a667869d | 17844 | |
5053a6d1 DWT |
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
17846 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
17847 | if test "${acl_cv_rpath+set}" = set; then : | |
17848 | $as_echo_n "(cached) " >&6 | |
a667869d | 17849 | else |
5053a6d1 DWT |
17850 | |
17851 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
17852 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
17853 | . ./conftest.sh | |
17854 | rm -f ./conftest.sh | |
17855 | acl_cv_rpath=done | |
17856 | ||
a667869d | 17857 | fi |
5053a6d1 DWT |
17858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
17859 | $as_echo "$acl_cv_rpath" >&6; } | |
17860 | wl="$acl_cv_wl" | |
17861 | acl_libext="$acl_cv_libext" | |
17862 | acl_shlibext="$acl_cv_shlibext" | |
17863 | acl_libname_spec="$acl_cv_libname_spec" | |
17864 | acl_library_names_spec="$acl_cv_library_names_spec" | |
17865 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
17866 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
17867 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
17868 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
17869 | # Check whether --enable-rpath was given. | |
17870 | if test "${enable_rpath+set}" = set; then : | |
17871 | enableval=$enable_rpath; : | |
17872 | else | |
17873 | enable_rpath=yes | |
a667869d | 17874 | fi |
a667869d | 17875 | |
a667869d | 17876 | |
a667869d | 17877 | |
5053a6d1 DWT |
17878 | acl_libdirstem=lib |
17879 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
17880 | if test -n "$searchpath"; then | |
17881 | acl_save_IFS="${IFS= }"; IFS=":" | |
17882 | for searchdir in $searchpath; do | |
17883 | if test -d "$searchdir"; then | |
17884 | case "$searchdir" in | |
17885 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
17886 | *) searchdir=`cd "$searchdir" && pwd` | |
17887 | case "$searchdir" in | |
17888 | */lib64 ) acl_libdirstem=lib64 ;; | |
17889 | esac ;; | |
17890 | esac | |
17891 | fi | |
17892 | done | |
17893 | IFS="$acl_save_IFS" | |
17894 | fi | |
9c60689e | 17895 | |
9c60689e | 17896 | |
9c60689e | 17897 | |
9c60689e | 17898 | |
9c60689e | 17899 | |
9c60689e | 17900 | |
9c60689e | 17901 | |
9c60689e | 17902 | |
9c60689e | 17903 | |
5053a6d1 | 17904 | use_additional=yes |
9c60689e | 17905 | |
5053a6d1 DWT |
17906 | acl_save_prefix="$prefix" |
17907 | prefix="$acl_final_prefix" | |
17908 | acl_save_exec_prefix="$exec_prefix" | |
17909 | exec_prefix="$acl_final_exec_prefix" | |
9c60689e | 17910 | |
5053a6d1 DWT |
17911 | eval additional_includedir=\"$includedir\" |
17912 | eval additional_libdir=\"$libdir\" | |
9c60689e | 17913 | |
5053a6d1 DWT |
17914 | exec_prefix="$acl_save_exec_prefix" |
17915 | prefix="$acl_save_prefix" | |
3fd51f51 DWT |
17916 | |
17917 | ||
5053a6d1 DWT |
17918 | # Check whether --with-libiconv-prefix was given. |
17919 | if test "${with_libiconv_prefix+set}" = set; then : | |
17920 | withval=$with_libiconv_prefix; | |
17921 | if test "X$withval" = "Xno"; then | |
17922 | use_additional=no | |
17923 | else | |
17924 | if test "X$withval" = "X"; then | |
3fd51f51 DWT |
17925 | |
17926 | acl_save_prefix="$prefix" | |
17927 | prefix="$acl_final_prefix" | |
17928 | acl_save_exec_prefix="$exec_prefix" | |
17929 | exec_prefix="$acl_final_exec_prefix" | |
5053a6d1 DWT |
17930 | |
17931 | eval additional_includedir=\"$includedir\" | |
17932 | eval additional_libdir=\"$libdir\" | |
17933 | ||
3fd51f51 DWT |
17934 | exec_prefix="$acl_save_exec_prefix" |
17935 | prefix="$acl_save_prefix" | |
17936 | ||
5053a6d1 DWT |
17937 | else |
17938 | additional_includedir="$withval/include" | |
17939 | additional_libdir="$withval/$acl_libdirstem" | |
3fd51f51 | 17940 | fi |
3fd51f51 | 17941 | fi |
3fd51f51 | 17942 | |
5053a6d1 | 17943 | fi |
3fd51f51 | 17944 | |
5053a6d1 DWT |
17945 | LIBICONV= |
17946 | LTLIBICONV= | |
17947 | INCICONV= | |
17948 | LIBICONV_PREFIX= | |
17949 | rpathdirs= | |
17950 | ltrpathdirs= | |
17951 | names_already_handled= | |
17952 | names_next_round='iconv ' | |
17953 | while test -n "$names_next_round"; do | |
17954 | names_this_round="$names_next_round" | |
17955 | names_next_round= | |
17956 | for name in $names_this_round; do | |
17957 | already_handled= | |
17958 | for n in $names_already_handled; do | |
17959 | if test "$n" = "$name"; then | |
17960 | already_handled=yes | |
17961 | break | |
17962 | fi | |
17963 | done | |
17964 | if test -z "$already_handled"; then | |
17965 | names_already_handled="$names_already_handled $name" | |
17966 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
17967 | eval value=\"\$HAVE_LIB$uppername\" | |
17968 | if test -n "$value"; then | |
17969 | if test "$value" = yes; then | |
17970 | eval value=\"\$LIB$uppername\" | |
17971 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
17972 | eval value=\"\$LTLIB$uppername\" | |
17973 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
17974 | else | |
17975 | : | |
17976 | fi | |
17977 | else | |
17978 | found_dir= | |
17979 | found_la= | |
17980 | found_so= | |
17981 | found_a= | |
17982 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
17983 | if test -n "$acl_shlibext"; then | |
17984 | shrext=".$acl_shlibext" # typically: shrext=.so | |
17985 | else | |
17986 | shrext= | |
17987 | fi | |
17988 | if test $use_additional = yes; then | |
17989 | dir="$additional_libdir" | |
17990 | if test -n "$acl_shlibext"; then | |
17991 | if test -f "$dir/$libname$shrext"; then | |
17992 | found_dir="$dir" | |
17993 | found_so="$dir/$libname$shrext" | |
17994 | else | |
17995 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
17996 | ver=`(cd "$dir" && \ | |
17997 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
17998 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
17999 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18000 | | sed 1q ) 2>/dev/null` | |
18001 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18002 | found_dir="$dir" | |
18003 | found_so="$dir/$libname$shrext.$ver" | |
18004 | fi | |
18005 | else | |
18006 | eval library_names=\"$acl_library_names_spec\" | |
18007 | for f in $library_names; do | |
18008 | if test -f "$dir/$f"; then | |
18009 | found_dir="$dir" | |
18010 | found_so="$dir/$f" | |
18011 | break | |
18012 | fi | |
18013 | done | |
18014 | fi | |
18015 | fi | |
18016 | fi | |
18017 | if test "X$found_dir" = "X"; then | |
18018 | if test -f "$dir/$libname.$acl_libext"; then | |
18019 | found_dir="$dir" | |
18020 | found_a="$dir/$libname.$acl_libext" | |
18021 | fi | |
18022 | fi | |
18023 | if test "X$found_dir" != "X"; then | |
18024 | if test -f "$dir/$libname.la"; then | |
18025 | found_la="$dir/$libname.la" | |
18026 | fi | |
18027 | fi | |
18028 | fi | |
18029 | if test "X$found_dir" = "X"; then | |
18030 | for x in $LDFLAGS $LTLIBICONV; do | |
3fd51f51 DWT |
18031 | |
18032 | acl_save_prefix="$prefix" | |
18033 | prefix="$acl_final_prefix" | |
18034 | acl_save_exec_prefix="$exec_prefix" | |
18035 | exec_prefix="$acl_final_exec_prefix" | |
18036 | eval x=\"$x\" | |
18037 | exec_prefix="$acl_save_exec_prefix" | |
18038 | prefix="$acl_save_prefix" | |
18039 | ||
5053a6d1 DWT |
18040 | case "$x" in |
18041 | -L*) | |
18042 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
18043 | if test -n "$acl_shlibext"; then | |
18044 | if test -f "$dir/$libname$shrext"; then | |
18045 | found_dir="$dir" | |
18046 | found_so="$dir/$libname$shrext" | |
18047 | else | |
18048 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18049 | ver=`(cd "$dir" && \ | |
18050 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18051 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18052 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18053 | | sed 1q ) 2>/dev/null` | |
18054 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18055 | found_dir="$dir" | |
18056 | found_so="$dir/$libname$shrext.$ver" | |
18057 | fi | |
18058 | else | |
18059 | eval library_names=\"$acl_library_names_spec\" | |
18060 | for f in $library_names; do | |
18061 | if test -f "$dir/$f"; then | |
18062 | found_dir="$dir" | |
18063 | found_so="$dir/$f" | |
18064 | break | |
18065 | fi | |
18066 | done | |
18067 | fi | |
18068 | fi | |
18069 | fi | |
18070 | if test "X$found_dir" = "X"; then | |
18071 | if test -f "$dir/$libname.$acl_libext"; then | |
18072 | found_dir="$dir" | |
18073 | found_a="$dir/$libname.$acl_libext" | |
18074 | fi | |
18075 | fi | |
18076 | if test "X$found_dir" != "X"; then | |
18077 | if test -f "$dir/$libname.la"; then | |
18078 | found_la="$dir/$libname.la" | |
18079 | fi | |
18080 | fi | |
18081 | ;; | |
18082 | esac | |
18083 | if test "X$found_dir" != "X"; then | |
18084 | break | |
18085 | fi | |
18086 | done | |
18087 | fi | |
18088 | if test "X$found_dir" != "X"; then | |
18089 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
18090 | if test "X$found_so" != "X"; then | |
18091 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
18092 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18093 | else | |
18094 | haveit= | |
18095 | for x in $ltrpathdirs; do | |
18096 | if test "X$x" = "X$found_dir"; then | |
18097 | haveit=yes | |
18098 | break | |
18099 | fi | |
18100 | done | |
18101 | if test -z "$haveit"; then | |
18102 | ltrpathdirs="$ltrpathdirs $found_dir" | |
18103 | fi | |
18104 | if test "$acl_hardcode_direct" = yes; then | |
18105 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18106 | else | |
18107 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
18108 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18109 | haveit= | |
18110 | for x in $rpathdirs; do | |
18111 | if test "X$x" = "X$found_dir"; then | |
18112 | haveit=yes | |
18113 | break | |
18114 | fi | |
18115 | done | |
18116 | if test -z "$haveit"; then | |
18117 | rpathdirs="$rpathdirs $found_dir" | |
18118 | fi | |
18119 | else | |
18120 | haveit= | |
18121 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 DWT |
18122 | |
18123 | acl_save_prefix="$prefix" | |
18124 | prefix="$acl_final_prefix" | |
18125 | acl_save_exec_prefix="$exec_prefix" | |
18126 | exec_prefix="$acl_final_exec_prefix" | |
18127 | eval x=\"$x\" | |
18128 | exec_prefix="$acl_save_exec_prefix" | |
18129 | prefix="$acl_save_prefix" | |
18130 | ||
5053a6d1 DWT |
18131 | if test "X$x" = "X-L$found_dir"; then |
18132 | haveit=yes | |
18133 | break | |
18134 | fi | |
18135 | done | |
18136 | if test -z "$haveit"; then | |
18137 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
18138 | fi | |
18139 | if test "$acl_hardcode_minus_L" != no; then | |
18140 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18141 | else | |
18142 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18143 | fi | |
18144 | fi | |
18145 | fi | |
18146 | fi | |
18147 | else | |
18148 | if test "X$found_a" != "X"; then | |
18149 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
18150 | else | |
18151 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
18152 | fi | |
18153 | fi | |
18154 | additional_includedir= | |
18155 | case "$found_dir" in | |
18156 | */$acl_libdirstem | */$acl_libdirstem/) | |
18157 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
18158 | LIBICONV_PREFIX="$basedir" | |
18159 | additional_includedir="$basedir/include" | |
18160 | ;; | |
18161 | esac | |
18162 | if test "X$additional_includedir" != "X"; then | |
18163 | if test "X$additional_includedir" != "X/usr/include"; then | |
18164 | haveit= | |
18165 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
18166 | if test -n "$GCC"; then | |
18167 | case $host_os in | |
18168 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18169 | esac | |
18170 | fi | |
18171 | fi | |
18172 | if test -z "$haveit"; then | |
18173 | for x in $CPPFLAGS $INCICONV; do | |
c823f118 DWT |
18174 | |
18175 | acl_save_prefix="$prefix" | |
18176 | prefix="$acl_final_prefix" | |
18177 | acl_save_exec_prefix="$exec_prefix" | |
18178 | exec_prefix="$acl_final_exec_prefix" | |
18179 | eval x=\"$x\" | |
18180 | exec_prefix="$acl_save_exec_prefix" | |
18181 | prefix="$acl_save_prefix" | |
18182 | ||
5053a6d1 DWT |
18183 | if test "X$x" = "X-I$additional_includedir"; then |
18184 | haveit=yes | |
18185 | break | |
18186 | fi | |
18187 | done | |
18188 | if test -z "$haveit"; then | |
18189 | if test -d "$additional_includedir"; then | |
18190 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
18191 | fi | |
18192 | fi | |
18193 | fi | |
18194 | fi | |
18195 | fi | |
18196 | if test -n "$found_la"; then | |
18197 | save_libdir="$libdir" | |
18198 | case "$found_la" in | |
18199 | */* | *\\*) . "$found_la" ;; | |
18200 | *) . "./$found_la" ;; | |
18201 | esac | |
18202 | libdir="$save_libdir" | |
18203 | for dep in $dependency_libs; do | |
18204 | case "$dep" in | |
18205 | -L*) | |
18206 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
18207 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
18208 | haveit= | |
18209 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
18210 | if test -n "$GCC"; then | |
18211 | case $host_os in | |
18212 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18213 | esac | |
18214 | fi | |
18215 | fi | |
18216 | if test -z "$haveit"; then | |
18217 | haveit= | |
18218 | for x in $LDFLAGS $LIBICONV; do | |
c823f118 | 18219 | |
5053a6d1 DWT |
18220 | acl_save_prefix="$prefix" |
18221 | prefix="$acl_final_prefix" | |
18222 | acl_save_exec_prefix="$exec_prefix" | |
18223 | exec_prefix="$acl_final_exec_prefix" | |
18224 | eval x=\"$x\" | |
18225 | exec_prefix="$acl_save_exec_prefix" | |
18226 | prefix="$acl_save_prefix" | |
c823f118 | 18227 | |
5053a6d1 DWT |
18228 | if test "X$x" = "X-L$additional_libdir"; then |
18229 | haveit=yes | |
18230 | break | |
18231 | fi | |
18232 | done | |
18233 | if test -z "$haveit"; then | |
18234 | if test -d "$additional_libdir"; then | |
18235 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
18236 | fi | |
18237 | fi | |
18238 | haveit= | |
18239 | for x in $LDFLAGS $LTLIBICONV; do | |
c823f118 DWT |
18240 | |
18241 | acl_save_prefix="$prefix" | |
18242 | prefix="$acl_final_prefix" | |
18243 | acl_save_exec_prefix="$exec_prefix" | |
18244 | exec_prefix="$acl_final_exec_prefix" | |
18245 | eval x=\"$x\" | |
18246 | exec_prefix="$acl_save_exec_prefix" | |
18247 | prefix="$acl_save_prefix" | |
18248 | ||
5053a6d1 DWT |
18249 | if test "X$x" = "X-L$additional_libdir"; then |
18250 | haveit=yes | |
18251 | break | |
18252 | fi | |
18253 | done | |
18254 | if test -z "$haveit"; then | |
18255 | if test -d "$additional_libdir"; then | |
18256 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
18257 | fi | |
18258 | fi | |
18259 | fi | |
18260 | fi | |
18261 | ;; | |
18262 | -R*) | |
18263 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
18264 | if test "$enable_rpath" != no; then | |
18265 | haveit= | |
18266 | for x in $rpathdirs; do | |
18267 | if test "X$x" = "X$dir"; then | |
18268 | haveit=yes | |
18269 | break | |
18270 | fi | |
18271 | done | |
18272 | if test -z "$haveit"; then | |
18273 | rpathdirs="$rpathdirs $dir" | |
18274 | fi | |
18275 | haveit= | |
18276 | for x in $ltrpathdirs; do | |
18277 | if test "X$x" = "X$dir"; then | |
18278 | haveit=yes | |
18279 | break | |
18280 | fi | |
18281 | done | |
18282 | if test -z "$haveit"; then | |
18283 | ltrpathdirs="$ltrpathdirs $dir" | |
18284 | fi | |
18285 | fi | |
18286 | ;; | |
18287 | -l*) | |
18288 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
18289 | ;; | |
18290 | *.la) | |
18291 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
18292 | ;; | |
18293 | *) | |
18294 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
18295 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
18296 | ;; | |
18297 | esac | |
18298 | done | |
18299 | fi | |
18300 | else | |
18301 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18302 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
18303 | fi | |
18304 | fi | |
c823f118 DWT |
18305 | fi |
18306 | done | |
c823f118 | 18307 | done |
5053a6d1 DWT |
18308 | if test "X$rpathdirs" != "X"; then |
18309 | if test -n "$acl_hardcode_libdir_separator"; then | |
18310 | alldirs= | |
18311 | for found_dir in $rpathdirs; do | |
18312 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
18313 | done | |
18314 | acl_save_libdir="$libdir" | |
18315 | libdir="$alldirs" | |
18316 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18317 | libdir="$acl_save_libdir" | |
18318 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18319 | else | |
18320 | for found_dir in $rpathdirs; do | |
18321 | acl_save_libdir="$libdir" | |
18322 | libdir="$found_dir" | |
18323 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
18324 | libdir="$acl_save_libdir" | |
18325 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
18326 | done | |
18327 | fi | |
18328 | fi | |
18329 | if test "X$ltrpathdirs" != "X"; then | |
18330 | for found_dir in $ltrpathdirs; do | |
18331 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
18332 | done | |
47aaa820 | 18333 | fi |
47aaa820 DWT |
18334 | |
18335 | ||
47aaa820 | 18336 | |
47aaa820 DWT |
18337 | |
18338 | ||
18339 | ||
5053a6d1 DWT |
18340 | |
18341 | am_save_CPPFLAGS="$CPPFLAGS" | |
18342 | ||
18343 | for element in $INCICONV; do | |
47aaa820 | 18344 | haveit= |
5053a6d1 | 18345 | for x in $CPPFLAGS; do |
47aaa820 DWT |
18346 | |
18347 | acl_save_prefix="$prefix" | |
18348 | prefix="$acl_final_prefix" | |
18349 | acl_save_exec_prefix="$exec_prefix" | |
18350 | exec_prefix="$acl_final_exec_prefix" | |
18351 | eval x=\"$x\" | |
18352 | exec_prefix="$acl_save_exec_prefix" | |
18353 | prefix="$acl_save_prefix" | |
9c60689e | 18354 | |
47aaa820 DWT |
18355 | if test "X$x" = "X$element"; then |
18356 | haveit=yes | |
18357 | break | |
18358 | fi | |
18359 | done | |
18360 | if test -z "$haveit"; then | |
5053a6d1 | 18361 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
47aaa820 DWT |
18362 | fi |
18363 | done | |
18364 | ||
18365 | ||
5053a6d1 DWT |
18366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
18367 | $as_echo_n "checking for iconv... " >&6; } | |
18368 | if test "${am_cv_func_iconv+set}" = set; then : | |
18369 | $as_echo_n "(cached) " >&6 | |
18370 | else | |
47aaa820 | 18371 | |
5053a6d1 DWT |
18372 | am_cv_func_iconv="no, consider installing GNU libiconv" |
18373 | am_cv_lib_iconv=no | |
18374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18375 | /* end confdefs.h. */ | |
18376 | #include <stdlib.h> | |
18377 | #include <iconv.h> | |
18378 | int | |
18379 | main () | |
18380 | { | |
18381 | iconv_t cd = iconv_open("",""); | |
18382 | iconv(cd,NULL,NULL,NULL,NULL); | |
18383 | iconv_close(cd); | |
18384 | ; | |
18385 | return 0; | |
18386 | } | |
18387 | _ACEOF | |
18388 | if ac_fn_c_try_link "$LINENO"; then : | |
18389 | am_cv_func_iconv=yes | |
18390 | fi | |
18391 | rm -f core conftest.err conftest.$ac_objext \ | |
18392 | conftest$ac_exeext conftest.$ac_ext | |
18393 | if test "$am_cv_func_iconv" != yes; then | |
18394 | am_save_LIBS="$LIBS" | |
18395 | LIBS="$LIBS $LIBICONV" | |
18396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18397 | /* end confdefs.h. */ | |
18398 | #include <stdlib.h> | |
18399 | #include <iconv.h> | |
18400 | int | |
18401 | main () | |
18402 | { | |
18403 | iconv_t cd = iconv_open("",""); | |
18404 | iconv(cd,NULL,NULL,NULL,NULL); | |
18405 | iconv_close(cd); | |
18406 | ; | |
18407 | return 0; | |
18408 | } | |
18409 | _ACEOF | |
18410 | if ac_fn_c_try_link "$LINENO"; then : | |
18411 | am_cv_lib_iconv=yes | |
18412 | am_cv_func_iconv=yes | |
18413 | fi | |
18414 | rm -f core conftest.err conftest.$ac_objext \ | |
18415 | conftest$ac_exeext conftest.$ac_ext | |
18416 | LIBS="$am_save_LIBS" | |
47aaa820 | 18417 | fi |
47aaa820 | 18418 | |
5053a6d1 DWT |
18419 | fi |
18420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
18421 | $as_echo "$am_cv_func_iconv" >&6; } | |
18422 | if test "$am_cv_func_iconv" = yes; then | |
18423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
18424 | $as_echo_n "checking for working iconv... " >&6; } | |
18425 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
18426 | $as_echo_n "(cached) " >&6 | |
18427 | else | |
47aaa820 | 18428 | |
5053a6d1 DWT |
18429 | am_save_LIBS="$LIBS" |
18430 | if test $am_cv_lib_iconv = yes; then | |
18431 | LIBS="$LIBS $LIBICONV" | |
18432 | fi | |
18433 | if test "$cross_compiling" = yes; then : | |
18434 | case "$host_os" in | |
18435 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
18436 | *) am_cv_func_iconv_works="guessing yes" ;; | |
18437 | esac | |
c823f118 | 18438 | else |
5053a6d1 DWT |
18439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18440 | /* end confdefs.h. */ | |
c823f118 | 18441 | |
5053a6d1 DWT |
18442 | #include <iconv.h> |
18443 | #include <string.h> | |
18444 | int main () | |
18445 | { | |
18446 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
18447 | returns. */ | |
18448 | { | |
18449 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
18450 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
18451 | { | |
18452 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
18453 | char buf[10]; | |
18454 | const char *inptr = input; | |
18455 | size_t inbytesleft = strlen (input); | |
18456 | char *outptr = buf; | |
18457 | size_t outbytesleft = sizeof (buf); | |
18458 | size_t res = iconv (cd_utf8_to_88591, | |
18459 | (char **) &inptr, &inbytesleft, | |
18460 | &outptr, &outbytesleft); | |
18461 | if (res == 0) | |
18462 | return 1; | |
18463 | } | |
18464 | } | |
18465 | #if 0 /* This bug could be worked around by the caller. */ | |
18466 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
18467 | { | |
18468 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
18469 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
18470 | { | |
18471 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
18472 | char buf[50]; | |
18473 | const char *inptr = input; | |
18474 | size_t inbytesleft = strlen (input); | |
18475 | char *outptr = buf; | |
18476 | size_t outbytesleft = sizeof (buf); | |
18477 | size_t res = iconv (cd_88591_to_utf8, | |
18478 | (char **) &inptr, &inbytesleft, | |
18479 | &outptr, &outbytesleft); | |
18480 | if ((int)res > 0) | |
18481 | return 1; | |
18482 | } | |
18483 | } | |
18484 | #endif | |
18485 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
18486 | provided. */ | |
18487 | if (/* Try standardized names. */ | |
18488 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
18489 | /* Try IRIX, OSF/1 names. */ | |
18490 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
18491 | /* Try AIX names. */ | |
18492 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
18493 | /* Try HP-UX names. */ | |
18494 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
18495 | return 1; | |
18496 | return 0; | |
18497 | } | |
18498 | _ACEOF | |
18499 | if ac_fn_c_try_run "$LINENO"; then : | |
18500 | am_cv_func_iconv_works=yes | |
18501 | else | |
18502 | am_cv_func_iconv_works=no | |
18503 | fi | |
18504 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
18505 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c823f118 DWT |
18506 | fi |
18507 | ||
5053a6d1 DWT |
18508 | LIBS="$am_save_LIBS" |
18509 | ||
47aaa820 | 18510 | fi |
5053a6d1 DWT |
18511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
18512 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
18513 | case "$am_cv_func_iconv_works" in | |
18514 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
18515 | *) am_func_iconv=yes ;; | |
18516 | esac | |
18517 | else | |
18518 | am_func_iconv=no am_cv_lib_iconv=no | |
18519 | fi | |
18520 | if test "$am_func_iconv" = yes; then | |
18521 | ||
18522 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
18523 | ||
18524 | fi | |
18525 | if test "$am_cv_lib_iconv" = yes; then | |
18526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
18527 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
18528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
18529 | $as_echo "$LIBICONV" >&6; } | |
18530 | else | |
18531 | CPPFLAGS="$am_save_CPPFLAGS" | |
18532 | LIBICONV= | |
18533 | LTLIBICONV= | |
18534 | fi | |
18535 | ||
18536 | ||
18537 | ||
18538 | if test "$am_cv_func_iconv" = yes; then | |
18539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
18540 | $as_echo_n "checking for iconv declaration... " >&6; } | |
18541 | if test "${am_cv_proto_iconv+set}" = set; then : | |
18542 | $as_echo_n "(cached) " >&6 | |
18543 | else | |
18544 | ||
18545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18546 | /* end confdefs.h. */ | |
18547 | ||
18548 | #include <stdlib.h> | |
18549 | #include <iconv.h> | |
18550 | extern | |
18551 | #ifdef __cplusplus | |
18552 | "C" | |
18553 | #endif | |
18554 | #if defined(__STDC__) || defined(__cplusplus) | |
18555 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
18556 | #else | |
18557 | size_t iconv(); | |
18558 | #endif | |
18559 | ||
18560 | int | |
18561 | main () | |
18562 | { | |
47aaa820 | 18563 | |
5053a6d1 DWT |
18564 | ; |
18565 | return 0; | |
18566 | } | |
18567 | _ACEOF | |
18568 | if ac_fn_c_try_compile "$LINENO"; then : | |
18569 | am_cv_proto_iconv_arg1="" | |
18570 | else | |
18571 | am_cv_proto_iconv_arg1="const" | |
47aaa820 | 18572 | fi |
5053a6d1 DWT |
18573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18574 | 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);" | |
18575 | fi | |
18576 | ||
18577 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
18578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
18579 | }$am_cv_proto_iconv" >&5 | |
18580 | $as_echo "${ac_t:- | |
18581 | }$am_cv_proto_iconv" >&6; } | |
18582 | ||
18583 | cat >>confdefs.h <<_ACEOF | |
18584 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
18585 | _ACEOF | |
18586 | ||
18587 | fi | |
18588 | ||
5053a6d1 DWT |
18589 | case $am_cv_func_iconv in #( |
18590 | yes) : | |
18591 | ;; #( | |
a667869d | 18592 | *) : |
058f1bc8 DWT |
18593 | |
18594 | for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do | |
18595 | case $cy_iconv_prefix_arg in #( | |
18596 | -I*) : | |
18597 | ||
18598 | ||
18599 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do | |
18600 | haveit= | |
18601 | for x in $cy_iconv_prefixes; do | |
18602 | ||
18603 | acl_save_prefix="$prefix" | |
18604 | prefix="$acl_final_prefix" | |
18605 | acl_save_exec_prefix="$exec_prefix" | |
18606 | exec_prefix="$acl_final_exec_prefix" | |
18607 | eval x=\"$x\" | |
18608 | exec_prefix="$acl_save_exec_prefix" | |
18609 | prefix="$acl_save_prefix" | |
18610 | ||
18611 | if test "X$x" = "X$element"; then | |
18612 | haveit=yes | |
18613 | break | |
18614 | fi | |
18615 | done | |
18616 | if test -z "$haveit"; then | |
18617 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18618 | fi | |
18619 | done | |
18620 | ||
18621 | ;; #( | |
18622 | -L*) : | |
18623 | ||
18624 | ||
18625 | for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do | |
18626 | haveit= | |
18627 | for x in $cy_iconv_prefixes; do | |
18628 | ||
18629 | acl_save_prefix="$prefix" | |
18630 | prefix="$acl_final_prefix" | |
18631 | acl_save_exec_prefix="$exec_prefix" | |
18632 | exec_prefix="$acl_final_exec_prefix" | |
18633 | eval x=\"$x\" | |
18634 | exec_prefix="$acl_save_exec_prefix" | |
18635 | prefix="$acl_save_prefix" | |
18636 | ||
18637 | if test "X$x" = "X$element"; then | |
18638 | haveit=yes | |
18639 | break | |
18640 | fi | |
18641 | done | |
18642 | if test -z "$haveit"; then | |
18643 | cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element" | |
18644 | fi | |
18645 | done | |
18646 | ||
18647 | ;; #( | |
18648 | *) : | |
18649 | ;; | |
a667869d | 18650 | esac |
058f1bc8 DWT |
18651 | done |
18652 | for with_libiconv_prefix in $cy_iconv_prefixes; do | |
18653 | { am_cv_func_iconv=; unset am_cv_func_iconv;} | |
18654 | ||
18655 | ||
18656 | ||
18657 | ||
18658 | ||
18659 | ||
18660 | ||
18661 | ||
18662 | use_additional=yes | |
18663 | ||
18664 | acl_save_prefix="$prefix" | |
18665 | prefix="$acl_final_prefix" | |
18666 | acl_save_exec_prefix="$exec_prefix" | |
18667 | exec_prefix="$acl_final_exec_prefix" | |
18668 | ||
18669 | eval additional_includedir=\"$includedir\" | |
18670 | eval additional_libdir=\"$libdir\" | |
18671 | ||
18672 | exec_prefix="$acl_save_exec_prefix" | |
18673 | prefix="$acl_save_prefix" | |
18674 | ||
18675 | ||
18676 | # Check whether --with-libiconv-prefix was given. | |
18677 | if test "${with_libiconv_prefix+set}" = set; then : | |
18678 | withval=$with_libiconv_prefix; | |
18679 | if test "X$withval" = "Xno"; then | |
18680 | use_additional=no | |
18681 | else | |
18682 | if test "X$withval" = "X"; then | |
18683 | ||
18684 | acl_save_prefix="$prefix" | |
18685 | prefix="$acl_final_prefix" | |
18686 | acl_save_exec_prefix="$exec_prefix" | |
18687 | exec_prefix="$acl_final_exec_prefix" | |
18688 | ||
18689 | eval additional_includedir=\"$includedir\" | |
18690 | eval additional_libdir=\"$libdir\" | |
18691 | ||
18692 | exec_prefix="$acl_save_exec_prefix" | |
18693 | prefix="$acl_save_prefix" | |
18694 | ||
18695 | else | |
18696 | additional_includedir="$withval/include" | |
18697 | additional_libdir="$withval/$acl_libdirstem" | |
18698 | fi | |
18699 | fi | |
18700 | ||
18701 | fi | |
18702 | ||
18703 | LIBICONV= | |
18704 | LTLIBICONV= | |
18705 | INCICONV= | |
18706 | LIBICONV_PREFIX= | |
18707 | rpathdirs= | |
18708 | ltrpathdirs= | |
18709 | names_already_handled= | |
18710 | names_next_round='iconv ' | |
18711 | while test -n "$names_next_round"; do | |
18712 | names_this_round="$names_next_round" | |
18713 | names_next_round= | |
18714 | for name in $names_this_round; do | |
18715 | already_handled= | |
18716 | for n in $names_already_handled; do | |
18717 | if test "$n" = "$name"; then | |
18718 | already_handled=yes | |
18719 | break | |
18720 | fi | |
18721 | done | |
18722 | if test -z "$already_handled"; then | |
18723 | names_already_handled="$names_already_handled $name" | |
18724 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
18725 | eval value=\"\$HAVE_LIB$uppername\" | |
18726 | if test -n "$value"; then | |
18727 | if test "$value" = yes; then | |
18728 | eval value=\"\$LIB$uppername\" | |
18729 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
18730 | eval value=\"\$LTLIB$uppername\" | |
18731 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
18732 | else | |
18733 | : | |
18734 | fi | |
18735 | else | |
18736 | found_dir= | |
18737 | found_la= | |
18738 | found_so= | |
18739 | found_a= | |
18740 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
18741 | if test -n "$acl_shlibext"; then | |
18742 | shrext=".$acl_shlibext" # typically: shrext=.so | |
18743 | else | |
18744 | shrext= | |
18745 | fi | |
18746 | if test $use_additional = yes; then | |
18747 | dir="$additional_libdir" | |
18748 | if test -n "$acl_shlibext"; then | |
18749 | if test -f "$dir/$libname$shrext"; then | |
18750 | found_dir="$dir" | |
18751 | found_so="$dir/$libname$shrext" | |
18752 | else | |
18753 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18754 | ver=`(cd "$dir" && \ | |
18755 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18756 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18757 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18758 | | sed 1q ) 2>/dev/null` | |
18759 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18760 | found_dir="$dir" | |
18761 | found_so="$dir/$libname$shrext.$ver" | |
18762 | fi | |
18763 | else | |
18764 | eval library_names=\"$acl_library_names_spec\" | |
18765 | for f in $library_names; do | |
18766 | if test -f "$dir/$f"; then | |
18767 | found_dir="$dir" | |
18768 | found_so="$dir/$f" | |
18769 | break | |
18770 | fi | |
18771 | done | |
18772 | fi | |
18773 | fi | |
18774 | fi | |
18775 | if test "X$found_dir" = "X"; then | |
18776 | if test -f "$dir/$libname.$acl_libext"; then | |
18777 | found_dir="$dir" | |
18778 | found_a="$dir/$libname.$acl_libext" | |
18779 | fi | |
18780 | fi | |
18781 | if test "X$found_dir" != "X"; then | |
18782 | if test -f "$dir/$libname.la"; then | |
18783 | found_la="$dir/$libname.la" | |
18784 | fi | |
18785 | fi | |
18786 | fi | |
18787 | if test "X$found_dir" = "X"; then | |
18788 | for x in $LDFLAGS $LTLIBICONV; do | |
18789 | ||
18790 | acl_save_prefix="$prefix" | |
18791 | prefix="$acl_final_prefix" | |
18792 | acl_save_exec_prefix="$exec_prefix" | |
18793 | exec_prefix="$acl_final_exec_prefix" | |
18794 | eval x=\"$x\" | |
18795 | exec_prefix="$acl_save_exec_prefix" | |
18796 | prefix="$acl_save_prefix" | |
18797 | ||
18798 | case "$x" in | |
18799 | -L*) | |
18800 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
18801 | if test -n "$acl_shlibext"; then | |
18802 | if test -f "$dir/$libname$shrext"; then | |
18803 | found_dir="$dir" | |
18804 | found_so="$dir/$libname$shrext" | |
18805 | else | |
18806 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
18807 | ver=`(cd "$dir" && \ | |
18808 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
18809 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
18810 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
18811 | | sed 1q ) 2>/dev/null` | |
18812 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
18813 | found_dir="$dir" | |
18814 | found_so="$dir/$libname$shrext.$ver" | |
18815 | fi | |
18816 | else | |
18817 | eval library_names=\"$acl_library_names_spec\" | |
18818 | for f in $library_names; do | |
18819 | if test -f "$dir/$f"; then | |
18820 | found_dir="$dir" | |
18821 | found_so="$dir/$f" | |
18822 | break | |
18823 | fi | |
18824 | done | |
18825 | fi | |
18826 | fi | |
18827 | fi | |
18828 | if test "X$found_dir" = "X"; then | |
18829 | if test -f "$dir/$libname.$acl_libext"; then | |
18830 | found_dir="$dir" | |
18831 | found_a="$dir/$libname.$acl_libext" | |
18832 | fi | |
18833 | fi | |
18834 | if test "X$found_dir" != "X"; then | |
18835 | if test -f "$dir/$libname.la"; then | |
18836 | found_la="$dir/$libname.la" | |
18837 | fi | |
18838 | fi | |
18839 | ;; | |
18840 | esac | |
18841 | if test "X$found_dir" != "X"; then | |
18842 | break | |
18843 | fi | |
18844 | done | |
18845 | fi | |
18846 | if test "X$found_dir" != "X"; then | |
18847 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
18848 | if test "X$found_so" != "X"; then | |
18849 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
18850 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18851 | else | |
18852 | haveit= | |
18853 | for x in $ltrpathdirs; do | |
18854 | if test "X$x" = "X$found_dir"; then | |
18855 | haveit=yes | |
18856 | break | |
18857 | fi | |
18858 | done | |
18859 | if test -z "$haveit"; then | |
18860 | ltrpathdirs="$ltrpathdirs $found_dir" | |
18861 | fi | |
18862 | if test "$acl_hardcode_direct" = yes; then | |
18863 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18864 | else | |
18865 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
18866 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18867 | haveit= | |
18868 | for x in $rpathdirs; do | |
18869 | if test "X$x" = "X$found_dir"; then | |
18870 | haveit=yes | |
18871 | break | |
18872 | fi | |
18873 | done | |
18874 | if test -z "$haveit"; then | |
18875 | rpathdirs="$rpathdirs $found_dir" | |
18876 | fi | |
18877 | else | |
18878 | haveit= | |
18879 | for x in $LDFLAGS $LIBICONV; do | |
18880 | ||
18881 | acl_save_prefix="$prefix" | |
18882 | prefix="$acl_final_prefix" | |
18883 | acl_save_exec_prefix="$exec_prefix" | |
18884 | exec_prefix="$acl_final_exec_prefix" | |
18885 | eval x=\"$x\" | |
18886 | exec_prefix="$acl_save_exec_prefix" | |
18887 | prefix="$acl_save_prefix" | |
18888 | ||
18889 | if test "X$x" = "X-L$found_dir"; then | |
18890 | haveit=yes | |
18891 | break | |
18892 | fi | |
18893 | done | |
18894 | if test -z "$haveit"; then | |
18895 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
18896 | fi | |
18897 | if test "$acl_hardcode_minus_L" != no; then | |
18898 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
18899 | else | |
18900 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
18901 | fi | |
18902 | fi | |
18903 | fi | |
18904 | fi | |
18905 | else | |
18906 | if test "X$found_a" != "X"; then | |
18907 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
18908 | else | |
18909 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
18910 | fi | |
18911 | fi | |
18912 | additional_includedir= | |
18913 | case "$found_dir" in | |
18914 | */$acl_libdirstem | */$acl_libdirstem/) | |
18915 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
18916 | LIBICONV_PREFIX="$basedir" | |
18917 | additional_includedir="$basedir/include" | |
18918 | ;; | |
18919 | esac | |
18920 | if test "X$additional_includedir" != "X"; then | |
18921 | if test "X$additional_includedir" != "X/usr/include"; then | |
18922 | haveit= | |
18923 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
18924 | if test -n "$GCC"; then | |
18925 | case $host_os in | |
18926 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18927 | esac | |
18928 | fi | |
18929 | fi | |
18930 | if test -z "$haveit"; then | |
18931 | for x in $CPPFLAGS $INCICONV; do | |
18932 | ||
18933 | acl_save_prefix="$prefix" | |
18934 | prefix="$acl_final_prefix" | |
18935 | acl_save_exec_prefix="$exec_prefix" | |
18936 | exec_prefix="$acl_final_exec_prefix" | |
18937 | eval x=\"$x\" | |
18938 | exec_prefix="$acl_save_exec_prefix" | |
18939 | prefix="$acl_save_prefix" | |
18940 | ||
18941 | if test "X$x" = "X-I$additional_includedir"; then | |
18942 | haveit=yes | |
18943 | break | |
18944 | fi | |
18945 | done | |
18946 | if test -z "$haveit"; then | |
18947 | if test -d "$additional_includedir"; then | |
18948 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
18949 | fi | |
18950 | fi | |
18951 | fi | |
18952 | fi | |
18953 | fi | |
18954 | if test -n "$found_la"; then | |
18955 | save_libdir="$libdir" | |
18956 | case "$found_la" in | |
18957 | */* | *\\*) . "$found_la" ;; | |
18958 | *) . "./$found_la" ;; | |
18959 | esac | |
18960 | libdir="$save_libdir" | |
18961 | for dep in $dependency_libs; do | |
18962 | case "$dep" in | |
18963 | -L*) | |
18964 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
18965 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
18966 | haveit= | |
18967 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
18968 | if test -n "$GCC"; then | |
18969 | case $host_os in | |
18970 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
18971 | esac | |
18972 | fi | |
18973 | fi | |
18974 | if test -z "$haveit"; then | |
18975 | haveit= | |
18976 | for x in $LDFLAGS $LIBICONV; do | |
18977 | ||
18978 | acl_save_prefix="$prefix" | |
18979 | prefix="$acl_final_prefix" | |
18980 | acl_save_exec_prefix="$exec_prefix" | |
18981 | exec_prefix="$acl_final_exec_prefix" | |
18982 | eval x=\"$x\" | |
18983 | exec_prefix="$acl_save_exec_prefix" | |
18984 | prefix="$acl_save_prefix" | |
18985 | ||
18986 | if test "X$x" = "X-L$additional_libdir"; then | |
18987 | haveit=yes | |
18988 | break | |
18989 | fi | |
18990 | done | |
18991 | if test -z "$haveit"; then | |
18992 | if test -d "$additional_libdir"; then | |
18993 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
18994 | fi | |
18995 | fi | |
18996 | haveit= | |
18997 | for x in $LDFLAGS $LTLIBICONV; do | |
18998 | ||
18999 | acl_save_prefix="$prefix" | |
19000 | prefix="$acl_final_prefix" | |
19001 | acl_save_exec_prefix="$exec_prefix" | |
19002 | exec_prefix="$acl_final_exec_prefix" | |
19003 | eval x=\"$x\" | |
19004 | exec_prefix="$acl_save_exec_prefix" | |
19005 | prefix="$acl_save_prefix" | |
19006 | ||
19007 | if test "X$x" = "X-L$additional_libdir"; then | |
19008 | haveit=yes | |
19009 | break | |
19010 | fi | |
19011 | done | |
19012 | if test -z "$haveit"; then | |
19013 | if test -d "$additional_libdir"; then | |
19014 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
19015 | fi | |
19016 | fi | |
19017 | fi | |
19018 | fi | |
19019 | ;; | |
19020 | -R*) | |
19021 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
19022 | if test "$enable_rpath" != no; then | |
19023 | haveit= | |
19024 | for x in $rpathdirs; do | |
19025 | if test "X$x" = "X$dir"; then | |
19026 | haveit=yes | |
19027 | break | |
19028 | fi | |
19029 | done | |
19030 | if test -z "$haveit"; then | |
19031 | rpathdirs="$rpathdirs $dir" | |
19032 | fi | |
19033 | haveit= | |
19034 | for x in $ltrpathdirs; do | |
19035 | if test "X$x" = "X$dir"; then | |
19036 | haveit=yes | |
19037 | break | |
19038 | fi | |
19039 | done | |
19040 | if test -z "$haveit"; then | |
19041 | ltrpathdirs="$ltrpathdirs $dir" | |
19042 | fi | |
19043 | fi | |
19044 | ;; | |
19045 | -l*) | |
19046 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
19047 | ;; | |
19048 | *.la) | |
19049 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
19050 | ;; | |
19051 | *) | |
19052 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
19053 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
19054 | ;; | |
19055 | esac | |
19056 | done | |
19057 | fi | |
19058 | else | |
19059 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
19060 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
19061 | fi | |
19062 | fi | |
19063 | fi | |
19064 | done | |
19065 | done | |
19066 | if test "X$rpathdirs" != "X"; then | |
19067 | if test -n "$acl_hardcode_libdir_separator"; then | |
19068 | alldirs= | |
19069 | for found_dir in $rpathdirs; do | |
19070 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
19071 | done | |
19072 | acl_save_libdir="$libdir" | |
19073 | libdir="$alldirs" | |
19074 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19075 | libdir="$acl_save_libdir" | |
19076 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19077 | else | |
19078 | for found_dir in $rpathdirs; do | |
19079 | acl_save_libdir="$libdir" | |
19080 | libdir="$found_dir" | |
19081 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
19082 | libdir="$acl_save_libdir" | |
19083 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
19084 | done | |
19085 | fi | |
19086 | fi | |
19087 | if test "X$ltrpathdirs" != "X"; then | |
19088 | for found_dir in $ltrpathdirs; do | |
19089 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
19090 | done | |
19091 | fi | |
19092 | ||
19093 | ||
19094 | ||
19095 | ||
19096 | ||
19097 | ||
19098 | ||
19099 | am_save_CPPFLAGS="$CPPFLAGS" | |
19100 | ||
19101 | for element in $INCICONV; do | |
19102 | haveit= | |
19103 | for x in $CPPFLAGS; do | |
19104 | ||
19105 | acl_save_prefix="$prefix" | |
19106 | prefix="$acl_final_prefix" | |
19107 | acl_save_exec_prefix="$exec_prefix" | |
19108 | exec_prefix="$acl_final_exec_prefix" | |
19109 | eval x=\"$x\" | |
19110 | exec_prefix="$acl_save_exec_prefix" | |
19111 | prefix="$acl_save_prefix" | |
19112 | ||
19113 | if test "X$x" = "X$element"; then | |
19114 | haveit=yes | |
19115 | break | |
19116 | fi | |
19117 | done | |
19118 | if test -z "$haveit"; then | |
19119 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
19120 | fi | |
19121 | done | |
19122 | ||
19123 | ||
19124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
19125 | $as_echo_n "checking for iconv... " >&6; } | |
19126 | if test "${am_cv_func_iconv+set}" = set; then : | |
19127 | $as_echo_n "(cached) " >&6 | |
19128 | else | |
19129 | ||
19130 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
19131 | am_cv_lib_iconv=no | |
19132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19133 | /* end confdefs.h. */ | |
19134 | #include <stdlib.h> | |
19135 | #include <iconv.h> | |
19136 | int | |
19137 | main () | |
19138 | { | |
19139 | iconv_t cd = iconv_open("",""); | |
19140 | iconv(cd,NULL,NULL,NULL,NULL); | |
19141 | iconv_close(cd); | |
19142 | ; | |
19143 | return 0; | |
19144 | } | |
19145 | _ACEOF | |
19146 | if ac_fn_c_try_link "$LINENO"; then : | |
19147 | am_cv_func_iconv=yes | |
19148 | fi | |
19149 | rm -f core conftest.err conftest.$ac_objext \ | |
19150 | conftest$ac_exeext conftest.$ac_ext | |
19151 | if test "$am_cv_func_iconv" != yes; then | |
19152 | am_save_LIBS="$LIBS" | |
19153 | LIBS="$LIBS $LIBICONV" | |
19154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19155 | /* end confdefs.h. */ | |
19156 | #include <stdlib.h> | |
19157 | #include <iconv.h> | |
19158 | int | |
19159 | main () | |
19160 | { | |
19161 | iconv_t cd = iconv_open("",""); | |
19162 | iconv(cd,NULL,NULL,NULL,NULL); | |
19163 | iconv_close(cd); | |
19164 | ; | |
19165 | return 0; | |
19166 | } | |
19167 | _ACEOF | |
19168 | if ac_fn_c_try_link "$LINENO"; then : | |
19169 | am_cv_lib_iconv=yes | |
19170 | am_cv_func_iconv=yes | |
19171 | fi | |
19172 | rm -f core conftest.err conftest.$ac_objext \ | |
19173 | conftest$ac_exeext conftest.$ac_ext | |
19174 | LIBS="$am_save_LIBS" | |
19175 | fi | |
19176 | ||
19177 | fi | |
19178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
19179 | $as_echo "$am_cv_func_iconv" >&6; } | |
19180 | if test "$am_cv_func_iconv" = yes; then | |
19181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
19182 | $as_echo_n "checking for working iconv... " >&6; } | |
19183 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
19184 | $as_echo_n "(cached) " >&6 | |
19185 | else | |
19186 | ||
19187 | am_save_LIBS="$LIBS" | |
19188 | if test $am_cv_lib_iconv = yes; then | |
19189 | LIBS="$LIBS $LIBICONV" | |
19190 | fi | |
19191 | if test "$cross_compiling" = yes; then : | |
19192 | case "$host_os" in | |
19193 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
19194 | *) am_cv_func_iconv_works="guessing yes" ;; | |
19195 | esac | |
19196 | else | |
19197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19198 | /* end confdefs.h. */ | |
19199 | ||
19200 | #include <iconv.h> | |
19201 | #include <string.h> | |
19202 | int main () | |
19203 | { | |
19204 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
19205 | returns. */ | |
19206 | { | |
19207 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
19208 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
19209 | { | |
19210 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
19211 | char buf[10]; | |
19212 | const char *inptr = input; | |
19213 | size_t inbytesleft = strlen (input); | |
19214 | char *outptr = buf; | |
19215 | size_t outbytesleft = sizeof (buf); | |
19216 | size_t res = iconv (cd_utf8_to_88591, | |
19217 | (char **) &inptr, &inbytesleft, | |
19218 | &outptr, &outbytesleft); | |
19219 | if (res == 0) | |
19220 | return 1; | |
19221 | } | |
19222 | } | |
19223 | #if 0 /* This bug could be worked around by the caller. */ | |
19224 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
19225 | { | |
19226 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
19227 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
19228 | { | |
19229 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
19230 | char buf[50]; | |
19231 | const char *inptr = input; | |
19232 | size_t inbytesleft = strlen (input); | |
19233 | char *outptr = buf; | |
19234 | size_t outbytesleft = sizeof (buf); | |
19235 | size_t res = iconv (cd_88591_to_utf8, | |
19236 | (char **) &inptr, &inbytesleft, | |
19237 | &outptr, &outbytesleft); | |
19238 | if ((int)res > 0) | |
19239 | return 1; | |
19240 | } | |
19241 | } | |
19242 | #endif | |
19243 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
19244 | provided. */ | |
19245 | if (/* Try standardized names. */ | |
19246 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
19247 | /* Try IRIX, OSF/1 names. */ | |
19248 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
19249 | /* Try AIX names. */ | |
19250 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
19251 | /* Try HP-UX names. */ | |
19252 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
19253 | return 1; | |
19254 | return 0; | |
19255 | } | |
19256 | _ACEOF | |
19257 | if ac_fn_c_try_run "$LINENO"; then : | |
19258 | am_cv_func_iconv_works=yes | |
19259 | else | |
19260 | am_cv_func_iconv_works=no | |
19261 | fi | |
19262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
19263 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
19264 | fi | |
19265 | ||
19266 | LIBS="$am_save_LIBS" | |
19267 | ||
19268 | fi | |
19269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
19270 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
19271 | case "$am_cv_func_iconv_works" in | |
19272 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
19273 | *) am_func_iconv=yes ;; | |
19274 | esac | |
19275 | else | |
19276 | am_func_iconv=no am_cv_lib_iconv=no | |
19277 | fi | |
19278 | if test "$am_func_iconv" = yes; then | |
19279 | ||
19280 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
19281 | ||
19282 | fi | |
19283 | if test "$am_cv_lib_iconv" = yes; then | |
19284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
19285 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
19286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
19287 | $as_echo "$LIBICONV" >&6; } | |
19288 | else | |
19289 | CPPFLAGS="$am_save_CPPFLAGS" | |
19290 | LIBICONV= | |
19291 | LTLIBICONV= | |
19292 | fi | |
19293 | ||
19294 | ||
19295 | ||
19296 | if test "$am_cv_func_iconv" = yes; then | |
19297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
19298 | $as_echo_n "checking for iconv declaration... " >&6; } | |
19299 | if test "${am_cv_proto_iconv+set}" = set; then : | |
19300 | $as_echo_n "(cached) " >&6 | |
19301 | else | |
19302 | ||
19303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19304 | /* end confdefs.h. */ | |
19305 | ||
19306 | #include <stdlib.h> | |
19307 | #include <iconv.h> | |
19308 | extern | |
19309 | #ifdef __cplusplus | |
19310 | "C" | |
19311 | #endif | |
19312 | #if defined(__STDC__) || defined(__cplusplus) | |
19313 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
19314 | #else | |
19315 | size_t iconv(); | |
19316 | #endif | |
19317 | ||
19318 | int | |
19319 | main () | |
19320 | { | |
19321 | ||
19322 | ; | |
19323 | return 0; | |
19324 | } | |
19325 | _ACEOF | |
19326 | if ac_fn_c_try_compile "$LINENO"; then : | |
19327 | am_cv_proto_iconv_arg1="" | |
19328 | else | |
19329 | am_cv_proto_iconv_arg1="const" | |
19330 | fi | |
19331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19332 | 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);" | |
19333 | fi | |
19334 | ||
19335 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
19336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
19337 | }$am_cv_proto_iconv" >&5 | |
19338 | $as_echo "${ac_t:- | |
19339 | }$am_cv_proto_iconv" >&6; } | |
19340 | ||
19341 | cat >>confdefs.h <<_ACEOF | |
19342 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
19343 | _ACEOF | |
19344 | ||
19345 | fi | |
19346 | ||
19347 | done | |
19348 | ;; | |
19349 | esac | |
19350 | case $am_cv_func_iconv in #( | |
19351 | yes) : | |
19352 | ;; #( | |
19353 | *) : | |
19354 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
19355 | esac | |
19356 | ac_ext=cpp | |
19357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19358 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19359 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19360 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19361 | ||
e1cce270 DWT |
19362 | if test "x$CY_OBJECTIVEC" = x1; then : |
19363 | ||
19364 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
19365 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
19366 | ||
794e88e7 DWT |
19367 | if test -n "$ac_tool_prefix"; then |
19368 | for ac_prog in otool | |
19369 | do | |
19370 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19371 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19373 | $as_echo_n "checking for $ac_word... " >&6; } | |
19374 | if test "${ac_cv_prog__OTOOL+set}" = set; then : | |
19375 | $as_echo_n "(cached) " >&6 | |
19376 | else | |
19377 | if test -n "$_OTOOL"; then | |
19378 | ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test. | |
19379 | else | |
19380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19381 | for as_dir in $PATH | |
19382 | do | |
19383 | IFS=$as_save_IFS | |
19384 | test -z "$as_dir" && as_dir=. | |
19385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19387 | ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog" | |
19388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19389 | break 2 | |
19390 | fi | |
19391 | done | |
19392 | done | |
19393 | IFS=$as_save_IFS | |
19394 | ||
19395 | fi | |
19396 | fi | |
19397 | _OTOOL=$ac_cv_prog__OTOOL | |
19398 | if test -n "$_OTOOL"; then | |
19399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5 | |
19400 | $as_echo "$_OTOOL" >&6; } | |
19401 | else | |
19402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19403 | $as_echo "no" >&6; } | |
19404 | fi | |
19405 | ||
19406 | ||
19407 | test -n "$_OTOOL" && break | |
19408 | done | |
19409 | fi | |
19410 | if test -z "$_OTOOL"; then | |
19411 | ac_ct__OTOOL=$_OTOOL | |
19412 | for ac_prog in otool | |
19413 | do | |
19414 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19415 | set dummy $ac_prog; ac_word=$2 | |
19416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19417 | $as_echo_n "checking for $ac_word... " >&6; } | |
19418 | if test "${ac_cv_prog_ac_ct__OTOOL+set}" = set; then : | |
19419 | $as_echo_n "(cached) " >&6 | |
19420 | else | |
19421 | if test -n "$ac_ct__OTOOL"; then | |
19422 | ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test. | |
19423 | else | |
19424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19425 | for as_dir in $PATH | |
19426 | do | |
19427 | IFS=$as_save_IFS | |
19428 | test -z "$as_dir" && as_dir=. | |
19429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19431 | ac_cv_prog_ac_ct__OTOOL="$ac_prog" | |
19432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19433 | break 2 | |
19434 | fi | |
19435 | done | |
19436 | done | |
19437 | IFS=$as_save_IFS | |
19438 | ||
19439 | fi | |
19440 | fi | |
19441 | ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL | |
19442 | if test -n "$ac_ct__OTOOL"; then | |
19443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5 | |
19444 | $as_echo "$ac_ct__OTOOL" >&6; } | |
19445 | else | |
19446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19447 | $as_echo "no" >&6; } | |
19448 | fi | |
19449 | ||
19450 | ||
19451 | test -n "$ac_ct__OTOOL" && break | |
19452 | done | |
19453 | ||
19454 | if test "x$ac_ct__OTOOL" = x; then | |
19455 | _OTOOL="" | |
19456 | else | |
19457 | case $cross_compiling:$ac_tool_warned in | |
19458 | yes:) | |
19459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19460 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19461 | ac_tool_warned=yes ;; | |
e1cce270 | 19462 | esac |
794e88e7 DWT |
19463 | _OTOOL=$ac_ct__OTOOL |
19464 | fi | |
19465 | fi | |
19466 | ||
19467 | if test "x$_OTOOL" = x; then : | |
19468 | as_fn_error "You need otool" "$LINENO" 5 | |
19469 | fi | |
19470 | if test -n "$ac_tool_prefix"; then | |
19471 | for ac_prog in lipo | |
19472 | do | |
19473 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19474 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19476 | $as_echo_n "checking for $ac_word... " >&6; } | |
19477 | if test "${ac_cv_prog__LIPO+set}" = set; then : | |
19478 | $as_echo_n "(cached) " >&6 | |
19479 | else | |
19480 | if test -n "$_LIPO"; then | |
19481 | ac_cv_prog__LIPO="$_LIPO" # Let the user override the test. | |
19482 | else | |
19483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19484 | for as_dir in $PATH | |
19485 | do | |
19486 | IFS=$as_save_IFS | |
19487 | test -z "$as_dir" && as_dir=. | |
19488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19490 | ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog" | |
19491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19492 | break 2 | |
19493 | fi | |
19494 | done | |
19495 | done | |
19496 | IFS=$as_save_IFS | |
19497 | ||
19498 | fi | |
19499 | fi | |
19500 | _LIPO=$ac_cv_prog__LIPO | |
19501 | if test -n "$_LIPO"; then | |
19502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5 | |
19503 | $as_echo "$_LIPO" >&6; } | |
19504 | else | |
19505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19506 | $as_echo "no" >&6; } | |
19507 | fi | |
19508 | ||
19509 | ||
19510 | test -n "$_LIPO" && break | |
19511 | done | |
19512 | fi | |
19513 | if test -z "$_LIPO"; then | |
19514 | ac_ct__LIPO=$_LIPO | |
19515 | for ac_prog in lipo | |
19516 | do | |
19517 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19518 | set dummy $ac_prog; ac_word=$2 | |
19519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19520 | $as_echo_n "checking for $ac_word... " >&6; } | |
19521 | if test "${ac_cv_prog_ac_ct__LIPO+set}" = set; then : | |
19522 | $as_echo_n "(cached) " >&6 | |
19523 | else | |
19524 | if test -n "$ac_ct__LIPO"; then | |
19525 | ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test. | |
19526 | else | |
19527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19528 | for as_dir in $PATH | |
19529 | do | |
19530 | IFS=$as_save_IFS | |
19531 | test -z "$as_dir" && as_dir=. | |
19532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19534 | ac_cv_prog_ac_ct__LIPO="$ac_prog" | |
19535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19536 | break 2 | |
19537 | fi | |
19538 | done | |
19539 | done | |
19540 | IFS=$as_save_IFS | |
19541 | ||
19542 | fi | |
19543 | fi | |
19544 | ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO | |
19545 | if test -n "$ac_ct__LIPO"; then | |
19546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5 | |
19547 | $as_echo "$ac_ct__LIPO" >&6; } | |
19548 | else | |
19549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19550 | $as_echo "no" >&6; } | |
19551 | fi | |
19552 | ||
19553 | ||
19554 | test -n "$ac_ct__LIPO" && break | |
19555 | done | |
19556 | ||
19557 | if test "x$ac_ct__LIPO" = x; then | |
19558 | _LIPO="" | |
19559 | else | |
19560 | case $cross_compiling:$ac_tool_warned in | |
19561 | yes:) | |
19562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19563 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19564 | ac_tool_warned=yes ;; | |
19565 | esac | |
19566 | _LIPO=$ac_ct__LIPO | |
19567 | fi | |
19568 | fi | |
19569 | ||
19570 | if test "x$_LIPO" = x; then : | |
19571 | as_fn_error "You need lipo" "$LINENO" 5 | |
19572 | fi | |
19573 | if test -n "$ac_tool_prefix"; then | |
19574 | for ac_prog in nm | |
19575 | do | |
19576 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
19577 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
19578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19579 | $as_echo_n "checking for $ac_word... " >&6; } | |
19580 | if test "${ac_cv_prog__NM+set}" = set; then : | |
19581 | $as_echo_n "(cached) " >&6 | |
19582 | else | |
19583 | if test -n "$_NM"; then | |
19584 | ac_cv_prog__NM="$_NM" # Let the user override the test. | |
19585 | else | |
19586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19587 | for as_dir in $PATH | |
19588 | do | |
19589 | IFS=$as_save_IFS | |
19590 | test -z "$as_dir" && as_dir=. | |
19591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19592 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19593 | ac_cv_prog__NM="$ac_tool_prefix$ac_prog" | |
19594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19595 | break 2 | |
19596 | fi | |
19597 | done | |
19598 | done | |
19599 | IFS=$as_save_IFS | |
19600 | ||
19601 | fi | |
19602 | fi | |
19603 | _NM=$ac_cv_prog__NM | |
19604 | if test -n "$_NM"; then | |
19605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5 | |
19606 | $as_echo "$_NM" >&6; } | |
19607 | else | |
19608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19609 | $as_echo "no" >&6; } | |
19610 | fi | |
19611 | ||
19612 | ||
19613 | test -n "$_NM" && break | |
19614 | done | |
19615 | fi | |
19616 | if test -z "$_NM"; then | |
19617 | ac_ct__NM=$_NM | |
19618 | for ac_prog in nm | |
19619 | do | |
19620 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19621 | set dummy $ac_prog; ac_word=$2 | |
19622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19623 | $as_echo_n "checking for $ac_word... " >&6; } | |
19624 | if test "${ac_cv_prog_ac_ct__NM+set}" = set; then : | |
19625 | $as_echo_n "(cached) " >&6 | |
19626 | else | |
19627 | if test -n "$ac_ct__NM"; then | |
19628 | ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test. | |
19629 | else | |
19630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19631 | for as_dir in $PATH | |
19632 | do | |
19633 | IFS=$as_save_IFS | |
19634 | test -z "$as_dir" && as_dir=. | |
19635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
19637 | ac_cv_prog_ac_ct__NM="$ac_prog" | |
19638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19639 | break 2 | |
19640 | fi | |
19641 | done | |
19642 | done | |
19643 | IFS=$as_save_IFS | |
19644 | ||
19645 | fi | |
19646 | fi | |
19647 | ac_ct__NM=$ac_cv_prog_ac_ct__NM | |
19648 | if test -n "$ac_ct__NM"; then | |
19649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5 | |
19650 | $as_echo "$ac_ct__NM" >&6; } | |
19651 | else | |
19652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19653 | $as_echo "no" >&6; } | |
19654 | fi | |
19655 | ||
19656 | ||
19657 | test -n "$ac_ct__NM" && break | |
19658 | done | |
19659 | ||
19660 | if test "x$ac_ct__NM" = x; then | |
19661 | _NM="" | |
19662 | else | |
19663 | case $cross_compiling:$ac_tool_warned in | |
19664 | yes:) | |
19665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19666 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19667 | ac_tool_warned=yes ;; | |
19668 | esac | |
19669 | _NM=$ac_ct__NM | |
19670 | fi | |
19671 | fi | |
19672 | ||
19673 | if test "x$_NM" = x; then : | |
19674 | as_fn_error "You need nm" "$LINENO" 5 | |
19675 | fi | |
19676 | SO=$acl_shlibext | |
19677 | ||
19678 | CY_OBJECTIVEC_MACH=1 | |
19679 | ||
19680 | CY_ATTACH_GROUP=procmod | |
19681 | ||
e1cce270 DWT |
19682 | |
19683 | fi | |
19684 | ||
19685 | ||
19686 | ||
790e5246 DWT |
19687 | fi |
19688 | if test "x$GMAKE" != xmake; then : | |
19689 | ||
19690 | ac_config_files="$ac_config_files Makefile" | |
19691 | ||
19692 | ||
47aaa820 | 19693 | fi |
9c60689e DWT |
19694 | ac_config_files="$ac_config_files GNUmakefile" |
19695 | ||
19696 | cat >confcache <<\_ACEOF | |
19697 | # This file is a shell script that caches the results of configure | |
19698 | # tests run on this system so they can be shared between configure | |
19699 | # scripts and configure runs, see configure's option --config-cache. | |
19700 | # It is not useful on other systems. If it contains results you don't | |
19701 | # want to keep, you may remove or edit it. | |
19702 | # | |
19703 | # config.status only pays attention to the cache file if you give it | |
19704 | # the --recheck option to rerun configure. | |
19705 | # | |
19706 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
19707 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19708 | # following values. | |
19709 | ||
19710 | _ACEOF | |
19711 | ||
19712 | # The following way of writing the cache mishandles newlines in values, | |
19713 | # but we know of no workaround that is simple, portable, and efficient. | |
19714 | # So, we kill variables containing newlines. | |
19715 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19716 | # and sets the high bit in the cache file unless we assign to the vars. | |
19717 | ( | |
19718 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
19719 | eval ac_val=\$$ac_var | |
19720 | case $ac_val in #( | |
19721 | *${as_nl}*) | |
19722 | case $ac_var in #( | |
19723 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
19724 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
19725 | esac | |
19726 | case $ac_var in #( | |
19727 | _ | IFS | as_nl) ;; #( | |
19728 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
19729 | *) { eval $ac_var=; unset $ac_var;} ;; | |
19730 | esac ;; | |
19731 | esac | |
19732 | done | |
19733 | ||
19734 | (set) 2>&1 | | |
19735 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
19736 | *${as_nl}ac_space=\ *) | |
19737 | # `set' does not quote correctly, so add quotes: double-quote | |
19738 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
19739 | sed -n \ | |
19740 | "s/'/'\\\\''/g; | |
19741 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19742 | ;; #( | |
19743 | *) | |
19744 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19745 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19746 | ;; | |
19747 | esac | | |
19748 | sort | |
19749 | ) | | |
19750 | sed ' | |
19751 | /^ac_cv_env_/b end | |
19752 | t clear | |
19753 | :clear | |
19754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19755 | t end | |
19756 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19757 | :end' >>confcache | |
19758 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19759 | if test -w "$cache_file"; then | |
19760 | test "x$cache_file" != "x/dev/null" && | |
19761 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
19762 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19763 | cat confcache >$cache_file | |
19764 | else | |
19765 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19766 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19767 | fi | |
19768 | fi | |
19769 | rm -f confcache | |
19770 | ||
19771 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19772 | # Let make expand exec_prefix. | |
19773 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19774 | ||
19775 | # Transform confdefs.h into DEFS. | |
19776 | # Protect against shell expansion while executing Makefile rules. | |
19777 | # Protect against Makefile macro expansion. | |
19778 | # | |
19779 | # If the first sed substitution is executed (which looks for macros that | |
19780 | # take arguments), then branch to the quote section. Otherwise, | |
19781 | # look for a macro that doesn't take arguments. | |
19782 | ac_script=' | |
19783 | :mline | |
19784 | /\\$/{ | |
19785 | N | |
19786 | s,\\\n,, | |
19787 | b mline | |
19788 | } | |
19789 | t clear | |
19790 | :clear | |
19791 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
19792 | t quote | |
19793 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
19794 | t quote | |
19795 | b any | |
19796 | :quote | |
19797 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
19798 | s/\[/\\&/g | |
19799 | s/\]/\\&/g | |
19800 | s/\$/$$/g | |
19801 | H | |
19802 | :any | |
19803 | ${ | |
19804 | g | |
19805 | s/^\n// | |
19806 | s/\n/ /g | |
19807 | p | |
19808 | } | |
19809 | ' | |
19810 | DEFS=`sed -n "$ac_script" confdefs.h` | |
19811 | ||
19812 | ||
19813 | ac_libobjs= | |
19814 | ac_ltlibobjs= | |
19815 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19816 | # 1. Remove the extension, and $U if already installed. | |
19817 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19818 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19819 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19820 | # will be set to the directory where LIBOBJS objects are built. | |
19821 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19822 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19823 | done | |
19824 | LIBOBJS=$ac_libobjs | |
19825 | ||
19826 | LTLIBOBJS=$ac_ltlibobjs | |
19827 | ||
19828 | ||
19829 | ||
19830 | : ${CONFIG_STATUS=./config.status} | |
19831 | ac_write_fail=0 | |
19832 | ac_clean_files_save=$ac_clean_files | |
19833 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19834 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19835 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19836 | as_write_fail=0 | |
19837 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19838 | #! $SHELL | |
19839 | # Generated by $as_me. | |
19840 | # Run this file to recreate the current configuration. | |
19841 | # Compiler output produced by configure, useful for debugging | |
19842 | # configure, is in config.log if it exists. | |
19843 | ||
19844 | debug=false | |
19845 | ac_cs_recheck=false | |
19846 | ac_cs_silent=false | |
19847 | ||
19848 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19849 | export SHELL | |
19850 | _ASEOF | |
19851 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19852 | ## -------------------- ## | |
19853 | ## M4sh Initialization. ## | |
19854 | ## -------------------- ## | |
19855 | ||
19856 | # Be more Bourne compatible | |
19857 | DUALCASE=1; export DUALCASE # for MKS sh | |
19858 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19859 | emulate sh | |
19860 | NULLCMD=: | |
19861 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19862 | # is contrary to our usage. Disable this feature. | |
19863 | alias -g '${1+"$@"}'='"$@"' | |
19864 | setopt NO_GLOB_SUBST | |
19865 | else | |
19866 | case `(set -o) 2>/dev/null` in #( | |
19867 | *posix*) : | |
19868 | set -o posix ;; #( | |
19869 | *) : | |
19870 | ;; | |
19871 | esac | |
19872 | fi | |
19873 | ||
19874 | ||
19875 | as_nl=' | |
19876 | ' | |
19877 | export as_nl | |
19878 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19879 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19880 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19881 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19882 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19883 | # but without wasting forks for bash or zsh. | |
19884 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19885 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19886 | as_echo='print -r --' | |
19887 | as_echo_n='print -rn --' | |
19888 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19889 | as_echo='printf %s\n' | |
19890 | as_echo_n='printf %s' | |
19891 | else | |
19892 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19893 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19894 | as_echo_n='/usr/ucb/echo -n' | |
19895 | else | |
19896 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19897 | as_echo_n_body='eval | |
19898 | arg=$1; | |
19899 | case $arg in #( | |
19900 | *"$as_nl"*) | |
19901 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19902 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19903 | esac; | |
19904 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19905 | ' | |
19906 | export as_echo_n_body | |
19907 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19908 | fi | |
19909 | export as_echo_body | |
19910 | as_echo='sh -c $as_echo_body as_echo' | |
19911 | fi | |
19912 | ||
19913 | # The user is always right. | |
19914 | if test "${PATH_SEPARATOR+set}" != set; then | |
19915 | PATH_SEPARATOR=: | |
19916 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19917 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19918 | PATH_SEPARATOR=';' | |
19919 | } | |
19920 | fi | |
19921 | ||
19922 | ||
19923 | # IFS | |
19924 | # We need space, tab and new line, in precisely that order. Quoting is | |
19925 | # there to prevent editors from complaining about space-tab. | |
19926 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19927 | # splitting by setting IFS to empty value.) | |
19928 | IFS=" "" $as_nl" | |
19929 | ||
19930 | # Find who we are. Look in the path if we contain no directory separator. | |
19931 | case $0 in #(( | |
19932 | *[\\/]* ) as_myself=$0 ;; | |
19933 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19934 | for as_dir in $PATH | |
19935 | do | |
19936 | IFS=$as_save_IFS | |
19937 | test -z "$as_dir" && as_dir=. | |
19938 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19939 | done | |
19940 | IFS=$as_save_IFS | |
19941 | ||
19942 | ;; | |
19943 | esac | |
19944 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19945 | # in which case we are not to be found in the path. | |
19946 | if test "x$as_myself" = x; then | |
19947 | as_myself=$0 | |
19948 | fi | |
19949 | if test ! -f "$as_myself"; then | |
19950 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19951 | exit 1 | |
19952 | fi | |
19953 | ||
19954 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19955 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19956 | # suppresses any "Segmentation fault" message there. '((' could | |
19957 | # trigger a bug in pdksh 5.2.14. | |
19958 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19959 | do eval test x\${$as_var+set} = xset \ | |
19960 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19961 | done | |
19962 | PS1='$ ' | |
19963 | PS2='> ' | |
19964 | PS4='+ ' | |
19965 | ||
19966 | # NLS nuisances. | |
19967 | LC_ALL=C | |
19968 | export LC_ALL | |
19969 | LANGUAGE=C | |
19970 | export LANGUAGE | |
19971 | ||
19972 | # CDPATH. | |
19973 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19974 | ||
19975 | ||
19976 | # as_fn_error ERROR [LINENO LOG_FD] | |
19977 | # --------------------------------- | |
19978 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
19979 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
19980 | # script with status $?, using 1 if that was 0. | |
19981 | as_fn_error () | |
19982 | { | |
19983 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
19984 | if test "$3"; then | |
19985 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19986 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
19987 | fi | |
19988 | $as_echo "$as_me: error: $1" >&2 | |
19989 | as_fn_exit $as_status | |
19990 | } # as_fn_error | |
19991 | ||
19992 | ||
19993 | # as_fn_set_status STATUS | |
19994 | # ----------------------- | |
19995 | # Set $? to STATUS, without forking. | |
19996 | as_fn_set_status () | |
19997 | { | |
19998 | return $1 | |
19999 | } # as_fn_set_status | |
20000 | ||
20001 | # as_fn_exit STATUS | |
20002 | # ----------------- | |
20003 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20004 | as_fn_exit () | |
20005 | { | |
20006 | set +e | |
20007 | as_fn_set_status $1 | |
20008 | exit $1 | |
20009 | } # as_fn_exit | |
20010 | ||
20011 | # as_fn_unset VAR | |
20012 | # --------------- | |
20013 | # Portably unset VAR. | |
20014 | as_fn_unset () | |
20015 | { | |
20016 | { eval $1=; unset $1;} | |
20017 | } | |
20018 | as_unset=as_fn_unset | |
20019 | # as_fn_append VAR VALUE | |
20020 | # ---------------------- | |
20021 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20022 | # advantage of any shell optimizations that allow amortized linear growth over | |
20023 | # repeated appends, instead of the typical quadratic growth present in naive | |
20024 | # implementations. | |
20025 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20026 | eval 'as_fn_append () | |
20027 | { | |
20028 | eval $1+=\$2 | |
20029 | }' | |
20030 | else | |
20031 | as_fn_append () | |
20032 | { | |
20033 | eval $1=\$$1\$2 | |
20034 | } | |
20035 | fi # as_fn_append | |
20036 | ||
20037 | # as_fn_arith ARG... | |
20038 | # ------------------ | |
20039 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20040 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20041 | # must be portable across $(()) and expr. | |
20042 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20043 | eval 'as_fn_arith () | |
20044 | { | |
20045 | as_val=$(( $* )) | |
20046 | }' | |
20047 | else | |
20048 | as_fn_arith () | |
20049 | { | |
20050 | as_val=`expr "$@" || test $? -eq 1` | |
20051 | } | |
20052 | fi # as_fn_arith | |
20053 | ||
20054 | ||
20055 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
20056 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20057 | as_expr=expr | |
20058 | else | |
20059 | as_expr=false | |
20060 | fi | |
20061 | ||
20062 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20063 | as_basename=basename | |
20064 | else | |
20065 | as_basename=false | |
20066 | fi | |
20067 | ||
20068 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20069 | as_dirname=dirname | |
20070 | else | |
20071 | as_dirname=false | |
20072 | fi | |
20073 | ||
20074 | as_me=`$as_basename -- "$0" || | |
20075 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20076 | X"$0" : 'X\(//\)$' \| \ | |
20077 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20078 | $as_echo X/"$0" | | |
20079 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20080 | s//\1/ | |
20081 | q | |
20082 | } | |
20083 | /^X\/\(\/\/\)$/{ | |
20084 | s//\1/ | |
20085 | q | |
20086 | } | |
20087 | /^X\/\(\/\).*/{ | |
20088 | s//\1/ | |
20089 | q | |
20090 | } | |
20091 | s/.*/./; q'` | |
20092 | ||
20093 | # Avoid depending upon Character Ranges. | |
20094 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20095 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20096 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20097 | as_cr_digits='0123456789' | |
20098 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20099 | ||
20100 | ECHO_C= ECHO_N= ECHO_T= | |
20101 | case `echo -n x` in #((((( | |
20102 | -n*) | |
20103 | case `echo 'xy\c'` in | |
20104 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20105 | xy) ECHO_C='\c';; | |
20106 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20107 | ECHO_T=' ';; | |
20108 | esac;; | |
20109 | *) | |
20110 | ECHO_N='-n';; | |
20111 | esac | |
20112 | ||
20113 | rm -f conf$$ conf$$.exe conf$$.file | |
20114 | if test -d conf$$.dir; then | |
20115 | rm -f conf$$.dir/conf$$.file | |
20116 | else | |
20117 | rm -f conf$$.dir | |
20118 | mkdir conf$$.dir 2>/dev/null | |
20119 | fi | |
20120 | if (echo >conf$$.file) 2>/dev/null; then | |
20121 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20122 | as_ln_s='ln -s' | |
20123 | # ... but there are two gotchas: | |
20124 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20125 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
20126 | # In both cases, we have to default to `cp -p'. | |
20127 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
20128 | as_ln_s='cp -p' | |
20129 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20130 | as_ln_s=ln | |
20131 | else | |
20132 | as_ln_s='cp -p' | |
20133 | fi | |
20134 | else | |
20135 | as_ln_s='cp -p' | |
20136 | fi | |
20137 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20138 | rmdir conf$$.dir 2>/dev/null | |
20139 | ||
20140 | ||
20141 | # as_fn_mkdir_p | |
20142 | # ------------- | |
20143 | # Create "$as_dir" as a directory, including parents if necessary. | |
20144 | as_fn_mkdir_p () | |
20145 | { | |
20146 | ||
20147 | case $as_dir in #( | |
20148 | -*) as_dir=./$as_dir;; | |
20149 | esac | |
20150 | test -d "$as_dir" || eval $as_mkdir_p || { | |
20151 | as_dirs= | |
20152 | while :; do | |
20153 | case $as_dir in #( | |
20154 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20155 | *) as_qdir=$as_dir;; | |
20156 | esac | |
20157 | as_dirs="'$as_qdir' $as_dirs" | |
20158 | as_dir=`$as_dirname -- "$as_dir" || | |
20159 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20160 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20161 | X"$as_dir" : 'X\(//\)$' \| \ | |
20162 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20163 | $as_echo X"$as_dir" | | |
20164 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20165 | s//\1/ | |
20166 | q | |
20167 | } | |
20168 | /^X\(\/\/\)[^/].*/{ | |
20169 | s//\1/ | |
20170 | q | |
20171 | } | |
20172 | /^X\(\/\/\)$/{ | |
20173 | s//\1/ | |
20174 | q | |
20175 | } | |
20176 | /^X\(\/\).*/{ | |
20177 | s//\1/ | |
20178 | q | |
20179 | } | |
20180 | s/.*/./; q'` | |
20181 | test -d "$as_dir" && break | |
20182 | done | |
20183 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
20184 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
20185 | ||
20186 | ||
20187 | } # as_fn_mkdir_p | |
20188 | if mkdir -p . 2>/dev/null; then | |
20189 | as_mkdir_p='mkdir -p "$as_dir"' | |
20190 | else | |
20191 | test -d ./-p && rmdir ./-p | |
20192 | as_mkdir_p=false | |
20193 | fi | |
20194 | ||
20195 | if test -x / >/dev/null 2>&1; then | |
20196 | as_test_x='test -x' | |
20197 | else | |
20198 | if ls -dL / >/dev/null 2>&1; then | |
20199 | as_ls_L_option=L | |
20200 | else | |
20201 | as_ls_L_option= | |
20202 | fi | |
20203 | as_test_x=' | |
20204 | eval sh -c '\'' | |
20205 | if test -d "$1"; then | |
20206 | test -d "$1/."; | |
20207 | else | |
20208 | case $1 in #( | |
20209 | -*)set "./$1";; | |
20210 | esac; | |
20211 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
20212 | ???[sx]*):;;*)false;;esac;fi | |
20213 | '\'' sh | |
20214 | ' | |
20215 | fi | |
20216 | as_executable_p=$as_test_x | |
20217 | ||
20218 | # Sed expression to map a string onto a valid CPP name. | |
20219 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20220 | ||
20221 | # Sed expression to map a string onto a valid variable name. | |
20222 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20223 | ||
20224 | ||
20225 | exec 6>&1 | |
20226 | ## ----------------------------------- ## | |
20227 | ## Main body of $CONFIG_STATUS script. ## | |
20228 | ## ----------------------------------- ## | |
20229 | _ASEOF | |
20230 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20231 | ||
20232 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20233 | # Save the log message, to keep $0 and so on meaningful, and to | |
20234 | # report actual input values of CONFIG_FILES etc. instead of their | |
20235 | # values after options handling. | |
20236 | ac_log=" | |
20237 | This file was extended by Cycript $as_me 0.9, which was | |
20238 | generated by GNU Autoconf 2.65. Invocation command line was | |
20239 | ||
20240 | CONFIG_FILES = $CONFIG_FILES | |
20241 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20242 | CONFIG_LINKS = $CONFIG_LINKS | |
20243 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20244 | $ $0 $@ | |
20245 | ||
20246 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20247 | " | |
20248 | ||
20249 | _ACEOF | |
20250 | ||
20251 | case $ac_config_files in *" | |
20252 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20253 | esac | |
20254 | ||
20255 | ||
20256 | ||
20257 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20258 | # Files that config.status was made for. | |
20259 | config_files="$ac_config_files" | |
20260 | config_commands="$ac_config_commands" | |
20261 | ||
20262 | _ACEOF | |
20263 | ||
20264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20265 | ac_cs_usage="\ | |
20266 | \`$as_me' instantiates files and other configuration actions | |
20267 | from templates according to the current configuration. Unless the files | |
20268 | and actions are specified as TAGs, all are instantiated by default. | |
20269 | ||
20270 | Usage: $0 [OPTION]... [TAG]... | |
20271 | ||
20272 | -h, --help print this help, then exit | |
20273 | -V, --version print version number and configuration settings, then exit | |
20274 | --config print configuration, then exit | |
20275 | -q, --quiet, --silent | |
20276 | do not print progress messages | |
20277 | -d, --debug don't remove temporary files | |
20278 | --recheck update $as_me by reconfiguring in the same conditions | |
20279 | --file=FILE[:TEMPLATE] | |
20280 | instantiate the configuration file FILE | |
20281 | ||
20282 | Configuration files: | |
20283 | $config_files | |
20284 | ||
20285 | Configuration commands: | |
20286 | $config_commands | |
20287 | ||
20288 | Report bugs to <saurik@saurik.com>. | |
20289 | Cycript home page: <http://www.cycript.org/>." | |
20290 | ||
20291 | _ACEOF | |
20292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20293 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
20294 | ac_cs_version="\\ | |
20295 | Cycript config.status 0.9 | |
20296 | configured by $0, generated by GNU Autoconf 2.65, | |
20297 | with options \\"\$ac_cs_config\\" | |
20298 | ||
20299 | Copyright (C) 2009 Free Software Foundation, Inc. | |
20300 | This config.status script is free software; the Free Software Foundation | |
20301 | gives unlimited permission to copy, distribute and modify it." | |
20302 | ||
20303 | ac_pwd='$ac_pwd' | |
20304 | srcdir='$srcdir' | |
20305 | INSTALL='$INSTALL' | |
9c60689e DWT |
20306 | test -n "\$AWK" || AWK=awk |
20307 | _ACEOF | |
20308 | ||
20309 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20310 | # The default lists apply if the user does not specify any file. | |
20311 | ac_need_defaults=: | |
20312 | while test $# != 0 | |
20313 | do | |
20314 | case $1 in | |
20315 | --*=*) | |
20316 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20317 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20318 | ac_shift=: | |
20319 | ;; | |
20320 | *) | |
20321 | ac_option=$1 | |
20322 | ac_optarg=$2 | |
20323 | ac_shift=shift | |
20324 | ;; | |
20325 | esac | |
20326 | ||
20327 | case $ac_option in | |
20328 | # Handling of the options. | |
20329 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20330 | ac_cs_recheck=: ;; | |
20331 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
20332 | $as_echo "$ac_cs_version"; exit ;; | |
20333 | --config | --confi | --conf | --con | --co | --c ) | |
20334 | $as_echo "$ac_cs_config"; exit ;; | |
20335 | --debug | --debu | --deb | --de | --d | -d ) | |
20336 | debug=: ;; | |
20337 | --file | --fil | --fi | --f ) | |
20338 | $ac_shift | |
20339 | case $ac_optarg in | |
20340 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20341 | esac | |
20342 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
20343 | ac_need_defaults=false;; | |
20344 | --he | --h | --help | --hel | -h ) | |
20345 | $as_echo "$ac_cs_usage"; exit ;; | |
20346 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
20347 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20348 | ac_cs_silent=: ;; | |
20349 | ||
20350 | # This is an error. | |
20351 | -*) as_fn_error "unrecognized option: \`$1' | |
20352 | Try \`$0 --help' for more information." ;; | |
20353 | ||
20354 | *) as_fn_append ac_config_targets " $1" | |
20355 | ac_need_defaults=false ;; | |
20356 | ||
20357 | esac | |
20358 | shift | |
20359 | done | |
20360 | ||
20361 | ac_configure_extra_args= | |
20362 | ||
20363 | if $ac_cs_silent; then | |
20364 | exec 6>/dev/null | |
20365 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20366 | fi | |
20367 | ||
20368 | _ACEOF | |
20369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20370 | if \$ac_cs_recheck; then | |
20371 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20372 | shift | |
20373 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20374 | CONFIG_SHELL='$SHELL' | |
20375 | export CONFIG_SHELL | |
20376 | exec "\$@" | |
20377 | fi | |
20378 | ||
20379 | _ACEOF | |
20380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20381 | exec 5>>config.log | |
20382 | { | |
20383 | echo | |
20384 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20385 | ## Running $as_me. ## | |
20386 | _ASBOX | |
20387 | $as_echo "$ac_log" | |
20388 | } >&5 | |
20389 | ||
20390 | _ACEOF | |
20391 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20392 | # | |
20393 | # INIT-COMMANDS | |
20394 | # | |
20395 | ||
20396 | ||
20397 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
20398 | # if CDPATH is set. | |
20399 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20400 | ||
20401 | sed_quote_subst='$sed_quote_subst' | |
20402 | double_quote_subst='$double_quote_subst' | |
20403 | delay_variable_subst='$delay_variable_subst' | |
20404 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20405 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 20406 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 20407 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
20408 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
20409 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
20410 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20411 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
20412 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20413 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
20414 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
20415 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
20416 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
20417 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
20418 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20419 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20420 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
20421 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
20422 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
20423 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
20424 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
20425 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
20426 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
20427 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
20428 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
20429 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
20430 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20431 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20432 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
20433 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
20434 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
20435 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
20436 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20437 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
20438 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
20439 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20440 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20441 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20442 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
20443 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
20444 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
20445 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
20446 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
20447 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
20448 | 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"`' | |
20449 | 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"`' | |
20450 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
20451 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
20452 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
20453 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
20454 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20455 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
20456 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
20457 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20458 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
20459 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
20460 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
20461 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
20462 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
20463 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
20464 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
20465 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
20466 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20467 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20468 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
20469 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
20470 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20471 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20472 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
20473 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20474 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20475 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20476 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20477 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20478 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20479 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20480 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20481 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
20482 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20483 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
20484 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
20485 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
20486 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
20487 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
20488 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20489 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
20490 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20491 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
20492 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
20493 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
20494 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20495 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20496 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
20497 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20498 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20499 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
20500 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
20501 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
20502 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
20503 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20504 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
20505 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
20506 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20507 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20508 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20509 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20510 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20511 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
20512 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
20513 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
20514 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20515 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
20516 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
20517 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
20518 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
20519 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
20520 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20521 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
20522 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
20523 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
20524 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
20525 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
20526 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
20527 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
20528 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20529 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20530 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20531 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20532 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20533 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20534 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20535 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20536 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20537 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20538 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20539 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20540 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20541 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20542 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20543 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20544 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20545 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20546 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20547 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20548 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20549 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20550 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20551 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20552 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20553 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20554 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20555 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20556 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20557 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20558 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20559 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20560 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20561 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20562 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20563 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20564 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20565 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20566 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20567 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20568 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20569 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20570 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20571 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20572 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20573 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20574 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
20575 | ||
20576 | LTCC='$LTCC' | |
20577 | LTCFLAGS='$LTCFLAGS' | |
20578 | compiler='$compiler_DEFAULT' | |
20579 | ||
20580 | # Quote evaled strings. | |
20581 | for var in SED \ | |
20582 | GREP \ | |
20583 | EGREP \ | |
20584 | FGREP \ | |
20585 | LD \ | |
20586 | NM \ | |
20587 | LN_S \ | |
20588 | lt_SP2NL \ | |
20589 | lt_NL2SP \ | |
20590 | reload_flag \ | |
20591 | OBJDUMP \ | |
20592 | deplibs_check_method \ | |
20593 | file_magic_cmd \ | |
20594 | AR \ | |
20595 | AR_FLAGS \ | |
20596 | STRIP \ | |
20597 | RANLIB \ | |
20598 | CC \ | |
20599 | CFLAGS \ | |
20600 | compiler \ | |
20601 | lt_cv_sys_global_symbol_pipe \ | |
20602 | lt_cv_sys_global_symbol_to_cdecl \ | |
20603 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20604 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20605 | SHELL \ | |
20606 | ECHO \ | |
20607 | lt_prog_compiler_no_builtin_flag \ | |
20608 | lt_prog_compiler_wl \ | |
20609 | lt_prog_compiler_pic \ | |
20610 | lt_prog_compiler_static \ | |
20611 | lt_cv_prog_compiler_c_o \ | |
20612 | need_locks \ | |
20613 | DSYMUTIL \ | |
20614 | NMEDIT \ | |
20615 | LIPO \ | |
20616 | OTOOL \ | |
20617 | OTOOL64 \ | |
20618 | shrext_cmds \ | |
20619 | export_dynamic_flag_spec \ | |
20620 | whole_archive_flag_spec \ | |
20621 | compiler_needs_object \ | |
20622 | with_gnu_ld \ | |
20623 | allow_undefined_flag \ | |
20624 | no_undefined_flag \ | |
20625 | hardcode_libdir_flag_spec \ | |
20626 | hardcode_libdir_flag_spec_ld \ | |
20627 | hardcode_libdir_separator \ | |
20628 | fix_srcfile_path \ | |
20629 | exclude_expsyms \ | |
20630 | include_expsyms \ | |
20631 | file_list_spec \ | |
20632 | variables_saved_for_relink \ | |
20633 | libname_spec \ | |
20634 | library_names_spec \ | |
20635 | soname_spec \ | |
20636 | finish_eval \ | |
20637 | old_striplib \ | |
20638 | striplib \ | |
20639 | compiler_lib_search_dirs \ | |
20640 | predep_objects \ | |
20641 | postdep_objects \ | |
20642 | predeps \ | |
20643 | postdeps \ | |
20644 | compiler_lib_search_path \ | |
20645 | LD_CXX \ | |
20646 | compiler_CXX \ | |
20647 | lt_prog_compiler_no_builtin_flag_CXX \ | |
20648 | lt_prog_compiler_wl_CXX \ | |
20649 | lt_prog_compiler_pic_CXX \ | |
20650 | lt_prog_compiler_static_CXX \ | |
20651 | lt_cv_prog_compiler_c_o_CXX \ | |
20652 | export_dynamic_flag_spec_CXX \ | |
20653 | whole_archive_flag_spec_CXX \ | |
20654 | compiler_needs_object_CXX \ | |
20655 | with_gnu_ld_CXX \ | |
20656 | allow_undefined_flag_CXX \ | |
20657 | no_undefined_flag_CXX \ | |
20658 | hardcode_libdir_flag_spec_CXX \ | |
20659 | hardcode_libdir_flag_spec_ld_CXX \ | |
20660 | hardcode_libdir_separator_CXX \ | |
20661 | fix_srcfile_path_CXX \ | |
20662 | exclude_expsyms_CXX \ | |
20663 | include_expsyms_CXX \ | |
20664 | file_list_spec_CXX \ | |
20665 | compiler_lib_search_dirs_CXX \ | |
20666 | predep_objects_CXX \ | |
20667 | postdep_objects_CXX \ | |
20668 | predeps_CXX \ | |
20669 | postdeps_CXX \ | |
20670 | compiler_lib_search_path_CXX; do | |
20671 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20672 | *[\\\\\\\`\\"\\\$]*) | |
20673 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
20674 | ;; | |
20675 | *) | |
20676 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20677 | ;; | |
20678 | esac | |
20679 | done | |
20680 | ||
20681 | # Double-quote double-evaled strings. | |
20682 | for var in reload_cmds \ | |
20683 | old_postinstall_cmds \ | |
20684 | old_postuninstall_cmds \ | |
20685 | old_archive_cmds \ | |
20686 | extract_expsyms_cmds \ | |
20687 | old_archive_from_new_cmds \ | |
20688 | old_archive_from_expsyms_cmds \ | |
20689 | archive_cmds \ | |
20690 | archive_expsym_cmds \ | |
20691 | module_cmds \ | |
20692 | module_expsym_cmds \ | |
20693 | export_symbols_cmds \ | |
20694 | prelink_cmds \ | |
20695 | postinstall_cmds \ | |
20696 | postuninstall_cmds \ | |
20697 | finish_cmds \ | |
20698 | sys_lib_search_path_spec \ | |
20699 | sys_lib_dlsearch_path_spec \ | |
20700 | old_archive_cmds_CXX \ | |
20701 | old_archive_from_new_cmds_CXX \ | |
20702 | old_archive_from_expsyms_cmds_CXX \ | |
20703 | archive_cmds_CXX \ | |
20704 | archive_expsym_cmds_CXX \ | |
20705 | module_cmds_CXX \ | |
20706 | module_expsym_cmds_CXX \ | |
20707 | export_symbols_cmds_CXX \ | |
20708 | prelink_cmds_CXX; do | |
20709 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
20710 | *[\\\\\\\`\\"\\\$]*) | |
20711 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
20712 | ;; | |
20713 | *) | |
20714 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
20715 | ;; | |
20716 | esac | |
20717 | done | |
20718 | ||
20719 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
20720 | case \$lt_ECHO in | |
20721 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
20722 | ;; | |
20723 | esac | |
20724 | ||
20725 | ac_aux_dir='$ac_aux_dir' | |
20726 | xsi_shell='$xsi_shell' | |
20727 | lt_shell_append='$lt_shell_append' | |
20728 | ||
20729 | # See if we are running on zsh, and set the options which allow our | |
20730 | # commands through without removal of \ escapes INIT. | |
20731 | if test -n "\${ZSH_VERSION+set}" ; then | |
20732 | setopt NO_GLOB_SUBST | |
20733 | fi | |
20734 | ||
20735 | ||
20736 | PACKAGE='$PACKAGE' | |
20737 | VERSION='$VERSION' | |
20738 | TIMESTAMP='$TIMESTAMP' | |
20739 | RM='$RM' | |
20740 | ofile='$ofile' | |
20741 | ||
20742 | ||
20743 | ||
20744 | ||
20745 | ||
20746 | ||
20747 | _ACEOF | |
20748 | ||
20749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20750 | ||
20751 | # Handling of arguments. | |
20752 | for ac_config_target in $ac_config_targets | |
20753 | do | |
20754 | case $ac_config_target in | |
20755 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
790e5246 | 20756 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
9c60689e DWT |
20757 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; |
20758 | ||
20759 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
20760 | esac | |
20761 | done | |
20762 | ||
20763 | ||
20764 | # If the user did not use the arguments to specify the items to instantiate, | |
20765 | # then the envvar interface is used. Set only those that are not. | |
20766 | # We use the long form for the default assignment because of an extremely | |
20767 | # bizarre bug on SunOS 4.1.3. | |
20768 | if $ac_need_defaults; then | |
20769 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20770 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20771 | fi | |
20772 | ||
20773 | # Have a temporary directory for convenience. Make it in the build tree | |
20774 | # simply because there is no reason against having it here, and in addition, | |
20775 | # creating and moving files from /tmp can sometimes cause problems. | |
20776 | # Hook for its removal unless debugging. | |
20777 | # Note that there is a small window in which the directory will not be cleaned: | |
20778 | # after its creation but before its name has been assigned to `$tmp'. | |
20779 | $debug || | |
20780 | { | |
20781 | tmp= | |
20782 | trap 'exit_status=$? | |
20783 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
20784 | ' 0 | |
20785 | trap 'as_fn_exit 1' 1 2 13 15 | |
20786 | } | |
20787 | # Create a (secure) tmp directory for tmp files. | |
20788 | ||
20789 | { | |
20790 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20791 | test -n "$tmp" && test -d "$tmp" | |
20792 | } || | |
20793 | { | |
20794 | tmp=./conf$$-$RANDOM | |
20795 | (umask 077 && mkdir "$tmp") | |
20796 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
20797 | ||
20798 | # Set up the scripts for CONFIG_FILES section. | |
20799 | # No need to generate them if there are no CONFIG_FILES. | |
20800 | # This happens for instance with `./config.status config.h'. | |
20801 | if test -n "$CONFIG_FILES"; then | |
20802 | ||
20803 | ||
20804 | ac_cr=`echo X | tr X '\015'` | |
20805 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20806 | # But we know of no other shell where ac_cr would be empty at this | |
20807 | # point, so we can use a bashism as a fallback. | |
20808 | if test "x$ac_cr" = x; then | |
20809 | eval ac_cr=\$\'\\r\' | |
20810 | fi | |
20811 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20812 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20813 | ac_cs_awk_cr='\r' | |
20814 | else | |
20815 | ac_cs_awk_cr=$ac_cr | |
20816 | fi | |
20817 | ||
20818 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
20819 | _ACEOF | |
20820 | ||
20821 | ||
20822 | { | |
20823 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20824 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20825 | echo "_ACEOF" | |
20826 | } >conf$$subs.sh || | |
20827 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20828 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
20829 | ac_delim='%!_!# ' | |
20830 | for ac_last_try in false false false false false :; do | |
20831 | . ./conf$$subs.sh || | |
20832 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20833 | ||
20834 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20835 | if test $ac_delim_n = $ac_delim_num; then | |
20836 | break | |
20837 | elif $ac_last_try; then | |
20838 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20839 | else | |
20840 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20841 | fi | |
20842 | done | |
20843 | rm -f conf$$subs.sh | |
20844 | ||
20845 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20846 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
20847 | _ACEOF | |
20848 | sed -n ' | |
20849 | h | |
20850 | s/^/S["/; s/!.*/"]=/ | |
20851 | p | |
20852 | g | |
20853 | s/^[^!]*!// | |
20854 | :repl | |
20855 | t repl | |
20856 | s/'"$ac_delim"'$// | |
20857 | t delim | |
20858 | :nl | |
20859 | h | |
20860 | s/\(.\{148\}\)..*/\1/ | |
20861 | t more1 | |
20862 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20863 | p | |
20864 | n | |
20865 | b repl | |
20866 | :more1 | |
20867 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20868 | p | |
20869 | g | |
20870 | s/.\{148\}// | |
20871 | t nl | |
20872 | :delim | |
20873 | h | |
20874 | s/\(.\{148\}\)..*/\1/ | |
20875 | t more2 | |
20876 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20877 | p | |
20878 | b | |
20879 | :more2 | |
20880 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20881 | p | |
20882 | g | |
20883 | s/.\{148\}// | |
20884 | t delim | |
20885 | ' <conf$$subs.awk | sed ' | |
20886 | /^[^""]/{ | |
20887 | N | |
20888 | s/\n// | |
20889 | } | |
20890 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20891 | rm -f conf$$subs.awk | |
20892 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20893 | _ACAWK | |
20894 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
20895 | for (key in S) S_is_set[key] = 1 | |
20896 | FS = "\a" | |
20897 | ||
20898 | } | |
20899 | { | |
20900 | line = $ 0 | |
20901 | nfields = split(line, field, "@") | |
20902 | substed = 0 | |
20903 | len = length(field[1]) | |
20904 | for (i = 2; i < nfields; i++) { | |
20905 | key = field[i] | |
20906 | keylen = length(key) | |
20907 | if (S_is_set[key]) { | |
20908 | value = S[key] | |
20909 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20910 | len += length(value) + length(field[++i]) | |
20911 | substed = 1 | |
20912 | } else | |
20913 | len += 1 + keylen | |
20914 | } | |
20915 | ||
20916 | print line | |
20917 | } | |
20918 | ||
20919 | _ACAWK | |
20920 | _ACEOF | |
20921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20922 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20923 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20924 | else | |
20925 | cat | |
20926 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
20927 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
20928 | _ACEOF | |
20929 | ||
20930 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20931 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20932 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20933 | # (actually we leave an empty line to preserve line numbers). | |
20934 | if test "x$srcdir" = x.; then | |
20935 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20936 | s/:*\$(srcdir):*/:/ | |
20937 | s/:*\${srcdir}:*/:/ | |
20938 | s/:*@srcdir@:*/:/ | |
20939 | s/^\([^=]*=[ ]*\):*/\1/ | |
20940 | s/:*$// | |
20941 | s/^[^=]*=[ ]*$// | |
20942 | }' | |
20943 | fi | |
20944 | ||
20945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20946 | fi # test -n "$CONFIG_FILES" | |
20947 | ||
20948 | ||
20949 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
20950 | shift | |
20951 | for ac_tag | |
20952 | do | |
20953 | case $ac_tag in | |
20954 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20955 | esac | |
20956 | case $ac_mode$ac_tag in | |
20957 | :[FHL]*:*);; | |
20958 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20959 | :[FH]-) ac_tag=-:-;; | |
20960 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20961 | esac | |
20962 | ac_save_IFS=$IFS | |
20963 | IFS=: | |
20964 | set x $ac_tag | |
20965 | IFS=$ac_save_IFS | |
20966 | shift | |
20967 | ac_file=$1 | |
20968 | shift | |
20969 | ||
20970 | case $ac_mode in | |
20971 | :L) ac_source=$1;; | |
20972 | :[FH]) | |
20973 | ac_file_inputs= | |
20974 | for ac_f | |
20975 | do | |
20976 | case $ac_f in | |
20977 | -) ac_f="$tmp/stdin";; | |
20978 | *) # Look for the file first in the build tree, then in the source tree | |
20979 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20980 | # because $ac_f cannot contain `:'. | |
20981 | test -f "$ac_f" || | |
20982 | case $ac_f in | |
20983 | [\\/$]*) false;; | |
20984 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20985 | esac || | |
20986 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20987 | esac | |
20988 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20989 | as_fn_append ac_file_inputs " '$ac_f'" | |
20990 | done | |
20991 | ||
20992 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20993 | # use $as_me), people would be surprised to read: | |
20994 | # /* config.h. Generated by config.status. */ | |
20995 | configure_input='Generated from '` | |
20996 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20997 | `' by configure.' | |
20998 | if test x"$ac_file" != x-; then | |
20999 | configure_input="$ac_file. $configure_input" | |
21000 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21001 | $as_echo "$as_me: creating $ac_file" >&6;} | |
21002 | fi | |
21003 | # Neutralize special characters interpreted by sed in replacement strings. | |
21004 | case $configure_input in #( | |
21005 | *\&* | *\|* | *\\* ) | |
21006 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
21007 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21008 | *) ac_sed_conf_input=$configure_input;; | |
21009 | esac | |
21010 | ||
21011 | case $ac_tag in | |
21012 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
21013 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
21014 | esac | |
21015 | ;; | |
21016 | esac | |
21017 | ||
21018 | ac_dir=`$as_dirname -- "$ac_file" || | |
21019 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21020 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21021 | X"$ac_file" : 'X\(//\)$' \| \ | |
21022 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21023 | $as_echo X"$ac_file" | | |
21024 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21025 | s//\1/ | |
21026 | q | |
21027 | } | |
21028 | /^X\(\/\/\)[^/].*/{ | |
21029 | s//\1/ | |
21030 | q | |
21031 | } | |
21032 | /^X\(\/\/\)$/{ | |
21033 | s//\1/ | |
21034 | q | |
21035 | } | |
21036 | /^X\(\/\).*/{ | |
21037 | s//\1/ | |
21038 | q | |
21039 | } | |
21040 | s/.*/./; q'` | |
21041 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21042 | ac_builddir=. | |
21043 | ||
21044 | case "$ac_dir" in | |
21045 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21046 | *) | |
21047 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21048 | # A ".." for each directory in $ac_dir_suffix. | |
21049 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21050 | case $ac_top_builddir_sub in | |
21051 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21052 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21053 | esac ;; | |
21054 | esac | |
21055 | ac_abs_top_builddir=$ac_pwd | |
21056 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21057 | # for backward compatibility: | |
21058 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 21059 | |
9c60689e DWT |
21060 | case $srcdir in |
21061 | .) # We are building in place. | |
21062 | ac_srcdir=. | |
21063 | ac_top_srcdir=$ac_top_builddir_sub | |
21064 | ac_abs_top_srcdir=$ac_pwd ;; | |
21065 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21066 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21067 | ac_top_srcdir=$srcdir | |
21068 | ac_abs_top_srcdir=$srcdir ;; | |
21069 | *) # Relative name. | |
21070 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21071 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21072 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21073 | esac | |
21074 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
21075 | |
21076 | ||
9c60689e DWT |
21077 | case $ac_mode in |
21078 | :F) | |
21079 | # | |
21080 | # CONFIG_FILE | |
21081 | # | |
35fa52c0 | 21082 | |
9c60689e DWT |
21083 | case $INSTALL in |
21084 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21085 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21086 | esac | |
21087 | _ACEOF | |
35fa52c0 | 21088 | |
9c60689e DWT |
21089 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
21090 | # If the template does not know about datarootdir, expand it. | |
21091 | # FIXME: This hack should be removed a few years after 2.60. | |
21092 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
21093 | ac_sed_dataroot=' | |
21094 | /datarootdir/ { | |
21095 | p | |
21096 | q | |
21097 | } | |
21098 | /@datadir@/p | |
21099 | /@docdir@/p | |
21100 | /@infodir@/p | |
21101 | /@localedir@/p | |
21102 | /@mandir@/p' | |
21103 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21104 | *datarootdir*) ac_datarootdir_seen=yes;; | |
21105 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21107 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21108 | _ACEOF | |
21109 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21110 | ac_datarootdir_hack=' | |
21111 | s&@datadir@&$datadir&g | |
21112 | s&@docdir@&$docdir&g | |
21113 | s&@infodir@&$infodir&g | |
21114 | s&@localedir@&$localedir&g | |
21115 | s&@mandir@&$mandir&g | |
21116 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
21117 | esac | |
21118 | _ACEOF | |
35fa52c0 | 21119 | |
9c60689e DWT |
21120 | # Neutralize VPATH when `$srcdir' = `.'. |
21121 | # Shell code in configure.ac might set extrasub. | |
21122 | # FIXME: do we really want to maintain this feature? | |
21123 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21124 | ac_sed_extra="$ac_vpsub | |
21125 | $extrasub | |
21126 | _ACEOF | |
21127 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21128 | :t | |
21129 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21130 | s|@configure_input@|$ac_sed_conf_input|;t t | |
21131 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21132 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21133 | s&@srcdir@&$ac_srcdir&;t t | |
21134 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21135 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
21136 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21137 | s&@builddir@&$ac_builddir&;t t | |
21138 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
21139 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21140 | s&@INSTALL@&$ac_INSTALL&;t t | |
21141 | $ac_datarootdir_hack | |
21142 | " | |
21143 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
21144 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
21145 | ||
21146 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
21147 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
21148 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
21149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21150 | which seems to be undefined. Please make sure it is defined." >&5 | |
21151 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21152 | which seems to be undefined. Please make sure it is defined." >&2;} | |
21153 | ||
21154 | rm -f "$tmp/stdin" | |
21155 | case $ac_file in | |
21156 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
21157 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
21158 | esac \ | |
21159 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
21160 | ;; | |
35fa52c0 | 21161 | |
35fa52c0 | 21162 | |
9c60689e DWT |
21163 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
21164 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
21165 | ;; | |
21166 | esac | |
35fa52c0 | 21167 | |
35fa52c0 | 21168 | |
9c60689e DWT |
21169 | case $ac_file$ac_mode in |
21170 | "libtool":C) | |
21171 | ||
21172 | # See if we are running on zsh, and set the options which allow our | |
21173 | # commands through without removal of \ escapes. | |
21174 | if test -n "${ZSH_VERSION+set}" ; then | |
21175 | setopt NO_GLOB_SUBST | |
35fa52c0 | 21176 | fi |
35fa52c0 | 21177 | |
9c60689e DWT |
21178 | cfgfile="${ofile}T" |
21179 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
21180 | $RM "$cfgfile" | |
35fa52c0 | 21181 | |
9c60689e DWT |
21182 | cat <<_LT_EOF >> "$cfgfile" |
21183 | #! $SHELL | |
35fa52c0 | 21184 | |
9c60689e DWT |
21185 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
21186 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
21187 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21188 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
21189 | # | |
21190 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
21191 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
21192 | # Written by Gordon Matzigkeit, 1996 | |
21193 | # | |
21194 | # This file is part of GNU Libtool. | |
21195 | # | |
21196 | # GNU Libtool is free software; you can redistribute it and/or | |
21197 | # modify it under the terms of the GNU General Public License as | |
21198 | # published by the Free Software Foundation; either version 2 of | |
21199 | # the License, or (at your option) any later version. | |
21200 | # | |
21201 | # As a special exception to the GNU General Public License, | |
21202 | # if you distribute this file as part of a program or library that | |
21203 | # is built using GNU Libtool, you may include this file under the | |
21204 | # same distribution terms that you use for the rest of that program. | |
21205 | # | |
21206 | # GNU Libtool is distributed in the hope that it will be useful, | |
21207 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21208 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21209 | # GNU General Public License for more details. | |
21210 | # | |
21211 | # You should have received a copy of the GNU General Public License | |
21212 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
21213 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
21214 | # obtained by writing to the Free Software Foundation, Inc., | |
21215 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 21216 | |
35fa52c0 | 21217 | |
9c60689e DWT |
21218 | # The names of the tagged configurations supported by this script. |
21219 | available_tags="CXX " | |
35fa52c0 | 21220 | |
9c60689e | 21221 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 21222 | |
9c60689e DWT |
21223 | # Which release of libtool.m4 was used? |
21224 | macro_version=$macro_version | |
21225 | macro_revision=$macro_revision | |
35fa52c0 | 21226 | |
9c60689e DWT |
21227 | # Whether or not to build static libraries. |
21228 | build_old_libs=$enable_static | |
35fa52c0 | 21229 | |
549f29b5 DWT |
21230 | # Whether or not to build shared libraries. |
21231 | build_libtool_libs=$enable_shared | |
21232 | ||
9c60689e DWT |
21233 | # What type of objects to build. |
21234 | pic_mode=$pic_mode | |
35fa52c0 | 21235 | |
9c60689e DWT |
21236 | # Whether or not to optimize for fast installation. |
21237 | fast_install=$enable_fast_install | |
35fa52c0 | 21238 | |
9c60689e DWT |
21239 | # The host system. |
21240 | host_alias=$host_alias | |
21241 | host=$host | |
21242 | host_os=$host_os | |
35fa52c0 | 21243 | |
9c60689e DWT |
21244 | # The build system. |
21245 | build_alias=$build_alias | |
21246 | build=$build | |
21247 | build_os=$build_os | |
21248 | ||
21249 | # A sed program that does not truncate output. | |
21250 | SED=$lt_SED | |
21251 | ||
21252 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
21253 | Xsed="\$SED -e 1s/^X//" | |
21254 | ||
21255 | # A grep program that handles long lines. | |
21256 | GREP=$lt_GREP | |
21257 | ||
21258 | # An ERE matcher. | |
21259 | EGREP=$lt_EGREP | |
21260 | ||
21261 | # A literal string matcher. | |
21262 | FGREP=$lt_FGREP | |
21263 | ||
21264 | # A BSD- or MS-compatible name lister. | |
21265 | NM=$lt_NM | |
21266 | ||
21267 | # Whether we need soft or hard links. | |
21268 | LN_S=$lt_LN_S | |
21269 | ||
21270 | # What is the maximum length of a command? | |
21271 | max_cmd_len=$max_cmd_len | |
21272 | ||
21273 | # Object file suffix (normally "o"). | |
21274 | objext=$ac_objext | |
21275 | ||
21276 | # Executable file suffix (normally ""). | |
21277 | exeext=$exeext | |
21278 | ||
21279 | # whether the shell understands "unset". | |
21280 | lt_unset=$lt_unset | |
21281 | ||
21282 | # turn spaces into newlines. | |
21283 | SP2NL=$lt_lt_SP2NL | |
21284 | ||
21285 | # turn newlines into spaces. | |
21286 | NL2SP=$lt_lt_NL2SP | |
21287 | ||
21288 | # How to create reloadable object files. | |
21289 | reload_flag=$lt_reload_flag | |
21290 | reload_cmds=$lt_reload_cmds | |
21291 | ||
21292 | # An object symbol dumper. | |
21293 | OBJDUMP=$lt_OBJDUMP | |
21294 | ||
21295 | # Method to check whether dependent libraries are shared objects. | |
21296 | deplibs_check_method=$lt_deplibs_check_method | |
21297 | ||
21298 | # Command to use when deplibs_check_method == "file_magic". | |
21299 | file_magic_cmd=$lt_file_magic_cmd | |
21300 | ||
21301 | # The archiver. | |
21302 | AR=$lt_AR | |
21303 | AR_FLAGS=$lt_AR_FLAGS | |
21304 | ||
21305 | # A symbol stripping program. | |
21306 | STRIP=$lt_STRIP | |
21307 | ||
21308 | # Commands used to install an old-style archive. | |
21309 | RANLIB=$lt_RANLIB | |
21310 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21311 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21312 | ||
21313 | # A C compiler. | |
21314 | LTCC=$lt_CC | |
21315 | ||
21316 | # LTCC compiler flags. | |
21317 | LTCFLAGS=$lt_CFLAGS | |
21318 | ||
21319 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21320 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21321 | ||
21322 | # Transform the output of nm in a proper C declaration. | |
21323 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21324 | ||
21325 | # Transform the output of nm in a C name address pair. | |
21326 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21327 | ||
21328 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
21329 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
21330 | ||
21331 | # The name of the directory that contains temporary libtool files. | |
21332 | objdir=$objdir | |
21333 | ||
21334 | # Shell to use when invoking shell scripts. | |
21335 | SHELL=$lt_SHELL | |
21336 | ||
21337 | # An echo program that does not interpret backslashes. | |
21338 | ECHO=$lt_ECHO | |
21339 | ||
21340 | # Used to examine libraries when file_magic_cmd begins with "file". | |
21341 | MAGIC_CMD=$MAGIC_CMD | |
21342 | ||
21343 | # Must we lock files when doing compilation? | |
21344 | need_locks=$lt_need_locks | |
21345 | ||
21346 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
21347 | DSYMUTIL=$lt_DSYMUTIL | |
21348 | ||
21349 | # Tool to change global to local symbols on Mac OS X. | |
21350 | NMEDIT=$lt_NMEDIT | |
21351 | ||
21352 | # Tool to manipulate fat objects and archives on Mac OS X. | |
21353 | LIPO=$lt_LIPO | |
21354 | ||
21355 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
21356 | OTOOL=$lt_OTOOL | |
21357 | ||
21358 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
21359 | OTOOL64=$lt_OTOOL64 | |
21360 | ||
21361 | # Old archive suffix (normally "a"). | |
21362 | libext=$libext | |
21363 | ||
21364 | # Shared library suffix (normally ".so"). | |
21365 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 21366 | |
9c60689e DWT |
21367 | # The commands to extract the exported symbol list from a shared archive. |
21368 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 21369 | |
9c60689e DWT |
21370 | # Variables whose values should be saved in libtool wrapper scripts and |
21371 | # restored at link time. | |
21372 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 21373 | |
9c60689e DWT |
21374 | # Do we need the "lib" prefix for modules? |
21375 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 21376 | |
9c60689e DWT |
21377 | # Do we need a version for libraries? |
21378 | need_version=$need_version | |
35fa52c0 | 21379 | |
9c60689e DWT |
21380 | # Library versioning type. |
21381 | version_type=$version_type | |
35fa52c0 | 21382 | |
9c60689e DWT |
21383 | # Shared library runtime path variable. |
21384 | runpath_var=$runpath_var | |
35fa52c0 | 21385 | |
9c60689e DWT |
21386 | # Shared library path variable. |
21387 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 21388 | |
9c60689e DWT |
21389 | # Is shlibpath searched before the hard-coded library search path? |
21390 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 21391 | |
9c60689e DWT |
21392 | # Format of library name prefix. |
21393 | libname_spec=$lt_libname_spec | |
35fa52c0 | 21394 | |
9c60689e DWT |
21395 | # List of archive names. First name is the real one, the rest are links. |
21396 | # The last name is the one that the linker finds with -lNAME | |
21397 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 21398 | |
9c60689e DWT |
21399 | # The coded name of the library, if different from the real name. |
21400 | soname_spec=$lt_soname_spec | |
dbadc56a | 21401 | |
9c60689e DWT |
21402 | # Command to use after installation of a shared archive. |
21403 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 21404 | |
9c60689e DWT |
21405 | # Command to use after uninstallation of a shared archive. |
21406 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 21407 | |
9c60689e DWT |
21408 | # Commands used to finish a libtool library installation in a directory. |
21409 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 21410 | |
9c60689e DWT |
21411 | # As "finish_cmds", except a single script fragment to be evaled but |
21412 | # not shown. | |
21413 | finish_eval=$lt_finish_eval | |
35fa52c0 | 21414 | |
9c60689e DWT |
21415 | # Whether we should hardcode library paths into libraries. |
21416 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 21417 | |
9c60689e DWT |
21418 | # Compile-time system search path for libraries. |
21419 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 21420 | |
9c60689e DWT |
21421 | # Run-time system search path for libraries. |
21422 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 21423 | |
9c60689e DWT |
21424 | # Whether dlopen is supported. |
21425 | dlopen_support=$enable_dlopen | |
dbadc56a | 21426 | |
9c60689e DWT |
21427 | # Whether dlopen of programs is supported. |
21428 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 21429 | |
9c60689e DWT |
21430 | # Whether dlopen of statically linked programs is supported. |
21431 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 21432 | |
9c60689e DWT |
21433 | # Commands to strip libraries. |
21434 | old_striplib=$lt_old_striplib | |
21435 | striplib=$lt_striplib | |
35fa52c0 | 21436 | |
35fa52c0 | 21437 | |
9c60689e DWT |
21438 | # The linker used to build libraries. |
21439 | LD=$lt_LD | |
dbadc56a | 21440 | |
9c60689e DWT |
21441 | # Commands used to build an old-style archive. |
21442 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 21443 | |
9c60689e DWT |
21444 | # A language specific compiler. |
21445 | CC=$lt_compiler | |
35fa52c0 | 21446 | |
9c60689e DWT |
21447 | # Is the compiler the GNU compiler? |
21448 | with_gcc=$GCC | |
dbadc56a | 21449 | |
9c60689e DWT |
21450 | # Compiler flag to turn off builtin functions. |
21451 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 21452 | |
9c60689e DWT |
21453 | # How to pass a linker flag through the compiler. |
21454 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 21455 | |
9c60689e DWT |
21456 | # Additional compiler flags for building library objects. |
21457 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 21458 | |
9c60689e DWT |
21459 | # Compiler flag to prevent dynamic linking. |
21460 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 21461 | |
9c60689e DWT |
21462 | # Does compiler simultaneously support -c and -o options? |
21463 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 21464 | |
9c60689e DWT |
21465 | # Whether or not to add -lc for building shared libraries. |
21466 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 21467 | |
9c60689e DWT |
21468 | # Whether or not to disallow shared libs when runtime libs are static. |
21469 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 21470 | |
9c60689e DWT |
21471 | # Compiler flag to allow reflexive dlopens. |
21472 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 21473 | |
9c60689e DWT |
21474 | # Compiler flag to generate shared objects directly from archives. |
21475 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 21476 | |
9c60689e DWT |
21477 | # Whether the compiler copes with passing no objects directly. |
21478 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 21479 | |
9c60689e DWT |
21480 | # Create an old-style archive from a shared archive. |
21481 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 21482 | |
9c60689e DWT |
21483 | # Create a temporary old-style archive to link instead of a shared archive. |
21484 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 21485 | |
9c60689e DWT |
21486 | # Commands used to build a shared archive. |
21487 | archive_cmds=$lt_archive_cmds | |
21488 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 21489 | |
9c60689e DWT |
21490 | # Commands used to build a loadable module if different from building |
21491 | # a shared archive. | |
21492 | module_cmds=$lt_module_cmds | |
21493 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 21494 | |
9c60689e DWT |
21495 | # Whether we are building with GNU ld or not. |
21496 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 21497 | |
9c60689e DWT |
21498 | # Flag that allows shared libraries with undefined symbols to be built. |
21499 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 21500 | |
9c60689e DWT |
21501 | # Flag that enforces no undefined symbols. |
21502 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 21503 | |
9c60689e DWT |
21504 | # Flag to hardcode \$libdir into a binary during linking. |
21505 | # This must work even if \$libdir does not exist | |
21506 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 21507 | |
9c60689e DWT |
21508 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21509 | # during linking. This must work even if \$libdir does not exist. | |
21510 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 21511 | |
9c60689e DWT |
21512 | # Whether we need a single "-rpath" flag with a separated argument. |
21513 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 21514 | |
9c60689e DWT |
21515 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21516 | # DIR into the resulting binary. | |
21517 | hardcode_direct=$hardcode_direct | |
6b66678a | 21518 | |
9c60689e DWT |
21519 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21520 | # DIR into the resulting binary and the resulting library dependency is | |
21521 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21522 | # library is relocated. | |
21523 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 21524 | |
9c60689e DWT |
21525 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21526 | # into the resulting binary. | |
21527 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 21528 | |
9c60689e DWT |
21529 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21530 | # into the resulting binary. | |
21531 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 21532 | |
9c60689e DWT |
21533 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21534 | # into the library and all subsequent libraries and executables linked | |
21535 | # against it. | |
21536 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 21537 | |
9c60689e DWT |
21538 | # Set to yes if linker adds runtime paths of dependent libraries |
21539 | # to runtime path list. | |
21540 | inherit_rpath=$inherit_rpath | |
6b66678a | 21541 | |
9c60689e DWT |
21542 | # Whether libtool must link a program against all its dependency libraries. |
21543 | link_all_deplibs=$link_all_deplibs | |
21544 | ||
21545 | # Fix the shell variable \$srcfile for the compiler. | |
21546 | fix_srcfile_path=$lt_fix_srcfile_path | |
21547 | ||
21548 | # Set to "yes" if exported symbols are required. | |
21549 | always_export_symbols=$always_export_symbols | |
6b66678a | 21550 | |
9c60689e DWT |
21551 | # The commands to list exported symbols. |
21552 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 21553 | |
9c60689e DWT |
21554 | # Symbols that should not be listed in the preloaded symbols. |
21555 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 21556 | |
9c60689e DWT |
21557 | # Symbols that must always be exported. |
21558 | include_expsyms=$lt_include_expsyms | |
6b66678a | 21559 | |
9c60689e DWT |
21560 | # Commands necessary for linking programs (against libraries) with templates. |
21561 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 21562 | |
9c60689e DWT |
21563 | # Specify filename containing input files. |
21564 | file_list_spec=$lt_file_list_spec | |
6b66678a | 21565 | |
9c60689e DWT |
21566 | # How to hardcode a shared library path into an executable. |
21567 | hardcode_action=$hardcode_action | |
21568 | ||
21569 | # The directories searched by this compiler when creating a shared library. | |
21570 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
21571 | ||
21572 | # Dependencies to place before and after the objects being linked to | |
21573 | # create a shared library. | |
21574 | predep_objects=$lt_predep_objects | |
21575 | postdep_objects=$lt_postdep_objects | |
21576 | predeps=$lt_predeps | |
21577 | postdeps=$lt_postdeps | |
21578 | ||
21579 | # The library search path used internally by the compiler when linking | |
21580 | # a shared library. | |
21581 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
21582 | ||
21583 | # ### END LIBTOOL CONFIG | |
21584 | ||
21585 | _LT_EOF | |
21586 | ||
21587 | case $host_os in | |
21588 | aix3*) | |
21589 | cat <<\_LT_EOF >> "$cfgfile" | |
21590 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21591 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21592 | # vanish in a puff of smoke. | |
21593 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
21594 | COLLECT_NAMES= | |
21595 | export COLLECT_NAMES | |
6b66678a | 21596 | fi |
9c60689e DWT |
21597 | _LT_EOF |
21598 | ;; | |
21599 | esac | |
6b66678a DWT |
21600 | |
21601 | ||
9c60689e | 21602 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 21603 | |
9c60689e DWT |
21604 | |
21605 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21606 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21607 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21608 | # is reportedly fixed, but why not run on old versions too? | |
21609 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
21610 | || (rm -f "$cfgfile"; exit 1) | |
21611 | ||
21612 | case $xsi_shell in | |
21613 | yes) | |
21614 | cat << \_LT_EOF >> "$cfgfile" | |
21615 | ||
21616 | # func_dirname file append nondir_replacement | |
21617 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
21618 | # otherwise set result to NONDIR_REPLACEMENT. | |
21619 | func_dirname () | |
6b66678a | 21620 | { |
9c60689e DWT |
21621 | case ${1} in |
21622 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21623 | * ) func_dirname_result="${3}" ;; | |
21624 | esac | |
21625 | } | |
6b66678a | 21626 | |
9c60689e DWT |
21627 | # func_basename file |
21628 | func_basename () | |
21629 | { | |
21630 | func_basename_result="${1##*/}" | |
6b66678a | 21631 | } |
6b66678a | 21632 | |
9c60689e DWT |
21633 | # func_dirname_and_basename file append nondir_replacement |
21634 | # perform func_basename and func_dirname in a single function | |
21635 | # call: | |
21636 | # dirname: Compute the dirname of FILE. If nonempty, | |
21637 | # add APPEND to the result, otherwise set result | |
21638 | # to NONDIR_REPLACEMENT. | |
21639 | # value returned in "$func_dirname_result" | |
21640 | # basename: Compute filename of FILE. | |
21641 | # value retuned in "$func_basename_result" | |
21642 | # Implementation must be kept synchronized with func_dirname | |
21643 | # and func_basename. For efficiency, we do not delegate to | |
21644 | # those functions but instead duplicate the functionality here. | |
21645 | func_dirname_and_basename () | |
21646 | { | |
21647 | case ${1} in | |
21648 | */*) func_dirname_result="${1%/*}${2}" ;; | |
21649 | * ) func_dirname_result="${3}" ;; | |
21650 | esac | |
21651 | func_basename_result="${1##*/}" | |
21652 | } | |
6b66678a | 21653 | |
9c60689e DWT |
21654 | # func_stripname prefix suffix name |
21655 | # strip PREFIX and SUFFIX off of NAME. | |
21656 | # PREFIX and SUFFIX must not contain globbing or regex special | |
21657 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
21658 | # dot (in which case that matches only a dot). | |
21659 | func_stripname () | |
21660 | { | |
21661 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
21662 | # positional parameters, so assign one to ordinary parameter first. | |
21663 | func_stripname_result=${3} | |
21664 | func_stripname_result=${func_stripname_result#"${1}"} | |
21665 | func_stripname_result=${func_stripname_result%"${2}"} | |
21666 | } | |
6b66678a | 21667 | |
9c60689e DWT |
21668 | # func_opt_split |
21669 | func_opt_split () | |
21670 | { | |
21671 | func_opt_split_opt=${1%%=*} | |
21672 | func_opt_split_arg=${1#*=} | |
21673 | } | |
6b66678a | 21674 | |
9c60689e DWT |
21675 | # func_lo2o object |
21676 | func_lo2o () | |
21677 | { | |
21678 | case ${1} in | |
21679 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
21680 | *) func_lo2o_result=${1} ;; | |
21681 | esac | |
21682 | } | |
6b66678a | 21683 | |
9c60689e DWT |
21684 | # func_xform libobj-or-source |
21685 | func_xform () | |
21686 | { | |
21687 | func_xform_result=${1%.*}.lo | |
21688 | } | |
6b66678a | 21689 | |
9c60689e DWT |
21690 | # func_arith arithmetic-term... |
21691 | func_arith () | |
21692 | { | |
21693 | func_arith_result=$(( $* )) | |
21694 | } | |
6b66678a | 21695 | |
9c60689e DWT |
21696 | # func_len string |
21697 | # STRING may not start with a hyphen. | |
21698 | func_len () | |
21699 | { | |
21700 | func_len_result=${#1} | |
21701 | } | |
6b66678a | 21702 | |
9c60689e DWT |
21703 | _LT_EOF |
21704 | ;; | |
21705 | *) # Bourne compatible functions. | |
21706 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 21707 | |
9c60689e DWT |
21708 | # func_dirname file append nondir_replacement |
21709 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
21710 | # otherwise set result to NONDIR_REPLACEMENT. | |
21711 | func_dirname () | |
21712 | { | |
21713 | # Extract subdirectory from the argument. | |
21714 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
21715 | if test "X$func_dirname_result" = "X${1}"; then | |
21716 | func_dirname_result="${3}" | |
21717 | else | |
21718 | func_dirname_result="$func_dirname_result${2}" | |
21719 | fi | |
21720 | } | |
6b66678a | 21721 | |
9c60689e DWT |
21722 | # func_basename file |
21723 | func_basename () | |
6b66678a | 21724 | { |
9c60689e | 21725 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 21726 | } |
6b66678a | 21727 | |
6b66678a | 21728 | |
9c60689e DWT |
21729 | # func_stripname prefix suffix name |
21730 | # strip PREFIX and SUFFIX off of NAME. | |
21731 | # PREFIX and SUFFIX must not contain globbing or regex special | |
21732 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
21733 | # dot (in which case that matches only a dot). | |
21734 | # func_strip_suffix prefix name | |
21735 | func_stripname () | |
21736 | { | |
21737 | case ${2} in | |
21738 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
21739 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
21740 | *) func_stripname_result=`$ECHO "X${3}" \ | |
21741 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
21742 | esac | |
21743 | } | |
6b66678a | 21744 | |
9c60689e DWT |
21745 | # sed scripts: |
21746 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
21747 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 21748 | |
9c60689e DWT |
21749 | # func_opt_split |
21750 | func_opt_split () | |
21751 | { | |
21752 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
21753 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
21754 | } | |
6b66678a | 21755 | |
9c60689e DWT |
21756 | # func_lo2o object |
21757 | func_lo2o () | |
21758 | { | |
21759 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
21760 | } | |
21761 | ||
21762 | # func_xform libobj-or-source | |
21763 | func_xform () | |
21764 | { | |
21765 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
21766 | } | |
21767 | ||
21768 | # func_arith arithmetic-term... | |
21769 | func_arith () | |
21770 | { | |
21771 | func_arith_result=`expr "$@"` | |
21772 | } | |
21773 | ||
21774 | # func_len string | |
21775 | # STRING may not start with a hyphen. | |
21776 | func_len () | |
21777 | { | |
21778 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
21779 | } | |
21780 | ||
21781 | _LT_EOF | |
21782 | esac | |
21783 | ||
21784 | case $lt_shell_append in | |
21785 | yes) | |
21786 | cat << \_LT_EOF >> "$cfgfile" | |
21787 | ||
21788 | # func_append var value | |
21789 | # Append VALUE to the end of shell variable VAR. | |
21790 | func_append () | |
21791 | { | |
21792 | eval "$1+=\$2" | |
21793 | } | |
21794 | _LT_EOF | |
21795 | ;; | |
21796 | *) | |
21797 | cat << \_LT_EOF >> "$cfgfile" | |
21798 | ||
21799 | # func_append var value | |
21800 | # Append VALUE to the end of shell variable VAR. | |
21801 | func_append () | |
21802 | { | |
21803 | eval "$1=\$$1\$2" | |
21804 | } | |
21805 | ||
21806 | _LT_EOF | |
21807 | ;; | |
21808 | esac | |
21809 | ||
21810 | ||
21811 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
21812 | || (rm -f "$cfgfile"; exit 1) | |
21813 | ||
21814 | mv -f "$cfgfile" "$ofile" || | |
21815 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21816 | chmod +x "$ofile" | |
21817 | ||
21818 | ||
21819 | cat <<_LT_EOF >> "$ofile" | |
21820 | ||
21821 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
21822 | ||
21823 | # The linker used to build libraries. | |
21824 | LD=$lt_LD_CXX | |
21825 | ||
21826 | # Commands used to build an old-style archive. | |
21827 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
21828 | ||
21829 | # A language specific compiler. | |
21830 | CC=$lt_compiler_CXX | |
21831 | ||
21832 | # Is the compiler the GNU compiler? | |
21833 | with_gcc=$GCC_CXX | |
21834 | ||
21835 | # Compiler flag to turn off builtin functions. | |
21836 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 21837 | |
9c60689e DWT |
21838 | # How to pass a linker flag through the compiler. |
21839 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 21840 | |
9c60689e DWT |
21841 | # Additional compiler flags for building library objects. |
21842 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 21843 | |
9c60689e DWT |
21844 | # Compiler flag to prevent dynamic linking. |
21845 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 21846 | |
9c60689e DWT |
21847 | # Does compiler simultaneously support -c and -o options? |
21848 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 21849 | |
9c60689e DWT |
21850 | # Whether or not to add -lc for building shared libraries. |
21851 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 21852 | |
9c60689e DWT |
21853 | # Whether or not to disallow shared libs when runtime libs are static. |
21854 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 21855 | |
9c60689e DWT |
21856 | # Compiler flag to allow reflexive dlopens. |
21857 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 21858 | |
9c60689e DWT |
21859 | # Compiler flag to generate shared objects directly from archives. |
21860 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 21861 | |
9c60689e DWT |
21862 | # Whether the compiler copes with passing no objects directly. |
21863 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 21864 | |
9c60689e DWT |
21865 | # Create an old-style archive from a shared archive. |
21866 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 21867 | |
9c60689e DWT |
21868 | # Create a temporary old-style archive to link instead of a shared archive. |
21869 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 21870 | |
9c60689e DWT |
21871 | # Commands used to build a shared archive. |
21872 | archive_cmds=$lt_archive_cmds_CXX | |
21873 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 21874 | |
9c60689e DWT |
21875 | # Commands used to build a loadable module if different from building |
21876 | # a shared archive. | |
21877 | module_cmds=$lt_module_cmds_CXX | |
21878 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 21879 | |
9c60689e DWT |
21880 | # Whether we are building with GNU ld or not. |
21881 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 21882 | |
9c60689e DWT |
21883 | # Flag that allows shared libraries with undefined symbols to be built. |
21884 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 21885 | |
9c60689e DWT |
21886 | # Flag that enforces no undefined symbols. |
21887 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 21888 | |
9c60689e DWT |
21889 | # Flag to hardcode \$libdir into a binary during linking. |
21890 | # This must work even if \$libdir does not exist | |
21891 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 21892 | |
9c60689e DWT |
21893 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
21894 | # during linking. This must work even if \$libdir does not exist. | |
21895 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 21896 | |
9c60689e DWT |
21897 | # Whether we need a single "-rpath" flag with a separated argument. |
21898 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 21899 | |
9c60689e DWT |
21900 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21901 | # DIR into the resulting binary. | |
21902 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 21903 | |
9c60689e DWT |
21904 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
21905 | # DIR into the resulting binary and the resulting library dependency is | |
21906 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21907 | # library is relocated. | |
21908 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 21909 | |
9c60689e DWT |
21910 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
21911 | # into the resulting binary. | |
21912 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 21913 | |
9c60689e DWT |
21914 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
21915 | # into the resulting binary. | |
21916 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 21917 | |
9c60689e DWT |
21918 | # Set to "yes" if building a shared library automatically hardcodes DIR |
21919 | # into the library and all subsequent libraries and executables linked | |
21920 | # against it. | |
21921 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 21922 | |
9c60689e DWT |
21923 | # Set to yes if linker adds runtime paths of dependent libraries |
21924 | # to runtime path list. | |
21925 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 21926 | |
9c60689e DWT |
21927 | # Whether libtool must link a program against all its dependency libraries. |
21928 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 21929 | |
9c60689e DWT |
21930 | # Fix the shell variable \$srcfile for the compiler. |
21931 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 21932 | |
9c60689e DWT |
21933 | # Set to "yes" if exported symbols are required. |
21934 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 21935 | |
9c60689e DWT |
21936 | # The commands to list exported symbols. |
21937 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 21938 | |
9c60689e DWT |
21939 | # Symbols that should not be listed in the preloaded symbols. |
21940 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 21941 | |
9c60689e DWT |
21942 | # Symbols that must always be exported. |
21943 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 21944 | |
9c60689e DWT |
21945 | # Commands necessary for linking programs (against libraries) with templates. |
21946 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 21947 | |
9c60689e DWT |
21948 | # Specify filename containing input files. |
21949 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 21950 | |
9c60689e DWT |
21951 | # How to hardcode a shared library path into an executable. |
21952 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 21953 | |
9c60689e DWT |
21954 | # The directories searched by this compiler when creating a shared library. |
21955 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 21956 | |
9c60689e DWT |
21957 | # Dependencies to place before and after the objects being linked to |
21958 | # create a shared library. | |
21959 | predep_objects=$lt_predep_objects_CXX | |
21960 | postdep_objects=$lt_postdep_objects_CXX | |
21961 | predeps=$lt_predeps_CXX | |
21962 | postdeps=$lt_postdeps_CXX | |
309b0535 | 21963 | |
9c60689e DWT |
21964 | # The library search path used internally by the compiler when linking |
21965 | # a shared library. | |
21966 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
21967 | ||
21968 | # ### END LIBTOOL TAG CONFIG: CXX | |
21969 | _LT_EOF | |
21970 | ||
21971 | ;; | |
21972 | ||
21973 | esac | |
21974 | done # for ac_tag | |
21975 | ||
21976 | ||
21977 | as_fn_exit 0 | |
21978 | _ACEOF | |
21979 | ac_clean_files=$ac_clean_files_save | |
21980 | ||
21981 | test $ac_write_fail = 0 || | |
21982 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
21983 | ||
21984 | ||
21985 | # configure is writing to config.log, and then calls config.status. | |
21986 | # config.status does its own redirection, appending to config.log. | |
21987 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21988 | # by configure, so config.status won't be able to write to it; its | |
21989 | # output is simply discarded. So we exec the FD to /dev/null, | |
21990 | # effectively closing config.log, so it can be properly (re)opened and | |
21991 | # appended to by config.status. When coming back to configure, we | |
21992 | # need to make the FD available again. | |
21993 | if test "$no_create" != yes; then | |
21994 | ac_cs_success=: | |
21995 | ac_config_status_args= | |
21996 | test "$silent" = yes && | |
21997 | ac_config_status_args="$ac_config_status_args --quiet" | |
21998 | exec 5>/dev/null | |
21999 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22000 | exec 5>>config.log | |
22001 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22002 | # would make configure fail if this is the last instruction. | |
22003 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 22004 | fi |
9c60689e DWT |
22005 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
22006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22007 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22008 | fi | |
22009 |