]>
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 | ||
6b66678a DWT |
680 | as_awk_strverscmp=' |
681 | # Use only awk features that work with 7th edition Unix awk (1978). | |
682 | # My, what an old awk you have, Mr. Solaris! | |
683 | END { | |
684 | while (length(v1) && length(v2)) { | |
685 | # Set d1 to be the next thing to compare from v1, and likewise for d2. | |
686 | # Normally this is a single character, but if v1 and v2 contain digits, | |
687 | # compare them as integers and fractions as strverscmp does. | |
688 | if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { | |
689 | # Split v1 and v2 into their leading digit string components d1 and d2, | |
690 | # and advance v1 and v2 past the leading digit strings. | |
691 | for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue | |
692 | for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue | |
693 | d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) | |
694 | d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) | |
695 | if (d1 ~ /^0/) { | |
696 | if (d2 ~ /^0/) { | |
697 | # Compare two fractions. | |
698 | while (d1 ~ /^0/ && d2 ~ /^0/) { | |
699 | d1 = substr(d1, 2); len1-- | |
700 | d2 = substr(d2, 2); len2-- | |
701 | } | |
702 | if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { | |
703 | # The two components differ in length, and the common prefix | |
704 | # contains only leading zeros. Consider the longer to be less. | |
705 | d1 = -len1 | |
706 | d2 = -len2 | |
707 | } else { | |
708 | # Otherwise, compare as strings. | |
709 | d1 = "x" d1 | |
710 | d2 = "x" d2 | |
711 | } | |
712 | } else { | |
713 | # A fraction is less than an integer. | |
714 | exit 1 | |
715 | } | |
716 | } else { | |
717 | if (d2 ~ /^0/) { | |
718 | # An integer is greater than a fraction. | |
719 | exit 2 | |
720 | } else { | |
721 | # Compare two integers. | |
722 | d1 += 0 | |
723 | d2 += 0 | |
724 | } | |
725 | } | |
726 | } else { | |
727 | # The normal case, without worrying about digits. | |
728 | d1 = substr(v1, 1, 1); v1 = substr(v1, 2) | |
729 | d2 = substr(v2, 1, 1); v2 = substr(v2, 2) | |
730 | } | |
731 | if (d1 < d2) exit 1 | |
732 | if (d1 > d2) exit 2 | |
733 | } | |
734 | # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), | |
735 | # which mishandles some comparisons of empty strings to integers. | |
736 | if (length(v2)) exit 1 | |
737 | if (length(v1)) exit 2 | |
738 | } | |
739 | ' | |
c7aa54aa | 740 | |
9c60689e DWT |
741 | test -n "$DJDIR" || exec 7<&0 </dev/null |
742 | exec 6>&1 | |
c7aa54aa DWT |
743 | |
744 | # Name of the host. | |
745 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
746 | # so uname gets run too. | |
747 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
748 | ||
749 | # | |
750 | # Initializations. | |
751 | # | |
752 | ac_default_prefix=/usr/local | |
753 | ac_clean_files= | |
754 | ac_config_libobj_dir=. | |
755 | LIBOBJS= | |
756 | cross_compiling=no | |
757 | subdirs= | |
758 | MFLAGS= | |
759 | MAKEFLAGS= | |
760 | ||
761 | # Identity of this package. | |
762 | PACKAGE_NAME='Cycript' | |
763 | PACKAGE_TARNAME='cycript' | |
764 | PACKAGE_VERSION='0.9' | |
765 | PACKAGE_STRING='Cycript 0.9' | |
766 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
767 | PACKAGE_URL='http://www.cycript.org/' | |
768 | ||
35fa52c0 | 769 | ac_unique_file="Console.cpp" |
6b66678a DWT |
770 | # Factoring default headers for most tests. |
771 | ac_includes_default="\ | |
772 | #include <stdio.h> | |
773 | #ifdef HAVE_SYS_TYPES_H | |
774 | # include <sys/types.h> | |
775 | #endif | |
776 | #ifdef HAVE_SYS_STAT_H | |
777 | # include <sys/stat.h> | |
778 | #endif | |
779 | #ifdef STDC_HEADERS | |
780 | # include <stdlib.h> | |
781 | # include <stddef.h> | |
782 | #else | |
783 | # ifdef HAVE_STDLIB_H | |
784 | # include <stdlib.h> | |
785 | # endif | |
786 | #endif | |
787 | #ifdef HAVE_STRING_H | |
788 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
789 | # include <memory.h> | |
790 | # endif | |
791 | # include <string.h> | |
792 | #endif | |
793 | #ifdef HAVE_STRINGS_H | |
794 | # include <strings.h> | |
795 | #endif | |
796 | #ifdef HAVE_INTTYPES_H | |
797 | # include <inttypes.h> | |
798 | #endif | |
799 | #ifdef HAVE_STDINT_H | |
800 | # include <stdint.h> | |
801 | #endif | |
802 | #ifdef HAVE_UNISTD_H | |
803 | # include <unistd.h> | |
804 | #endif" | |
805 | ||
9c60689e DWT |
806 | ac_subst_vars='LTLIBOBJS |
807 | LIBOBJS | |
e1cce270 | 808 | CY_OBJECTIVEC_MACH |
47aaa820 | 809 | GNUSTEP_CONFIG |
c823f118 | 810 | CY_OBJECTIVEC |
309b0535 | 811 | LIBFFI_LIBS |
35fa52c0 | 812 | LIBFFI_CFLAGS |
3fd51f51 | 813 | CY_EXECUTE |
35fa52c0 DWT |
814 | WEBKIT_LIBS |
815 | WEBKIT_CFLAGS | |
35fa52c0 DWT |
816 | LTLIBICONV |
817 | LIBICONV | |
35fa52c0 DWT |
818 | INSTALL_DATA |
819 | INSTALL_SCRIPT | |
820 | INSTALL_PROGRAM | |
549f29b5 | 821 | LTLIBAPR |
3530897b | 822 | TIME |
9c60689e DWT |
823 | GPERF |
824 | _BASH | |
35fa52c0 DWT |
825 | FLEX |
826 | LEXLIB | |
9c60689e DWT |
827 | LEX_OUTPUT_ROOT |
828 | LEX | |
829 | BISON | |
830 | AWK | |
831 | YFLAGS | |
832 | YACC | |
632b71ea DWT |
833 | ac_ct_OBJCXX |
834 | OBJCXXFLAGS | |
835 | OBJCXX | |
47aaa820 DWT |
836 | CXXCPP |
837 | ac_ct_CXX | |
838 | CXXFLAGS | |
839 | CXX | |
632b71ea | 840 | ifGNUmake |
3fd51f51 | 841 | PKG_CONFIG |
9c60689e DWT |
842 | CPP |
843 | OTOOL64 | |
844 | OTOOL | |
845 | LIPO | |
846 | NMEDIT | |
847 | DSYMUTIL | |
848 | lt_ECHO | |
849 | RANLIB | |
850 | STRIP | |
851 | AR | |
852 | OBJDUMP | |
853 | LN_S | |
854 | NM | |
855 | ac_ct_DUMPBIN | |
856 | DUMPBIN | |
857 | LD | |
858 | FGREP | |
859 | EGREP | |
860 | GREP | |
861 | SED | |
35fa52c0 DWT |
862 | OBJEXT |
863 | EXEEXT | |
864 | ac_ct_CC | |
865 | CPPFLAGS | |
866 | LDFLAGS | |
867 | CFLAGS | |
868 | CC | |
9c60689e DWT |
869 | host_os |
870 | host_vendor | |
871 | host_cpu | |
872 | host | |
873 | build_os | |
874 | build_vendor | |
875 | build_cpu | |
876 | build | |
877 | LIBTOOL | |
dbadc56a | 878 | target_alias |
c7aa54aa DWT |
879 | host_alias |
880 | build_alias | |
881 | LIBS | |
882 | ECHO_T | |
883 | ECHO_N | |
884 | ECHO_C | |
885 | DEFS | |
886 | mandir | |
887 | localedir | |
888 | libdir | |
889 | psdir | |
890 | pdfdir | |
891 | dvidir | |
892 | htmldir | |
893 | infodir | |
894 | docdir | |
895 | oldincludedir | |
896 | includedir | |
897 | localstatedir | |
898 | sharedstatedir | |
899 | sysconfdir | |
900 | datadir | |
901 | datarootdir | |
902 | libexecdir | |
903 | sbindir | |
904 | bindir | |
905 | program_transform_name | |
906 | prefix | |
907 | exec_prefix | |
908 | PACKAGE_URL | |
909 | PACKAGE_BUGREPORT | |
910 | PACKAGE_STRING | |
911 | PACKAGE_VERSION | |
912 | PACKAGE_TARNAME | |
913 | PACKAGE_NAME | |
914 | PATH_SEPARATOR | |
915 | SHELL' | |
916 | ac_subst_files='' | |
917 | ac_user_opts=' | |
918 | enable_option_checking | |
9c60689e | 919 | enable_static |
549f29b5 | 920 | enable_shared |
9c60689e DWT |
921 | with_pic |
922 | enable_fast_install | |
35fa52c0 | 923 | with_gnu_ld |
9c60689e | 924 | enable_libtool_lock |
632b71ea | 925 | with_frameworks |
9c60689e | 926 | with_apr |
35fa52c0 DWT |
927 | enable_rpath |
928 | with_libiconv_prefix | |
b66977f1 | 929 | enable_javascript |
c7aa54aa DWT |
930 | ' |
931 | ac_precious_vars='build_alias | |
932 | host_alias | |
dbadc56a | 933 | target_alias |
35fa52c0 DWT |
934 | CC |
935 | CFLAGS | |
dbadc56a DWT |
936 | LDFLAGS |
937 | LIBS | |
938 | CPPFLAGS | |
9c60689e | 939 | CPP |
3fd51f51 | 940 | PKG_CONFIG |
35fa52c0 DWT |
941 | CXX |
942 | CXXFLAGS | |
943 | CCC | |
9c60689e | 944 | CXXCPP |
632b71ea DWT |
945 | OBJCXX |
946 | OBJCXXFLAGS | |
47aaa820 DWT |
947 | YACC |
948 | YFLAGS | |
27557508 | 949 | GPERF |
35fa52c0 DWT |
950 | WEBKIT_CFLAGS |
951 | WEBKIT_LIBS | |
a667869d DWT |
952 | LIBFFI_CFLAGS |
953 | LIBFFI_LIBS' | |
c7aa54aa DWT |
954 | |
955 | ||
956 | # Initialize some variables set by options. | |
957 | ac_init_help= | |
958 | ac_init_version=false | |
959 | ac_unrecognized_opts= | |
960 | ac_unrecognized_sep= | |
961 | # The variables have the same names as the options, with | |
962 | # dashes changed to underlines. | |
963 | cache_file=/dev/null | |
964 | exec_prefix=NONE | |
965 | no_create= | |
966 | no_recursion= | |
967 | prefix=NONE | |
968 | program_prefix=NONE | |
969 | program_suffix=NONE | |
970 | program_transform_name=s,x,x, | |
971 | silent= | |
972 | site= | |
973 | srcdir= | |
974 | verbose= | |
975 | x_includes=NONE | |
976 | x_libraries=NONE | |
977 | ||
978 | # Installation directory options. | |
979 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
980 | # and all the variables that are supposed to be based on exec_prefix | |
981 | # by default will actually change. | |
982 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
983 | # (The list follows the same order as the GNU Coding Standards.) | |
984 | bindir='${exec_prefix}/bin' | |
985 | sbindir='${exec_prefix}/sbin' | |
986 | libexecdir='${exec_prefix}/libexec' | |
987 | datarootdir='${prefix}/share' | |
988 | datadir='${datarootdir}' | |
989 | sysconfdir='${prefix}/etc' | |
990 | sharedstatedir='${prefix}/com' | |
991 | localstatedir='${prefix}/var' | |
992 | includedir='${prefix}/include' | |
993 | oldincludedir='/usr/include' | |
994 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
995 | infodir='${datarootdir}/info' | |
996 | htmldir='${docdir}' | |
997 | dvidir='${docdir}' | |
998 | pdfdir='${docdir}' | |
999 | psdir='${docdir}' | |
1000 | libdir='${exec_prefix}/lib' | |
1001 | localedir='${datarootdir}/locale' | |
1002 | mandir='${datarootdir}/man' | |
1003 | ||
1004 | ac_prev= | |
1005 | ac_dashdash= | |
1006 | for ac_option | |
1007 | do | |
1008 | # If the previous option needs an argument, assign it. | |
1009 | if test -n "$ac_prev"; then | |
1010 | eval $ac_prev=\$ac_option | |
1011 | ac_prev= | |
1012 | continue | |
1013 | fi | |
1014 | ||
1015 | case $ac_option in | |
1016 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1017 | *) ac_optarg=yes ;; | |
1018 | esac | |
1019 | ||
1020 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1021 | ||
1022 | case $ac_dashdash$ac_option in | |
1023 | --) | |
1024 | ac_dashdash=yes ;; | |
1025 | ||
1026 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1027 | ac_prev=bindir ;; | |
1028 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1029 | bindir=$ac_optarg ;; | |
1030 | ||
1031 | -build | --build | --buil | --bui | --bu) | |
1032 | ac_prev=build_alias ;; | |
1033 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1034 | build_alias=$ac_optarg ;; | |
1035 | ||
1036 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1037 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1038 | ac_prev=cache_file ;; | |
1039 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1040 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1041 | cache_file=$ac_optarg ;; | |
1042 | ||
1043 | --config-cache | -C) | |
1044 | cache_file=config.cache ;; | |
1045 | ||
1046 | -datadir | --datadir | --datadi | --datad) | |
1047 | ac_prev=datadir ;; | |
1048 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1049 | datadir=$ac_optarg ;; | |
1050 | ||
1051 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1052 | | --dataroo | --dataro | --datar) | |
1053 | ac_prev=datarootdir ;; | |
1054 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1055 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1056 | datarootdir=$ac_optarg ;; | |
1057 | ||
1058 | -disable-* | --disable-*) | |
1059 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1060 | # Reject names that are not valid shell variable names. | |
1061 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1062 | as_fn_error "invalid feature name: $ac_useropt" | |
1063 | ac_useropt_orig=$ac_useropt | |
1064 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1065 | case $ac_user_opts in | |
1066 | *" | |
1067 | "enable_$ac_useropt" | |
1068 | "*) ;; | |
1069 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1070 | ac_unrecognized_sep=', ';; | |
1071 | esac | |
1072 | eval enable_$ac_useropt=no ;; | |
1073 | ||
1074 | -docdir | --docdir | --docdi | --doc | --do) | |
1075 | ac_prev=docdir ;; | |
1076 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1077 | docdir=$ac_optarg ;; | |
1078 | ||
1079 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1080 | ac_prev=dvidir ;; | |
1081 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1082 | dvidir=$ac_optarg ;; | |
1083 | ||
1084 | -enable-* | --enable-*) | |
1085 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1086 | # Reject names that are not valid shell variable names. | |
1087 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1088 | as_fn_error "invalid feature name: $ac_useropt" | |
1089 | ac_useropt_orig=$ac_useropt | |
1090 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1091 | case $ac_user_opts in | |
1092 | *" | |
1093 | "enable_$ac_useropt" | |
1094 | "*) ;; | |
1095 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1096 | ac_unrecognized_sep=', ';; | |
1097 | esac | |
1098 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1099 | ||
1100 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1101 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1102 | | --exec | --exe | --ex) | |
1103 | ac_prev=exec_prefix ;; | |
1104 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1105 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1106 | | --exec=* | --exe=* | --ex=*) | |
1107 | exec_prefix=$ac_optarg ;; | |
1108 | ||
1109 | -gas | --gas | --ga | --g) | |
1110 | # Obsolete; use --with-gas. | |
1111 | with_gas=yes ;; | |
1112 | ||
1113 | -help | --help | --hel | --he | -h) | |
1114 | ac_init_help=long ;; | |
1115 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1116 | ac_init_help=recursive ;; | |
1117 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1118 | ac_init_help=short ;; | |
1119 | ||
1120 | -host | --host | --hos | --ho) | |
1121 | ac_prev=host_alias ;; | |
1122 | -host=* | --host=* | --hos=* | --ho=*) | |
1123 | host_alias=$ac_optarg ;; | |
1124 | ||
1125 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1126 | ac_prev=htmldir ;; | |
1127 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1128 | | --ht=*) | |
1129 | htmldir=$ac_optarg ;; | |
1130 | ||
1131 | -includedir | --includedir | --includedi | --included | --include \ | |
1132 | | --includ | --inclu | --incl | --inc) | |
1133 | ac_prev=includedir ;; | |
1134 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1135 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1136 | includedir=$ac_optarg ;; | |
1137 | ||
1138 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1139 | ac_prev=infodir ;; | |
1140 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1141 | infodir=$ac_optarg ;; | |
1142 | ||
1143 | -libdir | --libdir | --libdi | --libd) | |
1144 | ac_prev=libdir ;; | |
1145 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1146 | libdir=$ac_optarg ;; | |
1147 | ||
1148 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1149 | | --libexe | --libex | --libe) | |
1150 | ac_prev=libexecdir ;; | |
1151 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1152 | | --libexe=* | --libex=* | --libe=*) | |
1153 | libexecdir=$ac_optarg ;; | |
1154 | ||
1155 | -localedir | --localedir | --localedi | --localed | --locale) | |
1156 | ac_prev=localedir ;; | |
1157 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1158 | localedir=$ac_optarg ;; | |
1159 | ||
1160 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1161 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1162 | ac_prev=localstatedir ;; | |
1163 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1164 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1165 | localstatedir=$ac_optarg ;; | |
1166 | ||
1167 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1168 | ac_prev=mandir ;; | |
1169 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1170 | mandir=$ac_optarg ;; | |
1171 | ||
1172 | -nfp | --nfp | --nf) | |
1173 | # Obsolete; use --without-fp. | |
1174 | with_fp=no ;; | |
1175 | ||
1176 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1177 | | --no-cr | --no-c | -n) | |
1178 | no_create=yes ;; | |
1179 | ||
1180 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1181 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1182 | no_recursion=yes ;; | |
1183 | ||
1184 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1185 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1186 | | --oldin | --oldi | --old | --ol | --o) | |
1187 | ac_prev=oldincludedir ;; | |
1188 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1189 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1190 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1191 | oldincludedir=$ac_optarg ;; | |
1192 | ||
1193 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1194 | ac_prev=prefix ;; | |
1195 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1196 | prefix=$ac_optarg ;; | |
1197 | ||
1198 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1199 | | --program-pre | --program-pr | --program-p) | |
1200 | ac_prev=program_prefix ;; | |
1201 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1202 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1203 | program_prefix=$ac_optarg ;; | |
1204 | ||
1205 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1206 | | --program-suf | --program-su | --program-s) | |
1207 | ac_prev=program_suffix ;; | |
1208 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1209 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1210 | program_suffix=$ac_optarg ;; | |
1211 | ||
1212 | -program-transform-name | --program-transform-name \ | |
1213 | | --program-transform-nam | --program-transform-na \ | |
1214 | | --program-transform-n | --program-transform- \ | |
1215 | | --program-transform | --program-transfor \ | |
1216 | | --program-transfo | --program-transf \ | |
1217 | | --program-trans | --program-tran \ | |
1218 | | --progr-tra | --program-tr | --program-t) | |
1219 | ac_prev=program_transform_name ;; | |
1220 | -program-transform-name=* | --program-transform-name=* \ | |
1221 | | --program-transform-nam=* | --program-transform-na=* \ | |
1222 | | --program-transform-n=* | --program-transform-=* \ | |
1223 | | --program-transform=* | --program-transfor=* \ | |
1224 | | --program-transfo=* | --program-transf=* \ | |
1225 | | --program-trans=* | --program-tran=* \ | |
1226 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1227 | program_transform_name=$ac_optarg ;; | |
1228 | ||
1229 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1230 | ac_prev=pdfdir ;; | |
1231 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1232 | pdfdir=$ac_optarg ;; | |
1233 | ||
1234 | -psdir | --psdir | --psdi | --psd | --ps) | |
1235 | ac_prev=psdir ;; | |
1236 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1237 | psdir=$ac_optarg ;; | |
1238 | ||
1239 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1240 | | -silent | --silent | --silen | --sile | --sil) | |
1241 | silent=yes ;; | |
1242 | ||
1243 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1244 | ac_prev=sbindir ;; | |
1245 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1246 | | --sbi=* | --sb=*) | |
1247 | sbindir=$ac_optarg ;; | |
1248 | ||
1249 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1250 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1251 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1252 | | --sha | --sh) | |
1253 | ac_prev=sharedstatedir ;; | |
1254 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1255 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1256 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1257 | | --sha=* | --sh=*) | |
1258 | sharedstatedir=$ac_optarg ;; | |
1259 | ||
1260 | -site | --site | --sit) | |
1261 | ac_prev=site ;; | |
1262 | -site=* | --site=* | --sit=*) | |
1263 | site=$ac_optarg ;; | |
1264 | ||
1265 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1266 | ac_prev=srcdir ;; | |
1267 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1268 | srcdir=$ac_optarg ;; | |
1269 | ||
1270 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1271 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1272 | ac_prev=sysconfdir ;; | |
1273 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1274 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1275 | sysconfdir=$ac_optarg ;; | |
1276 | ||
1277 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1278 | ac_prev=target_alias ;; | |
1279 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1280 | target_alias=$ac_optarg ;; | |
1281 | ||
1282 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1283 | verbose=yes ;; | |
1284 | ||
1285 | -version | --version | --versio | --versi | --vers | -V) | |
1286 | ac_init_version=: ;; | |
1287 | ||
1288 | -with-* | --with-*) | |
1289 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1290 | # Reject names that are not valid shell variable names. | |
1291 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1292 | as_fn_error "invalid package name: $ac_useropt" | |
1293 | ac_useropt_orig=$ac_useropt | |
1294 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1295 | case $ac_user_opts in | |
1296 | *" | |
1297 | "with_$ac_useropt" | |
1298 | "*) ;; | |
1299 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1300 | ac_unrecognized_sep=', ';; | |
1301 | esac | |
1302 | eval with_$ac_useropt=\$ac_optarg ;; | |
1303 | ||
1304 | -without-* | --without-*) | |
1305 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1306 | # Reject names that are not valid shell variable names. | |
1307 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1308 | as_fn_error "invalid package name: $ac_useropt" | |
1309 | ac_useropt_orig=$ac_useropt | |
1310 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1311 | case $ac_user_opts in | |
1312 | *" | |
1313 | "with_$ac_useropt" | |
1314 | "*) ;; | |
1315 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1316 | ac_unrecognized_sep=', ';; | |
1317 | esac | |
1318 | eval with_$ac_useropt=no ;; | |
1319 | ||
1320 | --x) | |
1321 | # Obsolete; use --with-x. | |
1322 | with_x=yes ;; | |
1323 | ||
1324 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1325 | | --x-incl | --x-inc | --x-in | --x-i) | |
1326 | ac_prev=x_includes ;; | |
1327 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1328 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1329 | x_includes=$ac_optarg ;; | |
1330 | ||
1331 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1332 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1333 | ac_prev=x_libraries ;; | |
1334 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1335 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1336 | x_libraries=$ac_optarg ;; | |
1337 | ||
1338 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1339 | Try \`$0 --help' for more information." | |
1340 | ;; | |
1341 | ||
1342 | *=*) | |
1343 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1344 | # Reject names that are not valid shell variable names. | |
1345 | case $ac_envvar in #( | |
1346 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1347 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1348 | esac | |
1349 | eval $ac_envvar=\$ac_optarg | |
1350 | export $ac_envvar ;; | |
1351 | ||
1352 | *) | |
1353 | # FIXME: should be removed in autoconf 3.0. | |
1354 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1355 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1356 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1357 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1358 | ;; | |
1359 | ||
1360 | esac | |
1361 | done | |
1362 | ||
1363 | if test -n "$ac_prev"; then | |
1364 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1365 | as_fn_error "missing argument to $ac_option" | |
1366 | fi | |
1367 | ||
1368 | if test -n "$ac_unrecognized_opts"; then | |
1369 | case $enable_option_checking in | |
1370 | no) ;; | |
1371 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1372 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1373 | esac | |
1374 | fi | |
1375 | ||
1376 | # Check all directory arguments for consistency. | |
1377 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1378 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1379 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1380 | libdir localedir mandir | |
1381 | do | |
1382 | eval ac_val=\$$ac_var | |
1383 | # Remove trailing slashes. | |
1384 | case $ac_val in | |
1385 | */ ) | |
1386 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1387 | eval $ac_var=\$ac_val;; | |
1388 | esac | |
1389 | # Be sure to have absolute directory names. | |
1390 | case $ac_val in | |
1391 | [\\/$]* | ?:[\\/]* ) continue;; | |
1392 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1393 | esac | |
1394 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1395 | done | |
1396 | ||
1397 | # There might be people who depend on the old broken behavior: `$host' | |
1398 | # used to hold the argument of --host etc. | |
1399 | # FIXME: To remove some day. | |
1400 | build=$build_alias | |
1401 | host=$host_alias | |
1402 | target=$target_alias | |
1403 | ||
1404 | # FIXME: To remove some day. | |
1405 | if test "x$host_alias" != x; then | |
1406 | if test "x$build_alias" = x; then | |
1407 | cross_compiling=maybe | |
1408 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1409 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1410 | elif test "x$build_alias" != "x$host_alias"; then | |
1411 | cross_compiling=yes | |
1412 | fi | |
1413 | fi | |
1414 | ||
1415 | ac_tool_prefix= | |
1416 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1417 | ||
1418 | test "$silent" = yes && exec 6>/dev/null | |
1419 | ||
1420 | ||
1421 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1422 | ac_ls_di=`ls -di .` && | |
1423 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1424 | as_fn_error "working directory cannot be determined" | |
1425 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1426 | as_fn_error "pwd does not report name of working directory" | |
1427 | ||
1428 | ||
1429 | # Find the source files, if location was not specified. | |
1430 | if test -z "$srcdir"; then | |
1431 | ac_srcdir_defaulted=yes | |
1432 | # Try the directory containing this script, then the parent directory. | |
1433 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1434 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1435 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1436 | X"$as_myself" : 'X\(//\)$' \| \ | |
1437 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1438 | $as_echo X"$as_myself" | | |
1439 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1440 | s//\1/ | |
1441 | q | |
1442 | } | |
1443 | /^X\(\/\/\)[^/].*/{ | |
1444 | s//\1/ | |
1445 | q | |
1446 | } | |
1447 | /^X\(\/\/\)$/{ | |
1448 | s//\1/ | |
1449 | q | |
1450 | } | |
1451 | /^X\(\/\).*/{ | |
1452 | s//\1/ | |
1453 | q | |
1454 | } | |
1455 | s/.*/./; q'` | |
1456 | srcdir=$ac_confdir | |
1457 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1458 | srcdir=.. | |
1459 | fi | |
1460 | else | |
1461 | ac_srcdir_defaulted=no | |
1462 | fi | |
1463 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1464 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1465 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1466 | fi | |
1467 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1468 | ac_abs_confdir=`( | |
1469 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1470 | pwd)` | |
1471 | # When building in place, set srcdir=. | |
1472 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1473 | srcdir=. | |
1474 | fi | |
1475 | # Remove unnecessary trailing slashes from srcdir. | |
1476 | # Double slashes in file names in object file debugging info | |
1477 | # mess up M-x gdb in Emacs. | |
1478 | case $srcdir in | |
1479 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1480 | esac | |
1481 | for ac_var in $ac_precious_vars; do | |
1482 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1483 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1484 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1485 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1486 | done | |
1487 | ||
1488 | # | |
1489 | # Report the --help message. | |
1490 | # | |
1491 | if test "$ac_init_help" = "long"; then | |
1492 | # Omit some internal or obsolete options to make the list less imposing. | |
1493 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1494 | cat <<_ACEOF | |
1495 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1496 | ||
1497 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1498 | ||
1499 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1500 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1501 | ||
1502 | Defaults for the options are specified in brackets. | |
1503 | ||
1504 | Configuration: | |
1505 | -h, --help display this help and exit | |
1506 | --help=short display options specific to this package | |
1507 | --help=recursive display the short help of all the included packages | |
1508 | -V, --version display version information and exit | |
1509 | -q, --quiet, --silent do not print \`checking...' messages | |
1510 | --cache-file=FILE cache test results in FILE [disabled] | |
1511 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1512 | -n, --no-create do not create output files | |
1513 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1514 | ||
1515 | Installation directories: | |
1516 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1517 | [$ac_default_prefix] | |
1518 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1519 | [PREFIX] | |
1520 | ||
1521 | By default, \`make install' will install all the files in | |
1522 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1523 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1524 | for instance \`--prefix=\$HOME'. | |
1525 | ||
1526 | For better control, use the options below. | |
1527 | ||
1528 | Fine tuning of the installation directories: | |
1529 | --bindir=DIR user executables [EPREFIX/bin] | |
1530 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1531 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1532 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1533 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1534 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1535 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1536 | --includedir=DIR C header files [PREFIX/include] | |
1537 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1538 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1539 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1540 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1541 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1542 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1543 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1544 | --htmldir=DIR html documentation [DOCDIR] | |
1545 | --dvidir=DIR dvi documentation [DOCDIR] | |
1546 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1547 | --psdir=DIR ps documentation [DOCDIR] | |
1548 | _ACEOF | |
1549 | ||
1550 | cat <<\_ACEOF | |
35fa52c0 DWT |
1551 | |
1552 | System types: | |
1553 | --build=BUILD configure for building on BUILD [guessed] | |
1554 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1555 | _ACEOF |
1556 | fi | |
1557 | ||
1558 | if test -n "$ac_init_help"; then | |
1559 | case $ac_init_help in | |
1560 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1561 | esac | |
1562 | cat <<\_ACEOF | |
1563 | ||
35fa52c0 DWT |
1564 | Optional Features: |
1565 | --disable-option-checking ignore unrecognized --enable/--with options | |
1566 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1567 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
549f29b5 | 1568 | --enable-static[=PKGS] build static libraries [default=no] |
9c60689e | 1569 | --enable-shared[=PKGS] build shared libraries [default=yes] |
9c60689e DWT |
1570 | --enable-fast-install[=PKGS] |
1571 | optimize for fast installation [default=yes] | |
1572 | --disable-libtool-lock avoid locking (might break parallel builds) | |
35fa52c0 | 1573 | --disable-rpath do not hardcode runtime library paths |
b66977f1 DWT |
1574 | --enable-javascript[=ENGINE] |
1575 | Enable the JavaScript runtime (currently the only | |
1576 | available option for ENGINE is JavaScriptCore) | |
1577 | [default=yes] | |
1578 | --disable-javascript Disable the JavaScript runtime | |
35fa52c0 DWT |
1579 | |
1580 | Optional Packages: | |
1581 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1582 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1583 | --with-pic try to use only PIC/non-PIC objects [default=use |
1584 | both] | |
1585 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
632b71ea DWT |
1586 | --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include |
1587 | path for frameworks with -F | |
309b0535 DWT |
1588 | --with-apr=PATH prefix for installed APR or the full path to |
1589 | apr-config | |
35fa52c0 DWT |
1590 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1591 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1592 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1593 | ||
dbadc56a | 1594 | Some influential environment variables: |
35fa52c0 DWT |
1595 | CC C compiler command |
1596 | CFLAGS C compiler flags | |
dbadc56a DWT |
1597 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1598 | nonstandard directory <lib dir> | |
1599 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1600 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1601 | you have headers in a nonstandard directory <include dir> |
9c60689e | 1602 | CPP C preprocessor |
3fd51f51 | 1603 | PKG_CONFIG path to pkg-config utility |
47aaa820 DWT |
1604 | CXX C++ compiler command |
1605 | CXXFLAGS C++ compiler flags | |
1606 | CXXCPP C++ preprocessor | |
632b71ea DWT |
1607 | OBJCXX Objective C++ compiler command |
1608 | OBJCXXFLAGS Objective C++ compiler flags | |
9c60689e DWT |
1609 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1610 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1611 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1612 | This script will default YFLAGS to the empty string to avoid a | |
1613 | default value of `-d' given by some make applications. | |
27557508 | 1614 | GPERF perfect hash function generator |
35fa52c0 DWT |
1615 | WEBKIT_CFLAGS |
1616 | C compiler flags for WEBKIT, overriding pkg-config | |
1617 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1618 | LIBFFI_CFLAGS | |
1619 | C compiler flags for LIBFFI, overriding pkg-config | |
1620 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
dbadc56a DWT |
1621 | |
1622 | Use these variables to override the choices made by `configure' or to help | |
1623 | it to find libraries and programs with nonstandard names/locations. | |
1624 | ||
c7aa54aa DWT |
1625 | Report bugs to <saurik@saurik.com>. |
1626 | Cycript home page: <http://www.cycript.org/>. | |
1627 | _ACEOF | |
1628 | ac_status=$? | |
1629 | fi | |
1630 | ||
1631 | if test "$ac_init_help" = "recursive"; then | |
1632 | # If there are subdirs, report their specific --help. | |
1633 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1634 | test -d "$ac_dir" || | |
1635 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1636 | continue | |
1637 | ac_builddir=. | |
1638 | ||
1639 | case "$ac_dir" in | |
1640 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1641 | *) | |
1642 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1643 | # A ".." for each directory in $ac_dir_suffix. | |
1644 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1645 | case $ac_top_builddir_sub in | |
1646 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1647 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1648 | esac ;; | |
1649 | esac | |
1650 | ac_abs_top_builddir=$ac_pwd | |
1651 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1652 | # for backward compatibility: | |
1653 | ac_top_builddir=$ac_top_build_prefix | |
1654 | ||
1655 | case $srcdir in | |
1656 | .) # We are building in place. | |
1657 | ac_srcdir=. | |
1658 | ac_top_srcdir=$ac_top_builddir_sub | |
1659 | ac_abs_top_srcdir=$ac_pwd ;; | |
1660 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1661 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1662 | ac_top_srcdir=$srcdir | |
1663 | ac_abs_top_srcdir=$srcdir ;; | |
1664 | *) # Relative name. | |
1665 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1666 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1667 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1668 | esac | |
1669 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1670 | ||
1671 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1672 | # Check for guested configure. | |
1673 | if test -f "$ac_srcdir/configure.gnu"; then | |
1674 | echo && | |
1675 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1676 | elif test -f "$ac_srcdir/configure"; then | |
1677 | echo && | |
1678 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1679 | else | |
1680 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1681 | fi || ac_status=$? | |
1682 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1683 | done | |
1684 | fi | |
1685 | ||
1686 | test -n "$ac_init_help" && exit $ac_status | |
1687 | if $ac_init_version; then | |
1688 | cat <<\_ACEOF | |
1689 | Cycript configure 0.9 | |
9c60689e | 1690 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1691 | |
1692 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1693 | This configure script is free software; the Free Software Foundation | |
1694 | gives unlimited permission to copy, distribute and modify it. | |
1695 | _ACEOF | |
1696 | exit | |
1697 | fi | |
1698 | ||
1699 | ## ------------------------ ## | |
1700 | ## Autoconf initialization. ## | |
1701 | ## ------------------------ ## | |
dbadc56a | 1702 | |
35fa52c0 DWT |
1703 | # ac_fn_c_try_compile LINENO |
1704 | # -------------------------- | |
1705 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1706 | ac_fn_c_try_compile () | |
1707 | { | |
1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1709 | rm -f conftest.$ac_objext | |
1710 | if { { ac_try="$ac_compile" | |
1711 | case "(($ac_try" in | |
1712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1713 | *) ac_try_echo=$ac_try;; | |
1714 | esac | |
1715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1716 | $as_echo "$ac_try_echo"; } >&5 | |
1717 | (eval "$ac_compile") 2>conftest.err | |
1718 | ac_status=$? | |
1719 | if test -s conftest.err; then | |
1720 | grep -v '^ *+' conftest.err >conftest.er1 | |
1721 | cat conftest.er1 >&5 | |
1722 | mv -f conftest.er1 conftest.err | |
1723 | fi | |
1724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1725 | test $ac_status = 0; } && { | |
1726 | test -z "$ac_c_werror_flag" || | |
1727 | test ! -s conftest.err | |
1728 | } && test -s conftest.$ac_objext; then : | |
1729 | ac_retval=0 | |
1730 | else | |
1731 | $as_echo "$as_me: failed program was:" >&5 | |
1732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1733 | ||
1734 | ac_retval=1 | |
1735 | fi | |
1736 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1737 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1738 | |
1739 | } # ac_fn_c_try_compile | |
1740 | ||
1741 | # ac_fn_c_try_link LINENO | |
1742 | # ----------------------- | |
1743 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1744 | ac_fn_c_try_link () | |
1745 | { | |
1746 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1748 | if { { ac_try="$ac_link" | |
1749 | case "(($ac_try" in | |
1750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1751 | *) ac_try_echo=$ac_try;; | |
1752 | esac | |
1753 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1754 | $as_echo "$ac_try_echo"; } >&5 | |
1755 | (eval "$ac_link") 2>conftest.err | |
1756 | ac_status=$? | |
1757 | if test -s conftest.err; then | |
1758 | grep -v '^ *+' conftest.err >conftest.er1 | |
1759 | cat conftest.er1 >&5 | |
1760 | mv -f conftest.er1 conftest.err | |
1761 | fi | |
1762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1763 | test $ac_status = 0; } && { | |
1764 | test -z "$ac_c_werror_flag" || | |
1765 | test ! -s conftest.err | |
1766 | } && test -s conftest$ac_exeext && { | |
1767 | test "$cross_compiling" = yes || | |
1768 | $as_test_x conftest$ac_exeext | |
1769 | }; then : | |
1770 | ac_retval=0 | |
1771 | else | |
1772 | $as_echo "$as_me: failed program was:" >&5 | |
1773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1774 | ||
1775 | ac_retval=1 | |
1776 | fi | |
1777 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1778 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1779 | # interfere with the next link command; also delete a directory that is | |
1780 | # left behind by Apple's compiler. We do this before executing the actions. | |
1781 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1782 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1783 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1784 | |
1785 | } # ac_fn_c_try_link | |
1786 | ||
9c60689e DWT |
1787 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1788 | # ------------------------------------------------------- | |
1789 | # Tests whether HEADER exists and can be compiled using the include files in | |
1790 | # INCLUDES, setting the cache variable VAR accordingly. | |
1791 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1792 | { |
1793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1795 | $as_echo_n "checking for $2... " >&6; } | |
1796 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1797 | $as_echo_n "(cached) " >&6 | |
1798 | else | |
1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1800 | /* end confdefs.h. */ | |
1801 | $4 | |
1802 | #include <$2> | |
1803 | _ACEOF | |
1804 | if ac_fn_c_try_compile "$LINENO"; then : | |
1805 | eval "$3=yes" | |
1806 | else | |
1807 | eval "$3=no" | |
1808 | fi | |
1809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1810 | fi | |
1811 | eval ac_res=\$$3 | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1813 | $as_echo "$ac_res" >&6; } | |
1814 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1815 | ||
1816 | } # ac_fn_c_check_header_compile | |
1817 | ||
1818 | # ac_fn_c_try_cpp LINENO | |
1819 | # ---------------------- | |
1820 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1821 | ac_fn_c_try_cpp () | |
1822 | { | |
1823 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1824 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1825 | case "(($ac_try" in |
1826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1827 | *) ac_try_echo=$ac_try;; | |
1828 | esac | |
1829 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1830 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1831 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1832 | ac_status=$? |
1833 | if test -s conftest.err; then | |
1834 | grep -v '^ *+' conftest.err >conftest.er1 | |
1835 | cat conftest.er1 >&5 | |
1836 | mv -f conftest.er1 conftest.err | |
1837 | fi | |
1838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1839 | test $ac_status = 0; } >/dev/null && { |
1840 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1841 | test ! -s conftest.err |
9c60689e | 1842 | }; then : |
dbadc56a DWT |
1843 | ac_retval=0 |
1844 | else | |
1845 | $as_echo "$as_me: failed program was:" >&5 | |
1846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1847 | ||
9c60689e | 1848 | ac_retval=1 |
dbadc56a DWT |
1849 | fi |
1850 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1851 | as_fn_set_status $ac_retval |
dbadc56a | 1852 | |
9c60689e | 1853 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1854 | |
1855 | # ac_fn_c_try_run LINENO | |
1856 | # ---------------------- | |
1857 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1858 | # that executables *can* be run. | |
1859 | ac_fn_c_try_run () | |
1860 | { | |
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1862 | if { { ac_try="$ac_link" | |
1863 | case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_link") 2>&5 | |
1870 | ac_status=$? | |
1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1872 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1873 | { { case "(($ac_try" in | |
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1875 | *) ac_try_echo=$ac_try;; | |
1876 | esac | |
1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1878 | $as_echo "$ac_try_echo"; } >&5 | |
1879 | (eval "$ac_try") 2>&5 | |
1880 | ac_status=$? | |
1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1882 | test $ac_status = 0; }; }; then : | |
1883 | ac_retval=0 | |
1884 | else | |
1885 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1886 | $as_echo "$as_me: failed program was:" >&5 | |
1887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1888 | ||
1889 | ac_retval=$ac_status | |
1890 | fi | |
1891 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1892 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1893 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1894 | |
1895 | } # ac_fn_c_try_run | |
6b66678a | 1896 | |
9c60689e DWT |
1897 | # ac_fn_c_check_func LINENO FUNC VAR |
1898 | # ---------------------------------- | |
1899 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1900 | ac_fn_c_check_func () | |
6b66678a DWT |
1901 | { |
1902 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1904 | $as_echo_n "checking for $2... " >&6; } | |
1905 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1906 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1907 | else |
9c60689e DWT |
1908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1909 | /* end confdefs.h. */ | |
1910 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1912 | #define $2 innocuous_$2 | |
6b66678a | 1913 | |
9c60689e DWT |
1914 | /* System header to define __stub macros and hopefully few prototypes, |
1915 | which can conflict with char $2 (); below. | |
1916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1917 | <limits.h> exists even on freestanding compilers. */ | |
1918 | ||
1919 | #ifdef __STDC__ | |
1920 | # include <limits.h> | |
1921 | #else | |
1922 | # include <assert.h> | |
1923 | #endif | |
1924 | ||
1925 | #undef $2 | |
1926 | ||
1927 | /* Override any GCC internal prototype to avoid an error. | |
1928 | Use char because int might match the return type of a GCC | |
1929 | builtin and then its argument prototype would still apply. */ | |
1930 | #ifdef __cplusplus | |
1931 | extern "C" | |
1932 | #endif | |
1933 | char $2 (); | |
1934 | /* The GNU C library defines this for functions which it implements | |
1935 | to always fail with ENOSYS. Some functions are actually named | |
1936 | something starting with __ and the normal name is an alias. */ | |
1937 | #if defined __stub_$2 || defined __stub___$2 | |
1938 | choke me | |
1939 | #endif | |
1940 | ||
1941 | int | |
1942 | main () | |
1943 | { | |
1944 | return $2 (); | |
1945 | ; | |
1946 | return 0; | |
1947 | } | |
1948 | _ACEOF | |
1949 | if ac_fn_c_try_link "$LINENO"; then : | |
1950 | eval "$3=yes" | |
1951 | else | |
1952 | eval "$3=no" | |
1953 | fi | |
1954 | rm -f core conftest.err conftest.$ac_objext \ | |
1955 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1956 | fi |
9c60689e DWT |
1957 | eval ac_res=\$$3 |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1959 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1960 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1961 | |
9c60689e | 1962 | } # ac_fn_c_check_func |
6b66678a | 1963 | |
9c60689e DWT |
1964 | # ac_fn_cxx_try_compile LINENO |
1965 | # ---------------------------- | |
1966 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1967 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
1968 | { |
1969 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1970 | rm -f conftest.$ac_objext |
1971 | if { { ac_try="$ac_compile" | |
1972 | case "(($ac_try" in | |
1973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1974 | *) ac_try_echo=$ac_try;; | |
1975 | esac | |
1976 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1977 | $as_echo "$ac_try_echo"; } >&5 | |
1978 | (eval "$ac_compile") 2>conftest.err | |
1979 | ac_status=$? | |
1980 | if test -s conftest.err; then | |
1981 | grep -v '^ *+' conftest.err >conftest.er1 | |
1982 | cat conftest.er1 >&5 | |
1983 | mv -f conftest.er1 conftest.err | |
1984 | fi | |
1985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1986 | test $ac_status = 0; } && { | |
1987 | test -z "$ac_cxx_werror_flag" || | |
1988 | test ! -s conftest.err | |
1989 | } && test -s conftest.$ac_objext; then : | |
1990 | ac_retval=0 | |
1991 | else | |
1992 | $as_echo "$as_me: failed program was:" >&5 | |
1993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1994 | ||
1995 | ac_retval=1 | |
1996 | fi | |
1997 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1998 | as_fn_set_status $ac_retval | |
1999 | ||
2000 | } # ac_fn_cxx_try_compile | |
2001 | ||
2002 | # ac_fn_cxx_try_cpp LINENO | |
2003 | # ------------------------ | |
2004 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2005 | ac_fn_cxx_try_cpp () | |
2006 | { | |
2007 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2008 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2009 | case "(($ac_try" in | |
2010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2011 | *) ac_try_echo=$ac_try;; | |
2012 | esac | |
2013 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2014 | $as_echo "$ac_try_echo"; } >&5 | |
2015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2016 | ac_status=$? | |
2017 | if test -s conftest.err; then | |
2018 | grep -v '^ *+' conftest.err >conftest.er1 | |
2019 | cat conftest.er1 >&5 | |
2020 | mv -f conftest.er1 conftest.err | |
2021 | fi | |
2022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2023 | test $ac_status = 0; } >/dev/null && { | |
2024 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2025 | test ! -s conftest.err | |
2026 | }; then : | |
2027 | ac_retval=0 | |
2028 | else | |
2029 | $as_echo "$as_me: failed program was:" >&5 | |
2030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2031 | ||
2032 | ac_retval=1 | |
2033 | fi | |
2034 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2035 | as_fn_set_status $ac_retval | |
2036 | ||
2037 | } # ac_fn_cxx_try_cpp | |
2038 | ||
2039 | # ac_fn_cxx_try_link LINENO | |
2040 | # ------------------------- | |
2041 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2042 | ac_fn_cxx_try_link () | |
2043 | { | |
2044 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2046 | if { { ac_try="$ac_link" | |
2047 | case "(($ac_try" in | |
2048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2049 | *) ac_try_echo=$ac_try;; | |
2050 | esac | |
2051 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2052 | $as_echo "$ac_try_echo"; } >&5 | |
2053 | (eval "$ac_link") 2>conftest.err | |
2054 | ac_status=$? | |
2055 | if test -s conftest.err; then | |
2056 | grep -v '^ *+' conftest.err >conftest.er1 | |
2057 | cat conftest.er1 >&5 | |
2058 | mv -f conftest.er1 conftest.err | |
2059 | fi | |
2060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2061 | test $ac_status = 0; } && { | |
2062 | test -z "$ac_cxx_werror_flag" || | |
2063 | test ! -s conftest.err | |
2064 | } && test -s conftest$ac_exeext && { | |
2065 | test "$cross_compiling" = yes || | |
2066 | $as_test_x conftest$ac_exeext | |
2067 | }; then : | |
2068 | ac_retval=0 | |
2069 | else | |
2070 | $as_echo "$as_me: failed program was:" >&5 | |
2071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2072 | ||
2073 | ac_retval=1 | |
2074 | fi | |
2075 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2076 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2077 | # interfere with the next link command; also delete a directory that is | |
2078 | # left behind by Apple's compiler. We do this before executing the actions. | |
2079 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2080 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2081 | as_fn_set_status $ac_retval | |
2082 | ||
2083 | } # ac_fn_cxx_try_link | |
2084 | ||
632b71ea DWT |
2085 | # ac_fn_objcxx_try_compile LINENO |
2086 | # ------------------------------- | |
2087 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2088 | ac_fn_objcxx_try_compile () | |
2089 | { | |
2090 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2091 | rm -f conftest.$ac_objext | |
2092 | if { { ac_try="$ac_compile" | |
2093 | case "(($ac_try" in | |
2094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2095 | *) ac_try_echo=$ac_try;; | |
2096 | esac | |
2097 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2098 | $as_echo "$ac_try_echo"; } >&5 | |
2099 | (eval "$ac_compile") 2>conftest.err | |
2100 | ac_status=$? | |
2101 | if test -s conftest.err; then | |
2102 | grep -v '^ *+' conftest.err >conftest.er1 | |
2103 | cat conftest.er1 >&5 | |
2104 | mv -f conftest.er1 conftest.err | |
2105 | fi | |
2106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2107 | test $ac_status = 0; } && { | |
2108 | test -z "$ac_objcxx_werror_flag" || | |
2109 | test ! -s conftest.err | |
2110 | } && test -s conftest.$ac_objext; then : | |
2111 | ac_retval=0 | |
2112 | else | |
2113 | $as_echo "$as_me: failed program was:" >&5 | |
2114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2115 | ||
2116 | ac_retval=1 | |
2117 | fi | |
2118 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2119 | as_fn_set_status $ac_retval | |
2120 | ||
2121 | } # ac_fn_objcxx_try_compile | |
2122 | ||
47aaa820 DWT |
2123 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
2124 | # --------------------------------------------------------- | |
2125 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2126 | # the include files in INCLUDES and setting the cache variable VAR | |
2127 | # accordingly. | |
2128 | ac_fn_cxx_check_header_mongrel () | |
2129 | { | |
2130 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2131 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2133 | $as_echo_n "checking for $2... " >&6; } | |
2134 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2135 | $as_echo_n "(cached) " >&6 | |
2136 | fi | |
2137 | eval ac_res=\$$3 | |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2139 | $as_echo "$ac_res" >&6; } | |
2140 | else | |
2141 | # Is the header compilable? | |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2143 | $as_echo_n "checking $2 usability... " >&6; } | |
2144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2145 | /* end confdefs.h. */ | |
2146 | $4 | |
2147 | #include <$2> | |
2148 | _ACEOF | |
2149 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2150 | ac_header_compiler=yes | |
2151 | else | |
2152 | ac_header_compiler=no | |
2153 | fi | |
2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2156 | $as_echo "$ac_header_compiler" >&6; } | |
2157 | ||
2158 | # Is the header present? | |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2160 | $as_echo_n "checking $2 presence... " >&6; } | |
2161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2162 | /* end confdefs.h. */ | |
2163 | #include <$2> | |
2164 | _ACEOF | |
2165 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2166 | ac_header_preproc=yes | |
2167 | else | |
2168 | ac_header_preproc=no | |
2169 | fi | |
2170 | rm -f conftest.err conftest.$ac_ext | |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2172 | $as_echo "$ac_header_preproc" >&6; } | |
2173 | ||
2174 | # So? What about this header? | |
2175 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2176 | yes:no: ) | |
2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2178 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2180 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2181 | ;; | |
2182 | no:yes:* ) | |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2184 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2186 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2187 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2188 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2190 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2192 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2193 | ( cat <<\_ASBOX | |
2194 | ## -------------------------------- ## | |
2195 | ## Report this to saurik@saurik.com ## | |
2196 | ## -------------------------------- ## | |
2197 | _ASBOX | |
2198 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2199 | ;; | |
2200 | esac | |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2202 | $as_echo_n "checking for $2... " >&6; } | |
2203 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2204 | $as_echo_n "(cached) " >&6 | |
2205 | else | |
2206 | eval "$3=\$ac_header_compiler" | |
2207 | fi | |
2208 | eval ac_res=\$$3 | |
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2210 | $as_echo "$ac_res" >&6; } | |
2211 | fi | |
2212 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2213 | ||
2214 | } # ac_fn_cxx_check_header_mongrel | |
2215 | ||
c823f118 DWT |
2216 | # ac_fn_objcxx_try_link LINENO |
2217 | # ---------------------------- | |
2218 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2219 | ac_fn_objcxx_try_link () | |
2220 | { | |
2221 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2223 | if { { ac_try="$ac_link" | |
2224 | case "(($ac_try" in | |
2225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2226 | *) ac_try_echo=$ac_try;; | |
2227 | esac | |
2228 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2229 | $as_echo "$ac_try_echo"; } >&5 | |
2230 | (eval "$ac_link") 2>conftest.err | |
2231 | ac_status=$? | |
2232 | if test -s conftest.err; then | |
2233 | grep -v '^ *+' conftest.err >conftest.er1 | |
2234 | cat conftest.er1 >&5 | |
2235 | mv -f conftest.er1 conftest.err | |
2236 | fi | |
2237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2238 | test $ac_status = 0; } && { | |
2239 | test -z "$ac_objcxx_werror_flag" || | |
2240 | test ! -s conftest.err | |
2241 | } && test -s conftest$ac_exeext && { | |
2242 | test "$cross_compiling" = yes || | |
2243 | $as_test_x conftest$ac_exeext | |
2244 | }; then : | |
2245 | ac_retval=0 | |
2246 | else | |
2247 | $as_echo "$as_me: failed program was:" >&5 | |
2248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2249 | ||
2250 | ac_retval=1 | |
2251 | fi | |
2252 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2253 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2254 | # interfere with the next link command; also delete a directory that is | |
2255 | # left behind by Apple's compiler. We do this before executing the actions. | |
2256 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2257 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2258 | as_fn_set_status $ac_retval | |
2259 | ||
2260 | } # ac_fn_objcxx_try_link | |
c7aa54aa DWT |
2261 | cat >config.log <<_ACEOF |
2262 | This file contains any messages produced by compilers while | |
2263 | running configure, to aid debugging if configure makes a mistake. | |
2264 | ||
2265 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2266 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2267 | |
2268 | $ $0 $@ | |
2269 | ||
2270 | _ACEOF | |
2271 | exec 5>>config.log | |
2272 | { | |
2273 | cat <<_ASUNAME | |
2274 | ## --------- ## | |
2275 | ## Platform. ## | |
2276 | ## --------- ## | |
2277 | ||
2278 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2279 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2280 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2281 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2282 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2283 | ||
2284 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2285 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2286 | ||
2287 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2288 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2289 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2290 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2291 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2292 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2293 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2294 | ||
2295 | _ASUNAME | |
2296 | ||
2297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2298 | for as_dir in $PATH | |
2299 | do | |
2300 | IFS=$as_save_IFS | |
2301 | test -z "$as_dir" && as_dir=. | |
2302 | $as_echo "PATH: $as_dir" | |
2303 | done | |
2304 | IFS=$as_save_IFS | |
2305 | ||
2306 | } >&5 | |
2307 | ||
2308 | cat >&5 <<_ACEOF | |
2309 | ||
2310 | ||
2311 | ## ----------- ## | |
2312 | ## Core tests. ## | |
2313 | ## ----------- ## | |
2314 | ||
2315 | _ACEOF | |
2316 | ||
2317 | ||
2318 | # Keep a trace of the command line. | |
2319 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2320 | # Strip out --silent because we don't want to record it for future runs. | |
2321 | # Also quote any args containing shell meta-characters. | |
2322 | # Make two passes to allow for proper duplicate-argument suppression. | |
2323 | ac_configure_args= | |
2324 | ac_configure_args0= | |
2325 | ac_configure_args1= | |
2326 | ac_must_keep_next=false | |
2327 | for ac_pass in 1 2 | |
2328 | do | |
2329 | for ac_arg | |
2330 | do | |
2331 | case $ac_arg in | |
2332 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2333 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2334 | | -silent | --silent | --silen | --sile | --sil) | |
2335 | continue ;; | |
2336 | *\'*) | |
2337 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2338 | esac | |
2339 | case $ac_pass in | |
2340 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2341 | 2) | |
2342 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2343 | if test $ac_must_keep_next = true; then | |
2344 | ac_must_keep_next=false # Got value, back to normal. | |
2345 | else | |
2346 | case $ac_arg in | |
2347 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2348 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2349 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2350 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2351 | case "$ac_configure_args0 " in | |
2352 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2353 | esac | |
2354 | ;; | |
2355 | -* ) ac_must_keep_next=true ;; | |
2356 | esac | |
2357 | fi | |
2358 | as_fn_append ac_configure_args " '$ac_arg'" | |
2359 | ;; | |
2360 | esac | |
2361 | done | |
2362 | done | |
2363 | { ac_configure_args0=; unset ac_configure_args0;} | |
2364 | { ac_configure_args1=; unset ac_configure_args1;} | |
2365 | ||
2366 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2367 | # config.log. We remove comments because anyway the quotes in there | |
2368 | # would cause problems or look ugly. | |
2369 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2370 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2371 | trap 'exit_status=$? | |
2372 | # Save into config.log some information that might help in debugging. | |
2373 | { | |
2374 | echo | |
2375 | ||
2376 | cat <<\_ASBOX | |
2377 | ## ---------------- ## | |
2378 | ## Cache variables. ## | |
2379 | ## ---------------- ## | |
2380 | _ASBOX | |
2381 | echo | |
2382 | # The following way of writing the cache mishandles newlines in values, | |
2383 | ( | |
2384 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2385 | eval ac_val=\$$ac_var | |
2386 | case $ac_val in #( | |
2387 | *${as_nl}*) | |
2388 | case $ac_var in #( | |
2389 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2390 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2391 | esac | |
2392 | case $ac_var in #( | |
2393 | _ | IFS | as_nl) ;; #( | |
2394 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2395 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2396 | esac ;; | |
2397 | esac | |
2398 | done | |
2399 | (set) 2>&1 | | |
2400 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2401 | *${as_nl}ac_space=\ *) | |
2402 | sed -n \ | |
2403 | "s/'\''/'\''\\\\'\'''\''/g; | |
2404 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2405 | ;; #( | |
2406 | *) | |
2407 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2408 | ;; | |
2409 | esac | | |
2410 | sort | |
2411 | ) | |
2412 | echo | |
2413 | ||
2414 | cat <<\_ASBOX | |
2415 | ## ----------------- ## | |
2416 | ## Output variables. ## | |
2417 | ## ----------------- ## | |
2418 | _ASBOX | |
2419 | echo | |
2420 | for ac_var in $ac_subst_vars | |
2421 | do | |
2422 | eval ac_val=\$$ac_var | |
2423 | case $ac_val in | |
2424 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2425 | esac | |
2426 | $as_echo "$ac_var='\''$ac_val'\''" | |
2427 | done | sort | |
2428 | echo | |
2429 | ||
2430 | if test -n "$ac_subst_files"; then | |
2431 | cat <<\_ASBOX | |
2432 | ## ------------------- ## | |
2433 | ## File substitutions. ## | |
2434 | ## ------------------- ## | |
2435 | _ASBOX | |
2436 | echo | |
2437 | for ac_var in $ac_subst_files | |
2438 | do | |
2439 | eval ac_val=\$$ac_var | |
2440 | case $ac_val in | |
2441 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2442 | esac | |
2443 | $as_echo "$ac_var='\''$ac_val'\''" | |
2444 | done | sort | |
2445 | echo | |
2446 | fi | |
2447 | ||
2448 | if test -s confdefs.h; then | |
2449 | cat <<\_ASBOX | |
2450 | ## ----------- ## | |
2451 | ## confdefs.h. ## | |
2452 | ## ----------- ## | |
2453 | _ASBOX | |
2454 | echo | |
2455 | cat confdefs.h | |
2456 | echo | |
2457 | fi | |
2458 | test "$ac_signal" != 0 && | |
2459 | $as_echo "$as_me: caught signal $ac_signal" | |
2460 | $as_echo "$as_me: exit $exit_status" | |
2461 | } >&5 | |
2462 | rm -f core *.core core.conftest.* && | |
2463 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2464 | exit $exit_status | |
2465 | ' 0 | |
2466 | for ac_signal in 1 2 13 15; do | |
2467 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2468 | done | |
2469 | ac_signal=0 | |
2470 | ||
2471 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2472 | rm -f -r conftest* confdefs.h | |
2473 | ||
2474 | $as_echo "/* confdefs.h */" > confdefs.h | |
2475 | ||
2476 | # Predefined preprocessor variables. | |
2477 | ||
2478 | cat >>confdefs.h <<_ACEOF | |
2479 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2480 | _ACEOF | |
2481 | ||
2482 | cat >>confdefs.h <<_ACEOF | |
2483 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2484 | _ACEOF | |
2485 | ||
2486 | cat >>confdefs.h <<_ACEOF | |
2487 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2488 | _ACEOF | |
2489 | ||
2490 | cat >>confdefs.h <<_ACEOF | |
2491 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2492 | _ACEOF | |
2493 | ||
2494 | cat >>confdefs.h <<_ACEOF | |
2495 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2496 | _ACEOF | |
2497 | ||
2498 | cat >>confdefs.h <<_ACEOF | |
2499 | #define PACKAGE_URL "$PACKAGE_URL" | |
2500 | _ACEOF | |
2501 | ||
2502 | ||
2503 | # Let the site file select an alternate cache file if it wants to. | |
2504 | # Prefer an explicitly selected file to automatically selected ones. | |
2505 | ac_site_file1=NONE | |
2506 | ac_site_file2=NONE | |
2507 | if test -n "$CONFIG_SITE"; then | |
2508 | ac_site_file1=$CONFIG_SITE | |
2509 | elif test "x$prefix" != xNONE; then | |
2510 | ac_site_file1=$prefix/share/config.site | |
2511 | ac_site_file2=$prefix/etc/config.site | |
2512 | else | |
2513 | ac_site_file1=$ac_default_prefix/share/config.site | |
2514 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2515 | fi | |
2516 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2517 | do | |
2518 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2519 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2521 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2522 | sed 's/^/| /' "$ac_site_file" >&5 | |
2523 | . "$ac_site_file" | |
2524 | fi | |
2525 | done | |
2526 | ||
2527 | if test -r "$cache_file"; then | |
9c60689e DWT |
2528 | # Some versions of bash will fail to source /dev/null (special files |
2529 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2530 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2532 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2533 | case $cache_file in | |
2534 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2535 | *) . "./$cache_file";; | |
2536 | esac | |
2537 | fi | |
2538 | else | |
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2540 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2541 | >$cache_file | |
2542 | fi | |
2543 | ||
2544 | # Check that the precious variables saved in the cache have kept the same | |
2545 | # value. | |
2546 | ac_cache_corrupted=false | |
2547 | for ac_var in $ac_precious_vars; do | |
2548 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2549 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2550 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2551 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2552 | case $ac_old_set,$ac_new_set in | |
2553 | set,) | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2555 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2556 | ac_cache_corrupted=: ;; | |
2557 | ,set) | |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2559 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2560 | ac_cache_corrupted=: ;; | |
2561 | ,);; | |
2562 | *) | |
2563 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2564 | # differences in whitespace do not lead to failure. | |
2565 | ac_old_val_w=`echo x $ac_old_val` | |
2566 | ac_new_val_w=`echo x $ac_new_val` | |
2567 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2569 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2570 | ac_cache_corrupted=: | |
2571 | else | |
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2573 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2574 | eval $ac_var=\$ac_old_val | |
2575 | fi | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2577 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2579 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2580 | fi;; | |
2581 | esac | |
2582 | # Pass precious variables to config.status. | |
2583 | if test "$ac_new_set" = set; then | |
2584 | case $ac_new_val in | |
2585 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2586 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2587 | esac | |
2588 | case " $ac_configure_args " in | |
2589 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2590 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2591 | esac | |
2592 | fi | |
2593 | done | |
2594 | if $ac_cache_corrupted; then | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2598 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2599 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2600 | fi | |
2601 | ## -------------------- ## | |
2602 | ## Main body of script. ## | |
2603 | ## -------------------- ## | |
2604 | ||
2605 | ac_ext=c | |
2606 | ac_cpp='$CPP $CPPFLAGS' | |
2607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2610 | ||
2611 | ||
35fa52c0 | 2612 | |
6b66678a DWT |
2613 | ac_aux_dir= |
2614 | for ac_dir in . "$srcdir"/.; do | |
2615 | for ac_t in install-sh install.sh shtool; do | |
2616 | if test -f "$ac_dir/$ac_t"; then | |
2617 | ac_aux_dir=$ac_dir | |
2618 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2619 | break 2 | |
2620 | fi | |
2621 | done | |
2622 | done | |
2623 | if test -z "$ac_aux_dir"; then | |
2624 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2625 | fi | |
2626 | ||
2627 | # These three variables are undocumented and unsupported, | |
2628 | # and are intended to be withdrawn in a future Autoconf release. | |
2629 | # They can cause serious problems if a builder's source tree is in a directory | |
2630 | # whose full name contains unusual characters. | |
2631 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2632 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2633 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2634 | ||
2635 | ||
9c60689e DWT |
2636 | case `pwd` in |
2637 | *\ * | *\ *) | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2639 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2640 | esac | |
2641 | ||
2642 | ||
2643 | ||
2644 | macro_version='2.2.6b' | |
2645 | macro_revision='1.3017' | |
2646 | ||
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ||
2653 | ||
2654 | ||
2655 | ||
2656 | ||
2657 | ||
2658 | ||
2659 | ltmain="$ac_aux_dir/ltmain.sh" | |
2660 | ||
2661 | # Make sure we can run config.sub. | |
2662 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2663 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2664 | ||
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2666 | $as_echo_n "checking build system type... " >&6; } | |
2667 | if test "${ac_cv_build+set}" = set; then : | |
2668 | $as_echo_n "(cached) " >&6 | |
2669 | else | |
2670 | ac_build_alias=$build_alias | |
2671 | test "x$ac_build_alias" = x && | |
2672 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2673 | test "x$ac_build_alias" = x && | |
2674 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2675 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2676 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2677 | ||
2678 | fi | |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2680 | $as_echo "$ac_cv_build" >&6; } | |
2681 | case $ac_cv_build in | |
2682 | *-*-*) ;; | |
2683 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2684 | esac | |
2685 | build=$ac_cv_build | |
2686 | ac_save_IFS=$IFS; IFS='-' | |
2687 | set x $ac_cv_build | |
2688 | shift | |
2689 | build_cpu=$1 | |
2690 | build_vendor=$2 | |
2691 | shift; shift | |
2692 | # Remember, the first character of IFS is used to create $*, | |
2693 | # except with old shells: | |
2694 | build_os=$* | |
2695 | IFS=$ac_save_IFS | |
2696 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2697 | ||
2698 | ||
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2700 | $as_echo_n "checking host system type... " >&6; } | |
2701 | if test "${ac_cv_host+set}" = set; then : | |
2702 | $as_echo_n "(cached) " >&6 | |
2703 | else | |
2704 | if test "x$host_alias" = x; then | |
2705 | ac_cv_host=$ac_cv_build | |
2706 | else | |
2707 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2708 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2709 | fi | |
2710 | ||
2711 | fi | |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2713 | $as_echo "$ac_cv_host" >&6; } | |
2714 | case $ac_cv_host in | |
2715 | *-*-*) ;; | |
2716 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2717 | esac | |
2718 | host=$ac_cv_host | |
2719 | ac_save_IFS=$IFS; IFS='-' | |
2720 | set x $ac_cv_host | |
2721 | shift | |
2722 | host_cpu=$1 | |
2723 | host_vendor=$2 | |
2724 | shift; shift | |
2725 | # Remember, the first character of IFS is used to create $*, | |
2726 | # except with old shells: | |
2727 | host_os=$* | |
2728 | IFS=$ac_save_IFS | |
2729 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2730 | ||
2731 | ||
2732 | ac_ext=c | |
2733 | ac_cpp='$CPP $CPPFLAGS' | |
2734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2737 | if test -n "$ac_tool_prefix"; then | |
2738 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2739 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2741 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2742 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2743 | $as_echo_n "(cached) " >&6 |
2744 | else | |
9c60689e DWT |
2745 | if test -n "$CC"; then |
2746 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2747 | else |
2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2749 | for as_dir in $PATH | |
2750 | do | |
2751 | IFS=$as_save_IFS | |
2752 | test -z "$as_dir" && as_dir=. | |
2753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2755 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2757 | break 2 | |
2758 | fi | |
2759 | done | |
2760 | done | |
2761 | IFS=$as_save_IFS | |
2762 | ||
2763 | fi | |
2764 | fi | |
9c60689e DWT |
2765 | CC=$ac_cv_prog_CC |
2766 | if test -n "$CC"; then | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2768 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2769 | else |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2771 | $as_echo "no" >&6; } | |
2772 | fi | |
2773 | ||
2774 | ||
2775 | fi | |
2776 | if test -z "$ac_cv_prog_CC"; then | |
2777 | ac_ct_CC=$CC | |
2778 | # Extract the first word of "gcc", so it can be a program name with args. | |
2779 | set dummy gcc; ac_word=$2 | |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2781 | $as_echo_n "checking for $ac_word... " >&6; } | |
2782 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2783 | $as_echo_n "(cached) " >&6 | |
2784 | else | |
2785 | if test -n "$ac_ct_CC"; then | |
2786 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2787 | else | |
2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2789 | for as_dir in $PATH | |
2790 | do | |
2791 | IFS=$as_save_IFS | |
2792 | test -z "$as_dir" && as_dir=. | |
2793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2795 | ac_cv_prog_ac_ct_CC="gcc" | |
2796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2797 | break 2 | |
2798 | fi | |
2799 | done | |
2800 | done | |
2801 | IFS=$as_save_IFS | |
2802 | ||
2803 | fi | |
2804 | fi | |
2805 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2806 | if test -n "$ac_ct_CC"; then | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2808 | $as_echo "$ac_ct_CC" >&6; } | |
2809 | else | |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2811 | $as_echo "no" >&6; } | |
2812 | fi | |
2813 | ||
2814 | if test "x$ac_ct_CC" = x; then | |
2815 | CC="" | |
2816 | else | |
2817 | case $cross_compiling:$ac_tool_warned in | |
2818 | yes:) | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2820 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2821 | ac_tool_warned=yes ;; | |
2822 | esac | |
2823 | CC=$ac_ct_CC | |
2824 | fi | |
2825 | else | |
2826 | CC="$ac_cv_prog_CC" | |
2827 | fi | |
2828 | ||
2829 | if test -z "$CC"; then | |
2830 | if test -n "$ac_tool_prefix"; then | |
2831 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2832 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2834 | $as_echo_n "checking for $ac_word... " >&6; } | |
2835 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2836 | $as_echo_n "(cached) " >&6 | |
2837 | else | |
2838 | if test -n "$CC"; then | |
2839 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2840 | else | |
2841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2842 | for as_dir in $PATH | |
2843 | do | |
2844 | IFS=$as_save_IFS | |
2845 | test -z "$as_dir" && as_dir=. | |
2846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2848 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2850 | break 2 | |
2851 | fi | |
2852 | done | |
2853 | done | |
2854 | IFS=$as_save_IFS | |
2855 | ||
2856 | fi | |
2857 | fi | |
2858 | CC=$ac_cv_prog_CC | |
2859 | if test -n "$CC"; then | |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2861 | $as_echo "$CC" >&6; } | |
2862 | else | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2864 | $as_echo "no" >&6; } | |
2865 | fi | |
2866 | ||
2867 | ||
2868 | fi | |
2869 | fi | |
2870 | if test -z "$CC"; then | |
2871 | # Extract the first word of "cc", so it can be a program name with args. | |
2872 | set dummy cc; ac_word=$2 | |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2874 | $as_echo_n "checking for $ac_word... " >&6; } | |
2875 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2876 | $as_echo_n "(cached) " >&6 | |
2877 | else | |
2878 | if test -n "$CC"; then | |
2879 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2880 | else | |
2881 | ac_prog_rejected=no | |
2882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2883 | for as_dir in $PATH | |
2884 | do | |
2885 | IFS=$as_save_IFS | |
2886 | test -z "$as_dir" && as_dir=. | |
2887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2889 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2890 | ac_prog_rejected=yes | |
2891 | continue | |
2892 | fi | |
2893 | ac_cv_prog_CC="cc" | |
2894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2895 | break 2 | |
2896 | fi | |
2897 | done | |
2898 | done | |
2899 | IFS=$as_save_IFS | |
2900 | ||
2901 | if test $ac_prog_rejected = yes; then | |
2902 | # We found a bogon in the path, so make sure we never use it. | |
2903 | set dummy $ac_cv_prog_CC | |
2904 | shift | |
2905 | if test $# != 0; then | |
2906 | # We chose a different compiler from the bogus one. | |
2907 | # However, it has the same basename, so the bogon will be chosen | |
2908 | # first if we set CC to just the basename; use the full file name. | |
2909 | shift | |
2910 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2911 | fi | |
2912 | fi | |
2913 | fi | |
2914 | fi | |
2915 | CC=$ac_cv_prog_CC | |
2916 | if test -n "$CC"; then | |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2918 | $as_echo "$CC" >&6; } | |
2919 | else | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2921 | $as_echo "no" >&6; } | |
2922 | fi | |
2923 | ||
2924 | ||
2925 | fi | |
2926 | if test -z "$CC"; then | |
2927 | if test -n "$ac_tool_prefix"; then | |
2928 | for ac_prog in cl.exe | |
2929 | do | |
2930 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2931 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2933 | $as_echo_n "checking for $ac_word... " >&6; } | |
2934 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2935 | $as_echo_n "(cached) " >&6 | |
2936 | else | |
2937 | if test -n "$CC"; then | |
2938 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2939 | else | |
2940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2941 | for as_dir in $PATH | |
2942 | do | |
2943 | IFS=$as_save_IFS | |
2944 | test -z "$as_dir" && as_dir=. | |
2945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2947 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2949 | break 2 | |
2950 | fi | |
2951 | done | |
2952 | done | |
2953 | IFS=$as_save_IFS | |
2954 | ||
2955 | fi | |
2956 | fi | |
2957 | CC=$ac_cv_prog_CC | |
2958 | if test -n "$CC"; then | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2960 | $as_echo "$CC" >&6; } | |
2961 | else | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2963 | $as_echo "no" >&6; } | |
2964 | fi | |
2965 | ||
2966 | ||
2967 | test -n "$CC" && break | |
2968 | done | |
2969 | fi | |
2970 | if test -z "$CC"; then | |
2971 | ac_ct_CC=$CC | |
2972 | for ac_prog in cl.exe | |
2973 | do | |
2974 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2975 | set dummy $ac_prog; ac_word=$2 | |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2977 | $as_echo_n "checking for $ac_word... " >&6; } | |
2978 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2979 | $as_echo_n "(cached) " >&6 | |
2980 | else | |
2981 | if test -n "$ac_ct_CC"; then | |
2982 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2983 | else | |
2984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2985 | for as_dir in $PATH | |
2986 | do | |
2987 | IFS=$as_save_IFS | |
2988 | test -z "$as_dir" && as_dir=. | |
2989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2991 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2993 | break 2 | |
2994 | fi | |
2995 | done | |
2996 | done | |
2997 | IFS=$as_save_IFS | |
2998 | ||
2999 | fi | |
3000 | fi | |
3001 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3002 | if test -n "$ac_ct_CC"; then | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3004 | $as_echo "$ac_ct_CC" >&6; } | |
3005 | else | |
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3007 | $as_echo "no" >&6; } | |
3008 | fi | |
3009 | ||
3010 | ||
3011 | test -n "$ac_ct_CC" && break | |
3012 | done | |
3013 | ||
3014 | if test "x$ac_ct_CC" = x; then | |
3015 | CC="" | |
3016 | else | |
3017 | case $cross_compiling:$ac_tool_warned in | |
3018 | yes:) | |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3020 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3021 | ac_tool_warned=yes ;; | |
3022 | esac | |
3023 | CC=$ac_ct_CC | |
3024 | fi | |
3025 | fi | |
3026 | ||
3027 | fi | |
3028 | ||
3029 | ||
3030 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3031 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3032 | as_fn_error "no acceptable C compiler found in \$PATH | |
3033 | See \`config.log' for more details." "$LINENO" 5; } | |
3034 | ||
3035 | # Provide some information about the compiler. | |
3036 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3037 | set X $ac_compile | |
3038 | ac_compiler=$2 | |
3039 | for ac_option in --version -v -V -qversion; do | |
3040 | { { ac_try="$ac_compiler $ac_option >&5" | |
3041 | case "(($ac_try" in | |
3042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3043 | *) ac_try_echo=$ac_try;; | |
3044 | esac | |
3045 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3046 | $as_echo "$ac_try_echo"; } >&5 | |
3047 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3048 | ac_status=$? | |
3049 | if test -s conftest.err; then | |
3050 | sed '10a\ | |
3051 | ... rest of stderr output deleted ... | |
3052 | 10q' conftest.err >conftest.er1 | |
3053 | cat conftest.er1 >&5 | |
35fa52c0 | 3054 | fi |
9c60689e | 3055 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
3056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3057 | test $ac_status = 0; } | |
3058 | done | |
3059 | ||
3060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3061 | /* end confdefs.h. */ | |
9c60689e | 3062 | |
35fa52c0 DWT |
3063 | int |
3064 | main () | |
3065 | { | |
35fa52c0 DWT |
3066 | |
3067 | ; | |
3068 | return 0; | |
3069 | } | |
3070 | _ACEOF | |
3071 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3072 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3073 | # Try to create an executable without -o first, disregard a.out. |
3074 | # It will help us diagnose broken compilers, and finding out an intuition | |
3075 | # of exeext. | |
9c60689e DWT |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3077 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3078 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3079 | ||
3080 | # The possible output files: | |
3081 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3082 | ||
3083 | ac_rmfiles= | |
3084 | for ac_file in $ac_files | |
3085 | do | |
3086 | case $ac_file in | |
3087 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3088 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3089 | esac | |
3090 | done | |
3091 | rm -f $ac_rmfiles | |
3092 | ||
3093 | if { { ac_try="$ac_link_default" | |
3094 | case "(($ac_try" in | |
3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3096 | *) ac_try_echo=$ac_try;; | |
3097 | esac | |
3098 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3099 | $as_echo "$ac_try_echo"; } >&5 | |
3100 | (eval "$ac_link_default") 2>&5 | |
3101 | ac_status=$? | |
3102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3103 | test $ac_status = 0; }; then : | |
3104 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3105 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3106 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3107 | # so that the user can short-circuit this test for compilers unknown to | |
3108 | # Autoconf. | |
3109 | for ac_file in $ac_files '' | |
3110 | do | |
3111 | test -f "$ac_file" || continue | |
3112 | case $ac_file in | |
3113 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3114 | ;; | |
3115 | [ab].out ) | |
3116 | # We found the default executable, but exeext='' is most | |
3117 | # certainly right. | |
3118 | break;; | |
3119 | *.* ) | |
3120 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3121 | then :; else | |
3122 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3123 | fi | |
3124 | # We set ac_cv_exeext here because the later test for it is not | |
3125 | # safe: cross compilers may not add the suffix if given an `-o' | |
3126 | # argument, so we may need to know it at that point already. | |
3127 | # Even if this section looks crufty: it has the advantage of | |
3128 | # actually working. | |
3129 | break;; | |
3130 | * ) | |
3131 | break;; | |
3132 | esac | |
3133 | done | |
3134 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3135 | ||
3136 | else | |
3137 | ac_file='' | |
3138 | fi | |
35fa52c0 | 3139 | if test -z "$ac_file"; then : |
9c60689e DWT |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3141 | $as_echo "no" >&6; } | |
3142 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3143 | sed 's/^/| /' conftest.$ac_ext >&5 |
3144 | ||
3145 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3147 | { as_fn_set_status 77 | |
3148 | as_fn_error "C compiler cannot create executables | |
3149 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3150 | else |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3152 | $as_echo "yes" >&6; } | |
35fa52c0 | 3153 | fi |
9c60689e DWT |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3155 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3157 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3158 | ac_exeext=$ac_cv_exeext |
3159 | ||
9c60689e | 3160 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3161 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3163 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3164 | if { { ac_try="$ac_link" | |
3165 | case "(($ac_try" in | |
3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3167 | *) ac_try_echo=$ac_try;; | |
3168 | esac | |
3169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3170 | $as_echo "$ac_try_echo"; } >&5 | |
3171 | (eval "$ac_link") 2>&5 | |
3172 | ac_status=$? | |
3173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3174 | test $ac_status = 0; }; then : | |
3175 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3176 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3177 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3178 | # `rm'. | |
3179 | for ac_file in conftest.exe conftest conftest.*; do | |
3180 | test -f "$ac_file" || continue | |
3181 | case $ac_file in | |
3182 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3183 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3184 | break;; | |
3185 | * ) break;; | |
3186 | esac | |
3187 | done | |
3188 | else | |
3189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3191 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3192 | See \`config.log' for more details." "$LINENO" 5; } | |
3193 | fi | |
9c60689e | 3194 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3196 | $as_echo "$ac_cv_exeext" >&6; } | |
3197 | ||
3198 | rm -f conftest.$ac_ext | |
3199 | EXEEXT=$ac_cv_exeext | |
3200 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3202 | /* end confdefs.h. */ | |
3203 | #include <stdio.h> | |
3204 | int | |
3205 | main () | |
3206 | { | |
3207 | FILE *f = fopen ("conftest.out", "w"); | |
3208 | return ferror (f) || fclose (f) != 0; | |
3209 | ||
3210 | ; | |
3211 | return 0; | |
3212 | } | |
3213 | _ACEOF | |
3214 | ac_clean_files="$ac_clean_files conftest.out" | |
3215 | # Check that the compiler produces executables we can run. If not, either | |
3216 | # the compiler is broken, or we cross compile. | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3218 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3219 | if test "$cross_compiling" != yes; then | |
3220 | { { ac_try="$ac_link" | |
3221 | case "(($ac_try" in | |
3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3223 | *) ac_try_echo=$ac_try;; | |
3224 | esac | |
3225 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3226 | $as_echo "$ac_try_echo"; } >&5 | |
3227 | (eval "$ac_link") 2>&5 | |
3228 | ac_status=$? | |
3229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3230 | test $ac_status = 0; } | |
3231 | if { ac_try='./conftest$ac_cv_exeext' | |
3232 | { { case "(($ac_try" in | |
3233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3234 | *) ac_try_echo=$ac_try;; | |
3235 | esac | |
3236 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3237 | $as_echo "$ac_try_echo"; } >&5 | |
3238 | (eval "$ac_try") 2>&5 | |
3239 | ac_status=$? | |
3240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3241 | test $ac_status = 0; }; }; then | |
3242 | cross_compiling=no | |
3243 | else | |
3244 | if test "$cross_compiling" = maybe; then | |
3245 | cross_compiling=yes | |
3246 | else | |
3247 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3248 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3249 | as_fn_error "cannot run C compiled programs. | |
3250 | If you meant to cross compile, use \`--host'. | |
3251 | See \`config.log' for more details." "$LINENO" 5; } | |
3252 | fi | |
3253 | fi | |
3254 | fi | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3256 | $as_echo "$cross_compiling" >&6; } | |
3257 | ||
3258 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3259 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3261 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3262 | if test "${ac_cv_objext+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 | ||
3272 | ; | |
3273 | return 0; | |
3274 | } | |
3275 | _ACEOF | |
3276 | rm -f conftest.o conftest.obj | |
3277 | if { { ac_try="$ac_compile" | |
3278 | case "(($ac_try" in | |
3279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3280 | *) ac_try_echo=$ac_try;; | |
3281 | esac | |
3282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3283 | $as_echo "$ac_try_echo"; } >&5 | |
3284 | (eval "$ac_compile") 2>&5 | |
3285 | ac_status=$? | |
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3287 | test $ac_status = 0; }; then : | |
3288 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3289 | test -f "$ac_file" || continue; | |
3290 | case $ac_file in | |
3291 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3292 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3293 | break;; | |
3294 | esac | |
3295 | done | |
3296 | else | |
3297 | $as_echo "$as_me: failed program was:" >&5 | |
3298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3299 | ||
3300 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3301 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3302 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3303 | See \`config.log' for more details." "$LINENO" 5; } | |
3304 | fi | |
3305 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3306 | fi | |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3308 | $as_echo "$ac_cv_objext" >&6; } | |
3309 | OBJEXT=$ac_cv_objext | |
3310 | ac_objext=$OBJEXT | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3312 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3313 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3314 | $as_echo_n "(cached) " >&6 | |
3315 | else | |
3316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3317 | /* end confdefs.h. */ | |
3318 | ||
3319 | int | |
3320 | main () | |
3321 | { | |
3322 | #ifndef __GNUC__ | |
3323 | choke me | |
3324 | #endif | |
3325 | ||
3326 | ; | |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | if ac_fn_c_try_compile "$LINENO"; then : | |
3331 | ac_compiler_gnu=yes | |
3332 | else | |
3333 | ac_compiler_gnu=no | |
3334 | fi | |
3335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3336 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3337 | ||
3338 | fi | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3340 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3341 | if test $ac_compiler_gnu = yes; then | |
3342 | GCC=yes | |
3343 | else | |
3344 | GCC= | |
3345 | fi | |
3346 | ac_test_CFLAGS=${CFLAGS+set} | |
3347 | ac_save_CFLAGS=$CFLAGS | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3349 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3350 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3351 | $as_echo_n "(cached) " >&6 | |
3352 | else | |
3353 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3354 | ac_c_werror_flag=yes | |
3355 | ac_cv_prog_cc_g=no | |
3356 | CFLAGS="-g" | |
3357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3358 | /* end confdefs.h. */ | |
3359 | ||
3360 | int | |
3361 | main () | |
3362 | { | |
3363 | ||
3364 | ; | |
3365 | return 0; | |
3366 | } | |
3367 | _ACEOF | |
3368 | if ac_fn_c_try_compile "$LINENO"; then : | |
3369 | ac_cv_prog_cc_g=yes | |
3370 | else | |
3371 | CFLAGS="" | |
3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 | /* end confdefs.h. */ | |
3374 | ||
3375 | int | |
3376 | main () | |
3377 | { | |
3378 | ||
3379 | ; | |
3380 | return 0; | |
3381 | } | |
3382 | _ACEOF | |
3383 | if ac_fn_c_try_compile "$LINENO"; then : | |
3384 | ||
3385 | else | |
3386 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3387 | CFLAGS="-g" | |
3388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3389 | /* end confdefs.h. */ | |
3390 | ||
3391 | int | |
3392 | main () | |
3393 | { | |
3394 | ||
3395 | ; | |
3396 | return 0; | |
3397 | } | |
3398 | _ACEOF | |
3399 | if ac_fn_c_try_compile "$LINENO"; then : | |
3400 | ac_cv_prog_cc_g=yes | |
3401 | fi | |
3402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3403 | fi | |
3404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3405 | fi | |
3406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3407 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3408 | fi | |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3410 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3411 | if test "$ac_test_CFLAGS" = set; then | |
3412 | CFLAGS=$ac_save_CFLAGS | |
3413 | elif test $ac_cv_prog_cc_g = yes; then | |
3414 | if test "$GCC" = yes; then | |
3415 | CFLAGS="-g -O2" | |
3416 | else | |
3417 | CFLAGS="-g" | |
3418 | fi | |
3419 | else | |
3420 | if test "$GCC" = yes; then | |
3421 | CFLAGS="-O2" | |
3422 | else | |
3423 | CFLAGS= | |
3424 | fi | |
3425 | fi | |
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3427 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3428 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3429 | $as_echo_n "(cached) " >&6 | |
3430 | else | |
3431 | ac_cv_prog_cc_c89=no | |
3432 | ac_save_CC=$CC | |
3433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3434 | /* end confdefs.h. */ | |
3435 | #include <stdarg.h> | |
3436 | #include <stdio.h> | |
3437 | #include <sys/types.h> | |
3438 | #include <sys/stat.h> | |
3439 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3440 | struct buf { int x; }; | |
3441 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3442 | static char *e (p, i) | |
3443 | char **p; | |
3444 | int i; | |
3445 | { | |
3446 | return p[i]; | |
3447 | } | |
3448 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3449 | { | |
3450 | char *s; | |
3451 | va_list v; | |
3452 | va_start (v,p); | |
3453 | s = g (p, va_arg (v,int)); | |
3454 | va_end (v); | |
3455 | return s; | |
3456 | } | |
3457 | ||
3458 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3459 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3460 | These don't provoke an error unfortunately, instead are silently treated | |
3461 | as 'x'. The following induces an error, until -std is added to get | |
3462 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3463 | array size at least. It's necessary to write '\x00'==0 to get something | |
3464 | that's true only with -std. */ | |
3465 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3466 | ||
3467 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3468 | inside strings and character constants. */ | |
3469 | #define FOO(x) 'x' | |
3470 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3471 | ||
3472 | int test (int i, double x); | |
3473 | struct s1 {int (*f) (int a);}; | |
3474 | struct s2 {int (*f) (double a);}; | |
3475 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3476 | int argc; | |
3477 | char **argv; | |
3478 | int | |
3479 | main () | |
3480 | { | |
3481 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3482 | ; | |
3483 | return 0; | |
3484 | } | |
3485 | _ACEOF | |
3486 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3487 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3488 | do | |
3489 | CC="$ac_save_CC $ac_arg" | |
3490 | if ac_fn_c_try_compile "$LINENO"; then : | |
3491 | ac_cv_prog_cc_c89=$ac_arg | |
3492 | fi | |
3493 | rm -f core conftest.err conftest.$ac_objext | |
3494 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3495 | done | |
3496 | rm -f conftest.$ac_ext | |
3497 | CC=$ac_save_CC | |
3498 | ||
3499 | fi | |
3500 | # AC_CACHE_VAL | |
3501 | case "x$ac_cv_prog_cc_c89" in | |
3502 | x) | |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3504 | $as_echo "none needed" >&6; } ;; | |
3505 | xno) | |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3507 | $as_echo "unsupported" >&6; } ;; | |
3508 | *) | |
3509 | CC="$CC $ac_cv_prog_cc_c89" | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3511 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3512 | esac | |
3513 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3514 | ||
3515 | fi | |
3516 | ||
3517 | ac_ext=c | |
3518 | ac_cpp='$CPP $CPPFLAGS' | |
3519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3522 | ||
9c60689e DWT |
3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3524 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3525 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3526 | $as_echo_n "(cached) " >&6 |
3527 | else | |
9c60689e DWT |
3528 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3529 | for ac_i in 1 2 3 4 5 6 7; do | |
3530 | ac_script="$ac_script$as_nl$ac_script" | |
3531 | done | |
3532 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3533 | { ac_script=; unset ac_script;} | |
3534 | if test -z "$SED"; then | |
3535 | ac_path_SED_found=false | |
3536 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3538 | for as_dir in $PATH |
3539 | do | |
3540 | IFS=$as_save_IFS | |
3541 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3542 | for ac_prog in sed gsed; do |
35fa52c0 | 3543 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3544 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3545 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3546 | # Check for GNU ac_path_SED and select it if it is found. | |
3547 | # Check for GNU $ac_path_SED | |
3548 | case `"$ac_path_SED" --version 2>&1` in | |
3549 | *GNU*) | |
3550 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3551 | *) | |
3552 | ac_count=0 | |
3553 | $as_echo_n 0123456789 >"conftest.in" | |
3554 | while : | |
3555 | do | |
3556 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3557 | mv "conftest.tmp" "conftest.in" | |
3558 | cp "conftest.in" "conftest.nl" | |
3559 | $as_echo '' >> "conftest.nl" | |
3560 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3561 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3562 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3563 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3564 | # Best one so far, save it but keep looking for a better one | |
3565 | ac_cv_path_SED="$ac_path_SED" | |
3566 | ac_path_SED_max=$ac_count | |
3567 | fi | |
3568 | # 10*(2^10) chars as input seems more than enough | |
3569 | test $ac_count -gt 10 && break | |
35fa52c0 | 3570 | done |
9c60689e DWT |
3571 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3572 | esac | |
35fa52c0 | 3573 | |
9c60689e DWT |
3574 | $ac_path_SED_found && break 3 |
3575 | done | |
3576 | done | |
3577 | done | |
3578 | IFS=$as_save_IFS | |
3579 | if test -z "$ac_cv_path_SED"; then | |
3580 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3581 | fi | |
35fa52c0 | 3582 | else |
9c60689e | 3583 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3584 | fi |
3585 | ||
9c60689e DWT |
3586 | fi |
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3588 | $as_echo "$ac_cv_path_SED" >&6; } | |
3589 | SED="$ac_cv_path_SED" | |
3590 | rm -f conftest.sed | |
35fa52c0 | 3591 | |
9c60689e DWT |
3592 | test -z "$SED" && SED=sed |
3593 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3594 | |
35fa52c0 | 3595 | |
35fa52c0 | 3596 | |
35fa52c0 | 3597 | |
35fa52c0 | 3598 | |
35fa52c0 DWT |
3599 | |
3600 | ||
35fa52c0 | 3601 | |
35fa52c0 | 3602 | |
35fa52c0 | 3603 | |
35fa52c0 | 3604 | |
9c60689e DWT |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3606 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3607 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3608 | $as_echo_n "(cached) " >&6 | |
3609 | else | |
3610 | if test -z "$GREP"; then | |
3611 | ac_path_GREP_found=false | |
3612 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3614 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3615 | do | |
3616 | IFS=$as_save_IFS | |
3617 | test -z "$as_dir" && as_dir=. | |
3618 | for ac_prog in grep ggrep; do | |
3619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3620 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3621 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3622 | # Check for GNU ac_path_GREP and select it if it is found. | |
3623 | # Check for GNU $ac_path_GREP | |
3624 | case `"$ac_path_GREP" --version 2>&1` in | |
3625 | *GNU*) | |
3626 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3627 | *) | |
3628 | ac_count=0 | |
3629 | $as_echo_n 0123456789 >"conftest.in" | |
3630 | while : | |
3631 | do | |
3632 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3633 | mv "conftest.tmp" "conftest.in" | |
3634 | cp "conftest.in" "conftest.nl" | |
3635 | $as_echo 'GREP' >> "conftest.nl" | |
3636 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3637 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3638 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3639 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3640 | # Best one so far, save it but keep looking for a better one | |
3641 | ac_cv_path_GREP="$ac_path_GREP" | |
3642 | ac_path_GREP_max=$ac_count | |
3643 | fi | |
3644 | # 10*(2^10) chars as input seems more than enough | |
3645 | test $ac_count -gt 10 && break | |
3646 | done | |
3647 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3648 | esac | |
6b66678a | 3649 | |
9c60689e DWT |
3650 | $ac_path_GREP_found && break 3 |
3651 | done | |
3652 | done | |
3653 | done | |
3654 | IFS=$as_save_IFS | |
3655 | if test -z "$ac_cv_path_GREP"; then | |
3656 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3657 | fi | |
3658 | else | |
3659 | ac_cv_path_GREP=$GREP | |
3660 | fi | |
6b66678a | 3661 | |
9c60689e DWT |
3662 | fi |
3663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3664 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3665 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3666 | |
3667 | ||
9c60689e DWT |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3669 | $as_echo_n "checking for egrep... " >&6; } | |
3670 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3671 | $as_echo_n "(cached) " >&6 |
3672 | else | |
9c60689e DWT |
3673 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3674 | then ac_cv_path_EGREP="$GREP -E" | |
3675 | else | |
3676 | if test -z "$EGREP"; then | |
3677 | ac_path_EGREP_found=false | |
3678 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3680 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3681 | do | |
3682 | IFS=$as_save_IFS | |
3683 | test -z "$as_dir" && as_dir=. | |
3684 | for ac_prog in egrep; do | |
3685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3686 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3687 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3688 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3689 | # Check for GNU $ac_path_EGREP | |
3690 | case `"$ac_path_EGREP" --version 2>&1` in | |
3691 | *GNU*) | |
3692 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3693 | *) | |
3694 | ac_count=0 | |
3695 | $as_echo_n 0123456789 >"conftest.in" | |
3696 | while : | |
3697 | do | |
3698 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3699 | mv "conftest.tmp" "conftest.in" | |
3700 | cp "conftest.in" "conftest.nl" | |
3701 | $as_echo 'EGREP' >> "conftest.nl" | |
3702 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3703 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3704 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3705 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3706 | # Best one so far, save it but keep looking for a better one | |
3707 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3708 | ac_path_EGREP_max=$ac_count | |
3709 | fi | |
3710 | # 10*(2^10) chars as input seems more than enough | |
3711 | test $ac_count -gt 10 && break | |
3712 | done | |
3713 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3714 | esac | |
3715 | ||
3716 | $ac_path_EGREP_found && break 3 | |
3717 | done | |
3718 | done | |
3719 | done | |
3720 | IFS=$as_save_IFS | |
3721 | if test -z "$ac_cv_path_EGREP"; then | |
3722 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3723 | fi | |
3724 | else | |
3725 | ac_cv_path_EGREP=$EGREP | |
3726 | fi | |
6b66678a | 3727 | |
9c60689e DWT |
3728 | fi |
3729 | fi | |
3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3731 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3732 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3733 | |
6b66678a | 3734 | |
9c60689e DWT |
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3736 | $as_echo_n "checking for fgrep... " >&6; } | |
3737 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3738 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3739 | else |
9c60689e DWT |
3740 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3741 | then ac_cv_path_FGREP="$GREP -F" | |
3742 | else | |
3743 | if test -z "$FGREP"; then | |
3744 | ac_path_FGREP_found=false | |
3745 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3747 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3748 | do | |
3749 | IFS=$as_save_IFS | |
3750 | test -z "$as_dir" && as_dir=. | |
3751 | for ac_prog in fgrep; do | |
3752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3753 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3754 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3755 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3756 | # Check for GNU $ac_path_FGREP | |
3757 | case `"$ac_path_FGREP" --version 2>&1` in | |
3758 | *GNU*) | |
3759 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3760 | *) | |
3761 | ac_count=0 | |
3762 | $as_echo_n 0123456789 >"conftest.in" | |
3763 | while : | |
3764 | do | |
3765 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3766 | mv "conftest.tmp" "conftest.in" | |
3767 | cp "conftest.in" "conftest.nl" | |
3768 | $as_echo 'FGREP' >> "conftest.nl" | |
3769 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3770 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3771 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3772 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3773 | # Best one so far, save it but keep looking for a better one | |
3774 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3775 | ac_path_FGREP_max=$ac_count | |
3776 | fi | |
3777 | # 10*(2^10) chars as input seems more than enough | |
3778 | test $ac_count -gt 10 && break | |
3779 | done | |
3780 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3781 | esac | |
6b66678a | 3782 | |
9c60689e DWT |
3783 | $ac_path_FGREP_found && break 3 |
3784 | done | |
3785 | done | |
3786 | done | |
3787 | IFS=$as_save_IFS | |
3788 | if test -z "$ac_cv_path_FGREP"; then | |
3789 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3790 | fi | |
3791 | else | |
3792 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3793 | fi |
3794 | ||
9c60689e | 3795 | fi |
6b66678a | 3796 | fi |
9c60689e DWT |
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3798 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3799 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3800 | |
35fa52c0 | 3801 | |
9c60689e | 3802 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3803 | |
309b0535 | 3804 | |
35fa52c0 | 3805 | |
6b66678a | 3806 | |
6b66678a DWT |
3807 | |
3808 | ||
6b66678a | 3809 | |
6b66678a | 3810 | |
35fa52c0 | 3811 | |
35fa52c0 | 3812 | |
309b0535 | 3813 | |
309b0535 | 3814 | |
309b0535 | 3815 | |
309b0535 | 3816 | |
309b0535 | 3817 | |
309b0535 | 3818 | |
309b0535 | 3819 | |
309b0535 | 3820 | |
309b0535 | 3821 | |
9c60689e DWT |
3822 | # Check whether --with-gnu-ld was given. |
3823 | if test "${with_gnu_ld+set}" = set; then : | |
3824 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3825 | else |
9c60689e DWT |
3826 | with_gnu_ld=no |
3827 | fi | |
309b0535 | 3828 | |
9c60689e DWT |
3829 | ac_prog=ld |
3830 | if test "$GCC" = yes; then | |
3831 | # Check if gcc -print-prog-name=ld gives a path. | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3833 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3834 | case $host in | |
3835 | *-*-mingw*) | |
3836 | # gcc leaves a trailing carriage return which upsets mingw | |
3837 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3838 | *) | |
3839 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3840 | esac | |
3841 | case $ac_prog in | |
3842 | # Accept absolute paths. | |
3843 | [\\/]* | ?:[\\/]*) | |
3844 | re_direlt='/[^/][^/]*/\.\./' | |
3845 | # Canonicalize the pathname of ld | |
3846 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3847 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3848 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3849 | done |
9c60689e DWT |
3850 | test -z "$LD" && LD="$ac_prog" |
3851 | ;; | |
3852 | "") | |
3853 | # If it fails, then pretend we aren't using GCC. | |
3854 | ac_prog=ld | |
3855 | ;; | |
3856 | *) | |
3857 | # If it is relative, then search for the first ld in PATH. | |
3858 | with_gnu_ld=unknown | |
3859 | ;; | |
3860 | esac | |
3861 | elif test "$with_gnu_ld" = yes; then | |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3863 | $as_echo_n "checking for GNU ld... " >&6; } | |
3864 | else | |
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3866 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3867 | fi | |
3868 | if test "${lt_cv_path_LD+set}" = set; then : | |
3869 | $as_echo_n "(cached) " >&6 | |
3870 | else | |
3871 | if test -z "$LD"; then | |
3872 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3873 | for ac_dir in $PATH; do | |
3874 | IFS="$lt_save_ifs" | |
3875 | test -z "$ac_dir" && ac_dir=. | |
3876 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3877 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3878 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3879 | # but apparently some variants of GNU ld only accept -v. | |
3880 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3881 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3882 | *GNU* | *'with BFD'*) | |
3883 | test "$with_gnu_ld" != no && break | |
3884 | ;; | |
3885 | *) | |
3886 | test "$with_gnu_ld" != yes && break | |
3887 | ;; | |
309b0535 | 3888 | esac |
309b0535 | 3889 | fi |
9c60689e DWT |
3890 | done |
3891 | IFS="$lt_save_ifs" | |
3892 | else | |
3893 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3894 | fi | |
3895 | fi | |
309b0535 | 3896 | |
9c60689e DWT |
3897 | LD="$lt_cv_path_LD" |
3898 | if test -n "$LD"; then | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3900 | $as_echo "$LD" >&6; } | |
3901 | else | |
3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3903 | $as_echo "no" >&6; } | |
3904 | fi | |
3905 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3907 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3908 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3909 | $as_echo_n "(cached) " >&6 | |
3910 | else | |
3911 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3912 | case `$LD -v 2>&1 </dev/null` in | |
3913 | *GNU* | *'with BFD'*) | |
3914 | lt_cv_prog_gnu_ld=yes | |
3915 | ;; | |
3916 | *) | |
3917 | lt_cv_prog_gnu_ld=no | |
3918 | ;; | |
3919 | esac | |
309b0535 | 3920 | fi |
9c60689e DWT |
3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3922 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3923 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3924 | |
3925 | ||
309b0535 | 3926 | |
309b0535 DWT |
3927 | |
3928 | ||
309b0535 | 3929 | |
309b0535 | 3930 | |
9c60689e DWT |
3931 | |
3932 | ||
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3934 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3935 | if test "${lt_cv_path_NM+set}" = set; then : | |
3936 | $as_echo_n "(cached) " >&6 | |
3937 | else | |
3938 | if test -n "$NM"; then | |
3939 | # Let the user override the test. | |
3940 | lt_cv_path_NM="$NM" | |
3941 | else | |
3942 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3943 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3944 | lt_nm_to_check="$lt_nm_to_check nm" | |
3945 | fi | |
3946 | for lt_tmp_nm in $lt_nm_to_check; do | |
3947 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3948 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3949 | IFS="$lt_save_ifs" | |
3950 | test -z "$ac_dir" && ac_dir=. | |
3951 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3952 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3953 | # Check to see if the nm accepts a BSD-compat flag. | |
3954 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3955 | # nm: unknown option "B" ignored | |
3956 | # Tru64's nm complains that /dev/null is an invalid object file | |
3957 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3958 | */dev/null* | *'Invalid file or object type'*) | |
3959 | lt_cv_path_NM="$tmp_nm -B" | |
3960 | break | |
3961 | ;; | |
3962 | *) | |
3963 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3964 | */dev/null*) | |
3965 | lt_cv_path_NM="$tmp_nm -p" | |
3966 | break | |
3967 | ;; | |
3968 | *) | |
3969 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3970 | continue # so that we can try to find one that supports BSD flags | |
3971 | ;; | |
3972 | esac | |
3973 | ;; | |
3974 | esac | |
309b0535 DWT |
3975 | fi |
3976 | done | |
9c60689e | 3977 | IFS="$lt_save_ifs" |
309b0535 | 3978 | done |
9c60689e DWT |
3979 | : ${lt_cv_path_NM=no} |
3980 | fi | |
3981 | fi | |
3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3983 | $as_echo "$lt_cv_path_NM" >&6; } | |
3984 | if test "$lt_cv_path_NM" != "no"; then | |
3985 | NM="$lt_cv_path_NM" | |
3986 | else | |
3987 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3988 | if test -n "$ac_tool_prefix"; then | |
3989 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3990 | do |
3991 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3992 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3994 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3995 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3996 | $as_echo_n "(cached) " >&6 |
3997 | else | |
9c60689e DWT |
3998 | if test -n "$DUMPBIN"; then |
3999 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
4000 | else |
4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4002 | for as_dir in $PATH | |
4003 | do | |
4004 | IFS=$as_save_IFS | |
4005 | test -z "$as_dir" && as_dir=. | |
4006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 4008 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
4009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4010 | break 2 | |
4011 | fi | |
4012 | done | |
4013 | done | |
4014 | IFS=$as_save_IFS | |
4015 | ||
4016 | fi | |
4017 | fi | |
9c60689e DWT |
4018 | DUMPBIN=$ac_cv_prog_DUMPBIN |
4019 | if test -n "$DUMPBIN"; then | |
4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4021 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
4022 | else |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4024 | $as_echo "no" >&6; } | |
4025 | fi | |
4026 | ||
4027 | ||
9c60689e | 4028 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
4029 | done |
4030 | fi | |
9c60689e DWT |
4031 | if test -z "$DUMPBIN"; then |
4032 | ac_ct_DUMPBIN=$DUMPBIN | |
4033 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
4034 | do |
4035 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4036 | set dummy $ac_prog; ac_word=$2 | |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4038 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 4039 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
4040 | $as_echo_n "(cached) " >&6 |
4041 | else | |
9c60689e DWT |
4042 | if test -n "$ac_ct_DUMPBIN"; then |
4043 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
4044 | else |
4045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4046 | for as_dir in $PATH | |
4047 | do | |
4048 | IFS=$as_save_IFS | |
4049 | test -z "$as_dir" && as_dir=. | |
4050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 4052 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
4053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4054 | break 2 | |
4055 | fi | |
4056 | done | |
4057 | done | |
4058 | IFS=$as_save_IFS | |
4059 | ||
4060 | fi | |
4061 | fi | |
9c60689e DWT |
4062 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4063 | if test -n "$ac_ct_DUMPBIN"; then | |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4065 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4066 | else |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4068 | $as_echo "no" >&6; } | |
4069 | fi | |
4070 | ||
4071 | ||
9c60689e | 4072 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4073 | done |
4074 | ||
9c60689e DWT |
4075 | if test "x$ac_ct_DUMPBIN" = x; then |
4076 | DUMPBIN=":" | |
35fa52c0 DWT |
4077 | else |
4078 | case $cross_compiling:$ac_tool_warned in | |
4079 | yes:) | |
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4082 | ac_tool_warned=yes ;; | |
4083 | esac | |
9c60689e | 4084 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4085 | fi |
4086 | fi | |
4087 | ||
9c60689e DWT |
4088 | |
4089 | if test "$DUMPBIN" != ":"; then | |
4090 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4091 | fi |
4092 | fi | |
9c60689e | 4093 | test -z "$NM" && NM=nm |
35fa52c0 | 4094 | |
35fa52c0 | 4095 | |
35fa52c0 | 4096 | |
35fa52c0 | 4097 | |
9c60689e DWT |
4098 | |
4099 | ||
4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4101 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4102 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4103 | $as_echo_n "(cached) " >&6 | |
4104 | else | |
4105 | lt_cv_nm_interface="BSD nm" | |
4106 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b66977f1 | 4107 | (eval echo "\"\$as_me:4107: $ac_compile\"" >&5) |
9c60689e DWT |
4108 | (eval "$ac_compile" 2>conftest.err) |
4109 | cat conftest.err >&5 | |
b66977f1 | 4110 | (eval echo "\"\$as_me:4110: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
9c60689e DWT |
4111 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4112 | cat conftest.err >&5 | |
b66977f1 | 4113 | (eval echo "\"\$as_me:4113: output\"" >&5) |
9c60689e DWT |
4114 | cat conftest.out >&5 |
4115 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4116 | lt_cv_nm_interface="MS dumpbin" | |
4117 | fi | |
4118 | rm -f conftest* | |
35fa52c0 | 4119 | fi |
9c60689e DWT |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4121 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4122 | ||
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4124 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4125 | LN_S=$as_ln_s | |
4126 | if test "$LN_S" = "ln -s"; then | |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4128 | $as_echo "yes" >&6; } | |
35fa52c0 | 4129 | else |
9c60689e DWT |
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4131 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4132 | fi |
9c60689e DWT |
4133 | |
4134 | # find the maximum length of command line arguments | |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4136 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4137 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4138 | $as_echo_n "(cached) " >&6 |
4139 | else | |
9c60689e DWT |
4140 | i=0 |
4141 | teststring="ABCD" | |
4142 | ||
4143 | case $build_os in | |
4144 | msdosdjgpp*) | |
4145 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4146 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4147 | # during glob expansion). Even if it were fixed, the result of this | |
4148 | # check would be larger than it should be. | |
4149 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4150 | ;; | |
35fa52c0 | 4151 | |
9c60689e DWT |
4152 | gnu*) |
4153 | # Under GNU Hurd, this test is not required because there is | |
4154 | # no limit to the length of command line arguments. | |
4155 | # Libtool will interpret -1 as no limit whatsoever | |
4156 | lt_cv_sys_max_cmd_len=-1; | |
4157 | ;; | |
35fa52c0 | 4158 | |
9c60689e DWT |
4159 | cygwin* | mingw* | cegcc*) |
4160 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4161 | # about 5 minutes as the teststring grows exponentially. | |
4162 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4163 | # you end up with a "frozen" computer, even though with patience | |
4164 | # the test eventually succeeds (with a max line length of 256k). | |
4165 | # Instead, let's just punt: use the minimum linelength reported by | |
4166 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4167 | lt_cv_sys_max_cmd_len=8192; | |
4168 | ;; | |
35fa52c0 | 4169 | |
9c60689e DWT |
4170 | amigaos*) |
4171 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4172 | # So we just punt and use a minimum line length of 8192. | |
4173 | lt_cv_sys_max_cmd_len=8192; | |
4174 | ;; | |
35fa52c0 | 4175 | |
9c60689e DWT |
4176 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4177 | # This has been around since 386BSD, at least. Likely further. | |
4178 | if test -x /sbin/sysctl; then | |
4179 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4180 | elif test -x /usr/sbin/sysctl; then | |
4181 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4182 | else | |
4183 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4184 | fi | |
4185 | # And add a safety zone | |
4186 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4187 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4188 | ;; | |
35fa52c0 | 4189 | |
9c60689e DWT |
4190 | interix*) |
4191 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4192 | lt_cv_sys_max_cmd_len=196608 | |
4193 | ;; | |
35fa52c0 | 4194 | |
9c60689e DWT |
4195 | osf*) |
4196 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4197 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4198 | # nice to cause kernel panics so lets avoid the loop below. | |
4199 | # First set a reasonable default. | |
4200 | lt_cv_sys_max_cmd_len=16384 | |
4201 | # | |
4202 | if test -x /sbin/sysconfig; then | |
4203 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4204 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4205 | esac | |
4206 | fi | |
4207 | ;; | |
4208 | sco3.2v5*) | |
4209 | lt_cv_sys_max_cmd_len=102400 | |
4210 | ;; | |
4211 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4212 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4213 | if test -n "$kargmax"; then | |
4214 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4215 | else | |
4216 | lt_cv_sys_max_cmd_len=32768 | |
4217 | fi | |
4218 | ;; | |
4219 | *) | |
4220 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4221 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4222 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4223 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4224 | else | |
4225 | # Make teststring a little bigger before we do anything with it. | |
4226 | # a 1K string should be a reasonable start. | |
4227 | for i in 1 2 3 4 5 6 7 8 ; do | |
4228 | teststring=$teststring$teststring | |
4229 | done | |
4230 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4231 | # If test is not a shell built-in, we'll probably end up computing a | |
4232 | # maximum length that is only half of the actual maximum length, but | |
4233 | # we can't tell. | |
4234 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4235 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4236 | test $i != 17 # 1/2 MB should be enough | |
4237 | do | |
4238 | i=`expr $i + 1` | |
4239 | teststring=$teststring$teststring | |
4240 | done | |
4241 | # Only check the string length outside the loop. | |
4242 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4243 | teststring= | |
4244 | # Add a significant safety factor because C++ compilers can tack on | |
4245 | # massive amounts of additional arguments before passing them to the | |
4246 | # linker. It appears as though 1/2 is a usable value. | |
4247 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4248 | fi | |
4249 | ;; | |
4250 | esac | |
35fa52c0 | 4251 | |
35fa52c0 | 4252 | fi |
9c60689e DWT |
4253 | |
4254 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4256 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4257 | else |
9c60689e DWT |
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4259 | $as_echo "none" >&6; } | |
35fa52c0 | 4260 | fi |
9c60689e | 4261 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4262 | |
9c60689e DWT |
4263 | |
4264 | ||
4265 | ||
4266 | ||
4267 | ||
4268 | : ${CP="cp -f"} | |
4269 | : ${MV="mv -f"} | |
4270 | : ${RM="rm -f"} | |
4271 | ||
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4273 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4274 | # Try some XSI features | |
4275 | xsi_shell=no | |
4276 | ( _lt_dummy="a/b/c" | |
4277 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4278 | = c,a/b,, \ | |
4279 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4280 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4281 | && xsi_shell=yes | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4283 | $as_echo "$xsi_shell" >&6; } | |
4284 | ||
4285 | ||
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4287 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4288 | lt_shell_append=no | |
4289 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4290 | >/dev/null 2>&1 \ | |
4291 | && lt_shell_append=yes | |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4293 | $as_echo "$lt_shell_append" >&6; } | |
4294 | ||
4295 | ||
4296 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4297 | lt_unset=unset | |
35fa52c0 | 4298 | else |
9c60689e DWT |
4299 | lt_unset=false |
4300 | fi | |
4301 | ||
4302 | ||
4303 | ||
4304 | ||
4305 | ||
4306 | # test EBCDIC or ASCII | |
4307 | case `echo X|tr X '\101'` in | |
4308 | A) # ASCII based system | |
4309 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4310 | lt_SP2NL='tr \040 \012' | |
4311 | lt_NL2SP='tr \015\012 \040\040' | |
4312 | ;; | |
4313 | *) # EBCDIC based system | |
4314 | lt_SP2NL='tr \100 \n' | |
4315 | lt_NL2SP='tr \r\n \100\100' | |
4316 | ;; | |
35fa52c0 DWT |
4317 | esac |
4318 | ||
35fa52c0 | 4319 | |
35fa52c0 | 4320 | |
35fa52c0 | 4321 | |
35fa52c0 | 4322 | |
35fa52c0 | 4323 | |
35fa52c0 | 4324 | |
35fa52c0 | 4325 | |
9c60689e DWT |
4326 | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4328 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4329 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4330 | $as_echo_n "(cached) " >&6 |
4331 | else | |
9c60689e | 4332 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4333 | fi |
9c60689e DWT |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4335 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4336 | reload_flag=$lt_cv_ld_reload_flag | |
4337 | case $reload_flag in | |
4338 | "" | " "*) ;; | |
4339 | *) reload_flag=" $reload_flag" ;; | |
4340 | esac | |
4341 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4342 | case $host_os in | |
4343 | darwin*) | |
4344 | if test "$GCC" = yes; then | |
4345 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4346 | else | |
4347 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4348 | fi | |
4349 | ;; | |
35fa52c0 | 4350 | esac |
35fa52c0 DWT |
4351 | |
4352 | ||
9c60689e DWT |
4353 | |
4354 | ||
4355 | ||
4356 | ||
4357 | ||
4358 | ||
4359 | ||
4360 | if test -n "$ac_tool_prefix"; then | |
4361 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4362 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4364 | $as_echo_n "checking for $ac_word... " >&6; } | |
4365 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4366 | $as_echo_n "(cached) " >&6 |
4367 | else | |
9c60689e DWT |
4368 | if test -n "$OBJDUMP"; then |
4369 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4370 | else |
9c60689e DWT |
4371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4372 | for as_dir in $PATH | |
4373 | do | |
4374 | IFS=$as_save_IFS | |
4375 | test -z "$as_dir" && as_dir=. | |
4376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4378 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4380 | break 2 | |
35fa52c0 | 4381 | fi |
9c60689e DWT |
4382 | done |
4383 | done | |
4384 | IFS=$as_save_IFS | |
35fa52c0 | 4385 | |
35fa52c0 | 4386 | fi |
35fa52c0 | 4387 | fi |
9c60689e DWT |
4388 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4389 | if test -n "$OBJDUMP"; then | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4391 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4392 | else |
9c60689e DWT |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4394 | $as_echo "no" >&6; } | |
35fa52c0 | 4395 | fi |
9c60689e DWT |
4396 | |
4397 | ||
4398 | fi | |
4399 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4400 | ac_ct_OBJDUMP=$OBJDUMP | |
4401 | # Extract the first word of "objdump", so it can be a program name with args. | |
4402 | set dummy objdump; ac_word=$2 | |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4404 | $as_echo_n "checking for $ac_word... " >&6; } | |
4405 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4406 | $as_echo_n "(cached) " >&6 |
4407 | else | |
9c60689e DWT |
4408 | if test -n "$ac_ct_OBJDUMP"; then |
4409 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4410 | else |
9c60689e DWT |
4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4412 | for as_dir in $PATH | |
4413 | do | |
4414 | IFS=$as_save_IFS | |
4415 | test -z "$as_dir" && as_dir=. | |
4416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4418 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4420 | break 2 | |
4421 | fi | |
4422 | done | |
4423 | done | |
4424 | IFS=$as_save_IFS | |
4425 | ||
35fa52c0 DWT |
4426 | fi |
4427 | fi | |
9c60689e DWT |
4428 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4429 | if test -n "$ac_ct_OBJDUMP"; then | |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4431 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4432 | else |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4434 | $as_echo "no" >&6; } | |
4435 | fi | |
9c60689e DWT |
4436 | |
4437 | if test "x$ac_ct_OBJDUMP" = x; then | |
4438 | OBJDUMP="false" | |
4439 | else | |
4440 | case $cross_compiling:$ac_tool_warned in | |
4441 | yes:) | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4444 | ac_tool_warned=yes ;; | |
35fa52c0 | 4445 | esac |
9c60689e DWT |
4446 | OBJDUMP=$ac_ct_OBJDUMP |
4447 | fi | |
4448 | else | |
4449 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4450 | fi |
35fa52c0 | 4451 | |
9c60689e | 4452 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4453 | |
4454 | ||
35fa52c0 | 4455 | |
35fa52c0 | 4456 | |
35fa52c0 DWT |
4457 | |
4458 | ||
4459 | ||
35fa52c0 DWT |
4460 | |
4461 | ||
9c60689e DWT |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4463 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4464 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4465 | $as_echo_n "(cached) " >&6 | |
4466 | else | |
4467 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4468 | lt_cv_file_magic_test_file= | |
4469 | lt_cv_deplibs_check_method='unknown' | |
4470 | # Need to set the preceding variable on all platforms that support | |
4471 | # interlibrary dependencies. | |
4472 | # 'none' -- dependencies not supported. | |
4473 | # `unknown' -- same as none, but documents that we really don't know. | |
4474 | # 'pass_all' -- all dependencies passed with no checks. | |
4475 | # 'test_compile' -- check by making test program. | |
4476 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4477 | # which responds to the $file_magic_cmd with a given extended regex. | |
4478 | # If you have `file' or equivalent on your system and you're not sure | |
4479 | # whether `pass_all' will *always* work, you probably want this one. | |
4480 | ||
4481 | case $host_os in | |
4482 | aix[4-9]*) | |
4483 | lt_cv_deplibs_check_method=pass_all | |
4484 | ;; | |
35fa52c0 | 4485 | |
9c60689e DWT |
4486 | beos*) |
4487 | lt_cv_deplibs_check_method=pass_all | |
4488 | ;; | |
35fa52c0 | 4489 | |
9c60689e DWT |
4490 | bsdi[45]*) |
4491 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4492 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4493 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4494 | ;; | |
35fa52c0 | 4495 | |
9c60689e DWT |
4496 | cygwin*) |
4497 | # func_win32_libid is a shell function defined in ltmain.sh | |
4498 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4499 | lt_cv_file_magic_cmd='func_win32_libid' | |
4500 | ;; | |
35fa52c0 | 4501 | |
9c60689e DWT |
4502 | mingw* | pw32*) |
4503 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4504 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4505 | # unless we find 'file', for example because we are cross-compiling. | |
4506 | if ( file / ) >/dev/null 2>&1; then | |
4507 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4508 | lt_cv_file_magic_cmd='func_win32_libid' | |
4509 | else | |
4510 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4511 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4512 | fi | |
4513 | ;; | |
35fa52c0 | 4514 | |
9c60689e DWT |
4515 | cegcc) |
4516 | # use the weaker test based on 'objdump'. See mingw*. | |
4517 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4518 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4519 | ;; | |
35fa52c0 | 4520 | |
9c60689e DWT |
4521 | darwin* | rhapsody*) |
4522 | lt_cv_deplibs_check_method=pass_all | |
4523 | ;; | |
35fa52c0 | 4524 | |
9c60689e DWT |
4525 | freebsd* | dragonfly*) |
4526 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4527 | case $host_cpu in | |
4528 | i*86 ) | |
4529 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4530 | # Let's accept both of them until this is cleared up. | |
4531 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4532 | lt_cv_file_magic_cmd=/usr/bin/file | |
4533 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4534 | ;; | |
4535 | esac | |
4536 | else | |
4537 | lt_cv_deplibs_check_method=pass_all | |
4538 | fi | |
4539 | ;; | |
35fa52c0 | 4540 | |
9c60689e DWT |
4541 | gnu*) |
4542 | lt_cv_deplibs_check_method=pass_all | |
4543 | ;; | |
35fa52c0 | 4544 | |
9c60689e DWT |
4545 | hpux10.20* | hpux11*) |
4546 | lt_cv_file_magic_cmd=/usr/bin/file | |
4547 | case $host_cpu in | |
4548 | ia64*) | |
4549 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4550 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4551 | ;; | |
4552 | hppa*64*) | |
4553 | 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]' | |
4554 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4555 | ;; | |
4556 | *) | |
4557 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4558 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4559 | ;; | |
4560 | esac | |
4561 | ;; | |
35fa52c0 | 4562 | |
9c60689e DWT |
4563 | interix[3-9]*) |
4564 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4565 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4566 | ;; | |
35fa52c0 | 4567 | |
9c60689e DWT |
4568 | irix5* | irix6* | nonstopux*) |
4569 | case $LD in | |
4570 | *-32|*"-32 ") libmagic=32-bit;; | |
4571 | *-n32|*"-n32 ") libmagic=N32;; | |
4572 | *-64|*"-64 ") libmagic=64-bit;; | |
4573 | *) libmagic=never-match;; | |
4574 | esac | |
4575 | lt_cv_deplibs_check_method=pass_all | |
4576 | ;; | |
35fa52c0 | 4577 | |
9c60689e DWT |
4578 | # This must be Linux ELF. |
4579 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4580 | lt_cv_deplibs_check_method=pass_all | |
4581 | ;; | |
35fa52c0 | 4582 | |
9c60689e DWT |
4583 | netbsd* | netbsdelf*-gnu) |
4584 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4585 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4586 | else | |
4587 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4588 | fi | |
4589 | ;; | |
35fa52c0 | 4590 | |
9c60689e DWT |
4591 | newos6*) |
4592 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4593 | lt_cv_file_magic_cmd=/usr/bin/file | |
4594 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4595 | ;; | |
35fa52c0 | 4596 | |
9c60689e DWT |
4597 | *nto* | *qnx*) |
4598 | lt_cv_deplibs_check_method=pass_all | |
4599 | ;; | |
35fa52c0 | 4600 | |
9c60689e DWT |
4601 | openbsd*) |
4602 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4603 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4604 | else | |
4605 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4606 | fi | |
4607 | ;; | |
4608 | ||
4609 | osf3* | osf4* | osf5*) | |
4610 | lt_cv_deplibs_check_method=pass_all | |
4611 | ;; | |
4612 | ||
4613 | rdos*) | |
4614 | lt_cv_deplibs_check_method=pass_all | |
4615 | ;; | |
4616 | ||
4617 | solaris*) | |
4618 | lt_cv_deplibs_check_method=pass_all | |
4619 | ;; | |
4620 | ||
4621 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4622 | lt_cv_deplibs_check_method=pass_all | |
4623 | ;; | |
4624 | ||
4625 | sysv4 | sysv4.3*) | |
4626 | case $host_vendor in | |
4627 | motorola) | |
4628 | 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]' | |
4629 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4630 | ;; | |
4631 | ncr) | |
4632 | lt_cv_deplibs_check_method=pass_all | |
4633 | ;; | |
4634 | sequent) | |
4635 | lt_cv_file_magic_cmd='/bin/file' | |
4636 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4637 | ;; | |
4638 | sni) | |
4639 | lt_cv_file_magic_cmd='/bin/file' | |
4640 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4641 | lt_cv_file_magic_test_file=/lib/libc.so | |
4642 | ;; | |
4643 | siemens) | |
4644 | lt_cv_deplibs_check_method=pass_all | |
4645 | ;; | |
4646 | pc) | |
4647 | lt_cv_deplibs_check_method=pass_all | |
4648 | ;; | |
4649 | esac | |
4650 | ;; | |
4651 | ||
4652 | tpf*) | |
4653 | lt_cv_deplibs_check_method=pass_all | |
4654 | ;; | |
4655 | esac | |
35fa52c0 DWT |
4656 | |
4657 | fi | |
9c60689e DWT |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4659 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4660 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4661 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4662 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4663 | |
35fa52c0 | 4664 | |
35fa52c0 | 4665 | |
35fa52c0 | 4666 | |
35fa52c0 | 4667 | |
35fa52c0 | 4668 | |
35fa52c0 | 4669 | |
35fa52c0 | 4670 | |
35fa52c0 | 4671 | |
35fa52c0 | 4672 | |
35fa52c0 | 4673 | |
9c60689e DWT |
4674 | |
4675 | if test -n "$ac_tool_prefix"; then | |
4676 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4677 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4679 | $as_echo_n "checking for $ac_word... " >&6; } | |
4680 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4681 | $as_echo_n "(cached) " >&6 | |
4682 | else | |
4683 | if test -n "$AR"; then | |
4684 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4685 | else | |
4686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4687 | for as_dir in $PATH | |
4688 | do | |
4689 | IFS=$as_save_IFS | |
4690 | test -z "$as_dir" && as_dir=. | |
4691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4693 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4695 | break 2 | |
4696 | fi | |
4697 | done | |
35fa52c0 | 4698 | done |
9c60689e DWT |
4699 | IFS=$as_save_IFS |
4700 | ||
4701 | fi | |
4702 | fi | |
4703 | AR=$ac_cv_prog_AR | |
4704 | if test -n "$AR"; then | |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4706 | $as_echo "$AR" >&6; } | |
4707 | else | |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4709 | $as_echo "no" >&6; } | |
4710 | fi | |
4711 | ||
4712 | ||
4713 | fi | |
4714 | if test -z "$ac_cv_prog_AR"; then | |
4715 | ac_ct_AR=$AR | |
4716 | # Extract the first word of "ar", so it can be a program name with args. | |
4717 | set dummy ar; ac_word=$2 | |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4719 | $as_echo_n "checking for $ac_word... " >&6; } | |
4720 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4721 | $as_echo_n "(cached) " >&6 | |
4722 | else | |
4723 | if test -n "$ac_ct_AR"; then | |
4724 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4725 | else | |
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4727 | for as_dir in $PATH | |
4728 | do | |
4729 | IFS=$as_save_IFS | |
4730 | test -z "$as_dir" && as_dir=. | |
4731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4733 | ac_cv_prog_ac_ct_AR="ar" | |
4734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4735 | break 2 | |
35fa52c0 | 4736 | fi |
9c60689e DWT |
4737 | done |
4738 | done | |
4739 | IFS=$as_save_IFS | |
4740 | ||
4741 | fi | |
4742 | fi | |
4743 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4744 | if test -n "$ac_ct_AR"; then | |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4746 | $as_echo "$ac_ct_AR" >&6; } | |
4747 | else | |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4749 | $as_echo "no" >&6; } | |
4750 | fi | |
4751 | ||
4752 | if test "x$ac_ct_AR" = x; then | |
4753 | AR="false" | |
4754 | else | |
4755 | case $cross_compiling:$ac_tool_warned in | |
4756 | yes:) | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4758 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4759 | ac_tool_warned=yes ;; | |
4760 | esac | |
4761 | AR=$ac_ct_AR | |
4762 | fi | |
4763 | else | |
4764 | AR="$ac_cv_prog_AR" | |
4765 | fi | |
4766 | ||
4767 | test -z "$AR" && AR=ar | |
4768 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | ||
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | if test -n "$ac_tool_prefix"; then | |
4781 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4782 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4784 | $as_echo_n "checking for $ac_word... " >&6; } | |
4785 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4786 | $as_echo_n "(cached) " >&6 | |
4787 | else | |
4788 | if test -n "$STRIP"; then | |
4789 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4790 | else | |
4791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4792 | for as_dir in $PATH | |
4793 | do | |
4794 | IFS=$as_save_IFS | |
4795 | test -z "$as_dir" && as_dir=. | |
4796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4798 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4800 | break 2 | |
35fa52c0 | 4801 | fi |
9c60689e DWT |
4802 | done |
4803 | done | |
4804 | IFS=$as_save_IFS | |
4805 | ||
4806 | fi | |
4807 | fi | |
4808 | STRIP=$ac_cv_prog_STRIP | |
4809 | if test -n "$STRIP"; then | |
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4811 | $as_echo "$STRIP" >&6; } | |
4812 | else | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4814 | $as_echo "no" >&6; } | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | fi | |
4819 | if test -z "$ac_cv_prog_STRIP"; then | |
4820 | ac_ct_STRIP=$STRIP | |
4821 | # Extract the first word of "strip", so it can be a program name with args. | |
4822 | set dummy strip; ac_word=$2 | |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4824 | $as_echo_n "checking for $ac_word... " >&6; } | |
4825 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4826 | $as_echo_n "(cached) " >&6 | |
4827 | else | |
4828 | if test -n "$ac_ct_STRIP"; then | |
4829 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4830 | else | |
4831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4832 | for as_dir in $PATH | |
4833 | do | |
4834 | IFS=$as_save_IFS | |
4835 | test -z "$as_dir" && as_dir=. | |
4836 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4838 | ac_cv_prog_ac_ct_STRIP="strip" | |
4839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4840 | break 2 | |
4841 | fi | |
4842 | done | |
4843 | done | |
4844 | IFS=$as_save_IFS | |
4845 | ||
4846 | fi | |
4847 | fi | |
4848 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4849 | if test -n "$ac_ct_STRIP"; then | |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4851 | $as_echo "$ac_ct_STRIP" >&6; } | |
4852 | else | |
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4854 | $as_echo "no" >&6; } | |
4855 | fi | |
4856 | ||
4857 | if test "x$ac_ct_STRIP" = x; then | |
4858 | STRIP=":" | |
4859 | else | |
4860 | case $cross_compiling:$ac_tool_warned in | |
4861 | yes:) | |
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4863 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4864 | ac_tool_warned=yes ;; | |
4865 | esac | |
4866 | STRIP=$ac_ct_STRIP | |
4867 | fi | |
4868 | else | |
4869 | STRIP="$ac_cv_prog_STRIP" | |
4870 | fi | |
4871 | ||
4872 | test -z "$STRIP" && STRIP=: | |
4873 | ||
4874 | ||
4875 | ||
4876 | ||
4877 | ||
4878 | ||
4879 | if test -n "$ac_tool_prefix"; then | |
4880 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4881 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4883 | $as_echo_n "checking for $ac_word... " >&6; } | |
4884 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4885 | $as_echo_n "(cached) " >&6 | |
4886 | else | |
4887 | if test -n "$RANLIB"; then | |
4888 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4889 | else | |
4890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4891 | for as_dir in $PATH | |
4892 | do | |
4893 | IFS=$as_save_IFS | |
4894 | test -z "$as_dir" && as_dir=. | |
4895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4897 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4899 | break 2 | |
4900 | fi | |
4901 | done | |
4902 | done | |
4903 | IFS=$as_save_IFS | |
4904 | ||
4905 | fi | |
4906 | fi | |
4907 | RANLIB=$ac_cv_prog_RANLIB | |
4908 | if test -n "$RANLIB"; then | |
4909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4910 | $as_echo "$RANLIB" >&6; } | |
4911 | else | |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4913 | $as_echo "no" >&6; } | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | fi | |
4918 | if test -z "$ac_cv_prog_RANLIB"; then | |
4919 | ac_ct_RANLIB=$RANLIB | |
4920 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4921 | set dummy ranlib; ac_word=$2 | |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4923 | $as_echo_n "checking for $ac_word... " >&6; } | |
4924 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4925 | $as_echo_n "(cached) " >&6 | |
4926 | else | |
4927 | if test -n "$ac_ct_RANLIB"; then | |
4928 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4929 | else | |
4930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4931 | for as_dir in $PATH | |
4932 | do | |
4933 | IFS=$as_save_IFS | |
4934 | test -z "$as_dir" && as_dir=. | |
4935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4937 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4939 | break 2 | |
4940 | fi | |
4941 | done | |
4942 | done | |
4943 | IFS=$as_save_IFS | |
4944 | ||
4945 | fi | |
4946 | fi | |
4947 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4948 | if test -n "$ac_ct_RANLIB"; then | |
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4950 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4951 | else | |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4953 | $as_echo "no" >&6; } | |
4954 | fi | |
4955 | ||
4956 | if test "x$ac_ct_RANLIB" = x; then | |
4957 | RANLIB=":" | |
4958 | else | |
4959 | case $cross_compiling:$ac_tool_warned in | |
4960 | yes:) | |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4963 | ac_tool_warned=yes ;; | |
4964 | esac | |
4965 | RANLIB=$ac_ct_RANLIB | |
4966 | fi | |
4967 | else | |
4968 | RANLIB="$ac_cv_prog_RANLIB" | |
4969 | fi | |
4970 | ||
4971 | test -z "$RANLIB" && RANLIB=: | |
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | # Determine commands to create old-style static archives. | |
4979 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4980 | old_postinstall_cmds='chmod 644 $oldlib' | |
4981 | old_postuninstall_cmds= | |
4982 | ||
4983 | if test -n "$RANLIB"; then | |
4984 | case $host_os in | |
4985 | openbsd*) | |
4986 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4987 | ;; | |
4988 | *) | |
4989 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4990 | ;; | |
4991 | esac | |
4992 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4993 | fi | |
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
5004 | ||
5005 | ||
5006 | ||
5007 | ||
5008 | ||
5009 | ||
5010 | ||
5011 | ||
5012 | ||
5013 | ||
5014 | ||
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | # If no C compiler was specified, use CC. | |
5029 | LTCC=${LTCC-"$CC"} | |
5030 | ||
5031 | # If no C compiler flags were specified, use CFLAGS. | |
5032 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5033 | ||
5034 | # Allow CC to be a program name with arguments. | |
5035 | compiler=$CC | |
5036 | ||
5037 | ||
5038 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5040 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5041 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
5042 | $as_echo_n "(cached) " >&6 | |
5043 | else | |
5044 | ||
5045 | # These are sane defaults that work on at least a few old systems. | |
5046 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5047 | ||
5048 | # Character class describing NM global symbol codes. | |
5049 | symcode='[BCDEGRST]' | |
5050 | ||
5051 | # Regexp to match symbols that can be accessed directly from C. | |
5052 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5053 | ||
5054 | # Define system-specific variables. | |
5055 | case $host_os in | |
5056 | aix*) | |
5057 | symcode='[BCDT]' | |
5058 | ;; | |
5059 | cygwin* | mingw* | pw32* | cegcc*) | |
5060 | symcode='[ABCDGISTW]' | |
5061 | ;; | |
5062 | hpux*) | |
5063 | if test "$host_cpu" = ia64; then | |
5064 | symcode='[ABCDEGRST]' | |
5065 | fi | |
5066 | ;; | |
5067 | irix* | nonstopux*) | |
5068 | symcode='[BCDEGRST]' | |
5069 | ;; | |
5070 | osf*) | |
5071 | symcode='[BCDEGQRST]' | |
5072 | ;; | |
5073 | solaris*) | |
5074 | symcode='[BDRT]' | |
5075 | ;; | |
5076 | sco3.2v5*) | |
5077 | symcode='[DT]' | |
5078 | ;; | |
5079 | sysv4.2uw2*) | |
5080 | symcode='[DT]' | |
5081 | ;; | |
5082 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5083 | symcode='[ABDT]' | |
5084 | ;; | |
5085 | sysv4) | |
5086 | symcode='[DFNSTU]' | |
5087 | ;; | |
5088 | esac | |
5089 | ||
5090 | # If we're using GNU nm, then use its standard symbol codes. | |
5091 | case `$NM -V 2>&1` in | |
5092 | *GNU* | *'with BFD'*) | |
5093 | symcode='[ABCDGIRSTW]' ;; | |
5094 | esac | |
5095 | ||
5096 | # Transform an extracted symbol line into a proper C declaration. | |
5097 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5098 | # so use this general approach. | |
5099 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5100 | ||
5101 | # Transform an extracted symbol line into symbol name and symbol address | |
5102 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5103 | 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'" | |
5104 | ||
5105 | # Handle CRLF in mingw tool chain | |
5106 | opt_cr= | |
5107 | case $build_os in | |
5108 | mingw*) | |
5109 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5110 | ;; | |
5111 | esac | |
5112 | ||
5113 | # Try without a prefix underscore, then with it. | |
5114 | for ac_symprfx in "" "_"; do | |
5115 | ||
5116 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5117 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5118 | ||
5119 | # Write the raw and C identifiers. | |
5120 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5121 | # Fake it for dumpbin and say T for any non-static function | |
5122 | # and D for any global variable. | |
5123 | # Also find C++ and __fastcall symbols from MSVC++, | |
5124 | # which start with @ or ?. | |
5125 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5126 | " {last_section=section; section=\$ 3};"\ | |
5127 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5128 | " \$ 0!~/External *\|/{next};"\ | |
5129 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5130 | " {if(hide[section]) next};"\ | |
5131 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5132 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5133 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5134 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5135 | " ' prfx=^$ac_symprfx" | |
5136 | else | |
5137 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5138 | fi | |
5139 | ||
5140 | # Check to see that the pipe works correctly. | |
5141 | pipe_works=no | |
5142 | ||
5143 | rm -f conftest* | |
5144 | cat > conftest.$ac_ext <<_LT_EOF | |
5145 | #ifdef __cplusplus | |
5146 | extern "C" { | |
5147 | #endif | |
5148 | char nm_test_var; | |
5149 | void nm_test_func(void); | |
5150 | void nm_test_func(void){} | |
5151 | #ifdef __cplusplus | |
5152 | } | |
5153 | #endif | |
5154 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5155 | _LT_EOF | |
5156 | ||
5157 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5158 | (eval $ac_compile) 2>&5 | |
5159 | ac_status=$? | |
5160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5161 | test $ac_status = 0; }; then | |
5162 | # Now try to grab the symbols. | |
5163 | nlist=conftest.nm | |
5164 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5165 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5166 | ac_status=$? | |
5167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5168 | test $ac_status = 0; } && test -s "$nlist"; then | |
5169 | # Try sorting and uniquifying the output. | |
5170 | if sort "$nlist" | uniq > "$nlist"T; then | |
5171 | mv -f "$nlist"T "$nlist" | |
5172 | else | |
5173 | rm -f "$nlist"T | |
5174 | fi | |
5175 | ||
5176 | # Make sure that we snagged all the symbols we need. | |
5177 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5178 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5179 | cat <<_LT_EOF > conftest.$ac_ext | |
5180 | #ifdef __cplusplus | |
5181 | extern "C" { | |
5182 | #endif | |
5183 | ||
5184 | _LT_EOF | |
5185 | # Now generate the symbol file. | |
5186 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5187 | ||
5188 | cat <<_LT_EOF >> conftest.$ac_ext | |
5189 | ||
5190 | /* The mapping between symbol names and symbols. */ | |
5191 | const struct { | |
5192 | const char *name; | |
5193 | void *address; | |
5194 | } | |
5195 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5196 | { | |
5197 | { "@PROGRAM@", (void *) 0 }, | |
5198 | _LT_EOF | |
5199 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5200 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5201 | {0, (void *) 0} | |
5202 | }; | |
5203 | ||
5204 | /* This works around a problem in FreeBSD linker */ | |
5205 | #ifdef FREEBSD_WORKAROUND | |
5206 | static const void *lt_preloaded_setup() { | |
5207 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5208 | } | |
5209 | #endif | |
5210 | ||
5211 | #ifdef __cplusplus | |
5212 | } | |
5213 | #endif | |
5214 | _LT_EOF | |
5215 | # Now try linking the two files. | |
5216 | mv conftest.$ac_objext conftstm.$ac_objext | |
5217 | lt_save_LIBS="$LIBS" | |
5218 | lt_save_CFLAGS="$CFLAGS" | |
5219 | LIBS="conftstm.$ac_objext" | |
5220 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5221 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5222 | (eval $ac_link) 2>&5 | |
5223 | ac_status=$? | |
5224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5225 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5226 | pipe_works=yes | |
5227 | fi | |
5228 | LIBS="$lt_save_LIBS" | |
5229 | CFLAGS="$lt_save_CFLAGS" | |
5230 | else | |
5231 | echo "cannot find nm_test_func in $nlist" >&5 | |
5232 | fi | |
5233 | else | |
5234 | echo "cannot find nm_test_var in $nlist" >&5 | |
5235 | fi | |
5236 | else | |
5237 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5238 | fi | |
5239 | else | |
5240 | echo "$progname: failed program was:" >&5 | |
5241 | cat conftest.$ac_ext >&5 | |
5242 | fi | |
5243 | rm -rf conftest* conftst* | |
5244 | ||
5245 | # Do not use the global_symbol_pipe unless it works. | |
5246 | if test "$pipe_works" = yes; then | |
5247 | break | |
5248 | else | |
5249 | lt_cv_sys_global_symbol_pipe= | |
5250 | fi | |
5251 | done | |
5252 | ||
5253 | fi | |
5254 | ||
5255 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5256 | lt_cv_sys_global_symbol_to_cdecl= | |
5257 | fi | |
5258 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5260 | $as_echo "failed" >&6; } | |
5261 | else | |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5263 | $as_echo "ok" >&6; } | |
5264 | fi | |
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
5271 | ||
5272 | ||
5273 | ||
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ||
5286 | ||
5287 | ||
5288 | # Check whether --enable-libtool-lock was given. | |
5289 | if test "${enable_libtool_lock+set}" = set; then : | |
5290 | enableval=$enable_libtool_lock; | |
5291 | fi | |
5292 | ||
5293 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5294 | ||
5295 | # Some flags need to be propagated to the compiler or linker for good | |
5296 | # libtool support. | |
5297 | case $host in | |
5298 | ia64-*-hpux*) | |
5299 | # Find out which ABI we are using. | |
5300 | echo 'int i;' > conftest.$ac_ext | |
5301 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5302 | (eval $ac_compile) 2>&5 | |
5303 | ac_status=$? | |
5304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5305 | test $ac_status = 0; }; then | |
5306 | case `/usr/bin/file conftest.$ac_objext` in | |
5307 | *ELF-32*) | |
5308 | HPUX_IA64_MODE="32" | |
5309 | ;; | |
5310 | *ELF-64*) | |
5311 | HPUX_IA64_MODE="64" | |
5312 | ;; | |
5313 | esac | |
5314 | fi | |
5315 | rm -rf conftest* | |
5316 | ;; | |
5317 | *-*-irix6*) | |
5318 | # Find out which ABI we are using. | |
b66977f1 | 5319 | echo '#line 5319 "configure"' > conftest.$ac_ext |
9c60689e DWT |
5320 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5321 | (eval $ac_compile) 2>&5 | |
5322 | ac_status=$? | |
5323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5324 | test $ac_status = 0; }; then | |
5325 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5326 | case `/usr/bin/file conftest.$ac_objext` in | |
5327 | *32-bit*) | |
5328 | LD="${LD-ld} -melf32bsmip" | |
5329 | ;; | |
5330 | *N32*) | |
5331 | LD="${LD-ld} -melf32bmipn32" | |
5332 | ;; | |
5333 | *64-bit*) | |
5334 | LD="${LD-ld} -melf64bmip" | |
5335 | ;; | |
5336 | esac | |
5337 | else | |
5338 | case `/usr/bin/file conftest.$ac_objext` in | |
5339 | *32-bit*) | |
5340 | LD="${LD-ld} -32" | |
5341 | ;; | |
5342 | *N32*) | |
5343 | LD="${LD-ld} -n32" | |
5344 | ;; | |
5345 | *64-bit*) | |
5346 | LD="${LD-ld} -64" | |
5347 | ;; | |
5348 | esac | |
5349 | fi | |
5350 | fi | |
5351 | rm -rf conftest* | |
5352 | ;; | |
5353 | ||
5354 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5355 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5356 | # Find out which ABI we are using. | |
5357 | echo 'int i;' > conftest.$ac_ext | |
5358 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5359 | (eval $ac_compile) 2>&5 | |
5360 | ac_status=$? | |
5361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5362 | test $ac_status = 0; }; then | |
5363 | case `/usr/bin/file conftest.o` in | |
5364 | *32-bit*) | |
5365 | case $host in | |
5366 | x86_64-*kfreebsd*-gnu) | |
5367 | LD="${LD-ld} -m elf_i386_fbsd" | |
5368 | ;; | |
5369 | x86_64-*linux*) | |
5370 | LD="${LD-ld} -m elf_i386" | |
5371 | ;; | |
5372 | ppc64-*linux*|powerpc64-*linux*) | |
5373 | LD="${LD-ld} -m elf32ppclinux" | |
5374 | ;; | |
5375 | s390x-*linux*) | |
5376 | LD="${LD-ld} -m elf_s390" | |
5377 | ;; | |
5378 | sparc64-*linux*) | |
5379 | LD="${LD-ld} -m elf32_sparc" | |
5380 | ;; | |
5381 | esac | |
5382 | ;; | |
5383 | *64-bit*) | |
5384 | case $host in | |
5385 | x86_64-*kfreebsd*-gnu) | |
5386 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5387 | ;; | |
5388 | x86_64-*linux*) | |
5389 | LD="${LD-ld} -m elf_x86_64" | |
5390 | ;; | |
5391 | ppc*-*linux*|powerpc*-*linux*) | |
5392 | LD="${LD-ld} -m elf64ppc" | |
5393 | ;; | |
5394 | s390*-*linux*|s390*-*tpf*) | |
5395 | LD="${LD-ld} -m elf64_s390" | |
5396 | ;; | |
5397 | sparc*-*linux*) | |
5398 | LD="${LD-ld} -m elf64_sparc" | |
5399 | ;; | |
5400 | esac | |
5401 | ;; | |
5402 | esac | |
5403 | fi | |
5404 | rm -rf conftest* | |
5405 | ;; | |
5406 | ||
5407 | *-*-sco3.2v5*) | |
5408 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5409 | SAVE_CFLAGS="$CFLAGS" | |
5410 | CFLAGS="$CFLAGS -belf" | |
5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5412 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5413 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5414 | $as_echo_n "(cached) " >&6 | |
5415 | else | |
5416 | ac_ext=c | |
5417 | ac_cpp='$CPP $CPPFLAGS' | |
5418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5421 | ||
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5423 | /* end confdefs.h. */ | |
5424 | ||
5425 | int | |
5426 | main () | |
5427 | { | |
5428 | ||
5429 | ; | |
5430 | return 0; | |
5431 | } | |
5432 | _ACEOF | |
5433 | if ac_fn_c_try_link "$LINENO"; then : | |
5434 | lt_cv_cc_needs_belf=yes | |
5435 | else | |
5436 | lt_cv_cc_needs_belf=no | |
5437 | fi | |
5438 | rm -f core conftest.err conftest.$ac_objext \ | |
5439 | conftest$ac_exeext conftest.$ac_ext | |
5440 | ac_ext=c | |
5441 | ac_cpp='$CPP $CPPFLAGS' | |
5442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5445 | ||
5446 | fi | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5448 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5449 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5450 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5451 | CFLAGS="$SAVE_CFLAGS" | |
5452 | fi | |
5453 | ;; | |
5454 | sparc*-*solaris*) | |
5455 | # Find out which ABI we are using. | |
5456 | echo 'int i;' > conftest.$ac_ext | |
5457 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5458 | (eval $ac_compile) 2>&5 | |
5459 | ac_status=$? | |
5460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5461 | test $ac_status = 0; }; then | |
5462 | case `/usr/bin/file conftest.o` in | |
5463 | *64-bit*) | |
5464 | case $lt_cv_prog_gnu_ld in | |
5465 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5466 | *) | |
5467 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5468 | LD="${LD-ld} -64" | |
5469 | fi | |
5470 | ;; | |
5471 | esac | |
5472 | ;; | |
5473 | esac | |
5474 | fi | |
5475 | rm -rf conftest* | |
5476 | ;; | |
5477 | esac | |
5478 | ||
5479 | need_locks="$enable_libtool_lock" | |
5480 | ||
5481 | ||
5482 | case $host_os in | |
5483 | rhapsody* | darwin*) | |
5484 | if test -n "$ac_tool_prefix"; then | |
5485 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5486 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5488 | $as_echo_n "checking for $ac_word... " >&6; } | |
5489 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5490 | $as_echo_n "(cached) " >&6 | |
5491 | else | |
5492 | if test -n "$DSYMUTIL"; then | |
5493 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5494 | else | |
5495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5496 | for as_dir in $PATH | |
5497 | do | |
5498 | IFS=$as_save_IFS | |
5499 | test -z "$as_dir" && as_dir=. | |
5500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5502 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5504 | break 2 | |
5505 | fi | |
5506 | done | |
5507 | done | |
5508 | IFS=$as_save_IFS | |
5509 | ||
5510 | fi | |
5511 | fi | |
5512 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5513 | if test -n "$DSYMUTIL"; then | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5515 | $as_echo "$DSYMUTIL" >&6; } | |
5516 | else | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5518 | $as_echo "no" >&6; } | |
5519 | fi | |
5520 | ||
5521 | ||
5522 | fi | |
5523 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5524 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5525 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5526 | set dummy dsymutil; ac_word=$2 | |
5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5528 | $as_echo_n "checking for $ac_word... " >&6; } | |
5529 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5530 | $as_echo_n "(cached) " >&6 | |
5531 | else | |
5532 | if test -n "$ac_ct_DSYMUTIL"; then | |
5533 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5534 | else | |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5536 | for as_dir in $PATH | |
5537 | do | |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
5540 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5542 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5544 | break 2 | |
5545 | fi | |
5546 | done | |
5547 | done | |
5548 | IFS=$as_save_IFS | |
5549 | ||
5550 | fi | |
5551 | fi | |
5552 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5553 | if test -n "$ac_ct_DSYMUTIL"; then | |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5555 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5556 | else | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5558 | $as_echo "no" >&6; } | |
5559 | fi | |
5560 | ||
5561 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5562 | DSYMUTIL=":" | |
5563 | else | |
5564 | case $cross_compiling:$ac_tool_warned in | |
5565 | yes:) | |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5567 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5568 | ac_tool_warned=yes ;; | |
5569 | esac | |
5570 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5571 | fi | |
5572 | else | |
5573 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5574 | fi | |
5575 | ||
5576 | if test -n "$ac_tool_prefix"; then | |
5577 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5578 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5580 | $as_echo_n "checking for $ac_word... " >&6; } | |
5581 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5582 | $as_echo_n "(cached) " >&6 | |
5583 | else | |
5584 | if test -n "$NMEDIT"; then | |
5585 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5586 | else | |
5587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5588 | for as_dir in $PATH | |
5589 | do | |
5590 | IFS=$as_save_IFS | |
5591 | test -z "$as_dir" && as_dir=. | |
5592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5594 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5596 | break 2 | |
5597 | fi | |
5598 | done | |
5599 | done | |
5600 | IFS=$as_save_IFS | |
5601 | ||
5602 | fi | |
5603 | fi | |
5604 | NMEDIT=$ac_cv_prog_NMEDIT | |
5605 | if test -n "$NMEDIT"; then | |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5607 | $as_echo "$NMEDIT" >&6; } | |
5608 | else | |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5610 | $as_echo "no" >&6; } | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | fi | |
5615 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5616 | ac_ct_NMEDIT=$NMEDIT | |
5617 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5618 | set dummy nmedit; ac_word=$2 | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5620 | $as_echo_n "checking for $ac_word... " >&6; } | |
5621 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5622 | $as_echo_n "(cached) " >&6 | |
5623 | else | |
5624 | if test -n "$ac_ct_NMEDIT"; then | |
5625 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5626 | else | |
5627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5628 | for as_dir in $PATH | |
5629 | do | |
5630 | IFS=$as_save_IFS | |
5631 | test -z "$as_dir" && as_dir=. | |
5632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5634 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5636 | break 2 | |
5637 | fi | |
5638 | done | |
5639 | done | |
5640 | IFS=$as_save_IFS | |
5641 | ||
5642 | fi | |
5643 | fi | |
5644 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5645 | if test -n "$ac_ct_NMEDIT"; then | |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5647 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5648 | else | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5650 | $as_echo "no" >&6; } | |
5651 | fi | |
5652 | ||
5653 | if test "x$ac_ct_NMEDIT" = x; then | |
5654 | NMEDIT=":" | |
5655 | else | |
5656 | case $cross_compiling:$ac_tool_warned in | |
5657 | yes:) | |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5659 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5660 | ac_tool_warned=yes ;; | |
5661 | esac | |
5662 | NMEDIT=$ac_ct_NMEDIT | |
5663 | fi | |
5664 | else | |
5665 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5666 | fi | |
5667 | ||
5668 | if test -n "$ac_tool_prefix"; then | |
5669 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5670 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5672 | $as_echo_n "checking for $ac_word... " >&6; } | |
5673 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5674 | $as_echo_n "(cached) " >&6 | |
5675 | else | |
5676 | if test -n "$LIPO"; then | |
5677 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5678 | else | |
5679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5680 | for as_dir in $PATH | |
5681 | do | |
5682 | IFS=$as_save_IFS | |
5683 | test -z "$as_dir" && as_dir=. | |
5684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5686 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5688 | break 2 | |
5689 | fi | |
5690 | done | |
5691 | done | |
5692 | IFS=$as_save_IFS | |
5693 | ||
5694 | fi | |
5695 | fi | |
5696 | LIPO=$ac_cv_prog_LIPO | |
5697 | if test -n "$LIPO"; then | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5699 | $as_echo "$LIPO" >&6; } | |
5700 | else | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5702 | $as_echo "no" >&6; } | |
5703 | fi | |
5704 | ||
5705 | ||
5706 | fi | |
5707 | if test -z "$ac_cv_prog_LIPO"; then | |
5708 | ac_ct_LIPO=$LIPO | |
5709 | # Extract the first word of "lipo", so it can be a program name with args. | |
5710 | set dummy lipo; ac_word=$2 | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5712 | $as_echo_n "checking for $ac_word... " >&6; } | |
5713 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5714 | $as_echo_n "(cached) " >&6 | |
5715 | else | |
5716 | if test -n "$ac_ct_LIPO"; then | |
5717 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5718 | else | |
5719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5720 | for as_dir in $PATH | |
5721 | do | |
5722 | IFS=$as_save_IFS | |
5723 | test -z "$as_dir" && as_dir=. | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5726 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
5734 | fi | |
5735 | fi | |
5736 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5737 | if test -n "$ac_ct_LIPO"; then | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5739 | $as_echo "$ac_ct_LIPO" >&6; } | |
5740 | else | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5742 | $as_echo "no" >&6; } | |
5743 | fi | |
5744 | ||
5745 | if test "x$ac_ct_LIPO" = x; then | |
5746 | LIPO=":" | |
5747 | else | |
5748 | case $cross_compiling:$ac_tool_warned in | |
5749 | yes:) | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5751 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5752 | ac_tool_warned=yes ;; | |
5753 | esac | |
5754 | LIPO=$ac_ct_LIPO | |
5755 | fi | |
5756 | else | |
5757 | LIPO="$ac_cv_prog_LIPO" | |
5758 | fi | |
5759 | ||
5760 | if test -n "$ac_tool_prefix"; then | |
5761 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5762 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5764 | $as_echo_n "checking for $ac_word... " >&6; } | |
5765 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5766 | $as_echo_n "(cached) " >&6 | |
5767 | else | |
5768 | if test -n "$OTOOL"; then | |
5769 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5770 | else | |
5771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5772 | for as_dir in $PATH | |
5773 | do | |
5774 | IFS=$as_save_IFS | |
5775 | test -z "$as_dir" && as_dir=. | |
5776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5778 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5780 | break 2 | |
5781 | fi | |
5782 | done | |
5783 | done | |
5784 | IFS=$as_save_IFS | |
5785 | ||
5786 | fi | |
5787 | fi | |
5788 | OTOOL=$ac_cv_prog_OTOOL | |
5789 | if test -n "$OTOOL"; then | |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5791 | $as_echo "$OTOOL" >&6; } | |
5792 | else | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5794 | $as_echo "no" >&6; } | |
5795 | fi | |
5796 | ||
5797 | ||
5798 | fi | |
5799 | if test -z "$ac_cv_prog_OTOOL"; then | |
5800 | ac_ct_OTOOL=$OTOOL | |
5801 | # Extract the first word of "otool", so it can be a program name with args. | |
5802 | set dummy otool; ac_word=$2 | |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5804 | $as_echo_n "checking for $ac_word... " >&6; } | |
5805 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5806 | $as_echo_n "(cached) " >&6 | |
5807 | else | |
5808 | if test -n "$ac_ct_OTOOL"; then | |
5809 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5810 | else | |
5811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5812 | for as_dir in $PATH | |
5813 | do | |
5814 | IFS=$as_save_IFS | |
5815 | test -z "$as_dir" && as_dir=. | |
5816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5818 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5820 | break 2 | |
5821 | fi | |
5822 | done | |
5823 | done | |
5824 | IFS=$as_save_IFS | |
5825 | ||
5826 | fi | |
5827 | fi | |
5828 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5829 | if test -n "$ac_ct_OTOOL"; then | |
5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5831 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5832 | else | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5834 | $as_echo "no" >&6; } | |
5835 | fi | |
5836 | ||
5837 | if test "x$ac_ct_OTOOL" = x; then | |
5838 | OTOOL=":" | |
5839 | else | |
5840 | case $cross_compiling:$ac_tool_warned in | |
5841 | yes:) | |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5843 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5844 | ac_tool_warned=yes ;; | |
5845 | esac | |
5846 | OTOOL=$ac_ct_OTOOL | |
5847 | fi | |
5848 | else | |
5849 | OTOOL="$ac_cv_prog_OTOOL" | |
5850 | fi | |
5851 | ||
5852 | if test -n "$ac_tool_prefix"; then | |
5853 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5854 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5856 | $as_echo_n "checking for $ac_word... " >&6; } | |
5857 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5858 | $as_echo_n "(cached) " >&6 | |
5859 | else | |
5860 | if test -n "$OTOOL64"; then | |
5861 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5862 | else | |
5863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5864 | for as_dir in $PATH | |
5865 | do | |
5866 | IFS=$as_save_IFS | |
5867 | test -z "$as_dir" && as_dir=. | |
5868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5870 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5872 | break 2 | |
5873 | fi | |
5874 | done | |
5875 | done | |
5876 | IFS=$as_save_IFS | |
5877 | ||
5878 | fi | |
5879 | fi | |
5880 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5881 | if test -n "$OTOOL64"; then | |
5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5883 | $as_echo "$OTOOL64" >&6; } | |
5884 | else | |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5886 | $as_echo "no" >&6; } | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | fi | |
5891 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5892 | ac_ct_OTOOL64=$OTOOL64 | |
5893 | # Extract the first word of "otool64", so it can be a program name with args. | |
5894 | set dummy otool64; ac_word=$2 | |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5896 | $as_echo_n "checking for $ac_word... " >&6; } | |
5897 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5898 | $as_echo_n "(cached) " >&6 | |
5899 | else | |
5900 | if test -n "$ac_ct_OTOOL64"; then | |
5901 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5902 | else | |
5903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5904 | for as_dir in $PATH | |
5905 | do | |
5906 | IFS=$as_save_IFS | |
5907 | test -z "$as_dir" && as_dir=. | |
5908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5910 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5912 | break 2 | |
5913 | fi | |
5914 | done | |
5915 | done | |
5916 | IFS=$as_save_IFS | |
5917 | ||
5918 | fi | |
5919 | fi | |
5920 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5921 | if test -n "$ac_ct_OTOOL64"; then | |
5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5923 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5924 | else | |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5926 | $as_echo "no" >&6; } | |
5927 | fi | |
5928 | ||
5929 | if test "x$ac_ct_OTOOL64" = x; then | |
5930 | OTOOL64=":" | |
5931 | else | |
5932 | case $cross_compiling:$ac_tool_warned in | |
5933 | yes:) | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5935 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5936 | ac_tool_warned=yes ;; | |
5937 | esac | |
5938 | OTOOL64=$ac_ct_OTOOL64 | |
5939 | fi | |
5940 | else | |
5941 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5942 | fi | |
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
5961 | ||
5962 | ||
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5971 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5972 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5973 | $as_echo_n "(cached) " >&6 | |
5974 | else | |
5975 | lt_cv_apple_cc_single_mod=no | |
5976 | if test -z "${LT_MULTI_MODULE}"; then | |
5977 | # By default we will add the -single_module flag. You can override | |
5978 | # by either setting the environment variable LT_MULTI_MODULE | |
5979 | # non-empty at configure time, or by adding -multi_module to the | |
5980 | # link flags. | |
5981 | rm -rf libconftest.dylib* | |
5982 | echo "int foo(void){return 1;}" > conftest.c | |
5983 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5984 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5985 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5986 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5987 | _lt_result=$? | |
5988 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5989 | lt_cv_apple_cc_single_mod=yes | |
5990 | else | |
5991 | cat conftest.err >&5 | |
5992 | fi | |
5993 | rm -rf libconftest.dylib* | |
5994 | rm -f conftest.* | |
5995 | fi | |
5996 | fi | |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5998 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
6000 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6001 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
6002 | $as_echo_n "(cached) " >&6 | |
6003 | else | |
6004 | lt_cv_ld_exported_symbols_list=no | |
6005 | save_LDFLAGS=$LDFLAGS | |
6006 | echo "_main" > conftest.sym | |
6007 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6009 | /* end confdefs.h. */ | |
6010 | ||
6011 | int | |
6012 | main () | |
6013 | { | |
6014 | ||
6015 | ; | |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | if ac_fn_c_try_link "$LINENO"; then : | |
6020 | lt_cv_ld_exported_symbols_list=yes | |
6021 | else | |
6022 | lt_cv_ld_exported_symbols_list=no | |
6023 | fi | |
6024 | rm -f core conftest.err conftest.$ac_objext \ | |
6025 | conftest$ac_exeext conftest.$ac_ext | |
6026 | LDFLAGS="$save_LDFLAGS" | |
6027 | ||
6028 | fi | |
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6030 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6031 | case $host_os in | |
6032 | rhapsody* | darwin1.[012]) | |
6033 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6034 | darwin1.*) | |
6035 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6036 | darwin*) # darwin 5.x on | |
6037 | # if running on 10.5 or later, the deployment target defaults | |
6038 | # to the OS version, if on x86, and 10.4, the deployment | |
6039 | # target defaults to 10.4. Don't you love it? | |
6040 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6041 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6042 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6043 | 10.[012]*) | |
6044 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6045 | 10.*) | |
6046 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6047 | esac | |
6048 | ;; | |
6049 | esac | |
6050 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6051 | _lt_dar_single_mod='$single_module' | |
6052 | fi | |
6053 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6054 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6055 | else | |
6056 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6057 | fi | |
6058 | if test "$DSYMUTIL" != ":"; then | |
6059 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6060 | else | |
6061 | _lt_dsymutil= | |
6062 | fi | |
6063 | ;; | |
6064 | esac | |
6065 | ||
6066 | ac_ext=c | |
6067 | ac_cpp='$CPP $CPPFLAGS' | |
6068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6072 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6073 | # On Suns, sometimes $CPP names a directory. | |
6074 | if test -n "$CPP" && test -d "$CPP"; then | |
6075 | CPP= | |
6076 | fi | |
6077 | if test -z "$CPP"; then | |
6078 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6079 | $as_echo_n "(cached) " >&6 | |
6080 | else | |
6081 | # Double quotes because CPP needs to be expanded | |
6082 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6083 | do | |
6084 | ac_preproc_ok=false | |
6085 | for ac_c_preproc_warn_flag in '' yes | |
6086 | do | |
6087 | # Use a header file that comes with gcc, so configuring glibc | |
6088 | # with a fresh cross-compiler works. | |
6089 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6090 | # <limits.h> exists even on freestanding compilers. | |
6091 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6092 | # not just through cpp. "Syntax error" is here to catch this case. | |
6093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6094 | /* end confdefs.h. */ | |
6095 | #ifdef __STDC__ | |
6096 | # include <limits.h> | |
6097 | #else | |
6098 | # include <assert.h> | |
6099 | #endif | |
6100 | Syntax error | |
6101 | _ACEOF | |
6102 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6103 | ||
6104 | else | |
6105 | # Broken: fails on valid input. | |
6106 | continue | |
6107 | fi | |
6108 | rm -f conftest.err conftest.$ac_ext | |
6109 | ||
6110 | # OK, works on sane cases. Now check whether nonexistent headers | |
6111 | # can be detected and how. | |
6112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6113 | /* end confdefs.h. */ | |
6114 | #include <ac_nonexistent.h> | |
6115 | _ACEOF | |
6116 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6117 | # Broken: success on invalid input. | |
6118 | continue | |
6119 | else | |
6120 | # Passes both tests. | |
6121 | ac_preproc_ok=: | |
6122 | break | |
6123 | fi | |
6124 | rm -f conftest.err conftest.$ac_ext | |
6125 | ||
6126 | done | |
6127 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6128 | rm -f conftest.err conftest.$ac_ext | |
6129 | if $ac_preproc_ok; then : | |
6130 | break | |
6131 | fi | |
6132 | ||
6133 | done | |
6134 | ac_cv_prog_CPP=$CPP | |
6135 | ||
6136 | fi | |
6137 | CPP=$ac_cv_prog_CPP | |
6138 | else | |
6139 | ac_cv_prog_CPP=$CPP | |
6140 | fi | |
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6142 | $as_echo "$CPP" >&6; } | |
6143 | ac_preproc_ok=false | |
6144 | for ac_c_preproc_warn_flag in '' yes | |
6145 | do | |
6146 | # Use a header file that comes with gcc, so configuring glibc | |
6147 | # with a fresh cross-compiler works. | |
6148 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6149 | # <limits.h> exists even on freestanding compilers. | |
6150 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6151 | # not just through cpp. "Syntax error" is here to catch this case. | |
6152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6153 | /* end confdefs.h. */ | |
6154 | #ifdef __STDC__ | |
6155 | # include <limits.h> | |
6156 | #else | |
6157 | # include <assert.h> | |
6158 | #endif | |
6159 | Syntax error | |
6160 | _ACEOF | |
6161 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6162 | ||
6163 | else | |
6164 | # Broken: fails on valid input. | |
6165 | continue | |
6166 | fi | |
6167 | rm -f conftest.err conftest.$ac_ext | |
6168 | ||
6169 | # OK, works on sane cases. Now check whether nonexistent headers | |
6170 | # can be detected and how. | |
6171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6172 | /* end confdefs.h. */ | |
6173 | #include <ac_nonexistent.h> | |
6174 | _ACEOF | |
6175 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6176 | # Broken: success on invalid input. | |
6177 | continue | |
6178 | else | |
6179 | # Passes both tests. | |
6180 | ac_preproc_ok=: | |
6181 | break | |
6182 | fi | |
6183 | rm -f conftest.err conftest.$ac_ext | |
6184 | ||
6185 | done | |
6186 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6187 | rm -f conftest.err conftest.$ac_ext | |
6188 | if $ac_preproc_ok; then : | |
6189 | ||
6190 | else | |
6191 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6192 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6193 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6194 | See \`config.log' for more details." "$LINENO" 5; } | |
6195 | fi | |
6196 | ||
6197 | ac_ext=c | |
6198 | ac_cpp='$CPP $CPPFLAGS' | |
6199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6202 | ||
6203 | ||
6204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6205 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6206 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6207 | $as_echo_n "(cached) " >&6 | |
6208 | else | |
6209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6210 | /* end confdefs.h. */ | |
6211 | #include <stdlib.h> | |
6212 | #include <stdarg.h> | |
6213 | #include <string.h> | |
6214 | #include <float.h> | |
6215 | ||
6216 | int | |
6217 | main () | |
6218 | { | |
6219 | ||
6220 | ; | |
6221 | return 0; | |
6222 | } | |
6223 | _ACEOF | |
6224 | if ac_fn_c_try_compile "$LINENO"; then : | |
6225 | ac_cv_header_stdc=yes | |
6226 | else | |
6227 | ac_cv_header_stdc=no | |
6228 | fi | |
6229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6230 | ||
6231 | if test $ac_cv_header_stdc = yes; then | |
6232 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6234 | /* end confdefs.h. */ | |
6235 | #include <string.h> | |
6236 | ||
6237 | _ACEOF | |
6238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6239 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6240 | ||
6241 | else | |
6242 | ac_cv_header_stdc=no | |
6243 | fi | |
6244 | rm -f conftest* | |
6245 | ||
6246 | fi | |
6247 | ||
6248 | if test $ac_cv_header_stdc = yes; then | |
6249 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6251 | /* end confdefs.h. */ | |
6252 | #include <stdlib.h> | |
6253 | ||
6254 | _ACEOF | |
6255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6256 | $EGREP "free" >/dev/null 2>&1; then : | |
6257 | ||
6258 | else | |
6259 | ac_cv_header_stdc=no | |
6260 | fi | |
6261 | rm -f conftest* | |
6262 | ||
6263 | fi | |
6264 | ||
6265 | if test $ac_cv_header_stdc = yes; then | |
6266 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6267 | if test "$cross_compiling" = yes; then : | |
6268 | : | |
6269 | else | |
6270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6271 | /* end confdefs.h. */ | |
6272 | #include <ctype.h> | |
6273 | #include <stdlib.h> | |
6274 | #if ((' ' & 0x0FF) == 0x020) | |
6275 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6276 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6277 | #else | |
6278 | # define ISLOWER(c) \ | |
6279 | (('a' <= (c) && (c) <= 'i') \ | |
6280 | || ('j' <= (c) && (c) <= 'r') \ | |
6281 | || ('s' <= (c) && (c) <= 'z')) | |
6282 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6283 | #endif | |
6284 | ||
6285 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6286 | int | |
6287 | main () | |
6288 | { | |
6289 | int i; | |
6290 | for (i = 0; i < 256; i++) | |
6291 | if (XOR (islower (i), ISLOWER (i)) | |
6292 | || toupper (i) != TOUPPER (i)) | |
6293 | return 2; | |
6294 | return 0; | |
6295 | } | |
6296 | _ACEOF | |
6297 | if ac_fn_c_try_run "$LINENO"; then : | |
6298 | ||
6299 | else | |
6300 | ac_cv_header_stdc=no | |
6301 | fi | |
6302 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6303 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6304 | fi | |
6305 | ||
6306 | fi | |
6307 | fi | |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6309 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6310 | if test $ac_cv_header_stdc = yes; then | |
6311 | ||
6312 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6313 | ||
6314 | fi | |
6315 | ||
6316 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6317 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6318 | inttypes.h stdint.h unistd.h | |
6319 | do : | |
6320 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6321 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6322 | " | |
6323 | eval as_val=\$$as_ac_Header | |
6324 | if test "x$as_val" = x""yes; then : | |
6325 | cat >>confdefs.h <<_ACEOF | |
6326 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6327 | _ACEOF | |
6328 | ||
6329 | fi | |
6330 | ||
6331 | done | |
6332 | ||
6333 | ||
6334 | for ac_header in dlfcn.h | |
6335 | do : | |
6336 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6337 | " | |
6338 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6339 | cat >>confdefs.h <<_ACEOF | |
6340 | #define HAVE_DLFCN_H 1 | |
6341 | _ACEOF | |
6342 | ||
6343 | fi | |
6344 | ||
6345 | done | |
6346 | ||
6347 | ||
6348 | ||
6349 | # Set options | |
549f29b5 DWT |
6350 | # Check whether --enable-static was given. |
6351 | if test "${enable_static+set}" = set; then : | |
6352 | enableval=$enable_static; p=${PACKAGE-default} | |
9c60689e | 6353 | case $enableval in |
549f29b5 DWT |
6354 | yes) enable_static=yes ;; |
6355 | no) enable_static=no ;; | |
9c60689e | 6356 | *) |
549f29b5 | 6357 | enable_static=no |
9c60689e DWT |
6358 | # Look at the argument we got. We use all the common list separators. |
6359 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6360 | for pkg in $enableval; do | |
6361 | IFS="$lt_save_ifs" | |
6362 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6363 | enable_static=yes |
9c60689e DWT |
6364 | fi |
6365 | done | |
6366 | IFS="$lt_save_ifs" | |
6367 | ;; | |
6368 | esac | |
6369 | else | |
549f29b5 | 6370 | enable_static=no |
9c60689e DWT |
6371 | fi |
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | ||
6378 | ||
6379 | ||
6380 | ||
549f29b5 DWT |
6381 | |
6382 | enable_dlopen=no | |
6383 | ||
6384 | ||
6385 | enable_win32_dll=no | |
6386 | ||
6387 | ||
6388 | # Check whether --enable-shared was given. | |
6389 | if test "${enable_shared+set}" = set; then : | |
6390 | enableval=$enable_shared; p=${PACKAGE-default} | |
9c60689e | 6391 | case $enableval in |
549f29b5 DWT |
6392 | yes) enable_shared=yes ;; |
6393 | no) enable_shared=no ;; | |
9c60689e | 6394 | *) |
549f29b5 | 6395 | enable_shared=no |
9c60689e DWT |
6396 | # Look at the argument we got. We use all the common list separators. |
6397 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6398 | for pkg in $enableval; do | |
6399 | IFS="$lt_save_ifs" | |
6400 | if test "X$pkg" = "X$p"; then | |
549f29b5 | 6401 | enable_shared=yes |
9c60689e DWT |
6402 | fi |
6403 | done | |
6404 | IFS="$lt_save_ifs" | |
6405 | ;; | |
6406 | esac | |
6407 | else | |
549f29b5 | 6408 | enable_shared=yes |
9c60689e DWT |
6409 | fi |
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
549f29b5 | 6420 | |
9c60689e DWT |
6421 | # Check whether --with-pic was given. |
6422 | if test "${with_pic+set}" = set; then : | |
6423 | withval=$with_pic; pic_mode="$withval" | |
6424 | else | |
6425 | pic_mode=default | |
6426 | fi | |
6427 | ||
6428 | ||
6429 | test -z "$pic_mode" && pic_mode=default | |
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | # Check whether --enable-fast-install was given. | |
6438 | if test "${enable_fast_install+set}" = set; then : | |
6439 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6440 | case $enableval in | |
6441 | yes) enable_fast_install=yes ;; | |
6442 | no) enable_fast_install=no ;; | |
6443 | *) | |
6444 | enable_fast_install=no | |
6445 | # Look at the argument we got. We use all the common list separators. | |
6446 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6447 | for pkg in $enableval; do | |
6448 | IFS="$lt_save_ifs" | |
6449 | if test "X$pkg" = "X$p"; then | |
6450 | enable_fast_install=yes | |
6451 | fi | |
6452 | done | |
6453 | IFS="$lt_save_ifs" | |
6454 | ;; | |
6455 | esac | |
6456 | else | |
6457 | enable_fast_install=yes | |
6458 | fi | |
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | # This can be used to rebuild libtool when needed | |
6471 | LIBTOOL_DEPS="$ltmain" | |
6472 | ||
6473 | # Always use our own libtool. | |
6474 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | test -z "$LN_S" && LN_S="ln -s" | |
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | if test -n "${ZSH_VERSION+set}" ; then | |
6516 | setopt NO_GLOB_SUBST | |
6517 | fi | |
6518 | ||
6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6520 | $as_echo_n "checking for objdir... " >&6; } | |
6521 | if test "${lt_cv_objdir+set}" = set; then : | |
6522 | $as_echo_n "(cached) " >&6 | |
6523 | else | |
6524 | rm -f .libs 2>/dev/null | |
6525 | mkdir .libs 2>/dev/null | |
6526 | if test -d .libs; then | |
6527 | lt_cv_objdir=.libs | |
6528 | else | |
6529 | # MS-DOS does not allow filenames that begin with a dot. | |
6530 | lt_cv_objdir=_libs | |
6531 | fi | |
6532 | rmdir .libs 2>/dev/null | |
6533 | fi | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6535 | $as_echo "$lt_cv_objdir" >&6; } | |
6536 | objdir=$lt_cv_objdir | |
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | cat >>confdefs.h <<_ACEOF | |
6543 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6544 | _ACEOF | |
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | case $host_os in | |
6563 | aix3*) | |
6564 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6565 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6566 | # vanish in a puff of smoke. | |
6567 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6568 | COLLECT_NAMES= | |
6569 | export COLLECT_NAMES | |
6570 | fi | |
6571 | ;; | |
6572 | esac | |
6573 | ||
6574 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6575 | # metacharacters that are still active within double-quoted strings. | |
6576 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6577 | ||
6578 | # Same as above, but do not quote variable references. | |
6579 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6580 | ||
6581 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6582 | # double_quote_subst'ed string. | |
6583 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6584 | ||
6585 | # Sed substitution to delay expansion of an escaped single quote. | |
6586 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6587 | ||
6588 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6589 | no_glob_subst='s/\*/\\\*/g' | |
6590 | ||
6591 | # Global variables: | |
6592 | ofile=libtool | |
6593 | can_build_shared=yes | |
6594 | ||
6595 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6596 | # which needs '.lib'). | |
6597 | libext=a | |
6598 | ||
6599 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6600 | ||
6601 | old_CC="$CC" | |
6602 | old_CFLAGS="$CFLAGS" | |
6603 | ||
6604 | # Set sane defaults for various variables | |
6605 | test -z "$CC" && CC=cc | |
6606 | test -z "$LTCC" && LTCC=$CC | |
6607 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6608 | test -z "$LD" && LD=ld | |
6609 | test -z "$ac_objext" && ac_objext=o | |
6610 | ||
6611 | for cc_temp in $compiler""; do | |
6612 | case $cc_temp in | |
6613 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6614 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6615 | \-*) ;; | |
6616 | *) break;; | |
6617 | esac | |
6618 | done | |
6619 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6620 | ||
6621 | ||
6622 | # Only perform the check for file, if the check method requires it | |
6623 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6624 | case $deplibs_check_method in | |
6625 | file_magic*) | |
6626 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6628 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6629 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6630 | $as_echo_n "(cached) " >&6 | |
6631 | else | |
6632 | case $MAGIC_CMD in | |
6633 | [\\/*] | ?:[\\/]*) | |
6634 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6635 | ;; | |
6636 | *) | |
6637 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6638 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6639 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6640 | for ac_dir in $ac_dummy; do | |
6641 | IFS="$lt_save_ifs" | |
6642 | test -z "$ac_dir" && ac_dir=. | |
6643 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6644 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6645 | if test -n "$file_magic_test_file"; then | |
6646 | case $deplibs_check_method in | |
6647 | "file_magic "*) | |
6648 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6649 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6650 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6651 | $EGREP "$file_magic_regex" > /dev/null; then | |
6652 | : | |
6653 | else | |
6654 | cat <<_LT_EOF 1>&2 | |
6655 | ||
6656 | *** Warning: the command libtool uses to detect shared libraries, | |
6657 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6658 | *** The result is that libtool may fail to recognize shared libraries | |
6659 | *** as such. This will affect the creation of libtool libraries that | |
6660 | *** depend on shared libraries, but programs linked with such libtool | |
6661 | *** libraries will work regardless of this problem. Nevertheless, you | |
6662 | *** may want to report the problem to your system manager and/or to | |
6663 | *** bug-libtool@gnu.org | |
6664 | ||
6665 | _LT_EOF | |
6666 | fi ;; | |
6667 | esac | |
6668 | fi | |
6669 | break | |
6670 | fi | |
6671 | done | |
6672 | IFS="$lt_save_ifs" | |
6673 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6674 | ;; | |
6675 | esac | |
6676 | fi | |
6677 | ||
6678 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6679 | if test -n "$MAGIC_CMD"; then | |
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6681 | $as_echo "$MAGIC_CMD" >&6; } | |
6682 | else | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6684 | $as_echo "no" >&6; } | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | ||
6689 | ||
6690 | ||
6691 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6692 | if test -n "$ac_tool_prefix"; then | |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6694 | $as_echo_n "checking for file... " >&6; } | |
6695 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6696 | $as_echo_n "(cached) " >&6 | |
6697 | else | |
6698 | case $MAGIC_CMD in | |
6699 | [\\/*] | ?:[\\/]*) | |
6700 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6701 | ;; | |
6702 | *) | |
6703 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6704 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6705 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6706 | for ac_dir in $ac_dummy; do | |
6707 | IFS="$lt_save_ifs" | |
6708 | test -z "$ac_dir" && ac_dir=. | |
6709 | if test -f $ac_dir/file; then | |
6710 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6711 | if test -n "$file_magic_test_file"; then | |
6712 | case $deplibs_check_method in | |
6713 | "file_magic "*) | |
6714 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6715 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6716 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6717 | $EGREP "$file_magic_regex" > /dev/null; then | |
6718 | : | |
6719 | else | |
6720 | cat <<_LT_EOF 1>&2 | |
6721 | ||
6722 | *** Warning: the command libtool uses to detect shared libraries, | |
6723 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6724 | *** The result is that libtool may fail to recognize shared libraries | |
6725 | *** as such. This will affect the creation of libtool libraries that | |
6726 | *** depend on shared libraries, but programs linked with such libtool | |
6727 | *** libraries will work regardless of this problem. Nevertheless, you | |
6728 | *** may want to report the problem to your system manager and/or to | |
6729 | *** bug-libtool@gnu.org | |
6730 | ||
6731 | _LT_EOF | |
6732 | fi ;; | |
6733 | esac | |
6734 | fi | |
6735 | break | |
6736 | fi | |
6737 | done | |
6738 | IFS="$lt_save_ifs" | |
6739 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6740 | ;; | |
6741 | esac | |
6742 | fi | |
6743 | ||
6744 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6745 | if test -n "$MAGIC_CMD"; then | |
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6747 | $as_echo "$MAGIC_CMD" >&6; } | |
6748 | else | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6750 | $as_echo "no" >&6; } | |
6751 | fi | |
6752 | ||
6753 | ||
6754 | else | |
6755 | MAGIC_CMD=: | |
6756 | fi | |
6757 | fi | |
6758 | ||
6759 | fi | |
6760 | ;; | |
6761 | esac | |
6762 | ||
6763 | # Use C for the default configuration in the libtool script | |
6764 | ||
6765 | lt_save_CC="$CC" | |
6766 | ac_ext=c | |
6767 | ac_cpp='$CPP $CPPFLAGS' | |
6768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6771 | ||
6772 | ||
6773 | # Source file extension for C test sources. | |
6774 | ac_ext=c | |
6775 | ||
6776 | # Object file extension for compiled C test sources. | |
6777 | objext=o | |
6778 | objext=$objext | |
6779 | ||
6780 | # Code to be used in simple compile tests | |
6781 | lt_simple_compile_test_code="int some_variable = 0;" | |
6782 | ||
6783 | # Code to be used in simple link tests | |
6784 | lt_simple_link_test_code='int main(){return(0);}' | |
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | # If no C compiler was specified, use CC. | |
6793 | LTCC=${LTCC-"$CC"} | |
6794 | ||
6795 | # If no C compiler flags were specified, use CFLAGS. | |
6796 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6797 | ||
6798 | # Allow CC to be a program name with arguments. | |
6799 | compiler=$CC | |
6800 | ||
6801 | # Save the default compiler, since it gets overwritten when the other | |
6802 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6803 | compiler_DEFAULT=$CC | |
6804 | ||
6805 | # save warnings/boilerplate of simple test code | |
6806 | ac_outfile=conftest.$ac_objext | |
6807 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6808 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6809 | _lt_compiler_boilerplate=`cat conftest.err` | |
6810 | $RM conftest* | |
6811 | ||
6812 | ac_outfile=conftest.$ac_objext | |
6813 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6814 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6815 | _lt_linker_boilerplate=`cat conftest.err` | |
6816 | $RM -r conftest* | |
6817 | ||
6818 | ||
6819 | if test -n "$compiler"; then | |
6820 | ||
6821 | lt_prog_compiler_no_builtin_flag= | |
6822 | ||
6823 | if test "$GCC" = yes; then | |
6824 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6825 | ||
6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6827 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6828 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6829 | $as_echo_n "(cached) " >&6 | |
6830 | else | |
6831 | lt_cv_prog_compiler_rtti_exceptions=no | |
6832 | ac_outfile=conftest.$ac_objext | |
6833 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6834 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6835 | # Insert the option either (1) after the last *FLAGS variable, or | |
6836 | # (2) before a word containing "conftest.", or (3) at the end. | |
6837 | # Note that $ac_compile itself does not contain backslashes and begins | |
6838 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6839 | # The option is referenced via a variable to avoid confusing sed. | |
6840 | lt_compile=`echo "$ac_compile" | $SED \ | |
6841 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6842 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6843 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 6844 | (eval echo "\"\$as_me:6844: $lt_compile\"" >&5) |
9c60689e DWT |
6845 | (eval "$lt_compile" 2>conftest.err) |
6846 | ac_status=$? | |
6847 | cat conftest.err >&5 | |
b66977f1 | 6848 | echo "$as_me:6848: \$? = $ac_status" >&5 |
9c60689e DWT |
6849 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6850 | # The compiler can only warn and ignore the option if not recognized | |
6851 | # So say no if there are warnings other than the usual output. | |
6852 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6853 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6854 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6855 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6856 | fi | |
6857 | fi | |
6858 | $RM conftest* | |
6859 | ||
6860 | fi | |
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6862 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6863 | ||
6864 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6865 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6866 | else | |
6867 | : | |
6868 | fi | |
6869 | ||
6870 | fi | |
6871 | ||
6872 | ||
6873 | ||
6874 | ||
6875 | ||
6876 | ||
6877 | lt_prog_compiler_wl= | |
6878 | lt_prog_compiler_pic= | |
6879 | lt_prog_compiler_static= | |
6880 | ||
6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6882 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6883 | ||
6884 | if test "$GCC" = yes; then | |
6885 | lt_prog_compiler_wl='-Wl,' | |
6886 | lt_prog_compiler_static='-static' | |
6887 | ||
6888 | case $host_os in | |
6889 | aix*) | |
6890 | # All AIX code is PIC. | |
6891 | if test "$host_cpu" = ia64; then | |
6892 | # AIX 5 now supports IA64 processor | |
6893 | lt_prog_compiler_static='-Bstatic' | |
6894 | fi | |
6895 | ;; | |
6896 | ||
6897 | amigaos*) | |
6898 | case $host_cpu in | |
6899 | powerpc) | |
6900 | # see comment about AmigaOS4 .so support | |
6901 | lt_prog_compiler_pic='-fPIC' | |
6902 | ;; | |
6903 | m68k) | |
6904 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6905 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6906 | # like `-m68040'. | |
6907 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6908 | ;; | |
6909 | esac | |
6910 | ;; | |
6911 | ||
6912 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6913 | # PIC is the default for these OSes. | |
6914 | ;; | |
6915 | ||
6916 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6917 | # This hack is so that the source file can tell whether it is being | |
6918 | # built for inclusion in a dll (and should export symbols for example). | |
6919 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6920 | # (--disable-auto-import) libraries | |
6921 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6922 | ;; | |
6923 | ||
6924 | darwin* | rhapsody*) | |
6925 | # PIC is the default on this platform | |
6926 | # Common symbols not allowed in MH_DYLIB files | |
6927 | lt_prog_compiler_pic='-fno-common' | |
6928 | ;; | |
6929 | ||
6930 | hpux*) | |
6931 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6932 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6933 | # sets the default TLS model and affects inlining. | |
6934 | case $host_cpu in | |
6935 | hppa*64*) | |
6936 | # +Z the default | |
6937 | ;; | |
6938 | *) | |
6939 | lt_prog_compiler_pic='-fPIC' | |
6940 | ;; | |
6941 | esac | |
6942 | ;; | |
6943 | ||
6944 | interix[3-9]*) | |
6945 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6946 | # Instead, we relocate shared libraries at runtime. | |
6947 | ;; | |
6948 | ||
6949 | msdosdjgpp*) | |
6950 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6951 | # on systems that don't support them. | |
6952 | lt_prog_compiler_can_build_shared=no | |
6953 | enable_shared=no | |
6954 | ;; | |
6955 | ||
6956 | *nto* | *qnx*) | |
6957 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6958 | # it will coredump. | |
6959 | lt_prog_compiler_pic='-fPIC -shared' | |
6960 | ;; | |
6961 | ||
6962 | sysv4*MP*) | |
6963 | if test -d /usr/nec; then | |
6964 | lt_prog_compiler_pic=-Kconform_pic | |
6965 | fi | |
6966 | ;; | |
6967 | ||
6968 | *) | |
6969 | lt_prog_compiler_pic='-fPIC' | |
6970 | ;; | |
6971 | esac | |
6972 | else | |
6973 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6974 | case $host_os in | |
6975 | aix*) | |
6976 | lt_prog_compiler_wl='-Wl,' | |
6977 | if test "$host_cpu" = ia64; then | |
6978 | # AIX 5 now supports IA64 processor | |
6979 | lt_prog_compiler_static='-Bstatic' | |
6980 | else | |
6981 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6982 | fi | |
6983 | ;; | |
6984 | ||
6985 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6986 | # This hack is so that the source file can tell whether it is being | |
6987 | # built for inclusion in a dll (and should export symbols for example). | |
6988 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6989 | ;; | |
6990 | ||
6991 | hpux9* | hpux10* | hpux11*) | |
6992 | lt_prog_compiler_wl='-Wl,' | |
6993 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6994 | # not for PA HP-UX. | |
6995 | case $host_cpu in | |
6996 | hppa*64*|ia64*) | |
6997 | # +Z the default | |
6998 | ;; | |
6999 | *) | |
7000 | lt_prog_compiler_pic='+Z' | |
7001 | ;; | |
7002 | esac | |
7003 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7004 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7005 | ;; | |
7006 | ||
7007 | irix5* | irix6* | nonstopux*) | |
7008 | lt_prog_compiler_wl='-Wl,' | |
7009 | # PIC (with -KPIC) is the default. | |
7010 | lt_prog_compiler_static='-non_shared' | |
7011 | ;; | |
7012 | ||
7013 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7014 | case $cc_basename in | |
7015 | # old Intel for x86_64 which still supported -KPIC. | |
7016 | ecc*) | |
7017 | lt_prog_compiler_wl='-Wl,' | |
7018 | lt_prog_compiler_pic='-KPIC' | |
7019 | lt_prog_compiler_static='-static' | |
7020 | ;; | |
7021 | # icc used to be incompatible with GCC. | |
7022 | # ICC 10 doesn't accept -KPIC any more. | |
7023 | icc* | ifort*) | |
7024 | lt_prog_compiler_wl='-Wl,' | |
7025 | lt_prog_compiler_pic='-fPIC' | |
7026 | lt_prog_compiler_static='-static' | |
7027 | ;; | |
7028 | # Lahey Fortran 8.1. | |
7029 | lf95*) | |
7030 | lt_prog_compiler_wl='-Wl,' | |
7031 | lt_prog_compiler_pic='--shared' | |
7032 | lt_prog_compiler_static='--static' | |
7033 | ;; | |
7034 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7035 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7036 | # which looks to be a dead project) | |
7037 | lt_prog_compiler_wl='-Wl,' | |
7038 | lt_prog_compiler_pic='-fpic' | |
7039 | lt_prog_compiler_static='-Bstatic' | |
7040 | ;; | |
7041 | ccc*) | |
7042 | lt_prog_compiler_wl='-Wl,' | |
7043 | # All Alpha code is PIC. | |
7044 | lt_prog_compiler_static='-non_shared' | |
7045 | ;; | |
7046 | xl*) | |
7047 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
7048 | lt_prog_compiler_wl='-Wl,' | |
7049 | lt_prog_compiler_pic='-qpic' | |
7050 | lt_prog_compiler_static='-qstaticlink' | |
7051 | ;; | |
7052 | *) | |
7053 | case `$CC -V 2>&1 | sed 5q` in | |
7054 | *Sun\ C*) | |
7055 | # Sun C 5.9 | |
7056 | lt_prog_compiler_pic='-KPIC' | |
7057 | lt_prog_compiler_static='-Bstatic' | |
7058 | lt_prog_compiler_wl='-Wl,' | |
7059 | ;; | |
7060 | *Sun\ F*) | |
7061 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7062 | lt_prog_compiler_pic='-KPIC' | |
7063 | lt_prog_compiler_static='-Bstatic' | |
7064 | lt_prog_compiler_wl='' | |
7065 | ;; | |
7066 | esac | |
7067 | ;; | |
7068 | esac | |
7069 | ;; | |
7070 | ||
7071 | newsos6) | |
7072 | lt_prog_compiler_pic='-KPIC' | |
7073 | lt_prog_compiler_static='-Bstatic' | |
7074 | ;; | |
7075 | ||
7076 | *nto* | *qnx*) | |
7077 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7078 | # it will coredump. | |
7079 | lt_prog_compiler_pic='-fPIC -shared' | |
7080 | ;; | |
7081 | ||
7082 | osf3* | osf4* | osf5*) | |
7083 | lt_prog_compiler_wl='-Wl,' | |
7084 | # All OSF/1 code is PIC. | |
7085 | lt_prog_compiler_static='-non_shared' | |
7086 | ;; | |
7087 | ||
7088 | rdos*) | |
7089 | lt_prog_compiler_static='-non_shared' | |
7090 | ;; | |
7091 | ||
7092 | solaris*) | |
7093 | lt_prog_compiler_pic='-KPIC' | |
7094 | lt_prog_compiler_static='-Bstatic' | |
7095 | case $cc_basename in | |
7096 | f77* | f90* | f95*) | |
7097 | lt_prog_compiler_wl='-Qoption ld ';; | |
7098 | *) | |
7099 | lt_prog_compiler_wl='-Wl,';; | |
7100 | esac | |
7101 | ;; | |
7102 | ||
7103 | sunos4*) | |
7104 | lt_prog_compiler_wl='-Qoption ld ' | |
7105 | lt_prog_compiler_pic='-PIC' | |
7106 | lt_prog_compiler_static='-Bstatic' | |
7107 | ;; | |
7108 | ||
7109 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7110 | lt_prog_compiler_wl='-Wl,' | |
7111 | lt_prog_compiler_pic='-KPIC' | |
7112 | lt_prog_compiler_static='-Bstatic' | |
7113 | ;; | |
7114 | ||
7115 | sysv4*MP*) | |
7116 | if test -d /usr/nec ;then | |
7117 | lt_prog_compiler_pic='-Kconform_pic' | |
7118 | lt_prog_compiler_static='-Bstatic' | |
7119 | fi | |
7120 | ;; | |
7121 | ||
7122 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7123 | lt_prog_compiler_wl='-Wl,' | |
7124 | lt_prog_compiler_pic='-KPIC' | |
7125 | lt_prog_compiler_static='-Bstatic' | |
7126 | ;; | |
7127 | ||
7128 | unicos*) | |
7129 | lt_prog_compiler_wl='-Wl,' | |
7130 | lt_prog_compiler_can_build_shared=no | |
7131 | ;; | |
7132 | ||
7133 | uts4*) | |
7134 | lt_prog_compiler_pic='-pic' | |
7135 | lt_prog_compiler_static='-Bstatic' | |
7136 | ;; | |
7137 | ||
7138 | *) | |
7139 | lt_prog_compiler_can_build_shared=no | |
7140 | ;; | |
7141 | esac | |
7142 | fi | |
7143 | ||
7144 | case $host_os in | |
7145 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7146 | *djgpp*) | |
7147 | lt_prog_compiler_pic= | |
7148 | ;; | |
7149 | *) | |
7150 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7151 | ;; | |
7152 | esac | |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7154 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7155 | ||
7156 | ||
7157 | ||
7158 | ||
7159 | ||
7160 | ||
7161 | # | |
7162 | # Check to make sure the PIC flag actually works. | |
7163 | # | |
7164 | if test -n "$lt_prog_compiler_pic"; then | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7166 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7167 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7168 | $as_echo_n "(cached) " >&6 | |
7169 | else | |
7170 | lt_cv_prog_compiler_pic_works=no | |
7171 | ac_outfile=conftest.$ac_objext | |
7172 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7173 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7174 | # Insert the option either (1) after the last *FLAGS variable, or | |
7175 | # (2) before a word containing "conftest.", or (3) at the end. | |
7176 | # Note that $ac_compile itself does not contain backslashes and begins | |
7177 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7178 | # The option is referenced via a variable to avoid confusing sed. | |
7179 | lt_compile=`echo "$ac_compile" | $SED \ | |
7180 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7181 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7182 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 7183 | (eval echo "\"\$as_me:7183: $lt_compile\"" >&5) |
9c60689e DWT |
7184 | (eval "$lt_compile" 2>conftest.err) |
7185 | ac_status=$? | |
7186 | cat conftest.err >&5 | |
b66977f1 | 7187 | echo "$as_me:7187: \$? = $ac_status" >&5 |
9c60689e DWT |
7188 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7189 | # The compiler can only warn and ignore the option if not recognized | |
7190 | # So say no if there are warnings other than the usual output. | |
7191 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7192 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7193 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7194 | lt_cv_prog_compiler_pic_works=yes | |
7195 | fi | |
7196 | fi | |
7197 | $RM conftest* | |
7198 | ||
7199 | fi | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7201 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7202 | ||
7203 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7204 | case $lt_prog_compiler_pic in | |
7205 | "" | " "*) ;; | |
7206 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7207 | esac | |
7208 | else | |
7209 | lt_prog_compiler_pic= | |
7210 | lt_prog_compiler_can_build_shared=no | |
7211 | fi | |
7212 | ||
7213 | fi | |
7214 | ||
7215 | ||
7216 | ||
7217 | ||
7218 | ||
7219 | ||
7220 | # | |
7221 | # Check to make sure the static flag actually works. | |
7222 | # | |
7223 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7225 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7226 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7227 | $as_echo_n "(cached) " >&6 | |
7228 | else | |
7229 | lt_cv_prog_compiler_static_works=no | |
7230 | save_LDFLAGS="$LDFLAGS" | |
7231 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7232 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7233 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7234 | # The linker can only warn and ignore the option if not recognized | |
7235 | # So say no if there are warnings | |
7236 | if test -s conftest.err; then | |
7237 | # Append any errors to the config.log. | |
7238 | cat conftest.err 1>&5 | |
7239 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7240 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7241 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7242 | lt_cv_prog_compiler_static_works=yes | |
7243 | fi | |
7244 | else | |
7245 | lt_cv_prog_compiler_static_works=yes | |
7246 | fi | |
7247 | fi | |
7248 | $RM -r conftest* | |
7249 | LDFLAGS="$save_LDFLAGS" | |
7250 | ||
7251 | fi | |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7253 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7254 | ||
7255 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7256 | : | |
7257 | else | |
7258 | lt_prog_compiler_static= | |
7259 | fi | |
7260 | ||
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | ||
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7268 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7269 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7270 | $as_echo_n "(cached) " >&6 | |
7271 | else | |
7272 | lt_cv_prog_compiler_c_o=no | |
7273 | $RM -r conftest 2>/dev/null | |
7274 | mkdir conftest | |
7275 | cd conftest | |
7276 | mkdir out | |
7277 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7278 | ||
7279 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7280 | # Insert the option either (1) after the last *FLAGS variable, or | |
7281 | # (2) before a word containing "conftest.", or (3) at the end. | |
7282 | # Note that $ac_compile itself does not contain backslashes and begins | |
7283 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7284 | lt_compile=`echo "$ac_compile" | $SED \ | |
7285 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7286 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7287 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 7288 | (eval echo "\"\$as_me:7288: $lt_compile\"" >&5) |
9c60689e DWT |
7289 | (eval "$lt_compile" 2>out/conftest.err) |
7290 | ac_status=$? | |
7291 | cat out/conftest.err >&5 | |
b66977f1 | 7292 | echo "$as_me:7292: \$? = $ac_status" >&5 |
9c60689e DWT |
7293 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7294 | then | |
7295 | # The compiler can only warn and ignore the option if not recognized | |
7296 | # So say no if there are warnings | |
7297 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7298 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7299 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7300 | lt_cv_prog_compiler_c_o=yes | |
7301 | fi | |
7302 | fi | |
7303 | chmod u+w . 2>&5 | |
7304 | $RM conftest* | |
7305 | # SGI C++ compiler will create directory out/ii_files/ for | |
7306 | # template instantiation | |
7307 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7308 | $RM out/* && rmdir out | |
7309 | cd .. | |
7310 | $RM -r conftest | |
7311 | $RM conftest* | |
7312 | ||
7313 | fi | |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7315 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7316 | ||
7317 | ||
7318 | ||
7319 | ||
7320 | ||
7321 | ||
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7323 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7324 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7325 | $as_echo_n "(cached) " >&6 | |
7326 | else | |
7327 | lt_cv_prog_compiler_c_o=no | |
7328 | $RM -r conftest 2>/dev/null | |
7329 | mkdir conftest | |
7330 | cd conftest | |
7331 | mkdir out | |
7332 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7333 | ||
7334 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7335 | # Insert the option either (1) after the last *FLAGS variable, or | |
7336 | # (2) before a word containing "conftest.", or (3) at the end. | |
7337 | # Note that $ac_compile itself does not contain backslashes and begins | |
7338 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7339 | lt_compile=`echo "$ac_compile" | $SED \ | |
7340 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7341 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7342 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 7343 | (eval echo "\"\$as_me:7343: $lt_compile\"" >&5) |
9c60689e DWT |
7344 | (eval "$lt_compile" 2>out/conftest.err) |
7345 | ac_status=$? | |
7346 | cat out/conftest.err >&5 | |
b66977f1 | 7347 | echo "$as_me:7347: \$? = $ac_status" >&5 |
9c60689e DWT |
7348 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7349 | then | |
7350 | # The compiler can only warn and ignore the option if not recognized | |
7351 | # So say no if there are warnings | |
7352 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7353 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7354 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7355 | lt_cv_prog_compiler_c_o=yes | |
7356 | fi | |
7357 | fi | |
7358 | chmod u+w . 2>&5 | |
7359 | $RM conftest* | |
7360 | # SGI C++ compiler will create directory out/ii_files/ for | |
7361 | # template instantiation | |
7362 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7363 | $RM out/* && rmdir out | |
7364 | cd .. | |
7365 | $RM -r conftest | |
7366 | $RM conftest* | |
7367 | ||
7368 | fi | |
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7370 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7371 | ||
7372 | ||
7373 | ||
7374 | ||
7375 | hard_links="nottested" | |
7376 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7377 | # do not overwrite the value of need_locks provided by the user | |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7379 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7380 | hard_links=yes | |
7381 | $RM conftest* | |
7382 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7383 | touch conftest.a | |
7384 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7385 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7387 | $as_echo "$hard_links" >&6; } | |
7388 | if test "$hard_links" = no; then | |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7390 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7391 | need_locks=warn | |
7392 | fi | |
7393 | else | |
7394 | need_locks=no | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | ||
7399 | ||
7400 | ||
7401 | ||
7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7403 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7404 | ||
7405 | runpath_var= | |
7406 | allow_undefined_flag= | |
7407 | always_export_symbols=no | |
7408 | archive_cmds= | |
7409 | archive_expsym_cmds= | |
7410 | compiler_needs_object=no | |
7411 | enable_shared_with_static_runtimes=no | |
7412 | export_dynamic_flag_spec= | |
7413 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7414 | hardcode_automatic=no | |
7415 | hardcode_direct=no | |
7416 | hardcode_direct_absolute=no | |
7417 | hardcode_libdir_flag_spec= | |
7418 | hardcode_libdir_flag_spec_ld= | |
7419 | hardcode_libdir_separator= | |
7420 | hardcode_minus_L=no | |
7421 | hardcode_shlibpath_var=unsupported | |
7422 | inherit_rpath=no | |
7423 | link_all_deplibs=unknown | |
7424 | module_cmds= | |
7425 | module_expsym_cmds= | |
7426 | old_archive_from_new_cmds= | |
7427 | old_archive_from_expsyms_cmds= | |
7428 | thread_safe_flag_spec= | |
7429 | whole_archive_flag_spec= | |
7430 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7431 | # included in the symbol list | |
7432 | include_expsyms= | |
7433 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7434 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7435 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7436 | # as well as any symbol that contains `d'. | |
7437 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7438 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7439 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7440 | # the symbol is explicitly referenced. Since portable code cannot | |
7441 | # rely on this symbol name, it's probably fine to never include it in | |
7442 | # preloaded symbol tables. | |
7443 | # Exclude shared library initialization/finalization symbols. | |
7444 | extract_expsyms_cmds= | |
7445 | ||
7446 | case $host_os in | |
7447 | cygwin* | mingw* | pw32* | cegcc*) | |
7448 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7449 | # When not using gcc, we currently assume that we are using | |
7450 | # Microsoft Visual C++. | |
7451 | if test "$GCC" != yes; then | |
7452 | with_gnu_ld=no | |
7453 | fi | |
7454 | ;; | |
7455 | interix*) | |
7456 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7457 | with_gnu_ld=yes | |
7458 | ;; | |
7459 | openbsd*) | |
7460 | with_gnu_ld=no | |
7461 | ;; | |
7462 | linux* | k*bsd*-gnu) | |
7463 | link_all_deplibs=no | |
7464 | ;; | |
7465 | esac | |
7466 | ||
7467 | ld_shlibs=yes | |
7468 | if test "$with_gnu_ld" = yes; then | |
7469 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7470 | wlarc='${wl}' | |
7471 | ||
7472 | # Set some defaults for GNU ld with shared library support. These | |
7473 | # are reset later if shared libraries are not supported. Putting them | |
7474 | # here allows them to be overridden if necessary. | |
7475 | runpath_var=LD_RUN_PATH | |
7476 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7477 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7478 | # ancient GNU ld didn't support --whole-archive et. al. | |
7479 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7480 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7481 | else | |
7482 | whole_archive_flag_spec= | |
7483 | fi | |
7484 | supports_anon_versioning=no | |
7485 | case `$LD -v 2>&1` in | |
7486 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7487 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7488 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7489 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7490 | *\ 2.11.*) ;; # other 2.11 versions | |
7491 | *) supports_anon_versioning=yes ;; | |
7492 | esac | |
7493 | ||
7494 | # See if GNU ld supports shared libraries. | |
7495 | case $host_os in | |
7496 | aix[3-9]*) | |
7497 | # On AIX/PPC, the GNU linker is very broken | |
7498 | if test "$host_cpu" != ia64; then | |
7499 | ld_shlibs=no | |
7500 | cat <<_LT_EOF 1>&2 | |
7501 | ||
7502 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7503 | *** to be unable to reliably create shared libraries on AIX. | |
7504 | *** Therefore, libtool is disabling shared libraries support. If you | |
7505 | *** really care for shared libraries, you may want to modify your PATH | |
7506 | *** so that a non-GNU linker is found, and then restart. | |
7507 | ||
7508 | _LT_EOF | |
7509 | fi | |
7510 | ;; | |
7511 | ||
7512 | amigaos*) | |
7513 | case $host_cpu in | |
7514 | powerpc) | |
7515 | # see comment about AmigaOS4 .so support | |
7516 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7517 | archive_expsym_cmds='' | |
7518 | ;; | |
7519 | m68k) | |
7520 | 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)' | |
7521 | hardcode_libdir_flag_spec='-L$libdir' | |
7522 | hardcode_minus_L=yes | |
7523 | ;; | |
7524 | esac | |
7525 | ;; | |
7526 | ||
7527 | beos*) | |
7528 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7529 | allow_undefined_flag=unsupported | |
7530 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7531 | # support --undefined. This deserves some investigation. FIXME | |
7532 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7533 | else | |
7534 | ld_shlibs=no | |
7535 | fi | |
7536 | ;; | |
7537 | ||
7538 | cygwin* | mingw* | pw32* | cegcc*) | |
7539 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7540 | # as there is no search path for DLLs. | |
7541 | hardcode_libdir_flag_spec='-L$libdir' | |
7542 | allow_undefined_flag=unsupported | |
7543 | always_export_symbols=no | |
7544 | enable_shared_with_static_runtimes=yes | |
7545 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7546 | ||
7547 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7548 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7549 | # If the export-symbols file already is a .def file (1st line | |
7550 | # is EXPORTS), use it as is; otherwise, prepend... | |
7551 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7552 | cp $export_symbols $output_objdir/$soname.def; | |
7553 | else | |
7554 | echo EXPORTS > $output_objdir/$soname.def; | |
7555 | cat $export_symbols >> $output_objdir/$soname.def; | |
7556 | fi~ | |
7557 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7558 | else | |
7559 | ld_shlibs=no | |
7560 | fi | |
7561 | ;; | |
7562 | ||
7563 | interix[3-9]*) | |
7564 | hardcode_direct=no | |
7565 | hardcode_shlibpath_var=no | |
7566 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7567 | export_dynamic_flag_spec='${wl}-E' | |
7568 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7569 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7570 | # default) and relocated if they conflict, which is a slow very memory | |
7571 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7572 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7573 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7574 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7575 | 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' | |
7576 | ;; | |
7577 | ||
7578 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7579 | tmp_diet=no | |
7580 | if test "$host_os" = linux-dietlibc; then | |
7581 | case $cc_basename in | |
7582 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7583 | esac | |
7584 | fi | |
7585 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7586 | && test "$tmp_diet" = no | |
7587 | then | |
7588 | tmp_addflag= | |
7589 | tmp_sharedflag='-shared' | |
7590 | case $cc_basename,$host_cpu in | |
7591 | pgcc*) # Portland Group C compiler | |
7592 | 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' | |
7593 | tmp_addflag=' $pic_flag' | |
7594 | ;; | |
7595 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7596 | 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' | |
7597 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7598 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7599 | tmp_addflag=' -i_dynamic' ;; | |
7600 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7601 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7602 | ifc* | ifort*) # Intel Fortran compiler | |
7603 | tmp_addflag=' -nofor_main' ;; | |
7604 | lf95*) # Lahey Fortran 8.1 | |
7605 | whole_archive_flag_spec= | |
7606 | tmp_sharedflag='--shared' ;; | |
7607 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7608 | tmp_sharedflag='-qmkshrobj' | |
7609 | tmp_addflag= ;; | |
7610 | esac | |
7611 | case `$CC -V 2>&1 | sed 5q` in | |
7612 | *Sun\ C*) # Sun C 5.9 | |
7613 | 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' | |
7614 | compiler_needs_object=yes | |
7615 | tmp_sharedflag='-G' ;; | |
7616 | *Sun\ F*) # Sun Fortran 8.3 | |
7617 | tmp_sharedflag='-G' ;; | |
7618 | esac | |
7619 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7620 | ||
7621 | if test "x$supports_anon_versioning" = xyes; then | |
7622 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7623 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7624 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7625 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7626 | fi | |
7627 | ||
7628 | case $cc_basename in | |
7629 | xlf*) | |
7630 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7631 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7632 | hardcode_libdir_flag_spec= | |
7633 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7634 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7635 | if test "x$supports_anon_versioning" = xyes; then | |
7636 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7637 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7638 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7639 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7640 | fi | |
7641 | ;; | |
7642 | esac | |
7643 | else | |
7644 | ld_shlibs=no | |
7645 | fi | |
7646 | ;; | |
7647 | ||
7648 | netbsd* | netbsdelf*-gnu) | |
7649 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7650 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7651 | wlarc= | |
7652 | else | |
7653 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7654 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7655 | fi | |
7656 | ;; | |
7657 | ||
7658 | solaris*) | |
7659 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7660 | ld_shlibs=no | |
7661 | cat <<_LT_EOF 1>&2 | |
7662 | ||
7663 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7664 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7665 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7666 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7667 | *** your PATH or compiler configuration so that the native linker is | |
7668 | *** used, and then restart. | |
7669 | ||
7670 | _LT_EOF | |
7671 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7672 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7673 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7674 | else | |
7675 | ld_shlibs=no | |
7676 | fi | |
7677 | ;; | |
7678 | ||
7679 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7680 | case `$LD -v 2>&1` in | |
7681 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7682 | ld_shlibs=no | |
7683 | cat <<_LT_EOF 1>&2 | |
7684 | ||
7685 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7686 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7687 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7688 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7689 | *** your PATH or compiler configuration so that the native linker is | |
7690 | *** used, and then restart. | |
7691 | ||
7692 | _LT_EOF | |
7693 | ;; | |
7694 | *) | |
7695 | # For security reasons, it is highly recommended that you always | |
7696 | # use absolute paths for naming shared libraries, and exclude the | |
7697 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7698 | # requires that you compile everything twice, which is a pain. | |
7699 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7700 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7701 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7702 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7703 | else | |
7704 | ld_shlibs=no | |
7705 | fi | |
7706 | ;; | |
7707 | esac | |
7708 | ;; | |
7709 | ||
7710 | sunos4*) | |
7711 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7712 | wlarc= | |
7713 | hardcode_direct=yes | |
7714 | hardcode_shlibpath_var=no | |
7715 | ;; | |
7716 | ||
7717 | *) | |
7718 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7719 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7720 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7721 | else | |
7722 | ld_shlibs=no | |
7723 | fi | |
7724 | ;; | |
7725 | esac | |
7726 | ||
7727 | if test "$ld_shlibs" = no; then | |
7728 | runpath_var= | |
7729 | hardcode_libdir_flag_spec= | |
7730 | export_dynamic_flag_spec= | |
7731 | whole_archive_flag_spec= | |
7732 | fi | |
7733 | else | |
7734 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7735 | case $host_os in | |
7736 | aix3*) | |
7737 | allow_undefined_flag=unsupported | |
7738 | always_export_symbols=yes | |
7739 | 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' | |
7740 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7741 | # are no directories specified by -L. | |
7742 | hardcode_minus_L=yes | |
7743 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7744 | # Neither direct hardcoding nor static linking is supported with a | |
7745 | # broken collect2. | |
7746 | hardcode_direct=unsupported | |
7747 | fi | |
7748 | ;; | |
7749 | ||
7750 | aix[4-9]*) | |
7751 | if test "$host_cpu" = ia64; then | |
7752 | # On IA64, the linker does run time linking by default, so we don't | |
7753 | # have to do anything special. | |
7754 | aix_use_runtimelinking=no | |
7755 | exp_sym_flag='-Bexport' | |
7756 | no_entry_flag="" | |
7757 | else | |
7758 | # If we're using GNU nm, then we don't want the "-C" option. | |
7759 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7760 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7761 | 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' | |
7762 | else | |
7763 | 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' | |
7764 | fi | |
7765 | aix_use_runtimelinking=no | |
7766 | ||
7767 | # Test if we are trying to use run time linking or normal | |
7768 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7769 | # need to do runtime linking. | |
7770 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7771 | for ld_flag in $LDFLAGS; do | |
7772 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7773 | aix_use_runtimelinking=yes | |
7774 | break | |
7775 | fi | |
7776 | done | |
7777 | ;; | |
7778 | esac | |
7779 | ||
7780 | exp_sym_flag='-bexport' | |
7781 | no_entry_flag='-bnoentry' | |
7782 | fi | |
7783 | ||
7784 | # When large executables or shared objects are built, AIX ld can | |
7785 | # have problems creating the table of contents. If linking a library | |
7786 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7787 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7788 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7789 | ||
7790 | archive_cmds='' | |
7791 | hardcode_direct=yes | |
7792 | hardcode_direct_absolute=yes | |
7793 | hardcode_libdir_separator=':' | |
7794 | link_all_deplibs=yes | |
7795 | file_list_spec='${wl}-f,' | |
7796 | ||
7797 | if test "$GCC" = yes; then | |
7798 | case $host_os in aix4.[012]|aix4.[012].*) | |
7799 | # We only want to do this on AIX 4.2 and lower, the check | |
7800 | # below for broken collect2 doesn't work under 4.3+ | |
7801 | collect2name=`${CC} -print-prog-name=collect2` | |
7802 | if test -f "$collect2name" && | |
7803 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7804 | then | |
7805 | # We have reworked collect2 | |
7806 | : | |
7807 | else | |
7808 | # We have old collect2 | |
7809 | hardcode_direct=unsupported | |
7810 | # It fails to find uninstalled libraries when the uninstalled | |
7811 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7812 | # to unsupported forces relinking | |
7813 | hardcode_minus_L=yes | |
7814 | hardcode_libdir_flag_spec='-L$libdir' | |
7815 | hardcode_libdir_separator= | |
7816 | fi | |
7817 | ;; | |
7818 | esac | |
7819 | shared_flag='-shared' | |
7820 | if test "$aix_use_runtimelinking" = yes; then | |
7821 | shared_flag="$shared_flag "'${wl}-G' | |
7822 | fi | |
7823 | link_all_deplibs=no | |
7824 | else | |
7825 | # not using gcc | |
7826 | if test "$host_cpu" = ia64; then | |
7827 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7828 | # chokes on -Wl,-G. The following line is correct: | |
7829 | shared_flag='-G' | |
7830 | else | |
7831 | if test "$aix_use_runtimelinking" = yes; then | |
7832 | shared_flag='${wl}-G' | |
7833 | else | |
7834 | shared_flag='${wl}-bM:SRE' | |
7835 | fi | |
7836 | fi | |
7837 | fi | |
7838 | ||
7839 | export_dynamic_flag_spec='${wl}-bexpall' | |
7840 | # It seems that -bexpall does not export symbols beginning with | |
7841 | # underscore (_), so it is better to generate a list of symbols to export. | |
7842 | always_export_symbols=yes | |
7843 | if test "$aix_use_runtimelinking" = yes; then | |
7844 | # Warning - without using the other runtime loading flags (-brtl), | |
7845 | # -berok will link without error, but may produce a broken library. | |
7846 | allow_undefined_flag='-berok' | |
7847 | # Determine the default libpath from the value encoded in an | |
7848 | # empty executable. | |
7849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7850 | /* end confdefs.h. */ | |
7851 | ||
7852 | int | |
7853 | main () | |
7854 | { | |
7855 | ||
7856 | ; | |
7857 | return 0; | |
7858 | } | |
7859 | _ACEOF | |
7860 | if ac_fn_c_try_link "$LINENO"; then : | |
7861 | ||
7862 | lt_aix_libpath_sed=' | |
7863 | /Import File Strings/,/^$/ { | |
7864 | /^0/ { | |
7865 | s/^0 *\(.*\)$/\1/ | |
7866 | p | |
7867 | } | |
7868 | }' | |
7869 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7870 | # Check for a 64-bit object if we didn't find anything. | |
7871 | if test -z "$aix_libpath"; then | |
7872 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7873 | fi | |
7874 | fi | |
7875 | rm -f core conftest.err conftest.$ac_objext \ | |
7876 | conftest$ac_exeext conftest.$ac_ext | |
7877 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7878 | ||
7879 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7880 | 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" | |
7881 | else | |
7882 | if test "$host_cpu" = ia64; then | |
7883 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7884 | allow_undefined_flag="-z nodefs" | |
7885 | 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" | |
7886 | else | |
7887 | # Determine the default libpath from the value encoded in an | |
7888 | # empty executable. | |
7889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7890 | /* end confdefs.h. */ | |
7891 | ||
7892 | int | |
7893 | main () | |
7894 | { | |
7895 | ||
7896 | ; | |
7897 | return 0; | |
7898 | } | |
7899 | _ACEOF | |
7900 | if ac_fn_c_try_link "$LINENO"; then : | |
7901 | ||
7902 | lt_aix_libpath_sed=' | |
7903 | /Import File Strings/,/^$/ { | |
7904 | /^0/ { | |
7905 | s/^0 *\(.*\)$/\1/ | |
7906 | p | |
7907 | } | |
7908 | }' | |
7909 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7910 | # Check for a 64-bit object if we didn't find anything. | |
7911 | if test -z "$aix_libpath"; then | |
7912 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7913 | fi | |
7914 | fi | |
7915 | rm -f core conftest.err conftest.$ac_objext \ | |
7916 | conftest$ac_exeext conftest.$ac_ext | |
7917 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7918 | ||
7919 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7920 | # Warning - without using the other run time loading flags, | |
7921 | # -berok will link without error, but may produce a broken library. | |
7922 | no_undefined_flag=' ${wl}-bernotok' | |
7923 | allow_undefined_flag=' ${wl}-berok' | |
7924 | # Exported symbols can be pulled into shared objects from archives | |
7925 | whole_archive_flag_spec='$convenience' | |
7926 | archive_cmds_need_lc=yes | |
7927 | # This is similar to how AIX traditionally builds its shared libraries. | |
7928 | 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' | |
7929 | fi | |
7930 | fi | |
7931 | ;; | |
7932 | ||
7933 | amigaos*) | |
7934 | case $host_cpu in | |
7935 | powerpc) | |
7936 | # see comment about AmigaOS4 .so support | |
7937 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7938 | archive_expsym_cmds='' | |
7939 | ;; | |
7940 | m68k) | |
7941 | 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)' | |
7942 | hardcode_libdir_flag_spec='-L$libdir' | |
7943 | hardcode_minus_L=yes | |
7944 | ;; | |
7945 | esac | |
7946 | ;; | |
7947 | ||
7948 | bsdi[45]*) | |
7949 | export_dynamic_flag_spec=-rdynamic | |
7950 | ;; | |
7951 | ||
7952 | cygwin* | mingw* | pw32* | cegcc*) | |
7953 | # When not using gcc, we currently assume that we are using | |
7954 | # Microsoft Visual C++. | |
7955 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7956 | # no search path for DLLs. | |
7957 | hardcode_libdir_flag_spec=' ' | |
7958 | allow_undefined_flag=unsupported | |
7959 | # Tell ltmain to make .lib files, not .a files. | |
7960 | libext=lib | |
7961 | # Tell ltmain to make .dll files, not .so files. | |
7962 | shrext_cmds=".dll" | |
7963 | # FIXME: Setting linknames here is a bad hack. | |
7964 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7965 | # The linker will automatically build a .lib file if we build a DLL. | |
7966 | old_archive_from_new_cmds='true' | |
7967 | # FIXME: Should let the user specify the lib program. | |
7968 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7969 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7970 | enable_shared_with_static_runtimes=yes | |
7971 | ;; | |
7972 | ||
7973 | darwin* | rhapsody*) | |
7974 | ||
7975 | ||
7976 | archive_cmds_need_lc=no | |
7977 | hardcode_direct=no | |
7978 | hardcode_automatic=yes | |
7979 | hardcode_shlibpath_var=unsupported | |
7980 | whole_archive_flag_spec='' | |
7981 | link_all_deplibs=yes | |
7982 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7983 | case $cc_basename in | |
7984 | ifort*) _lt_dar_can_shared=yes ;; | |
7985 | *) _lt_dar_can_shared=$GCC ;; | |
7986 | esac | |
7987 | if test "$_lt_dar_can_shared" = "yes"; then | |
7988 | output_verbose_link_cmd=echo | |
7989 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7990 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7991 | 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}" | |
7992 | 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}" | |
7993 | ||
7994 | else | |
7995 | ld_shlibs=no | |
7996 | fi | |
7997 | ||
7998 | ;; | |
7999 | ||
8000 | dgux*) | |
8001 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8002 | hardcode_libdir_flag_spec='-L$libdir' | |
8003 | hardcode_shlibpath_var=no | |
8004 | ;; | |
8005 | ||
8006 | freebsd1*) | |
8007 | ld_shlibs=no | |
8008 | ;; | |
8009 | ||
8010 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8011 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8012 | # does not break anything, and helps significantly (at the cost of a little | |
8013 | # extra space). | |
8014 | freebsd2.2*) | |
8015 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8016 | hardcode_libdir_flag_spec='-R$libdir' | |
8017 | hardcode_direct=yes | |
8018 | hardcode_shlibpath_var=no | |
8019 | ;; | |
8020 | ||
8021 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8022 | freebsd2*) | |
8023 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8024 | hardcode_direct=yes | |
8025 | hardcode_minus_L=yes | |
8026 | hardcode_shlibpath_var=no | |
8027 | ;; | |
8028 | ||
8029 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8030 | freebsd* | dragonfly*) | |
8031 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8032 | hardcode_libdir_flag_spec='-R$libdir' | |
8033 | hardcode_direct=yes | |
8034 | hardcode_shlibpath_var=no | |
8035 | ;; | |
8036 | ||
8037 | hpux9*) | |
8038 | if test "$GCC" = yes; then | |
8039 | 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' | |
8040 | else | |
8041 | 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' | |
8042 | fi | |
8043 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8044 | hardcode_libdir_separator=: | |
8045 | hardcode_direct=yes | |
8046 | ||
8047 | # hardcode_minus_L: Not really in the search PATH, | |
8048 | # but as the default location of the library. | |
8049 | hardcode_minus_L=yes | |
8050 | export_dynamic_flag_spec='${wl}-E' | |
8051 | ;; | |
8052 | ||
8053 | hpux10*) | |
8054 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8055 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8056 | else | |
8057 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8058 | fi | |
8059 | if test "$with_gnu_ld" = no; then | |
8060 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8061 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8062 | hardcode_libdir_separator=: | |
8063 | hardcode_direct=yes | |
8064 | hardcode_direct_absolute=yes | |
8065 | export_dynamic_flag_spec='${wl}-E' | |
8066 | # hardcode_minus_L: Not really in the search PATH, | |
8067 | # but as the default location of the library. | |
8068 | hardcode_minus_L=yes | |
8069 | fi | |
8070 | ;; | |
8071 | ||
8072 | hpux11*) | |
8073 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8074 | case $host_cpu in | |
8075 | hppa*64*) | |
8076 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8077 | ;; | |
8078 | ia64*) | |
8079 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8080 | ;; | |
8081 | *) | |
8082 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8083 | ;; | |
8084 | esac | |
8085 | else | |
8086 | case $host_cpu in | |
8087 | hppa*64*) | |
8088 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8089 | ;; | |
8090 | ia64*) | |
8091 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8092 | ;; | |
8093 | *) | |
8094 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8095 | ;; | |
8096 | esac | |
8097 | fi | |
8098 | if test "$with_gnu_ld" = no; then | |
8099 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8100 | hardcode_libdir_separator=: | |
8101 | ||
8102 | case $host_cpu in | |
8103 | hppa*64*|ia64*) | |
8104 | hardcode_direct=no | |
8105 | hardcode_shlibpath_var=no | |
8106 | ;; | |
8107 | *) | |
8108 | hardcode_direct=yes | |
8109 | hardcode_direct_absolute=yes | |
8110 | export_dynamic_flag_spec='${wl}-E' | |
8111 | ||
8112 | # hardcode_minus_L: Not really in the search PATH, | |
8113 | # but as the default location of the library. | |
8114 | hardcode_minus_L=yes | |
8115 | ;; | |
8116 | esac | |
8117 | fi | |
8118 | ;; | |
8119 | ||
8120 | irix5* | irix6* | nonstopux*) | |
8121 | if test "$GCC" = yes; then | |
8122 | 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' | |
8123 | # Try to use the -exported_symbol ld option, if it does not | |
8124 | # work, assume that -exports_file does not work either and | |
8125 | # implicitly export all symbols. | |
8126 | save_LDFLAGS="$LDFLAGS" | |
8127 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8129 | /* end confdefs.h. */ | |
8130 | int foo(void) {} | |
8131 | _ACEOF | |
8132 | if ac_fn_c_try_link "$LINENO"; then : | |
8133 | 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' | |
8134 | ||
8135 | fi | |
8136 | rm -f core conftest.err conftest.$ac_objext \ | |
8137 | conftest$ac_exeext conftest.$ac_ext | |
8138 | LDFLAGS="$save_LDFLAGS" | |
8139 | else | |
8140 | 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' | |
8141 | 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' | |
8142 | fi | |
8143 | archive_cmds_need_lc='no' | |
8144 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8145 | hardcode_libdir_separator=: | |
8146 | inherit_rpath=yes | |
8147 | link_all_deplibs=yes | |
8148 | ;; | |
8149 | ||
8150 | netbsd* | netbsdelf*-gnu) | |
8151 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8152 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8153 | else | |
8154 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8155 | fi | |
8156 | hardcode_libdir_flag_spec='-R$libdir' | |
8157 | hardcode_direct=yes | |
8158 | hardcode_shlibpath_var=no | |
8159 | ;; | |
8160 | ||
8161 | newsos6) | |
8162 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8163 | hardcode_direct=yes | |
8164 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8165 | hardcode_libdir_separator=: | |
8166 | hardcode_shlibpath_var=no | |
8167 | ;; | |
8168 | ||
8169 | *nto* | *qnx*) | |
8170 | ;; | |
8171 | ||
8172 | openbsd*) | |
8173 | if test -f /usr/libexec/ld.so; then | |
8174 | hardcode_direct=yes | |
8175 | hardcode_shlibpath_var=no | |
8176 | hardcode_direct_absolute=yes | |
8177 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8178 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8179 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8180 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8181 | export_dynamic_flag_spec='${wl}-E' | |
8182 | else | |
8183 | case $host_os in | |
8184 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8185 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8186 | hardcode_libdir_flag_spec='-R$libdir' | |
8187 | ;; | |
8188 | *) | |
8189 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8190 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8191 | ;; | |
8192 | esac | |
8193 | fi | |
8194 | else | |
8195 | ld_shlibs=no | |
8196 | fi | |
8197 | ;; | |
8198 | ||
8199 | os2*) | |
8200 | hardcode_libdir_flag_spec='-L$libdir' | |
8201 | hardcode_minus_L=yes | |
8202 | allow_undefined_flag=unsupported | |
8203 | 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' | |
8204 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8205 | ;; | |
8206 | ||
8207 | osf3*) | |
8208 | if test "$GCC" = yes; then | |
8209 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8210 | 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' | |
8211 | else | |
8212 | allow_undefined_flag=' -expect_unresolved \*' | |
8213 | 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' | |
8214 | fi | |
8215 | archive_cmds_need_lc='no' | |
8216 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8217 | hardcode_libdir_separator=: | |
8218 | ;; | |
8219 | ||
8220 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8221 | if test "$GCC" = yes; then | |
8222 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8223 | 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' | |
8224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8225 | else | |
8226 | allow_undefined_flag=' -expect_unresolved \*' | |
8227 | 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' | |
8228 | 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~ | |
8229 | $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' | |
8230 | ||
8231 | # Both c and cxx compiler support -rpath directly | |
8232 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8233 | fi | |
8234 | archive_cmds_need_lc='no' | |
8235 | hardcode_libdir_separator=: | |
8236 | ;; | |
8237 | ||
8238 | solaris*) | |
8239 | no_undefined_flag=' -z defs' | |
8240 | if test "$GCC" = yes; then | |
8241 | wlarc='${wl}' | |
8242 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8243 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8244 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8245 | else | |
8246 | case `$CC -V 2>&1` in | |
8247 | *"Compilers 5.0"*) | |
8248 | wlarc='' | |
8249 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8250 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8251 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8252 | ;; | |
8253 | *) | |
8254 | wlarc='${wl}' | |
8255 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8256 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8257 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8258 | ;; | |
8259 | esac | |
8260 | fi | |
8261 | hardcode_libdir_flag_spec='-R$libdir' | |
8262 | hardcode_shlibpath_var=no | |
8263 | case $host_os in | |
8264 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8265 | *) | |
8266 | # The compiler driver will combine and reorder linker options, | |
8267 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8268 | # but is careful enough not to reorder. | |
8269 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8270 | if test "$GCC" = yes; then | |
8271 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8272 | else | |
8273 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8274 | fi | |
8275 | ;; | |
8276 | esac | |
8277 | link_all_deplibs=yes | |
8278 | ;; | |
8279 | ||
8280 | sunos4*) | |
8281 | if test "x$host_vendor" = xsequent; then | |
8282 | # Use $CC to link under sequent, because it throws in some extra .o | |
8283 | # files that make .init and .fini sections work. | |
8284 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8285 | else | |
8286 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8287 | fi | |
8288 | hardcode_libdir_flag_spec='-L$libdir' | |
8289 | hardcode_direct=yes | |
8290 | hardcode_minus_L=yes | |
8291 | hardcode_shlibpath_var=no | |
8292 | ;; | |
8293 | ||
8294 | sysv4) | |
8295 | case $host_vendor in | |
8296 | sni) | |
8297 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8298 | hardcode_direct=yes # is this really true??? | |
8299 | ;; | |
8300 | siemens) | |
8301 | ## LD is ld it makes a PLAMLIB | |
8302 | ## CC just makes a GrossModule. | |
8303 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8304 | reload_cmds='$CC -r -o $output$reload_objs' | |
8305 | hardcode_direct=no | |
8306 | ;; | |
8307 | motorola) | |
8308 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8309 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8310 | ;; | |
8311 | esac | |
8312 | runpath_var='LD_RUN_PATH' | |
8313 | hardcode_shlibpath_var=no | |
8314 | ;; | |
8315 | ||
8316 | sysv4.3*) | |
8317 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8318 | hardcode_shlibpath_var=no | |
8319 | export_dynamic_flag_spec='-Bexport' | |
8320 | ;; | |
8321 | ||
8322 | sysv4*MP*) | |
8323 | if test -d /usr/nec; then | |
8324 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8325 | hardcode_shlibpath_var=no | |
8326 | runpath_var=LD_RUN_PATH | |
8327 | hardcode_runpath_var=yes | |
8328 | ld_shlibs=yes | |
8329 | fi | |
8330 | ;; | |
8331 | ||
8332 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8333 | no_undefined_flag='${wl}-z,text' | |
8334 | archive_cmds_need_lc=no | |
8335 | hardcode_shlibpath_var=no | |
8336 | runpath_var='LD_RUN_PATH' | |
8337 | ||
8338 | if test "$GCC" = yes; then | |
8339 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8340 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8341 | else | |
8342 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8343 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8344 | fi | |
8345 | ;; | |
8346 | ||
8347 | sysv5* | sco3.2v5* | sco5v6*) | |
8348 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8349 | # link with -lc, and that would cause any symbols used from libc to | |
8350 | # always be unresolved, which means just about no library would | |
8351 | # ever link correctly. If we're not using GNU ld we use -z text | |
8352 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8353 | # as -z defs. | |
8354 | no_undefined_flag='${wl}-z,text' | |
8355 | allow_undefined_flag='${wl}-z,nodefs' | |
8356 | archive_cmds_need_lc=no | |
8357 | hardcode_shlibpath_var=no | |
8358 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8359 | hardcode_libdir_separator=':' | |
8360 | link_all_deplibs=yes | |
8361 | export_dynamic_flag_spec='${wl}-Bexport' | |
8362 | runpath_var='LD_RUN_PATH' | |
8363 | ||
8364 | if test "$GCC" = yes; then | |
8365 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8366 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8367 | else | |
8368 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8369 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8370 | fi | |
8371 | ;; | |
8372 | ||
8373 | uts4*) | |
8374 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8375 | hardcode_libdir_flag_spec='-L$libdir' | |
8376 | hardcode_shlibpath_var=no | |
8377 | ;; | |
8378 | ||
8379 | *) | |
8380 | ld_shlibs=no | |
8381 | ;; | |
8382 | esac | |
8383 | ||
8384 | if test x$host_vendor = xsni; then | |
8385 | case $host in | |
8386 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8387 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8388 | ;; | |
8389 | esac | |
8390 | fi | |
8391 | fi | |
8392 | ||
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8394 | $as_echo "$ld_shlibs" >&6; } | |
8395 | test "$ld_shlibs" = no && can_build_shared=no | |
8396 | ||
8397 | with_gnu_ld=$with_gnu_ld | |
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | ||
8403 | ||
8404 | ||
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | # | |
8414 | # Do we need to explicitly link libc? | |
8415 | # | |
8416 | case "x$archive_cmds_need_lc" in | |
8417 | x|xyes) | |
8418 | # Assume -lc should be added | |
8419 | archive_cmds_need_lc=yes | |
8420 | ||
8421 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8422 | case $archive_cmds in | |
8423 | *'~'*) | |
8424 | # FIXME: we may have to deal with multi-command sequences. | |
8425 | ;; | |
8426 | '$CC '*) | |
8427 | # Test whether the compiler implicitly links with -lc since on some | |
8428 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8429 | # to ld, don't add -lc before -lgcc. | |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8431 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8432 | $RM conftest* | |
8433 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8434 | ||
8435 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8436 | (eval $ac_compile) 2>&5 | |
8437 | ac_status=$? | |
8438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8439 | test $ac_status = 0; } 2>conftest.err; then | |
8440 | soname=conftest | |
8441 | lib=conftest | |
8442 | libobjs=conftest.$ac_objext | |
8443 | deplibs= | |
8444 | wl=$lt_prog_compiler_wl | |
8445 | pic_flag=$lt_prog_compiler_pic | |
8446 | compiler_flags=-v | |
8447 | linker_flags=-v | |
8448 | verstring= | |
8449 | output_objdir=. | |
8450 | libname=conftest | |
8451 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8452 | allow_undefined_flag= | |
8453 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8454 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8455 | ac_status=$? | |
8456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8457 | test $ac_status = 0; } | |
8458 | then | |
8459 | archive_cmds_need_lc=no | |
8460 | else | |
8461 | archive_cmds_need_lc=yes | |
8462 | fi | |
8463 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8464 | else | |
8465 | cat conftest.err 1>&5 | |
8466 | fi | |
8467 | $RM conftest* | |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8469 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8470 | ;; | |
8471 | esac | |
8472 | fi | |
8473 | ;; | |
8474 | esac | |
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 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8633 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8634 | ||
8635 | if test "$GCC" = yes; then | |
8636 | case $host_os in | |
8637 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8638 | *) lt_awk_arg="/^libraries:/" ;; | |
8639 | esac | |
8640 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8641 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8642 | # if the path contains ";" then we assume it to be the separator | |
8643 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8644 | # assumed that no part of a normal pathname contains ";" but that should | |
8645 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8646 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8647 | else | |
8648 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8649 | fi | |
8650 | # Ok, now we have the path, separated by spaces, we can step through it | |
8651 | # and add multilib dir if necessary. | |
8652 | lt_tmp_lt_search_path_spec= | |
8653 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8654 | for lt_sys_path in $lt_search_path_spec; do | |
8655 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8656 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8657 | else | |
8658 | test -d "$lt_sys_path" && \ | |
8659 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8660 | fi | |
8661 | done | |
8662 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8663 | BEGIN {RS=" "; FS="/|\n";} { | |
8664 | lt_foo=""; | |
8665 | lt_count=0; | |
8666 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8667 | if ($lt_i != "" && $lt_i != ".") { | |
8668 | if ($lt_i == "..") { | |
8669 | lt_count++; | |
8670 | } else { | |
8671 | if (lt_count == 0) { | |
8672 | lt_foo="/" $lt_i lt_foo; | |
8673 | } else { | |
8674 | lt_count--; | |
8675 | } | |
8676 | } | |
8677 | } | |
8678 | } | |
8679 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8680 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8681 | }'` | |
8682 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8683 | else | |
8684 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8685 | fi | |
8686 | library_names_spec= | |
8687 | libname_spec='lib$name' | |
8688 | soname_spec= | |
8689 | shrext_cmds=".so" | |
8690 | postinstall_cmds= | |
8691 | postuninstall_cmds= | |
8692 | finish_cmds= | |
8693 | finish_eval= | |
8694 | shlibpath_var= | |
8695 | shlibpath_overrides_runpath=unknown | |
8696 | version_type=none | |
8697 | dynamic_linker="$host_os ld.so" | |
8698 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8699 | need_lib_prefix=unknown | |
8700 | hardcode_into_libs=no | |
8701 | ||
8702 | # when you set need_version to no, make sure it does not cause -set_version | |
8703 | # flags to be left without arguments | |
8704 | need_version=unknown | |
8705 | ||
8706 | case $host_os in | |
8707 | aix3*) | |
8708 | version_type=linux | |
8709 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8710 | shlibpath_var=LIBPATH | |
8711 | ||
8712 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8713 | soname_spec='${libname}${release}${shared_ext}$major' | |
8714 | ;; | |
8715 | ||
8716 | aix[4-9]*) | |
8717 | version_type=linux | |
8718 | need_lib_prefix=no | |
8719 | need_version=no | |
8720 | hardcode_into_libs=yes | |
8721 | if test "$host_cpu" = ia64; then | |
8722 | # AIX 5 supports IA64 | |
8723 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8724 | shlibpath_var=LD_LIBRARY_PATH | |
8725 | else | |
8726 | # With GCC up to 2.95.x, collect2 would create an import file | |
8727 | # for dependence libraries. The import file would start with | |
8728 | # the line `#! .'. This would cause the generated library to | |
8729 | # depend on `.', always an invalid library. This was fixed in | |
8730 | # development snapshots of GCC prior to 3.0. | |
8731 | case $host_os in | |
8732 | aix4 | aix4.[01] | aix4.[01].*) | |
8733 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8734 | echo ' yes ' | |
8735 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8736 | : | |
8737 | else | |
8738 | can_build_shared=no | |
8739 | fi | |
8740 | ;; | |
8741 | esac | |
8742 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8743 | # soname into executable. Probably we can add versioning support to | |
8744 | # collect2, so additional links can be useful in future. | |
8745 | if test "$aix_use_runtimelinking" = yes; then | |
8746 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8747 | # instead of lib<name>.a to let people know that these are not | |
8748 | # typical AIX shared libraries. | |
8749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8750 | else | |
8751 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8752 | # and later when we are not doing run time linking. | |
8753 | library_names_spec='${libname}${release}.a $libname.a' | |
8754 | soname_spec='${libname}${release}${shared_ext}$major' | |
8755 | fi | |
8756 | shlibpath_var=LIBPATH | |
8757 | fi | |
8758 | ;; | |
8759 | ||
8760 | amigaos*) | |
8761 | case $host_cpu in | |
8762 | powerpc) | |
8763 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8764 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8766 | ;; | |
8767 | m68k) | |
8768 | library_names_spec='$libname.ixlibrary $libname.a' | |
8769 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8770 | 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' | |
8771 | ;; | |
8772 | esac | |
8773 | ;; | |
8774 | ||
8775 | beos*) | |
8776 | library_names_spec='${libname}${shared_ext}' | |
8777 | dynamic_linker="$host_os ld.so" | |
8778 | shlibpath_var=LIBRARY_PATH | |
8779 | ;; | |
8780 | ||
8781 | bsdi[45]*) | |
8782 | version_type=linux | |
8783 | need_version=no | |
8784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8785 | soname_spec='${libname}${release}${shared_ext}$major' | |
8786 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8787 | shlibpath_var=LD_LIBRARY_PATH | |
8788 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8789 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8790 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8791 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8792 | # libtool to hard-code these into programs | |
8793 | ;; | |
8794 | ||
8795 | cygwin* | mingw* | pw32* | cegcc*) | |
8796 | version_type=windows | |
8797 | shrext_cmds=".dll" | |
8798 | need_version=no | |
8799 | need_lib_prefix=no | |
8800 | ||
8801 | case $GCC,$host_os in | |
8802 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8803 | library_names_spec='$libname.dll.a' | |
8804 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8805 | postinstall_cmds='base_file=`basename \${file}`~ | |
8806 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8807 | dldir=$destdir/`dirname \$dlpath`~ | |
8808 | test -d \$dldir || mkdir -p \$dldir~ | |
8809 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8810 | chmod a+x \$dldir/$dlname~ | |
8811 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8812 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8813 | fi' | |
8814 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8815 | dlpath=$dir/\$dldll~ | |
8816 | $RM \$dlpath' | |
8817 | shlibpath_overrides_runpath=yes | |
8818 | ||
8819 | case $host_os in | |
8820 | cygwin*) | |
8821 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8822 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8823 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8824 | ;; | |
8825 | mingw* | cegcc*) | |
8826 | # MinGW DLLs use traditional 'lib' prefix | |
8827 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8828 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8829 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8830 | # It is most probably a Windows format PATH printed by | |
8831 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8832 | # path with ; separators, and with drive letters. We can handle the | |
8833 | # drive letters (cygwin fileutils understands them), so leave them, | |
8834 | # especially as we might pass files found there to a mingw objdump, | |
8835 | # which wouldn't understand a cygwinified path. Ahh. | |
8836 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8837 | else | |
8838 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8839 | fi | |
8840 | ;; | |
8841 | pw32*) | |
8842 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8843 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8844 | ;; | |
8845 | esac | |
8846 | ;; | |
8847 | ||
8848 | *) | |
8849 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8850 | ;; | |
8851 | esac | |
8852 | dynamic_linker='Win32 ld.exe' | |
8853 | # FIXME: first we should search . and the directory the executable is in | |
8854 | shlibpath_var=PATH | |
8855 | ;; | |
8856 | ||
8857 | darwin* | rhapsody*) | |
8858 | dynamic_linker="$host_os dyld" | |
8859 | version_type=darwin | |
8860 | need_lib_prefix=no | |
8861 | need_version=no | |
8862 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8863 | soname_spec='${libname}${release}${major}$shared_ext' | |
8864 | shlibpath_overrides_runpath=yes | |
8865 | shlibpath_var=DYLD_LIBRARY_PATH | |
8866 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8867 | ||
8868 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8869 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8870 | ;; | |
8871 | ||
8872 | dgux*) | |
8873 | version_type=linux | |
8874 | need_lib_prefix=no | |
8875 | need_version=no | |
8876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8877 | soname_spec='${libname}${release}${shared_ext}$major' | |
8878 | shlibpath_var=LD_LIBRARY_PATH | |
8879 | ;; | |
8880 | ||
8881 | freebsd1*) | |
8882 | dynamic_linker=no | |
8883 | ;; | |
8884 | ||
8885 | freebsd* | dragonfly*) | |
8886 | # DragonFly does not have aout. When/if they implement a new | |
8887 | # versioning mechanism, adjust this. | |
8888 | if test -x /usr/bin/objformat; then | |
8889 | objformat=`/usr/bin/objformat` | |
8890 | else | |
8891 | case $host_os in | |
8892 | freebsd[123]*) objformat=aout ;; | |
8893 | *) objformat=elf ;; | |
8894 | esac | |
8895 | fi | |
8896 | version_type=freebsd-$objformat | |
8897 | case $version_type in | |
8898 | freebsd-elf*) | |
8899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8900 | need_version=no | |
8901 | need_lib_prefix=no | |
8902 | ;; | |
8903 | freebsd-*) | |
8904 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8905 | need_version=yes | |
8906 | ;; | |
8907 | esac | |
8908 | shlibpath_var=LD_LIBRARY_PATH | |
8909 | case $host_os in | |
8910 | freebsd2*) | |
8911 | shlibpath_overrides_runpath=yes | |
8912 | ;; | |
8913 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8914 | shlibpath_overrides_runpath=yes | |
8915 | hardcode_into_libs=yes | |
8916 | ;; | |
8917 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8918 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8919 | shlibpath_overrides_runpath=no | |
8920 | hardcode_into_libs=yes | |
8921 | ;; | |
8922 | *) # from 4.6 on, and DragonFly | |
8923 | shlibpath_overrides_runpath=yes | |
8924 | hardcode_into_libs=yes | |
8925 | ;; | |
8926 | esac | |
8927 | ;; | |
8928 | ||
8929 | gnu*) | |
8930 | version_type=linux | |
8931 | need_lib_prefix=no | |
8932 | need_version=no | |
8933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8934 | soname_spec='${libname}${release}${shared_ext}$major' | |
8935 | shlibpath_var=LD_LIBRARY_PATH | |
8936 | hardcode_into_libs=yes | |
8937 | ;; | |
8938 | ||
8939 | hpux9* | hpux10* | hpux11*) | |
8940 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8941 | # link against other versions. | |
8942 | version_type=sunos | |
8943 | need_lib_prefix=no | |
8944 | need_version=no | |
8945 | case $host_cpu in | |
8946 | ia64*) | |
8947 | shrext_cmds='.so' | |
8948 | hardcode_into_libs=yes | |
8949 | dynamic_linker="$host_os dld.so" | |
8950 | shlibpath_var=LD_LIBRARY_PATH | |
8951 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8953 | soname_spec='${libname}${release}${shared_ext}$major' | |
8954 | if test "X$HPUX_IA64_MODE" = X32; then | |
8955 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8956 | else | |
8957 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8958 | fi | |
8959 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8960 | ;; | |
8961 | hppa*64*) | |
8962 | shrext_cmds='.sl' | |
8963 | hardcode_into_libs=yes | |
8964 | dynamic_linker="$host_os dld.sl" | |
8965 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8968 | soname_spec='${libname}${release}${shared_ext}$major' | |
8969 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8970 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8971 | ;; | |
8972 | *) | |
8973 | shrext_cmds='.sl' | |
8974 | dynamic_linker="$host_os dld.sl" | |
8975 | shlibpath_var=SHLIB_PATH | |
8976 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8978 | soname_spec='${libname}${release}${shared_ext}$major' | |
8979 | ;; | |
8980 | esac | |
8981 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8982 | postinstall_cmds='chmod 555 $lib' | |
8983 | ;; | |
8984 | ||
8985 | interix[3-9]*) | |
8986 | version_type=linux | |
8987 | need_lib_prefix=no | |
8988 | need_version=no | |
8989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8990 | soname_spec='${libname}${release}${shared_ext}$major' | |
8991 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8992 | shlibpath_var=LD_LIBRARY_PATH | |
8993 | shlibpath_overrides_runpath=no | |
8994 | hardcode_into_libs=yes | |
8995 | ;; | |
8996 | ||
8997 | irix5* | irix6* | nonstopux*) | |
8998 | case $host_os in | |
8999 | nonstopux*) version_type=nonstopux ;; | |
9000 | *) | |
9001 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9002 | version_type=linux | |
9003 | else | |
9004 | version_type=irix | |
9005 | fi ;; | |
9006 | esac | |
9007 | need_lib_prefix=no | |
9008 | need_version=no | |
9009 | soname_spec='${libname}${release}${shared_ext}$major' | |
9010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9011 | case $host_os in | |
9012 | irix5* | nonstopux*) | |
9013 | libsuff= shlibsuff= | |
9014 | ;; | |
9015 | *) | |
9016 | case $LD in # libtool.m4 will add one of these switches to LD | |
9017 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9018 | libsuff= shlibsuff= libmagic=32-bit;; | |
9019 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9020 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9021 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9022 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9023 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9024 | esac | |
9025 | ;; | |
9026 | esac | |
9027 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9028 | shlibpath_overrides_runpath=no | |
9029 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9030 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9031 | hardcode_into_libs=yes | |
9032 | ;; | |
9033 | ||
9034 | # No shared lib support for Linux oldld, aout, or coff. | |
9035 | linux*oldld* | linux*aout* | linux*coff*) | |
9036 | dynamic_linker=no | |
9037 | ;; | |
9038 | ||
9039 | # This must be Linux ELF. | |
9040 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9041 | version_type=linux | |
9042 | need_lib_prefix=no | |
9043 | need_version=no | |
9044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9045 | soname_spec='${libname}${release}${shared_ext}$major' | |
9046 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9047 | shlibpath_var=LD_LIBRARY_PATH | |
9048 | shlibpath_overrides_runpath=no | |
9049 | # Some binutils ld are patched to set DT_RUNPATH | |
9050 | save_LDFLAGS=$LDFLAGS | |
9051 | save_libdir=$libdir | |
9052 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9053 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9055 | /* end confdefs.h. */ | |
9056 | ||
9057 | int | |
9058 | main () | |
9059 | { | |
9060 | ||
9061 | ; | |
9062 | return 0; | |
9063 | } | |
9064 | _ACEOF | |
9065 | if ac_fn_c_try_link "$LINENO"; then : | |
9066 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9067 | shlibpath_overrides_runpath=yes | |
9068 | fi | |
9069 | fi | |
9070 | rm -f core conftest.err conftest.$ac_objext \ | |
9071 | conftest$ac_exeext conftest.$ac_ext | |
9072 | LDFLAGS=$save_LDFLAGS | |
9073 | libdir=$save_libdir | |
9074 | ||
9075 | # This implies no fast_install, which is unacceptable. | |
9076 | # Some rework will be needed to allow for fast_install | |
9077 | # before this can be enabled. | |
9078 | hardcode_into_libs=yes | |
9079 | ||
9080 | # Append ld.so.conf contents to the search path | |
9081 | if test -f /etc/ld.so.conf; then | |
9082 | 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' ' '` | |
9083 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9084 | fi | |
9085 | ||
9086 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9087 | # powerpc, because MkLinux only supported shared libraries with the | |
9088 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9089 | # most powerpc-linux boxes support dynamic linking these days and | |
9090 | # people can always --disable-shared, the test was removed, and we | |
9091 | # assume the GNU/Linux dynamic linker is in use. | |
9092 | dynamic_linker='GNU/Linux ld.so' | |
9093 | ;; | |
9094 | ||
9095 | netbsdelf*-gnu) | |
9096 | version_type=linux | |
9097 | need_lib_prefix=no | |
9098 | need_version=no | |
9099 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9100 | soname_spec='${libname}${release}${shared_ext}$major' | |
9101 | shlibpath_var=LD_LIBRARY_PATH | |
9102 | shlibpath_overrides_runpath=no | |
9103 | hardcode_into_libs=yes | |
9104 | dynamic_linker='NetBSD ld.elf_so' | |
9105 | ;; | |
9106 | ||
9107 | netbsd*) | |
9108 | version_type=sunos | |
9109 | need_lib_prefix=no | |
9110 | need_version=no | |
9111 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9113 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9114 | dynamic_linker='NetBSD (a.out) ld.so' | |
9115 | else | |
9116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9117 | soname_spec='${libname}${release}${shared_ext}$major' | |
9118 | dynamic_linker='NetBSD ld.elf_so' | |
9119 | fi | |
9120 | shlibpath_var=LD_LIBRARY_PATH | |
9121 | shlibpath_overrides_runpath=yes | |
9122 | hardcode_into_libs=yes | |
9123 | ;; | |
9124 | ||
9125 | newsos6) | |
9126 | version_type=linux | |
9127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9128 | shlibpath_var=LD_LIBRARY_PATH | |
9129 | shlibpath_overrides_runpath=yes | |
9130 | ;; | |
9131 | ||
9132 | *nto* | *qnx*) | |
9133 | version_type=qnx | |
9134 | need_lib_prefix=no | |
9135 | need_version=no | |
9136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9137 | soname_spec='${libname}${release}${shared_ext}$major' | |
9138 | shlibpath_var=LD_LIBRARY_PATH | |
9139 | shlibpath_overrides_runpath=no | |
9140 | hardcode_into_libs=yes | |
9141 | dynamic_linker='ldqnx.so' | |
9142 | ;; | |
9143 | ||
9144 | openbsd*) | |
9145 | version_type=sunos | |
9146 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9147 | need_lib_prefix=no | |
9148 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9149 | case $host_os in | |
9150 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9151 | *) need_version=no ;; | |
9152 | esac | |
9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9154 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9155 | shlibpath_var=LD_LIBRARY_PATH | |
9156 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9157 | case $host_os in | |
9158 | openbsd2.[89] | openbsd2.[89].*) | |
9159 | shlibpath_overrides_runpath=no | |
9160 | ;; | |
9161 | *) | |
9162 | shlibpath_overrides_runpath=yes | |
9163 | ;; | |
9164 | esac | |
9165 | else | |
9166 | shlibpath_overrides_runpath=yes | |
9167 | fi | |
9168 | ;; | |
9169 | ||
9170 | os2*) | |
9171 | libname_spec='$name' | |
9172 | shrext_cmds=".dll" | |
9173 | need_lib_prefix=no | |
9174 | library_names_spec='$libname${shared_ext} $libname.a' | |
9175 | dynamic_linker='OS/2 ld.exe' | |
9176 | shlibpath_var=LIBPATH | |
9177 | ;; | |
9178 | ||
9179 | osf3* | osf4* | osf5*) | |
9180 | version_type=osf | |
9181 | need_lib_prefix=no | |
9182 | need_version=no | |
9183 | soname_spec='${libname}${release}${shared_ext}$major' | |
9184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9185 | shlibpath_var=LD_LIBRARY_PATH | |
9186 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9187 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9188 | ;; | |
9189 | ||
9190 | rdos*) | |
9191 | dynamic_linker=no | |
9192 | ;; | |
9193 | ||
9194 | solaris*) | |
9195 | version_type=linux | |
9196 | need_lib_prefix=no | |
9197 | need_version=no | |
9198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9199 | soname_spec='${libname}${release}${shared_ext}$major' | |
9200 | shlibpath_var=LD_LIBRARY_PATH | |
9201 | shlibpath_overrides_runpath=yes | |
9202 | hardcode_into_libs=yes | |
9203 | # ldd complains unless libraries are executable | |
9204 | postinstall_cmds='chmod +x $lib' | |
9205 | ;; | |
9206 | ||
9207 | sunos4*) | |
9208 | version_type=sunos | |
9209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9210 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9211 | shlibpath_var=LD_LIBRARY_PATH | |
9212 | shlibpath_overrides_runpath=yes | |
9213 | if test "$with_gnu_ld" = yes; then | |
9214 | need_lib_prefix=no | |
9215 | fi | |
9216 | need_version=yes | |
9217 | ;; | |
9218 | ||
9219 | sysv4 | sysv4.3*) | |
9220 | version_type=linux | |
9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9222 | soname_spec='${libname}${release}${shared_ext}$major' | |
9223 | shlibpath_var=LD_LIBRARY_PATH | |
9224 | case $host_vendor in | |
9225 | sni) | |
9226 | shlibpath_overrides_runpath=no | |
9227 | need_lib_prefix=no | |
9228 | runpath_var=LD_RUN_PATH | |
9229 | ;; | |
9230 | siemens) | |
9231 | need_lib_prefix=no | |
9232 | ;; | |
9233 | motorola) | |
9234 | need_lib_prefix=no | |
9235 | need_version=no | |
9236 | shlibpath_overrides_runpath=no | |
9237 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9238 | ;; | |
9239 | esac | |
9240 | ;; | |
9241 | ||
9242 | sysv4*MP*) | |
9243 | if test -d /usr/nec ;then | |
9244 | version_type=linux | |
9245 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9246 | soname_spec='$libname${shared_ext}.$major' | |
9247 | shlibpath_var=LD_LIBRARY_PATH | |
9248 | fi | |
9249 | ;; | |
9250 | ||
9251 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9252 | version_type=freebsd-elf | |
9253 | need_lib_prefix=no | |
9254 | need_version=no | |
9255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9256 | soname_spec='${libname}${release}${shared_ext}$major' | |
9257 | shlibpath_var=LD_LIBRARY_PATH | |
9258 | shlibpath_overrides_runpath=yes | |
9259 | hardcode_into_libs=yes | |
9260 | if test "$with_gnu_ld" = yes; then | |
9261 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9262 | else | |
9263 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9264 | case $host_os in | |
9265 | sco3.2v5*) | |
9266 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9267 | ;; | |
9268 | esac | |
9269 | fi | |
9270 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9271 | ;; | |
9272 | ||
9273 | tpf*) | |
9274 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9275 | version_type=linux | |
9276 | need_lib_prefix=no | |
9277 | need_version=no | |
9278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9279 | shlibpath_var=LD_LIBRARY_PATH | |
9280 | shlibpath_overrides_runpath=no | |
9281 | hardcode_into_libs=yes | |
9282 | ;; | |
9283 | ||
9284 | uts4*) | |
9285 | version_type=linux | |
9286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9287 | soname_spec='${libname}${release}${shared_ext}$major' | |
9288 | shlibpath_var=LD_LIBRARY_PATH | |
9289 | ;; | |
9290 | ||
9291 | *) | |
9292 | dynamic_linker=no | |
9293 | ;; | |
9294 | esac | |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9296 | $as_echo "$dynamic_linker" >&6; } | |
9297 | test "$dynamic_linker" = no && can_build_shared=no | |
9298 | ||
9299 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9300 | if test "$GCC" = yes; then | |
9301 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9302 | fi | |
9303 | ||
9304 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9305 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9306 | fi | |
9307 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9308 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9309 | fi | |
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 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
9358 | ||
9359 | ||
9360 | ||
9361 | ||
9362 | ||
9363 | ||
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | ||
9370 | ||
9371 | ||
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | ||
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
9385 | ||
9386 | ||
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | ||
9392 | ||
9393 | ||
9394 | ||
9395 | ||
9396 | ||
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9398 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9399 | hardcode_action= | |
9400 | if test -n "$hardcode_libdir_flag_spec" || | |
9401 | test -n "$runpath_var" || | |
9402 | test "X$hardcode_automatic" = "Xyes" ; then | |
9403 | ||
9404 | # We can hardcode non-existent directories. | |
9405 | if test "$hardcode_direct" != no && | |
9406 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9407 | # have to relink, otherwise we might link with an installed library | |
9408 | # when we should be linking with a yet-to-be-installed one | |
9409 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9410 | test "$hardcode_minus_L" != no; then | |
9411 | # Linking always hardcodes the temporary library directory. | |
9412 | hardcode_action=relink | |
9413 | else | |
9414 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9415 | hardcode_action=immediate | |
9416 | fi | |
9417 | else | |
9418 | # We cannot hardcode anything, or else we can only hardcode existing | |
9419 | # directories. | |
9420 | hardcode_action=unsupported | |
9421 | fi | |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9423 | $as_echo "$hardcode_action" >&6; } | |
9424 | ||
9425 | if test "$hardcode_action" = relink || | |
9426 | test "$inherit_rpath" = yes; then | |
9427 | # Fast installation is not supported | |
9428 | enable_fast_install=no | |
9429 | elif test "$shlibpath_overrides_runpath" = yes || | |
9430 | test "$enable_shared" = no; then | |
9431 | # Fast installation is not necessary | |
9432 | enable_fast_install=needless | |
9433 | fi | |
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | if test "x$enable_dlopen" != xyes; then | |
9441 | enable_dlopen=unknown | |
9442 | enable_dlopen_self=unknown | |
9443 | enable_dlopen_self_static=unknown | |
9444 | else | |
9445 | lt_cv_dlopen=no | |
9446 | lt_cv_dlopen_libs= | |
9447 | ||
9448 | case $host_os in | |
9449 | beos*) | |
9450 | lt_cv_dlopen="load_add_on" | |
9451 | lt_cv_dlopen_libs= | |
9452 | lt_cv_dlopen_self=yes | |
9453 | ;; | |
9454 | ||
9455 | mingw* | pw32* | cegcc*) | |
9456 | lt_cv_dlopen="LoadLibrary" | |
9457 | lt_cv_dlopen_libs= | |
9458 | ;; | |
9459 | ||
9460 | cygwin*) | |
9461 | lt_cv_dlopen="dlopen" | |
9462 | lt_cv_dlopen_libs= | |
9463 | ;; | |
9464 | ||
9465 | darwin*) | |
9466 | # if libdl is installed we need to link against it | |
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9468 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9469 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9470 | $as_echo_n "(cached) " >&6 | |
9471 | else | |
9472 | ac_check_lib_save_LIBS=$LIBS | |
9473 | LIBS="-ldl $LIBS" | |
9474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9475 | /* end confdefs.h. */ | |
9476 | ||
9477 | /* Override any GCC internal prototype to avoid an error. | |
9478 | Use char because int might match the return type of a GCC | |
9479 | builtin and then its argument prototype would still apply. */ | |
9480 | #ifdef __cplusplus | |
9481 | extern "C" | |
9482 | #endif | |
9483 | char dlopen (); | |
9484 | int | |
9485 | main () | |
9486 | { | |
9487 | return dlopen (); | |
9488 | ; | |
9489 | return 0; | |
9490 | } | |
9491 | _ACEOF | |
9492 | if ac_fn_c_try_link "$LINENO"; then : | |
9493 | ac_cv_lib_dl_dlopen=yes | |
9494 | else | |
9495 | ac_cv_lib_dl_dlopen=no | |
9496 | fi | |
9497 | rm -f core conftest.err conftest.$ac_objext \ | |
9498 | conftest$ac_exeext conftest.$ac_ext | |
9499 | LIBS=$ac_check_lib_save_LIBS | |
9500 | fi | |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9502 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9503 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9504 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9505 | else | |
9506 | ||
9507 | lt_cv_dlopen="dyld" | |
9508 | lt_cv_dlopen_libs= | |
9509 | lt_cv_dlopen_self=yes | |
9510 | ||
9511 | fi | |
9512 | ||
9513 | ;; | |
9514 | ||
9515 | *) | |
9516 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9517 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9518 | lt_cv_dlopen="shl_load" | |
9519 | else | |
9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9521 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9522 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9523 | $as_echo_n "(cached) " >&6 | |
9524 | else | |
9525 | ac_check_lib_save_LIBS=$LIBS | |
9526 | LIBS="-ldld $LIBS" | |
9527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9528 | /* end confdefs.h. */ | |
9529 | ||
9530 | /* Override any GCC internal prototype to avoid an error. | |
9531 | Use char because int might match the return type of a GCC | |
9532 | builtin and then its argument prototype would still apply. */ | |
9533 | #ifdef __cplusplus | |
9534 | extern "C" | |
9535 | #endif | |
9536 | char shl_load (); | |
9537 | int | |
9538 | main () | |
9539 | { | |
9540 | return shl_load (); | |
9541 | ; | |
9542 | return 0; | |
9543 | } | |
9544 | _ACEOF | |
9545 | if ac_fn_c_try_link "$LINENO"; then : | |
9546 | ac_cv_lib_dld_shl_load=yes | |
9547 | else | |
9548 | ac_cv_lib_dld_shl_load=no | |
9549 | fi | |
9550 | rm -f core conftest.err conftest.$ac_objext \ | |
9551 | conftest$ac_exeext conftest.$ac_ext | |
9552 | LIBS=$ac_check_lib_save_LIBS | |
9553 | fi | |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9555 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9556 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9557 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9558 | else | |
9559 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9560 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9561 | lt_cv_dlopen="dlopen" | |
9562 | else | |
9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9564 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9565 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9566 | $as_echo_n "(cached) " >&6 | |
9567 | else | |
9568 | ac_check_lib_save_LIBS=$LIBS | |
9569 | LIBS="-ldl $LIBS" | |
9570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9571 | /* end confdefs.h. */ | |
9572 | ||
9573 | /* Override any GCC internal prototype to avoid an error. | |
9574 | Use char because int might match the return type of a GCC | |
9575 | builtin and then its argument prototype would still apply. */ | |
9576 | #ifdef __cplusplus | |
9577 | extern "C" | |
9578 | #endif | |
9579 | char dlopen (); | |
9580 | int | |
9581 | main () | |
9582 | { | |
9583 | return dlopen (); | |
9584 | ; | |
9585 | return 0; | |
9586 | } | |
9587 | _ACEOF | |
9588 | if ac_fn_c_try_link "$LINENO"; then : | |
9589 | ac_cv_lib_dl_dlopen=yes | |
9590 | else | |
9591 | ac_cv_lib_dl_dlopen=no | |
9592 | fi | |
9593 | rm -f core conftest.err conftest.$ac_objext \ | |
9594 | conftest$ac_exeext conftest.$ac_ext | |
9595 | LIBS=$ac_check_lib_save_LIBS | |
9596 | fi | |
9597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9598 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9599 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9600 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9601 | else | |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9603 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9604 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9605 | $as_echo_n "(cached) " >&6 | |
9606 | else | |
9607 | ac_check_lib_save_LIBS=$LIBS | |
9608 | LIBS="-lsvld $LIBS" | |
9609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9610 | /* end confdefs.h. */ | |
9611 | ||
9612 | /* Override any GCC internal prototype to avoid an error. | |
9613 | Use char because int might match the return type of a GCC | |
9614 | builtin and then its argument prototype would still apply. */ | |
9615 | #ifdef __cplusplus | |
9616 | extern "C" | |
9617 | #endif | |
9618 | char dlopen (); | |
9619 | int | |
9620 | main () | |
9621 | { | |
9622 | return dlopen (); | |
9623 | ; | |
9624 | return 0; | |
9625 | } | |
9626 | _ACEOF | |
9627 | if ac_fn_c_try_link "$LINENO"; then : | |
9628 | ac_cv_lib_svld_dlopen=yes | |
9629 | else | |
9630 | ac_cv_lib_svld_dlopen=no | |
9631 | fi | |
9632 | rm -f core conftest.err conftest.$ac_objext \ | |
9633 | conftest$ac_exeext conftest.$ac_ext | |
9634 | LIBS=$ac_check_lib_save_LIBS | |
9635 | fi | |
9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9637 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9638 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9639 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9640 | else | |
9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9642 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9643 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9644 | $as_echo_n "(cached) " >&6 | |
9645 | else | |
9646 | ac_check_lib_save_LIBS=$LIBS | |
9647 | LIBS="-ldld $LIBS" | |
9648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9649 | /* end confdefs.h. */ | |
9650 | ||
9651 | /* Override any GCC internal prototype to avoid an error. | |
9652 | Use char because int might match the return type of a GCC | |
9653 | builtin and then its argument prototype would still apply. */ | |
9654 | #ifdef __cplusplus | |
9655 | extern "C" | |
9656 | #endif | |
9657 | char dld_link (); | |
9658 | int | |
9659 | main () | |
9660 | { | |
9661 | return dld_link (); | |
9662 | ; | |
9663 | return 0; | |
9664 | } | |
9665 | _ACEOF | |
9666 | if ac_fn_c_try_link "$LINENO"; then : | |
9667 | ac_cv_lib_dld_dld_link=yes | |
9668 | else | |
9669 | ac_cv_lib_dld_dld_link=no | |
9670 | fi | |
9671 | rm -f core conftest.err conftest.$ac_objext \ | |
9672 | conftest$ac_exeext conftest.$ac_ext | |
9673 | LIBS=$ac_check_lib_save_LIBS | |
9674 | fi | |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9676 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9677 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9678 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9679 | fi | |
9680 | ||
9681 | ||
9682 | fi | |
9683 | ||
9684 | ||
9685 | fi | |
9686 | ||
9687 | ||
9688 | fi | |
9689 | ||
9690 | ||
9691 | fi | |
9692 | ||
9693 | ||
9694 | fi | |
9695 | ||
9696 | ;; | |
9697 | esac | |
9698 | ||
9699 | if test "x$lt_cv_dlopen" != xno; then | |
9700 | enable_dlopen=yes | |
9701 | else | |
9702 | enable_dlopen=no | |
9703 | fi | |
9704 | ||
9705 | case $lt_cv_dlopen in | |
9706 | dlopen) | |
9707 | save_CPPFLAGS="$CPPFLAGS" | |
9708 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9709 | ||
9710 | save_LDFLAGS="$LDFLAGS" | |
9711 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9712 | ||
9713 | save_LIBS="$LIBS" | |
9714 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9715 | ||
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9717 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9718 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9719 | $as_echo_n "(cached) " >&6 | |
9720 | else | |
9721 | if test "$cross_compiling" = yes; then : | |
9722 | lt_cv_dlopen_self=cross | |
9723 | else | |
9724 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9725 | lt_status=$lt_dlunknown | |
9726 | cat > conftest.$ac_ext <<_LT_EOF | |
b66977f1 | 9727 | #line 9727 "configure" |
9c60689e DWT |
9728 | #include "confdefs.h" |
9729 | ||
9730 | #if HAVE_DLFCN_H | |
9731 | #include <dlfcn.h> | |
9732 | #endif | |
9733 | ||
9734 | #include <stdio.h> | |
9735 | ||
9736 | #ifdef RTLD_GLOBAL | |
9737 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9738 | #else | |
9739 | # ifdef DL_GLOBAL | |
9740 | # define LT_DLGLOBAL DL_GLOBAL | |
9741 | # else | |
9742 | # define LT_DLGLOBAL 0 | |
9743 | # endif | |
9744 | #endif | |
9745 | ||
9746 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9747 | find out it does not work in some platform. */ | |
9748 | #ifndef LT_DLLAZY_OR_NOW | |
9749 | # ifdef RTLD_LAZY | |
9750 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9751 | # else | |
9752 | # ifdef DL_LAZY | |
9753 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9754 | # else | |
9755 | # ifdef RTLD_NOW | |
9756 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9757 | # else | |
9758 | # ifdef DL_NOW | |
9759 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9760 | # else | |
9761 | # define LT_DLLAZY_OR_NOW 0 | |
9762 | # endif | |
9763 | # endif | |
9764 | # endif | |
9765 | # endif | |
9766 | #endif | |
9767 | ||
9768 | void fnord() { int i=42;} | |
9769 | int main () | |
9770 | { | |
9771 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9772 | int status = $lt_dlunknown; | |
9773 | ||
9774 | if (self) | |
9775 | { | |
9776 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9777 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9778 | /* dlclose (self); */ | |
9779 | } | |
9780 | else | |
9781 | puts (dlerror ()); | |
9782 | ||
9783 | return status; | |
9784 | } | |
9785 | _LT_EOF | |
9786 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9787 | (eval $ac_link) 2>&5 | |
9788 | ac_status=$? | |
9789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9790 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9791 | (./conftest; exit; ) >&5 2>/dev/null | |
9792 | lt_status=$? | |
9793 | case x$lt_status in | |
9794 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9795 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9796 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9797 | esac | |
9798 | else : | |
9799 | # compilation failed | |
9800 | lt_cv_dlopen_self=no | |
9801 | fi | |
9802 | fi | |
9803 | rm -fr conftest* | |
9804 | ||
9805 | ||
9806 | fi | |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9808 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9809 | ||
9810 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9811 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9813 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9814 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9815 | $as_echo_n "(cached) " >&6 | |
9816 | else | |
9817 | if test "$cross_compiling" = yes; then : | |
9818 | lt_cv_dlopen_self_static=cross | |
9819 | else | |
9820 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9821 | lt_status=$lt_dlunknown | |
9822 | cat > conftest.$ac_ext <<_LT_EOF | |
b66977f1 | 9823 | #line 9823 "configure" |
9c60689e DWT |
9824 | #include "confdefs.h" |
9825 | ||
9826 | #if HAVE_DLFCN_H | |
9827 | #include <dlfcn.h> | |
9828 | #endif | |
9829 | ||
9830 | #include <stdio.h> | |
9831 | ||
9832 | #ifdef RTLD_GLOBAL | |
9833 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9834 | #else | |
9835 | # ifdef DL_GLOBAL | |
9836 | # define LT_DLGLOBAL DL_GLOBAL | |
9837 | # else | |
9838 | # define LT_DLGLOBAL 0 | |
9839 | # endif | |
9840 | #endif | |
9841 | ||
9842 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9843 | find out it does not work in some platform. */ | |
9844 | #ifndef LT_DLLAZY_OR_NOW | |
9845 | # ifdef RTLD_LAZY | |
9846 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9847 | # else | |
9848 | # ifdef DL_LAZY | |
9849 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9850 | # else | |
9851 | # ifdef RTLD_NOW | |
9852 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9853 | # else | |
9854 | # ifdef DL_NOW | |
9855 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9856 | # else | |
9857 | # define LT_DLLAZY_OR_NOW 0 | |
9858 | # endif | |
9859 | # endif | |
9860 | # endif | |
9861 | # endif | |
9862 | #endif | |
9863 | ||
9864 | void fnord() { int i=42;} | |
9865 | int main () | |
9866 | { | |
9867 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9868 | int status = $lt_dlunknown; | |
9869 | ||
9870 | if (self) | |
9871 | { | |
9872 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9873 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9874 | /* dlclose (self); */ | |
9875 | } | |
9876 | else | |
9877 | puts (dlerror ()); | |
9878 | ||
9879 | return status; | |
9880 | } | |
9881 | _LT_EOF | |
9882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9883 | (eval $ac_link) 2>&5 | |
9884 | ac_status=$? | |
9885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9886 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9887 | (./conftest; exit; ) >&5 2>/dev/null | |
9888 | lt_status=$? | |
9889 | case x$lt_status in | |
9890 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9891 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9892 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9893 | esac | |
9894 | else : | |
9895 | # compilation failed | |
9896 | lt_cv_dlopen_self_static=no | |
9897 | fi | |
9898 | fi | |
9899 | rm -fr conftest* | |
9900 | ||
9901 | ||
9902 | fi | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9904 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9905 | fi | |
9906 | ||
9907 | CPPFLAGS="$save_CPPFLAGS" | |
9908 | LDFLAGS="$save_LDFLAGS" | |
9909 | LIBS="$save_LIBS" | |
9910 | ;; | |
9911 | esac | |
9912 | ||
9913 | case $lt_cv_dlopen_self in | |
9914 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9915 | *) enable_dlopen_self=unknown ;; | |
9916 | esac | |
9917 | ||
9918 | case $lt_cv_dlopen_self_static in | |
9919 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9920 | *) enable_dlopen_self_static=unknown ;; | |
9921 | esac | |
9922 | fi | |
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | striplib= | |
9941 | old_striplib= | |
9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9943 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9944 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9945 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9946 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9948 | $as_echo "yes" >&6; } | |
9949 | else | |
9950 | # FIXME - insert some real tests, host_os isn't really good enough | |
9951 | case $host_os in | |
9952 | darwin*) | |
9953 | if test -n "$STRIP" ; then | |
9954 | striplib="$STRIP -x" | |
9955 | old_striplib="$STRIP -S" | |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9957 | $as_echo "yes" >&6; } | |
9958 | else | |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9960 | $as_echo "no" >&6; } | |
9961 | fi | |
9962 | ;; | |
9963 | *) | |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9965 | $as_echo "no" >&6; } | |
9966 | ;; | |
9967 | esac | |
9968 | fi | |
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | # Report which library types will actually be built | |
9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9983 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9985 | $as_echo "$can_build_shared" >&6; } | |
9986 | ||
9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9988 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9989 | test "$can_build_shared" = "no" && enable_shared=no | |
9990 | ||
9991 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9992 | # are all built from PIC. | |
9993 | case $host_os in | |
9994 | aix3*) | |
9995 | test "$enable_shared" = yes && enable_static=no | |
9996 | if test -n "$RANLIB"; then | |
9997 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9998 | postinstall_cmds='$RANLIB $lib' | |
9999 | fi | |
10000 | ;; | |
10001 | ||
10002 | aix[4-9]*) | |
10003 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10004 | test "$enable_shared" = yes && enable_static=no | |
10005 | fi | |
10006 | ;; | |
10007 | esac | |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
10009 | $as_echo "$enable_shared" >&6; } | |
10010 | ||
10011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
10012 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
10013 | # Make sure either enable_shared or enable_static is yes. | |
10014 | test "$enable_shared" = yes || enable_static=yes | |
10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
10016 | $as_echo "$enable_static" >&6; } | |
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | fi | |
10022 | ac_ext=c | |
10023 | ac_cpp='$CPP $CPPFLAGS' | |
10024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10027 | ||
10028 | CC="$lt_save_CC" | |
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | ac_config_commands="$ac_config_commands libtool" | |
10043 | ||
10044 | ||
10045 | ||
10046 | ||
10047 | # Only expand once: | |
10048 | ||
10049 | ||
3fd51f51 DWT |
10050 | |
10051 | ||
10052 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
10053 | if test -n "$ac_tool_prefix"; then | |
10054 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10055 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10057 | $as_echo_n "checking for $ac_word... " >&6; } | |
10058 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
10059 | $as_echo_n "(cached) " >&6 | |
10060 | else | |
10061 | case $PKG_CONFIG in | |
10062 | [\\/]* | ?:[\\/]*) | |
10063 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10064 | ;; | |
10065 | *) | |
10066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10067 | for as_dir in $PATH | |
10068 | do | |
10069 | IFS=$as_save_IFS | |
10070 | test -z "$as_dir" && as_dir=. | |
10071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10073 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10075 | break 2 | |
10076 | fi | |
10077 | done | |
10078 | done | |
10079 | IFS=$as_save_IFS | |
10080 | ||
10081 | ;; | |
10082 | esac | |
10083 | fi | |
10084 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10085 | if test -n "$PKG_CONFIG"; then | |
10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
10087 | $as_echo "$PKG_CONFIG" >&6; } | |
10088 | else | |
10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10090 | $as_echo "no" >&6; } | |
10091 | fi | |
10092 | ||
10093 | ||
10094 | fi | |
10095 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10096 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10097 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10098 | set dummy pkg-config; ac_word=$2 | |
10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10100 | $as_echo_n "checking for $ac_word... " >&6; } | |
10101 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
10102 | $as_echo_n "(cached) " >&6 | |
10103 | else | |
10104 | case $ac_pt_PKG_CONFIG in | |
10105 | [\\/]* | ?:[\\/]*) | |
10106 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10107 | ;; | |
10108 | *) | |
10109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10110 | for as_dir in $PATH | |
10111 | do | |
10112 | IFS=$as_save_IFS | |
10113 | test -z "$as_dir" && as_dir=. | |
10114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10116 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10118 | break 2 | |
10119 | fi | |
10120 | done | |
10121 | done | |
10122 | IFS=$as_save_IFS | |
10123 | ||
10124 | ;; | |
10125 | esac | |
10126 | fi | |
10127 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10128 | if test -n "$ac_pt_PKG_CONFIG"; then | |
10129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
10130 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
10131 | else | |
10132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10133 | $as_echo "no" >&6; } | |
10134 | fi | |
10135 | ||
10136 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10137 | PKG_CONFIG="" | |
10138 | else | |
10139 | case $cross_compiling:$ac_tool_warned in | |
10140 | yes:) | |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10143 | ac_tool_warned=yes ;; | |
10144 | esac | |
10145 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10146 | fi | |
10147 | else | |
10148 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10149 | fi | |
10150 | ||
10151 | fi | |
10152 | if test -n "$PKG_CONFIG"; then | |
10153 | _pkg_min_version=0.22 | |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
10155 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
10156 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10158 | $as_echo "yes" >&6; } | |
10159 | else | |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10161 | $as_echo "no" >&6; } | |
10162 | PKG_CONFIG="" | |
10163 | fi | |
10164 | ||
632b71ea DWT |
10165 | fi |
10166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
10167 | $as_echo_n "checking for GNU make... " >&6; } | |
10168 | if test "${_cv_gnu_make_command+set}" = set; then : | |
10169 | $as_echo_n "(cached) " >&6 | |
10170 | else | |
10171 | _cv_gnu_make_command='' ; | |
10172 | for a in "$MAKE" make gmake gnumake ; do | |
10173 | if test -z "$a" ; then continue ; fi ; | |
10174 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10175 | _cv_gnu_make_command=$a ; | |
10176 | break; | |
10177 | fi | |
10178 | done ; | |
10179 | ||
10180 | fi | |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
10182 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
10183 | if test "x$_cv_gnu_make_command" != "x" ; then | |
10184 | ifGNUmake='' ; | |
10185 | else | |
10186 | ifGNUmake='#' ; | |
10187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
10188 | $as_echo "\"Not found\"" >&6; }; | |
10189 | fi | |
10190 | ||
10191 | ||
10192 | if test "x$_cv_gnu_make_command" = x; then : | |
10193 | as_fn_error "You need GNU make" "$LINENO" 5 | |
3fd51f51 | 10194 | fi |
47aaa820 DWT |
10195 | ac_ext=cpp |
10196 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10197 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10198 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10199 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10200 | if test -z "$CXX"; then | |
10201 | if test -n "$CCC"; then | |
10202 | CXX=$CCC | |
10203 | else | |
10204 | if test -n "$ac_tool_prefix"; then | |
10205 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10206 | do | |
10207 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10208 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10210 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10211 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10212 | $as_echo_n "(cached) " >&6 |
10213 | else | |
47aaa820 DWT |
10214 | if test -n "$CXX"; then |
10215 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10216 | else |
10217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10218 | for as_dir in $PATH | |
10219 | do | |
10220 | IFS=$as_save_IFS | |
10221 | test -z "$as_dir" && as_dir=. | |
10222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10224 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10226 | break 2 | |
10227 | fi | |
10228 | done | |
10229 | done | |
10230 | IFS=$as_save_IFS | |
10231 | ||
10232 | fi | |
10233 | fi | |
47aaa820 DWT |
10234 | CXX=$ac_cv_prog_CXX |
10235 | if test -n "$CXX"; then | |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10237 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10238 | else |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10240 | $as_echo "no" >&6; } | |
10241 | fi | |
10242 | ||
10243 | ||
47aaa820 DWT |
10244 | test -n "$CXX" && break |
10245 | done | |
9c60689e | 10246 | fi |
47aaa820 DWT |
10247 | if test -z "$CXX"; then |
10248 | ac_ct_CXX=$CXX | |
10249 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10250 | do |
10251 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10252 | set dummy $ac_prog; ac_word=$2 | |
10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10254 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10255 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10256 | $as_echo_n "(cached) " >&6 |
10257 | else | |
47aaa820 DWT |
10258 | if test -n "$ac_ct_CXX"; then |
10259 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10260 | else |
10261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10262 | for as_dir in $PATH | |
10263 | do | |
10264 | IFS=$as_save_IFS | |
10265 | test -z "$as_dir" && as_dir=. | |
10266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10268 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10270 | break 2 | |
10271 | fi | |
10272 | done | |
10273 | done | |
10274 | IFS=$as_save_IFS | |
10275 | ||
10276 | fi | |
10277 | fi | |
47aaa820 DWT |
10278 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10279 | if test -n "$ac_ct_CXX"; then | |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10281 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10282 | else |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10284 | $as_echo "no" >&6; } | |
10285 | fi | |
10286 | ||
10287 | ||
47aaa820 | 10288 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10289 | done |
10290 | ||
47aaa820 DWT |
10291 | if test "x$ac_ct_CXX" = x; then |
10292 | CXX="g++" | |
10293 | else | |
10294 | case $cross_compiling:$ac_tool_warned in | |
10295 | yes:) | |
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10297 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10298 | ac_tool_warned=yes ;; | |
9c60689e | 10299 | esac |
47aaa820 DWT |
10300 | CXX=$ac_ct_CXX |
10301 | fi | |
9c60689e DWT |
10302 | fi |
10303 | ||
9c60689e | 10304 | fi |
9c60689e | 10305 | fi |
47aaa820 DWT |
10306 | # Provide some information about the compiler. |
10307 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10308 | set X $ac_compile | |
10309 | ac_compiler=$2 | |
10310 | for ac_option in --version -v -V -qversion; do | |
10311 | { { ac_try="$ac_compiler $ac_option >&5" | |
9c60689e DWT |
10312 | case "(($ac_try" in |
10313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10314 | *) ac_try_echo=$ac_try;; | |
10315 | esac | |
10316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10317 | $as_echo "$ac_try_echo"; } >&5 | |
47aaa820 | 10318 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
9c60689e | 10319 | ac_status=$? |
47aaa820 DWT |
10320 | if test -s conftest.err; then |
10321 | sed '10a\ | |
10322 | ... rest of stderr output deleted ... | |
10323 | 10q' conftest.err >conftest.er1 | |
10324 | cat conftest.er1 >&5 | |
10325 | fi | |
10326 | rm -f conftest.er1 conftest.err | |
9c60689e DWT |
10327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10328 | test $ac_status = 0; } | |
47aaa820 DWT |
10329 | done |
10330 | ||
10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10332 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10333 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
9c60689e DWT |
10334 | $as_echo_n "(cached) " >&6 |
10335 | else | |
47aaa820 DWT |
10336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10337 | /* end confdefs.h. */ | |
9c60689e | 10338 | |
47aaa820 DWT |
10339 | int |
10340 | main () | |
10341 | { | |
10342 | #ifndef __GNUC__ | |
10343 | choke me | |
10344 | #endif | |
10345 | ||
10346 | ; | |
10347 | return 0; | |
10348 | } | |
10349 | _ACEOF | |
10350 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10351 | ac_compiler_gnu=yes | |
9c60689e | 10352 | else |
47aaa820 | 10353 | ac_compiler_gnu=no |
9c60689e | 10354 | fi |
47aaa820 DWT |
10355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10356 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 10357 | |
47aaa820 DWT |
10358 | fi |
10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10360 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10361 | if test $ac_compiler_gnu = yes; then | |
10362 | GXX=yes | |
9c60689e | 10363 | else |
47aaa820 | 10364 | GXX= |
9c60689e | 10365 | fi |
47aaa820 DWT |
10366 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10367 | ac_save_CXXFLAGS=$CXXFLAGS | |
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10369 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10370 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
9c60689e DWT |
10371 | $as_echo_n "(cached) " >&6 |
10372 | else | |
47aaa820 DWT |
10373 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
10374 | ac_cxx_werror_flag=yes | |
10375 | ac_cv_prog_cxx_g=no | |
10376 | CXXFLAGS="-g" | |
10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10378 | /* end confdefs.h. */ |
9c60689e | 10379 | |
47aaa820 DWT |
10380 | int |
10381 | main () | |
10382 | { | |
9c60689e | 10383 | |
47aaa820 DWT |
10384 | ; |
10385 | return 0; | |
10386 | } | |
10387 | _ACEOF | |
10388 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10389 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10390 | else |
47aaa820 DWT |
10391 | CXXFLAGS="" |
10392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10393 | /* end confdefs.h. */ | |
9c60689e | 10394 | |
47aaa820 DWT |
10395 | int |
10396 | main () | |
10397 | { | |
9c60689e | 10398 | |
47aaa820 DWT |
10399 | ; |
10400 | return 0; | |
10401 | } | |
10402 | _ACEOF | |
10403 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e DWT |
10404 | |
10405 | else | |
47aaa820 DWT |
10406 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
10407 | CXXFLAGS="-g" | |
10408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10409 | /* end confdefs.h. */ | |
9c60689e | 10410 | |
47aaa820 DWT |
10411 | int |
10412 | main () | |
10413 | { | |
9c60689e | 10414 | |
47aaa820 DWT |
10415 | ; |
10416 | return 0; | |
10417 | } | |
10418 | _ACEOF | |
10419 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10420 | ac_cv_prog_cxx_g=yes | |
9c60689e | 10421 | fi |
47aaa820 | 10422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9c60689e | 10423 | fi |
47aaa820 DWT |
10424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10425 | fi | |
10426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10427 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10428 | fi | |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10430 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10431 | if test "$ac_test_CXXFLAGS" = set; then | |
10432 | CXXFLAGS=$ac_save_CXXFLAGS | |
10433 | elif test $ac_cv_prog_cxx_g = yes; then | |
10434 | if test "$GXX" = yes; then | |
10435 | CXXFLAGS="-g -O2" | |
10436 | else | |
10437 | CXXFLAGS="-g" | |
10438 | fi | |
9c60689e | 10439 | else |
47aaa820 DWT |
10440 | if test "$GXX" = yes; then |
10441 | CXXFLAGS="-O2" | |
10442 | else | |
10443 | CXXFLAGS= | |
10444 | fi | |
9c60689e | 10445 | fi |
47aaa820 DWT |
10446 | ac_ext=c |
10447 | ac_cpp='$CPP $CPPFLAGS' | |
10448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10451 | |
9c60689e | 10452 | |
47aaa820 DWT |
10453 | ac_ext=cpp |
10454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10458 | if test -z "$CXX"; then | |
10459 | if test -n "$CCC"; then | |
10460 | CXX=$CCC | |
10461 | else | |
10462 | if test -n "$ac_tool_prefix"; then | |
10463 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10464 | do | |
10465 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10466 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9c60689e DWT |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10468 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10469 | if test "${ac_cv_prog_CXX+set}" = set; then : |
9c60689e DWT |
10470 | $as_echo_n "(cached) " >&6 |
10471 | else | |
47aaa820 DWT |
10472 | if test -n "$CXX"; then |
10473 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9c60689e DWT |
10474 | else |
10475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10476 | for as_dir in $PATH | |
10477 | do | |
10478 | IFS=$as_save_IFS | |
10479 | test -z "$as_dir" && as_dir=. | |
10480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10482 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
9c60689e DWT |
10483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10484 | break 2 | |
10485 | fi | |
10486 | done | |
10487 | done | |
10488 | IFS=$as_save_IFS | |
10489 | ||
10490 | fi | |
10491 | fi | |
47aaa820 DWT |
10492 | CXX=$ac_cv_prog_CXX |
10493 | if test -n "$CXX"; then | |
10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10495 | $as_echo "$CXX" >&6; } | |
9c60689e DWT |
10496 | else |
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10498 | $as_echo "no" >&6; } | |
10499 | fi | |
10500 | ||
10501 | ||
47aaa820 DWT |
10502 | test -n "$CXX" && break |
10503 | done | |
10504 | fi | |
10505 | if test -z "$CXX"; then | |
10506 | ac_ct_CXX=$CXX | |
10507 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
9c60689e DWT |
10508 | do |
10509 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10510 | set dummy $ac_prog; ac_word=$2 | |
10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10512 | $as_echo_n "checking for $ac_word... " >&6; } | |
47aaa820 | 10513 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
9c60689e DWT |
10514 | $as_echo_n "(cached) " >&6 |
10515 | else | |
47aaa820 DWT |
10516 | if test -n "$ac_ct_CXX"; then |
10517 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
9c60689e DWT |
10518 | else |
10519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10520 | for as_dir in $PATH | |
10521 | do | |
10522 | IFS=$as_save_IFS | |
10523 | test -z "$as_dir" && as_dir=. | |
10524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
47aaa820 | 10526 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
9c60689e DWT |
10527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
10528 | break 2 | |
10529 | fi | |
10530 | done | |
10531 | done | |
10532 | IFS=$as_save_IFS | |
10533 | ||
10534 | fi | |
10535 | fi | |
47aaa820 DWT |
10536 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10537 | if test -n "$ac_ct_CXX"; then | |
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10539 | $as_echo "$ac_ct_CXX" >&6; } | |
9c60689e DWT |
10540 | else |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10542 | $as_echo "no" >&6; } | |
10543 | fi | |
10544 | ||
10545 | ||
47aaa820 | 10546 | test -n "$ac_ct_CXX" && break |
9c60689e DWT |
10547 | done |
10548 | ||
47aaa820 DWT |
10549 | if test "x$ac_ct_CXX" = x; then |
10550 | CXX="g++" | |
10551 | else | |
10552 | case $cross_compiling:$ac_tool_warned in | |
10553 | yes:) | |
10554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10555 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10556 | ac_tool_warned=yes ;; | |
10557 | esac | |
10558 | CXX=$ac_ct_CXX | |
10559 | fi | |
10560 | fi | |
3fd51f51 | 10561 | |
47aaa820 DWT |
10562 | fi |
10563 | fi | |
10564 | # Provide some information about the compiler. | |
10565 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10566 | set X $ac_compile | |
10567 | ac_compiler=$2 | |
10568 | for ac_option in --version -v -V -qversion; do | |
10569 | { { ac_try="$ac_compiler $ac_option >&5" | |
10570 | case "(($ac_try" in | |
10571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10572 | *) ac_try_echo=$ac_try;; | |
3fd51f51 | 10573 | esac |
47aaa820 DWT |
10574 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
10575 | $as_echo "$ac_try_echo"; } >&5 | |
10576 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10577 | ac_status=$? | |
10578 | if test -s conftest.err; then | |
10579 | sed '10a\ | |
10580 | ... rest of stderr output deleted ... | |
10581 | 10q' conftest.err >conftest.er1 | |
10582 | cat conftest.er1 >&5 | |
3530897b | 10583 | fi |
47aaa820 DWT |
10584 | rm -f conftest.er1 conftest.err |
10585 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10586 | test $ac_status = 0; } | |
3530897b | 10587 | done |
3530897b | 10588 | |
47aaa820 DWT |
10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
10590 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10591 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10592 | $as_echo_n "(cached) " >&6 | |
10593 | else | |
10594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10595 | /* end confdefs.h. */ | |
10596 | ||
10597 | int | |
10598 | main () | |
10599 | { | |
10600 | #ifndef __GNUC__ | |
10601 | choke me | |
10602 | #endif | |
10603 | ||
10604 | ; | |
10605 | return 0; | |
10606 | } | |
10607 | _ACEOF | |
10608 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10609 | ac_compiler_gnu=yes | |
10610 | else | |
10611 | ac_compiler_gnu=no | |
3530897b | 10612 | fi |
47aaa820 DWT |
10613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10614 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10615 | ||
3530897b | 10616 | fi |
47aaa820 DWT |
10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
10618 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10619 | if test $ac_compiler_gnu = yes; then | |
10620 | GXX=yes | |
3530897b | 10621 | else |
47aaa820 | 10622 | GXX= |
3530897b | 10623 | fi |
47aaa820 DWT |
10624 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
10625 | ac_save_CXXFLAGS=$CXXFLAGS | |
10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10627 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10628 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10629 | $as_echo_n "(cached) " >&6 | |
10630 | else | |
10631 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10632 | ac_cxx_werror_flag=yes | |
10633 | ac_cv_prog_cxx_g=no | |
10634 | CXXFLAGS="-g" | |
10635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10636 | /* end confdefs.h. */ | |
3530897b | 10637 | |
47aaa820 DWT |
10638 | int |
10639 | main () | |
10640 | { | |
3530897b | 10641 | |
47aaa820 DWT |
10642 | ; |
10643 | return 0; | |
10644 | } | |
10645 | _ACEOF | |
10646 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10647 | ac_cv_prog_cxx_g=yes | |
10648 | else | |
10649 | CXXFLAGS="" | |
10650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10651 | /* end confdefs.h. */ | |
9c60689e | 10652 | |
47aaa820 DWT |
10653 | int |
10654 | main () | |
10655 | { | |
9c60689e | 10656 | |
47aaa820 DWT |
10657 | ; |
10658 | return 0; | |
10659 | } | |
10660 | _ACEOF | |
10661 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
9c60689e | 10662 | |
47aaa820 DWT |
10663 | else |
10664 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10665 | CXXFLAGS="-g" | |
10666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10667 | /* end confdefs.h. */ | |
9c60689e | 10668 | |
47aaa820 DWT |
10669 | int |
10670 | main () | |
10671 | { | |
9c60689e | 10672 | |
47aaa820 DWT |
10673 | ; |
10674 | return 0; | |
10675 | } | |
10676 | _ACEOF | |
10677 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10678 | ac_cv_prog_cxx_g=yes | |
10679 | fi | |
10680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10681 | fi | |
10682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10683 | fi | |
10684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10685 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10686 | fi | |
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10688 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10689 | if test "$ac_test_CXXFLAGS" = set; then | |
10690 | CXXFLAGS=$ac_save_CXXFLAGS | |
10691 | elif test $ac_cv_prog_cxx_g = yes; then | |
10692 | if test "$GXX" = yes; then | |
10693 | CXXFLAGS="-g -O2" | |
10694 | else | |
10695 | CXXFLAGS="-g" | |
10696 | fi | |
10697 | else | |
10698 | if test "$GXX" = yes; then | |
10699 | CXXFLAGS="-O2" | |
10700 | else | |
10701 | CXXFLAGS= | |
10702 | fi | |
10703 | fi | |
10704 | ac_ext=c | |
10705 | ac_cpp='$CPP $CPPFLAGS' | |
10706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10709 | |
47aaa820 DWT |
10710 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10711 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10712 | (test "X$CXX" != "Xg++"))) ; then | |
10713 | ac_ext=cpp | |
10714 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10719 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10720 | if test -z "$CXXCPP"; then | |
10721 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
10722 | $as_echo_n "(cached) " >&6 | |
10723 | else | |
10724 | # Double quotes because CXXCPP needs to be expanded | |
10725 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
9c60689e | 10726 | do |
47aaa820 DWT |
10727 | ac_preproc_ok=false |
10728 | for ac_cxx_preproc_warn_flag in '' yes | |
10729 | do | |
10730 | # Use a header file that comes with gcc, so configuring glibc | |
10731 | # with a fresh cross-compiler works. | |
10732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10733 | # <limits.h> exists even on freestanding compilers. | |
10734 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10735 | # not just through cpp. "Syntax error" is here to catch this case. | |
10736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10737 | /* end confdefs.h. */ | |
10738 | #ifdef __STDC__ | |
10739 | # include <limits.h> | |
10740 | #else | |
10741 | # include <assert.h> | |
10742 | #endif | |
10743 | Syntax error | |
10744 | _ACEOF | |
10745 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
9c60689e DWT |
10746 | |
10747 | else | |
47aaa820 DWT |
10748 | # Broken: fails on valid input. |
10749 | continue | |
9c60689e | 10750 | fi |
47aaa820 | 10751 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10752 | |
47aaa820 DWT |
10753 | # OK, works on sane cases. Now check whether nonexistent headers |
10754 | # can be detected and how. | |
10755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10756 | /* end confdefs.h. */ | |
10757 | #include <ac_nonexistent.h> | |
10758 | _ACEOF | |
10759 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10760 | # Broken: success on invalid input. | |
10761 | continue | |
10762 | else | |
10763 | # Passes both tests. | |
10764 | ac_preproc_ok=: | |
10765 | break | |
10766 | fi | |
10767 | rm -f conftest.err conftest.$ac_ext | |
9c60689e | 10768 | |
47aaa820 DWT |
10769 | done |
10770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10771 | rm -f conftest.err conftest.$ac_ext | |
10772 | if $ac_preproc_ok; then : | |
10773 | break | |
10774 | fi | |
9c60689e | 10775 | |
9c60689e | 10776 | done |
47aaa820 | 10777 | ac_cv_prog_CXXCPP=$CXXCPP |
9c60689e | 10778 | |
47aaa820 DWT |
10779 | fi |
10780 | CXXCPP=$ac_cv_prog_CXXCPP | |
9c60689e | 10781 | else |
47aaa820 DWT |
10782 | ac_cv_prog_CXXCPP=$CXXCPP |
10783 | fi | |
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10785 | $as_echo "$CXXCPP" >&6; } | |
10786 | ac_preproc_ok=false | |
10787 | for ac_cxx_preproc_warn_flag in '' yes | |
10788 | do | |
10789 | # Use a header file that comes with gcc, so configuring glibc | |
10790 | # with a fresh cross-compiler works. | |
10791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10792 | # <limits.h> exists even on freestanding compilers. | |
10793 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10794 | # not just through cpp. "Syntax error" is here to catch this case. | |
10795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e | 10796 | /* end confdefs.h. */ |
47aaa820 DWT |
10797 | #ifdef __STDC__ |
10798 | # include <limits.h> | |
10799 | #else | |
10800 | # include <assert.h> | |
9c60689e | 10801 | #endif |
47aaa820 | 10802 | Syntax error |
9c60689e | 10803 | _ACEOF |
47aaa820 | 10804 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
9c60689e | 10805 | |
47aaa820 DWT |
10806 | else |
10807 | # Broken: fails on valid input. | |
10808 | continue | |
9c60689e | 10809 | fi |
47aaa820 | 10810 | rm -f conftest.err conftest.$ac_ext |
9c60689e | 10811 | |
47aaa820 DWT |
10812 | # OK, works on sane cases. Now check whether nonexistent headers |
10813 | # can be detected and how. | |
10814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10815 | /* end confdefs.h. */ | |
10816 | #include <ac_nonexistent.h> | |
9c60689e | 10817 | _ACEOF |
47aaa820 DWT |
10818 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
10819 | # Broken: success on invalid input. | |
10820 | continue | |
10821 | else | |
10822 | # Passes both tests. | |
10823 | ac_preproc_ok=: | |
10824 | break | |
9c60689e | 10825 | fi |
47aaa820 | 10826 | rm -f conftest.err conftest.$ac_ext |
9c60689e DWT |
10827 | |
10828 | done | |
47aaa820 DWT |
10829 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
10830 | rm -f conftest.err conftest.$ac_ext | |
10831 | if $ac_preproc_ok; then : | |
9c60689e | 10832 | |
9c60689e | 10833 | else |
47aaa820 DWT |
10834 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10835 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10836 | _lt_caught_CXX_error=yes; } | |
9c60689e | 10837 | fi |
9c60689e | 10838 | |
47aaa820 DWT |
10839 | ac_ext=c |
10840 | ac_cpp='$CPP $CPPFLAGS' | |
10841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 10844 | |
47aaa820 DWT |
10845 | else |
10846 | _lt_caught_CXX_error=yes | |
10847 | fi | |
9c60689e | 10848 | |
9c60689e | 10849 | |
9c60689e | 10850 | |
9c60689e DWT |
10851 | |
10852 | ac_ext=cpp | |
10853 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9c60689e | 10857 | |
47aaa820 DWT |
10858 | archive_cmds_need_lc_CXX=no |
10859 | allow_undefined_flag_CXX= | |
10860 | always_export_symbols_CXX=no | |
10861 | archive_expsym_cmds_CXX= | |
10862 | compiler_needs_object_CXX=no | |
10863 | export_dynamic_flag_spec_CXX= | |
10864 | hardcode_direct_CXX=no | |
10865 | hardcode_direct_absolute_CXX=no | |
10866 | hardcode_libdir_flag_spec_CXX= | |
10867 | hardcode_libdir_flag_spec_ld_CXX= | |
10868 | hardcode_libdir_separator_CXX= | |
10869 | hardcode_minus_L_CXX=no | |
10870 | hardcode_shlibpath_var_CXX=unsupported | |
10871 | hardcode_automatic_CXX=no | |
10872 | inherit_rpath_CXX=no | |
10873 | module_cmds_CXX= | |
10874 | module_expsym_cmds_CXX= | |
10875 | link_all_deplibs_CXX=unknown | |
10876 | old_archive_cmds_CXX=$old_archive_cmds | |
10877 | no_undefined_flag_CXX= | |
10878 | whole_archive_flag_spec_CXX= | |
10879 | enable_shared_with_static_runtimes_CXX=no | |
9c60689e | 10880 | |
47aaa820 DWT |
10881 | # Source file extension for C++ test sources. |
10882 | ac_ext=cpp | |
9c60689e | 10883 | |
47aaa820 DWT |
10884 | # Object file extension for compiled C++ test sources. |
10885 | objext=o | |
10886 | objext_CXX=$objext | |
9c60689e | 10887 | |
47aaa820 DWT |
10888 | # No sense in running all these tests if we already determined that |
10889 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
10890 | # are currently assumed to apply to all compilers on this platform, | |
10891 | # and will be corrupted by setting them based on a non-working compiler. | |
10892 | if test "$_lt_caught_CXX_error" != yes; then | |
10893 | # Code to be used in simple compile tests | |
10894 | lt_simple_compile_test_code="int some_variable = 0;" | |
9c60689e | 10895 | |
47aaa820 DWT |
10896 | # Code to be used in simple link tests |
10897 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
9c60689e | 10898 | |
47aaa820 | 10899 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9c60689e | 10900 | |
9c60689e | 10901 | |
9c60689e | 10902 | |
9c60689e | 10903 | |
9c60689e | 10904 | |
9c60689e | 10905 | |
47aaa820 DWT |
10906 | # If no C compiler was specified, use CC. |
10907 | LTCC=${LTCC-"$CC"} | |
9c60689e | 10908 | |
47aaa820 DWT |
10909 | # If no C compiler flags were specified, use CFLAGS. |
10910 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9c60689e | 10911 | |
47aaa820 DWT |
10912 | # Allow CC to be a program name with arguments. |
10913 | compiler=$CC | |
9c60689e | 10914 | |
9c60689e | 10915 | |
47aaa820 DWT |
10916 | # save warnings/boilerplate of simple test code |
10917 | ac_outfile=conftest.$ac_objext | |
10918 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10919 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10920 | _lt_compiler_boilerplate=`cat conftest.err` | |
10921 | $RM conftest* | |
9c60689e | 10922 | |
47aaa820 DWT |
10923 | ac_outfile=conftest.$ac_objext |
10924 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
10925 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10926 | _lt_linker_boilerplate=`cat conftest.err` | |
10927 | $RM -r conftest* | |
9c60689e | 10928 | |
9c60689e | 10929 | |
47aaa820 DWT |
10930 | # Allow CC to be a program name with arguments. |
10931 | lt_save_CC=$CC | |
10932 | lt_save_LD=$LD | |
10933 | lt_save_GCC=$GCC | |
10934 | GCC=$GXX | |
10935 | lt_save_with_gnu_ld=$with_gnu_ld | |
10936 | lt_save_path_LD=$lt_cv_path_LD | |
10937 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10938 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
9c60689e | 10939 | else |
47aaa820 | 10940 | $as_unset lt_cv_prog_gnu_ld |
9c60689e | 10941 | fi |
47aaa820 DWT |
10942 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10943 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
9c60689e | 10944 | else |
47aaa820 | 10945 | $as_unset lt_cv_path_LD |
9c60689e | 10946 | fi |
47aaa820 DWT |
10947 | test -z "${LDCXX+set}" || LD=$LDCXX |
10948 | CC=${CXX-"c++"} | |
10949 | compiler=$CC | |
10950 | compiler_CXX=$CC | |
10951 | for cc_temp in $compiler""; do | |
10952 | case $cc_temp in | |
10953 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10954 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10955 | \-*) ;; | |
10956 | *) break;; | |
10957 | esac | |
10958 | done | |
10959 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9c60689e DWT |
10960 | |
10961 | ||
47aaa820 DWT |
10962 | if test -n "$compiler"; then |
10963 | # We don't want -fno-exception when compiling C++ code, so set the | |
10964 | # no_builtin_flag separately | |
10965 | if test "$GXX" = yes; then | |
10966 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10967 | else | |
10968 | lt_prog_compiler_no_builtin_flag_CXX= | |
10969 | fi | |
9c60689e | 10970 | |
47aaa820 DWT |
10971 | if test "$GXX" = yes; then |
10972 | # Set up default GNU C++ configuration | |
10973 | ||
10974 | ||
10975 | ||
10976 | # Check whether --with-gnu-ld was given. | |
10977 | if test "${with_gnu_ld+set}" = set; then : | |
10978 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 10979 | else |
47aaa820 | 10980 | with_gnu_ld=no |
9c60689e DWT |
10981 | fi |
10982 | ||
47aaa820 DWT |
10983 | ac_prog=ld |
10984 | if test "$GCC" = yes; then | |
10985 | # Check if gcc -print-prog-name=ld gives a path. | |
10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
10987 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
10988 | case $host in | |
10989 | *-*-mingw*) | |
10990 | # gcc leaves a trailing carriage return which upsets mingw | |
10991 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10992 | *) | |
10993 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10994 | esac | |
10995 | case $ac_prog in | |
10996 | # Accept absolute paths. | |
10997 | [\\/]* | ?:[\\/]*) | |
10998 | re_direlt='/[^/][^/]*/\.\./' | |
10999 | # Canonicalize the pathname of ld | |
11000 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11001 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11002 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11003 | done | |
11004 | test -z "$LD" && LD="$ac_prog" | |
11005 | ;; | |
11006 | "") | |
11007 | # If it fails, then pretend we aren't using GCC. | |
11008 | ac_prog=ld | |
11009 | ;; | |
11010 | *) | |
11011 | # If it is relative, then search for the first ld in PATH. | |
11012 | with_gnu_ld=unknown | |
11013 | ;; | |
11014 | esac | |
11015 | elif test "$with_gnu_ld" = yes; then | |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11017 | $as_echo_n "checking for GNU ld... " >&6; } | |
11018 | else | |
11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11020 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 11021 | fi |
47aaa820 | 11022 | if test "${lt_cv_path_LD+set}" = set; then : |
9c60689e DWT |
11023 | $as_echo_n "(cached) " >&6 |
11024 | else | |
47aaa820 DWT |
11025 | if test -z "$LD"; then |
11026 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11027 | for ac_dir in $PATH; do | |
11028 | IFS="$lt_save_ifs" | |
11029 | test -z "$ac_dir" && ac_dir=. | |
11030 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11031 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11032 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11033 | # but apparently some variants of GNU ld only accept -v. | |
11034 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11035 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11036 | *GNU* | *'with BFD'*) | |
11037 | test "$with_gnu_ld" != no && break | |
11038 | ;; | |
11039 | *) | |
11040 | test "$with_gnu_ld" != yes && break | |
11041 | ;; | |
11042 | esac | |
11043 | fi | |
9c60689e | 11044 | done |
47aaa820 DWT |
11045 | IFS="$lt_save_ifs" |
11046 | else | |
11047 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9c60689e DWT |
11048 | fi |
11049 | fi | |
47aaa820 DWT |
11050 | |
11051 | LD="$lt_cv_path_LD" | |
11052 | if test -n "$LD"; then | |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11054 | $as_echo "$LD" >&6; } | |
9c60689e DWT |
11055 | else |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11057 | $as_echo "no" >&6; } | |
11058 | fi | |
47aaa820 DWT |
11059 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11061 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11062 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11063 | $as_echo_n "(cached) " >&6 | |
11064 | else | |
11065 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11066 | case `$LD -v 2>&1 </dev/null` in | |
11067 | *GNU* | *'with BFD'*) | |
11068 | lt_cv_prog_gnu_ld=yes | |
11069 | ;; | |
11070 | *) | |
11071 | lt_cv_prog_gnu_ld=no | |
11072 | ;; | |
11073 | esac | |
11074 | fi | |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11076 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11077 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
9c60689e DWT |
11078 | |
11079 | ||
9c60689e | 11080 | |
9c60689e | 11081 | |
9c60689e | 11082 | |
9c60689e | 11083 | |
9c60689e | 11084 | |
47aaa820 DWT |
11085 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11086 | # archiving commands below assume that GNU ld is being used. | |
11087 | if test "$with_gnu_ld" = yes; then | |
11088 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11089 | 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 | 11090 | |
47aaa820 DWT |
11091 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11092 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11093 | |
47aaa820 DWT |
11094 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11095 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11096 | # investigate it a little bit more. (MM) | |
11097 | wlarc='${wl}' | |
9c60689e | 11098 | |
47aaa820 DWT |
11099 | # ancient GNU ld didn't support --whole-archive et. al. |
11100 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11101 | $GREP 'no-whole-archive' > /dev/null; then | |
11102 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11103 | else | |
11104 | whole_archive_flag_spec_CXX= | |
11105 | fi | |
11106 | else | |
11107 | with_gnu_ld=no | |
11108 | wlarc= | |
11109 | ||
11110 | # A generic and very simple default shared library creation | |
11111 | # command for GNU C++ for the case where it uses the native | |
11112 | # linker, instead of GNU ld. If possible, this setting should | |
11113 | # overridden to take advantage of the native linker features on | |
11114 | # the platform it is being used on. | |
11115 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11116 | fi | |
11117 | ||
11118 | # Commands to make compiler produce verbose output that lists | |
11119 | # what "hidden" libraries, object files and flags are used when | |
11120 | # linking a shared library. | |
11121 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11122 | ||
11123 | else | |
11124 | GXX=no | |
11125 | with_gnu_ld=no | |
11126 | wlarc= | |
11127 | fi | |
11128 | ||
11129 | # PORTME: fill in a description of your system's C++ link characteristics | |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11131 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11132 | ld_shlibs_CXX=yes | |
11133 | case $host_os in | |
11134 | aix3*) | |
11135 | # FIXME: insert proper C++ library support | |
11136 | ld_shlibs_CXX=no | |
11137 | ;; | |
11138 | aix[4-9]*) | |
11139 | if test "$host_cpu" = ia64; then | |
11140 | # On IA64, the linker does run time linking by default, so we don't | |
11141 | # have to do anything special. | |
11142 | aix_use_runtimelinking=no | |
11143 | exp_sym_flag='-Bexport' | |
11144 | no_entry_flag="" | |
11145 | else | |
11146 | aix_use_runtimelinking=no | |
11147 | ||
11148 | # Test if we are trying to use run time linking or normal | |
11149 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11150 | # need to do runtime linking. | |
11151 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11152 | for ld_flag in $LDFLAGS; do | |
11153 | case $ld_flag in | |
11154 | *-brtl*) | |
11155 | aix_use_runtimelinking=yes | |
11156 | break | |
11157 | ;; | |
11158 | esac | |
11159 | done | |
11160 | ;; | |
11161 | esac | |
11162 | ||
11163 | exp_sym_flag='-bexport' | |
11164 | no_entry_flag='-bnoentry' | |
11165 | fi | |
11166 | ||
11167 | # When large executables or shared objects are built, AIX ld can | |
11168 | # have problems creating the table of contents. If linking a library | |
11169 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11170 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11171 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11172 | ||
11173 | archive_cmds_CXX='' | |
11174 | hardcode_direct_CXX=yes | |
11175 | hardcode_direct_absolute_CXX=yes | |
11176 | hardcode_libdir_separator_CXX=':' | |
11177 | link_all_deplibs_CXX=yes | |
11178 | file_list_spec_CXX='${wl}-f,' | |
11179 | ||
11180 | if test "$GXX" = yes; then | |
11181 | case $host_os in aix4.[012]|aix4.[012].*) | |
11182 | # We only want to do this on AIX 4.2 and lower, the check | |
11183 | # below for broken collect2 doesn't work under 4.3+ | |
11184 | collect2name=`${CC} -print-prog-name=collect2` | |
11185 | if test -f "$collect2name" && | |
11186 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11187 | then | |
11188 | # We have reworked collect2 | |
11189 | : | |
11190 | else | |
11191 | # We have old collect2 | |
11192 | hardcode_direct_CXX=unsupported | |
11193 | # It fails to find uninstalled libraries when the uninstalled | |
11194 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11195 | # to unsupported forces relinking | |
11196 | hardcode_minus_L_CXX=yes | |
11197 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11198 | hardcode_libdir_separator_CXX= | |
11199 | fi | |
11200 | esac | |
11201 | shared_flag='-shared' | |
11202 | if test "$aix_use_runtimelinking" = yes; then | |
11203 | shared_flag="$shared_flag "'${wl}-G' | |
11204 | fi | |
11205 | else | |
11206 | # not using gcc | |
11207 | if test "$host_cpu" = ia64; then | |
11208 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11209 | # chokes on -Wl,-G. The following line is correct: | |
11210 | shared_flag='-G' | |
11211 | else | |
11212 | if test "$aix_use_runtimelinking" = yes; then | |
11213 | shared_flag='${wl}-G' | |
11214 | else | |
11215 | shared_flag='${wl}-bM:SRE' | |
11216 | fi | |
11217 | fi | |
11218 | fi | |
11219 | ||
11220 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11221 | # It seems that -bexpall does not export symbols beginning with | |
11222 | # underscore (_), so it is better to generate a list of symbols to | |
11223 | # export. | |
11224 | always_export_symbols_CXX=yes | |
11225 | if test "$aix_use_runtimelinking" = yes; then | |
11226 | # Warning - without using the other runtime loading flags (-brtl), | |
11227 | # -berok will link without error, but may produce a broken library. | |
11228 | allow_undefined_flag_CXX='-berok' | |
11229 | # Determine the default libpath from the value encoded in an empty | |
11230 | # executable. | |
11231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11232 | /* end confdefs.h. */ |
11233 | ||
11234 | int | |
11235 | main () | |
11236 | { | |
11237 | ||
11238 | ; | |
11239 | return 0; | |
11240 | } | |
11241 | _ACEOF | |
47aaa820 | 11242 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11243 | |
47aaa820 DWT |
11244 | lt_aix_libpath_sed=' |
11245 | /Import File Strings/,/^$/ { | |
11246 | /^0/ { | |
11247 | s/^0 *\(.*\)$/\1/ | |
11248 | p | |
11249 | } | |
11250 | }' | |
11251 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11252 | # Check for a 64-bit object if we didn't find anything. | |
11253 | if test -z "$aix_libpath"; then | |
11254 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11255 | fi | |
11256 | fi | |
11257 | rm -f core conftest.err conftest.$ac_objext \ | |
11258 | conftest$ac_exeext conftest.$ac_ext | |
11259 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11260 | ||
11261 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11262 | ||
11263 | 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" | |
11264 | else | |
11265 | if test "$host_cpu" = ia64; then | |
11266 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11267 | allow_undefined_flag_CXX="-z nodefs" | |
11268 | 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" | |
11269 | else | |
11270 | # Determine the default libpath from the value encoded in an | |
11271 | # empty executable. | |
11272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
11273 | /* end confdefs.h. */ |
11274 | ||
11275 | int | |
11276 | main () | |
11277 | { | |
11278 | ||
11279 | ; | |
11280 | return 0; | |
11281 | } | |
11282 | _ACEOF | |
47aaa820 | 11283 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e | 11284 | |
47aaa820 DWT |
11285 | lt_aix_libpath_sed=' |
11286 | /Import File Strings/,/^$/ { | |
11287 | /^0/ { | |
11288 | s/^0 *\(.*\)$/\1/ | |
11289 | p | |
11290 | } | |
11291 | }' | |
11292 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11293 | # Check for a 64-bit object if we didn't find anything. | |
11294 | if test -z "$aix_libpath"; then | |
11295 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9c60689e | 11296 | fi |
9c60689e | 11297 | fi |
47aaa820 DWT |
11298 | rm -f core conftest.err conftest.$ac_objext \ |
11299 | conftest$ac_exeext conftest.$ac_ext | |
11300 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9c60689e | 11301 | |
47aaa820 DWT |
11302 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11303 | # Warning - without using the other run time loading flags, | |
11304 | # -berok will link without error, but may produce a broken library. | |
11305 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11306 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11307 | # Exported symbols can be pulled into shared objects from archives | |
11308 | whole_archive_flag_spec_CXX='$convenience' | |
11309 | archive_cmds_need_lc_CXX=yes | |
11310 | # This is similar to how AIX traditionally builds its shared | |
11311 | # libraries. | |
11312 | 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' | |
11313 | fi | |
11314 | fi | |
11315 | ;; | |
9c60689e | 11316 | |
47aaa820 DWT |
11317 | beos*) |
11318 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11319 | allow_undefined_flag_CXX=unsupported | |
11320 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11321 | # support --undefined. This deserves some investigation. FIXME | |
11322 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11323 | else | |
11324 | ld_shlibs_CXX=no | |
11325 | fi | |
11326 | ;; | |
9c60689e | 11327 | |
47aaa820 DWT |
11328 | chorus*) |
11329 | case $cc_basename in | |
11330 | *) | |
11331 | # FIXME: insert proper C++ library support | |
11332 | ld_shlibs_CXX=no | |
11333 | ;; | |
11334 | esac | |
11335 | ;; | |
9c60689e | 11336 | |
47aaa820 DWT |
11337 | cygwin* | mingw* | pw32* | cegcc*) |
11338 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11339 | # as there is no search path for DLLs. | |
11340 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11341 | allow_undefined_flag_CXX=unsupported | |
11342 | always_export_symbols_CXX=no | |
11343 | enable_shared_with_static_runtimes_CXX=yes | |
9c60689e | 11344 | |
47aaa820 DWT |
11345 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
11346 | 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' | |
11347 | # If the export-symbols file already is a .def file (1st line | |
11348 | # is EXPORTS), use it as is; otherwise, prepend... | |
11349 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11350 | cp $export_symbols $output_objdir/$soname.def; | |
11351 | else | |
11352 | echo EXPORTS > $output_objdir/$soname.def; | |
11353 | cat $export_symbols >> $output_objdir/$soname.def; | |
11354 | fi~ | |
11355 | $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' | |
11356 | else | |
11357 | ld_shlibs_CXX=no | |
11358 | fi | |
11359 | ;; | |
11360 | darwin* | rhapsody*) | |
9c60689e | 11361 | |
9c60689e | 11362 | |
47aaa820 DWT |
11363 | archive_cmds_need_lc_CXX=no |
11364 | hardcode_direct_CXX=no | |
11365 | hardcode_automatic_CXX=yes | |
11366 | hardcode_shlibpath_var_CXX=unsupported | |
11367 | whole_archive_flag_spec_CXX='' | |
11368 | link_all_deplibs_CXX=yes | |
11369 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11370 | case $cc_basename in | |
11371 | ifort*) _lt_dar_can_shared=yes ;; | |
11372 | *) _lt_dar_can_shared=$GCC ;; | |
11373 | esac | |
11374 | if test "$_lt_dar_can_shared" = "yes"; then | |
11375 | output_verbose_link_cmd=echo | |
11376 | 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}" | |
11377 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11378 | 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}" | |
11379 | 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}" | |
11380 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11381 | 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}" | |
11382 | 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}" | |
11383 | fi | |
9c60689e | 11384 | |
47aaa820 DWT |
11385 | else |
11386 | ld_shlibs_CXX=no | |
11387 | fi | |
9c60689e | 11388 | |
47aaa820 | 11389 | ;; |
9c60689e | 11390 | |
47aaa820 DWT |
11391 | dgux*) |
11392 | case $cc_basename in | |
11393 | ec++*) | |
11394 | # FIXME: insert proper C++ library support | |
11395 | ld_shlibs_CXX=no | |
11396 | ;; | |
11397 | ghcx*) | |
11398 | # Green Hills C++ Compiler | |
11399 | # FIXME: insert proper C++ library support | |
11400 | ld_shlibs_CXX=no | |
11401 | ;; | |
11402 | *) | |
11403 | # FIXME: insert proper C++ library support | |
11404 | ld_shlibs_CXX=no | |
11405 | ;; | |
11406 | esac | |
11407 | ;; | |
9c60689e | 11408 | |
47aaa820 DWT |
11409 | freebsd[12]*) |
11410 | # C++ shared libraries reported to be fairly broken before | |
11411 | # switch to ELF | |
11412 | ld_shlibs_CXX=no | |
11413 | ;; | |
9c60689e | 11414 | |
47aaa820 DWT |
11415 | freebsd-elf*) |
11416 | archive_cmds_need_lc_CXX=no | |
11417 | ;; | |
9c60689e | 11418 | |
47aaa820 DWT |
11419 | freebsd* | dragonfly*) |
11420 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11421 | # conventions | |
11422 | ld_shlibs_CXX=yes | |
11423 | ;; | |
9c60689e | 11424 | |
47aaa820 DWT |
11425 | gnu*) |
11426 | ;; | |
9c60689e | 11427 | |
47aaa820 DWT |
11428 | hpux9*) |
11429 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11430 | hardcode_libdir_separator_CXX=: | |
11431 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11432 | hardcode_direct_CXX=yes | |
11433 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11434 | # but as the default | |
11435 | # location of the library. | |
9c60689e | 11436 | |
47aaa820 DWT |
11437 | case $cc_basename in |
11438 | CC*) | |
11439 | # FIXME: insert proper C++ library support | |
11440 | ld_shlibs_CXX=no | |
11441 | ;; | |
11442 | aCC*) | |
11443 | 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' | |
11444 | # Commands to make compiler produce verbose output that lists | |
11445 | # what "hidden" libraries, object files and flags are used when | |
11446 | # linking a shared library. | |
11447 | # | |
11448 | # There doesn't appear to be a way to prevent this compiler from | |
11449 | # explicitly linking system object files so we need to strip them | |
11450 | # from the output so that they don't get included in the library | |
11451 | # dependencies. | |
11452 | 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' | |
11453 | ;; | |
11454 | *) | |
11455 | if test "$GXX" = yes; then | |
11456 | 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' | |
11457 | else | |
11458 | # FIXME: insert proper C++ library support | |
11459 | ld_shlibs_CXX=no | |
11460 | fi | |
11461 | ;; | |
11462 | esac | |
11463 | ;; | |
9c60689e | 11464 | |
47aaa820 DWT |
11465 | hpux10*|hpux11*) |
11466 | if test $with_gnu_ld = no; then | |
11467 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11468 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11469 | |
47aaa820 DWT |
11470 | case $host_cpu in |
11471 | hppa*64*|ia64*) | |
11472 | ;; | |
11473 | *) | |
11474 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11475 | ;; | |
11476 | esac | |
11477 | fi | |
11478 | case $host_cpu in | |
11479 | hppa*64*|ia64*) | |
11480 | hardcode_direct_CXX=no | |
11481 | hardcode_shlibpath_var_CXX=no | |
11482 | ;; | |
11483 | *) | |
11484 | hardcode_direct_CXX=yes | |
11485 | hardcode_direct_absolute_CXX=yes | |
11486 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11487 | # but as the default | |
11488 | # location of the library. | |
11489 | ;; | |
11490 | esac | |
9c60689e | 11491 | |
47aaa820 DWT |
11492 | case $cc_basename in |
11493 | CC*) | |
11494 | # FIXME: insert proper C++ library support | |
11495 | ld_shlibs_CXX=no | |
11496 | ;; | |
11497 | aCC*) | |
11498 | case $host_cpu in | |
11499 | hppa*64*) | |
11500 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11501 | ;; | |
11502 | ia64*) | |
11503 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11504 | ;; | |
11505 | *) | |
11506 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11507 | ;; | |
11508 | esac | |
11509 | # Commands to make compiler produce verbose output that lists | |
11510 | # what "hidden" libraries, object files and flags are used when | |
11511 | # linking a shared library. | |
11512 | # | |
11513 | # There doesn't appear to be a way to prevent this compiler from | |
11514 | # explicitly linking system object files so we need to strip them | |
11515 | # from the output so that they don't get included in the library | |
11516 | # dependencies. | |
11517 | 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' | |
11518 | ;; | |
11519 | *) | |
11520 | if test "$GXX" = yes; then | |
11521 | if test $with_gnu_ld = no; then | |
11522 | case $host_cpu in | |
11523 | hppa*64*) | |
11524 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11525 | ;; | |
11526 | ia64*) | |
11527 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11528 | ;; | |
11529 | *) | |
11530 | 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' | |
11531 | ;; | |
11532 | esac | |
11533 | fi | |
11534 | else | |
11535 | # FIXME: insert proper C++ library support | |
11536 | ld_shlibs_CXX=no | |
11537 | fi | |
11538 | ;; | |
11539 | esac | |
11540 | ;; | |
9c60689e | 11541 | |
47aaa820 DWT |
11542 | interix[3-9]*) |
11543 | hardcode_direct_CXX=no | |
11544 | hardcode_shlibpath_var_CXX=no | |
11545 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11546 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11547 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11548 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11549 | # default) and relocated if they conflict, which is a slow very memory | |
11550 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11551 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11552 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11553 | 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' | |
11554 | 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' | |
11555 | ;; | |
11556 | irix5* | irix6*) | |
11557 | case $cc_basename in | |
11558 | CC*) | |
11559 | # SGI C++ | |
11560 | 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 | 11561 | |
47aaa820 DWT |
11562 | # Archives containing C++ object files must be created using |
11563 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11564 | # necessary to make sure instantiated templates are included | |
11565 | # in the archive. | |
11566 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11567 | ;; | |
11568 | *) | |
11569 | if test "$GXX" = yes; then | |
11570 | if test "$with_gnu_ld" = no; then | |
11571 | 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' | |
11572 | else | |
11573 | 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' | |
11574 | fi | |
11575 | fi | |
11576 | link_all_deplibs_CXX=yes | |
11577 | ;; | |
11578 | esac | |
11579 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11580 | hardcode_libdir_separator_CXX=: | |
11581 | inherit_rpath_CXX=yes | |
11582 | ;; | |
9c60689e | 11583 | |
47aaa820 DWT |
11584 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
11585 | case $cc_basename in | |
11586 | KCC*) | |
11587 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11588 | |
47aaa820 DWT |
11589 | # KCC will only create a shared library if the output file |
11590 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11591 | # to its proper name (with version) after linking. | |
11592 | 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' | |
11593 | 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' | |
11594 | # Commands to make compiler produce verbose output that lists | |
11595 | # what "hidden" libraries, object files and flags are used when | |
11596 | # linking a shared library. | |
11597 | # | |
11598 | # There doesn't appear to be a way to prevent this compiler from | |
11599 | # explicitly linking system object files so we need to strip them | |
11600 | # from the output so that they don't get included in the library | |
11601 | # dependencies. | |
11602 | 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 | 11603 | |
47aaa820 DWT |
11604 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11605 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
9c60689e | 11606 | |
47aaa820 DWT |
11607 | # Archives containing C++ object files must be created using |
11608 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11609 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11610 | ;; | |
11611 | icpc* | ecpc* ) | |
11612 | # Intel C++ | |
11613 | with_gnu_ld=yes | |
11614 | # version 8.0 and above of icpc choke on multiply defined symbols | |
11615 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11616 | # earlier do not add the objects themselves. | |
11617 | case `$CC -V 2>&1` in | |
11618 | *"Version 7."*) | |
11619 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11620 | 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' | |
11621 | ;; | |
11622 | *) # Version 8.0 or newer | |
11623 | tmp_idyn= | |
11624 | case $host_cpu in | |
11625 | ia64*) tmp_idyn=' -i_dynamic';; | |
11626 | esac | |
11627 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11628 | 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' | |
11629 | ;; | |
11630 | esac | |
11631 | archive_cmds_need_lc_CXX=no | |
11632 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11633 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11634 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11635 | ;; | |
11636 | pgCC* | pgcpp*) | |
11637 | # Portland Group C++ compiler | |
11638 | case `$CC -V` in | |
11639 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
11640 | prelink_cmds_CXX='tpldir=Template.dir~ | |
11641 | rm -rf $tpldir~ | |
11642 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
11643 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
11644 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
11645 | rm -rf $tpldir~ | |
11646 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
11647 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
11648 | $RANLIB $oldlib' | |
11649 | archive_cmds_CXX='tpldir=Template.dir~ | |
11650 | rm -rf $tpldir~ | |
11651 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11652 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11653 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
11654 | rm -rf $tpldir~ | |
11655 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
11656 | $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' | |
11657 | ;; | |
11658 | *) # Version 6 will use weak symbols | |
11659 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11660 | 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' | |
11661 | ;; | |
11662 | esac | |
9c60689e | 11663 | |
47aaa820 DWT |
11664 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11665 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11666 | 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' | |
11667 | ;; | |
11668 | cxx*) | |
11669 | # Compaq C++ | |
11670 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11671 | 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 | 11672 | |
47aaa820 DWT |
11673 | runpath_var=LD_RUN_PATH |
11674 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11675 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11676 | |
47aaa820 DWT |
11677 | # Commands to make compiler produce verbose output that lists |
11678 | # what "hidden" libraries, object files and flags are used when | |
11679 | # linking a shared library. | |
11680 | # | |
11681 | # There doesn't appear to be a way to prevent this compiler from | |
11682 | # explicitly linking system object files so we need to strip them | |
11683 | # from the output so that they don't get included in the library | |
11684 | # dependencies. | |
11685 | 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' | |
11686 | ;; | |
11687 | xl*) | |
11688 | # IBM XL 8.0 on PPC, with GNU ld | |
11689 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11690 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11691 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11692 | if test "x$supports_anon_versioning" = xyes; then | |
11693 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
11694 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
11695 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
11696 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
11697 | fi | |
11698 | ;; | |
11699 | *) | |
11700 | case `$CC -V 2>&1 | sed 5q` in | |
11701 | *Sun\ C*) | |
11702 | # Sun C++ 5.9 | |
11703 | no_undefined_flag_CXX=' -zdefs' | |
11704 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11705 | 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' | |
11706 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11707 | 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' | |
11708 | compiler_needs_object_CXX=yes | |
9c60689e | 11709 | |
47aaa820 DWT |
11710 | # Not sure whether something based on |
11711 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
11712 | # would be better. | |
11713 | output_verbose_link_cmd='echo' | |
9c60689e | 11714 | |
47aaa820 DWT |
11715 | # Archives containing C++ object files must be created using |
11716 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11717 | # necessary to make sure instantiated templates are included | |
11718 | # in the archive. | |
11719 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11720 | ;; | |
11721 | esac | |
11722 | ;; | |
11723 | esac | |
11724 | ;; | |
9c60689e | 11725 | |
47aaa820 DWT |
11726 | lynxos*) |
11727 | # FIXME: insert proper C++ library support | |
11728 | ld_shlibs_CXX=no | |
11729 | ;; | |
9c60689e | 11730 | |
47aaa820 DWT |
11731 | m88k*) |
11732 | # FIXME: insert proper C++ library support | |
11733 | ld_shlibs_CXX=no | |
11734 | ;; | |
9c60689e | 11735 | |
47aaa820 DWT |
11736 | mvs*) |
11737 | case $cc_basename in | |
11738 | cxx*) | |
11739 | # FIXME: insert proper C++ library support | |
11740 | ld_shlibs_CXX=no | |
11741 | ;; | |
11742 | *) | |
11743 | # FIXME: insert proper C++ library support | |
11744 | ld_shlibs_CXX=no | |
11745 | ;; | |
11746 | esac | |
11747 | ;; | |
9c60689e | 11748 | |
47aaa820 DWT |
11749 | netbsd*) |
11750 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11751 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11752 | wlarc= | |
11753 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11754 | hardcode_direct_CXX=yes | |
11755 | hardcode_shlibpath_var_CXX=no | |
11756 | fi | |
11757 | # Workaround some broken pre-1.5 toolchains | |
11758 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
9c60689e | 11759 | ;; |
47aaa820 DWT |
11760 | |
11761 | *nto* | *qnx*) | |
11762 | ld_shlibs_CXX=yes | |
9c60689e | 11763 | ;; |
9c60689e | 11764 | |
47aaa820 DWT |
11765 | openbsd2*) |
11766 | # C++ shared libraries are fairly broken | |
11767 | ld_shlibs_CXX=no | |
11768 | ;; | |
9c60689e | 11769 | |
47aaa820 DWT |
11770 | openbsd*) |
11771 | if test -f /usr/libexec/ld.so; then | |
11772 | hardcode_direct_CXX=yes | |
11773 | hardcode_shlibpath_var_CXX=no | |
11774 | hardcode_direct_absolute_CXX=yes | |
11775 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11776 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11777 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11778 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11779 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11780 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11781 | fi | |
11782 | output_verbose_link_cmd=echo | |
11783 | else | |
11784 | ld_shlibs_CXX=no | |
11785 | fi | |
11786 | ;; | |
9c60689e | 11787 | |
47aaa820 DWT |
11788 | osf3* | osf4* | osf5*) |
11789 | case $cc_basename in | |
11790 | KCC*) | |
11791 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
9c60689e | 11792 | |
47aaa820 DWT |
11793 | # KCC will only create a shared library if the output file |
11794 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11795 | # to its proper name (with version) after linking. | |
11796 | 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 | 11797 | |
47aaa820 DWT |
11798 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11799 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11800 | |
47aaa820 DWT |
11801 | # Archives containing C++ object files must be created using |
11802 | # the KAI C++ compiler. | |
11803 | case $host in | |
11804 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
11805 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
11806 | esac | |
11807 | ;; | |
11808 | RCC*) | |
11809 | # Rational C++ 2.4.1 | |
11810 | # FIXME: insert proper C++ library support | |
11811 | ld_shlibs_CXX=no | |
11812 | ;; | |
11813 | cxx*) | |
11814 | case $host in | |
11815 | osf3*) | |
11816 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11817 | 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' | |
11818 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11819 | ;; | |
11820 | *) | |
11821 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11822 | 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' | |
11823 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11824 | echo "-hidden">> $lib.exp~ | |
11825 | $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~ | |
11826 | $RM $lib.exp' | |
11827 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11828 | ;; | |
11829 | esac | |
9c60689e | 11830 | |
47aaa820 | 11831 | hardcode_libdir_separator_CXX=: |
9c60689e | 11832 | |
47aaa820 DWT |
11833 | # Commands to make compiler produce verbose output that lists |
11834 | # what "hidden" libraries, object files and flags are used when | |
11835 | # linking a shared library. | |
11836 | # | |
11837 | # There doesn't appear to be a way to prevent this compiler from | |
11838 | # explicitly linking system object files so we need to strip them | |
11839 | # from the output so that they don't get included in the library | |
11840 | # dependencies. | |
11841 | 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' | |
11842 | ;; | |
11843 | *) | |
11844 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11845 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11846 | case $host in | |
11847 | osf3*) | |
11848 | 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' | |
11849 | ;; | |
11850 | *) | |
11851 | 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' | |
11852 | ;; | |
11853 | esac | |
9c60689e | 11854 | |
47aaa820 DWT |
11855 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11856 | hardcode_libdir_separator_CXX=: | |
9c60689e | 11857 | |
47aaa820 DWT |
11858 | # Commands to make compiler produce verbose output that lists |
11859 | # what "hidden" libraries, object files and flags are used when | |
11860 | # linking a shared library. | |
11861 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
9c60689e | 11862 | |
47aaa820 DWT |
11863 | else |
11864 | # FIXME: insert proper C++ library support | |
11865 | ld_shlibs_CXX=no | |
11866 | fi | |
11867 | ;; | |
11868 | esac | |
11869 | ;; | |
9c60689e | 11870 | |
47aaa820 | 11871 | psos*) |
9c60689e DWT |
11872 | # FIXME: insert proper C++ library support |
11873 | ld_shlibs_CXX=no | |
11874 | ;; | |
9c60689e | 11875 | |
47aaa820 DWT |
11876 | sunos4*) |
11877 | case $cc_basename in | |
11878 | CC*) | |
11879 | # Sun C++ 4.x | |
11880 | # FIXME: insert proper C++ library support | |
11881 | ld_shlibs_CXX=no | |
9c60689e | 11882 | ;; |
47aaa820 DWT |
11883 | lcc*) |
11884 | # Lucid | |
11885 | # FIXME: insert proper C++ library support | |
11886 | ld_shlibs_CXX=no | |
11887 | ;; | |
11888 | *) | |
11889 | # FIXME: insert proper C++ library support | |
11890 | ld_shlibs_CXX=no | |
11891 | ;; | |
11892 | esac | |
11893 | ;; | |
9c60689e | 11894 | |
47aaa820 DWT |
11895 | solaris*) |
11896 | case $cc_basename in | |
11897 | CC*) | |
11898 | # Sun C++ 4.2, 5.x and Centerline C++ | |
11899 | archive_cmds_need_lc_CXX=yes | |
11900 | no_undefined_flag_CXX=' -zdefs' | |
11901 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11902 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11903 | $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 | 11904 | |
47aaa820 DWT |
11905 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11906 | hardcode_shlibpath_var_CXX=no | |
11907 | case $host_os in | |
11908 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11909 | *) | |
11910 | # The compiler driver will combine and reorder linker options, | |
11911 | # but understands `-z linker_flag'. | |
11912 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11913 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
11914 | ;; | |
11915 | esac | |
11916 | link_all_deplibs_CXX=yes | |
9c60689e | 11917 | |
47aaa820 | 11918 | output_verbose_link_cmd='echo' |
9c60689e | 11919 | |
47aaa820 DWT |
11920 | # Archives containing C++ object files must be created using |
11921 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11922 | # necessary to make sure instantiated templates are included | |
11923 | # in the archive. | |
11924 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11925 | ;; | |
11926 | gcx*) | |
11927 | # Green Hills C++ Compiler | |
11928 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
9c60689e | 11929 | |
47aaa820 DWT |
11930 | # The C++ compiler must be used to create the archive. |
11931 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11932 | ;; | |
11933 | *) | |
11934 | # GNU C++ compiler with Solaris linker | |
11935 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11936 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11937 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
11938 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11939 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11940 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11941 | |
47aaa820 DWT |
11942 | # Commands to make compiler produce verbose output that lists |
11943 | # what "hidden" libraries, object files and flags are used when | |
11944 | # linking a shared library. | |
11945 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11946 | else | |
11947 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11948 | # platform. | |
11949 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11950 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11951 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
9c60689e | 11952 | |
47aaa820 DWT |
11953 | # Commands to make compiler produce verbose output that lists |
11954 | # what "hidden" libraries, object files and flags are used when | |
11955 | # linking a shared library. | |
11956 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11957 | fi | |
9c60689e | 11958 | |
47aaa820 DWT |
11959 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11960 | case $host_os in | |
11961 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11962 | *) | |
11963 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11964 | ;; | |
11965 | esac | |
11966 | fi | |
11967 | ;; | |
11968 | esac | |
11969 | ;; | |
9c60689e | 11970 | |
47aaa820 DWT |
11971 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11972 | no_undefined_flag_CXX='${wl}-z,text' | |
11973 | archive_cmds_need_lc_CXX=no | |
11974 | hardcode_shlibpath_var_CXX=no | |
11975 | runpath_var='LD_RUN_PATH' | |
9c60689e | 11976 | |
47aaa820 DWT |
11977 | case $cc_basename in |
11978 | CC*) | |
11979 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11980 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11981 | ;; | |
11982 | *) | |
11983 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11984 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11985 | ;; | |
11986 | esac | |
11987 | ;; | |
9c60689e | 11988 | |
47aaa820 DWT |
11989 | sysv5* | sco3.2v5* | sco5v6*) |
11990 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11991 | # link with -lc, and that would cause any symbols used from libc to | |
11992 | # always be unresolved, which means just about no library would | |
11993 | # ever link correctly. If we're not using GNU ld we use -z text | |
11994 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11995 | # as -z defs. | |
11996 | no_undefined_flag_CXX='${wl}-z,text' | |
11997 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11998 | archive_cmds_need_lc_CXX=no | |
11999 | hardcode_shlibpath_var_CXX=no | |
12000 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12001 | hardcode_libdir_separator_CXX=':' | |
12002 | link_all_deplibs_CXX=yes | |
12003 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12004 | runpath_var='LD_RUN_PATH' | |
9c60689e | 12005 | |
47aaa820 DWT |
12006 | case $cc_basename in |
12007 | CC*) | |
12008 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12009 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12010 | ;; | |
12011 | *) | |
12012 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12013 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12014 | ;; | |
12015 | esac | |
12016 | ;; | |
9c60689e | 12017 | |
47aaa820 | 12018 | tandem*) |
9c60689e | 12019 | case $cc_basename in |
47aaa820 DWT |
12020 | NCC*) |
12021 | # NonStop-UX NCC 3.20 | |
12022 | # FIXME: insert proper C++ library support | |
12023 | ld_shlibs_CXX=no | |
12024 | ;; | |
9c60689e | 12025 | *) |
47aaa820 DWT |
12026 | # FIXME: insert proper C++ library support |
12027 | ld_shlibs_CXX=no | |
12028 | ;; | |
9c60689e DWT |
12029 | esac |
12030 | ;; | |
12031 | ||
47aaa820 DWT |
12032 | vxworks*) |
12033 | # FIXME: insert proper C++ library support | |
12034 | ld_shlibs_CXX=no | |
12035 | ;; | |
9c60689e | 12036 | |
47aaa820 DWT |
12037 | *) |
12038 | # FIXME: insert proper C++ library support | |
12039 | ld_shlibs_CXX=no | |
9c60689e | 12040 | ;; |
47aaa820 | 12041 | esac |
9c60689e | 12042 | |
47aaa820 DWT |
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
12044 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12045 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9c60689e | 12046 | |
47aaa820 DWT |
12047 | GCC_CXX="$GXX" |
12048 | LD_CXX="$LD" | |
9c60689e | 12049 | |
47aaa820 DWT |
12050 | ## CAVEAT EMPTOR: |
12051 | ## There is no encapsulation within the following macros, do not change | |
12052 | ## the running order or otherwise move them around unless you know exactly | |
12053 | ## what you are doing... | |
12054 | # Dependencies to place before and after the object being linked: | |
12055 | predep_objects_CXX= | |
12056 | postdep_objects_CXX= | |
12057 | predeps_CXX= | |
12058 | postdeps_CXX= | |
12059 | compiler_lib_search_path_CXX= | |
9c60689e | 12060 | |
47aaa820 DWT |
12061 | cat > conftest.$ac_ext <<_LT_EOF |
12062 | class Foo | |
12063 | { | |
12064 | public: | |
12065 | Foo (void) { a = 0; } | |
12066 | private: | |
12067 | int a; | |
12068 | }; | |
12069 | _LT_EOF | |
9c60689e | 12070 | |
47aaa820 DWT |
12071 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12072 | (eval $ac_compile) 2>&5 | |
12073 | ac_status=$? | |
12074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12075 | test $ac_status = 0; }; then | |
12076 | # Parse the compiler output and extract the necessary | |
12077 | # objects, libraries and library flags. | |
9c60689e | 12078 | |
47aaa820 DWT |
12079 | # Sentinel used to keep track of whether or not we are before |
12080 | # the conftest object file. | |
12081 | pre_test_object_deps_done=no | |
9c60689e | 12082 | |
47aaa820 DWT |
12083 | for p in `eval "$output_verbose_link_cmd"`; do |
12084 | case $p in | |
9c60689e | 12085 | |
47aaa820 DWT |
12086 | -L* | -R* | -l*) |
12087 | # Some compilers place space between "-{L,R}" and the path. | |
12088 | # Remove the space. | |
12089 | if test $p = "-L" || | |
12090 | test $p = "-R"; then | |
12091 | prev=$p | |
12092 | continue | |
12093 | else | |
12094 | prev= | |
12095 | fi | |
9c60689e | 12096 | |
47aaa820 DWT |
12097 | if test "$pre_test_object_deps_done" = no; then |
12098 | case $p in | |
12099 | -L* | -R*) | |
12100 | # Internal compiler library paths should come after those | |
12101 | # provided the user. The postdeps already come after the | |
12102 | # user supplied libs so there is no need to process them. | |
12103 | if test -z "$compiler_lib_search_path_CXX"; then | |
12104 | compiler_lib_search_path_CXX="${prev}${p}" | |
12105 | else | |
12106 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12107 | fi | |
12108 | ;; | |
12109 | # The "-l" case would never come before the object being | |
12110 | # linked, so don't bother handling this case. | |
12111 | esac | |
12112 | else | |
12113 | if test -z "$postdeps_CXX"; then | |
12114 | postdeps_CXX="${prev}${p}" | |
12115 | else | |
12116 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12117 | fi | |
12118 | fi | |
12119 | ;; | |
9c60689e | 12120 | |
47aaa820 DWT |
12121 | *.$objext) |
12122 | # This assumes that the test object file only shows up | |
12123 | # once in the compiler output. | |
12124 | if test "$p" = "conftest.$objext"; then | |
12125 | pre_test_object_deps_done=yes | |
12126 | continue | |
12127 | fi | |
9c60689e | 12128 | |
47aaa820 DWT |
12129 | if test "$pre_test_object_deps_done" = no; then |
12130 | if test -z "$predep_objects_CXX"; then | |
12131 | predep_objects_CXX="$p" | |
12132 | else | |
12133 | predep_objects_CXX="$predep_objects_CXX $p" | |
12134 | fi | |
12135 | else | |
12136 | if test -z "$postdep_objects_CXX"; then | |
12137 | postdep_objects_CXX="$p" | |
12138 | else | |
12139 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12140 | fi | |
12141 | fi | |
12142 | ;; | |
9c60689e | 12143 | |
47aaa820 | 12144 | *) ;; # Ignore the rest. |
9c60689e | 12145 | |
47aaa820 DWT |
12146 | esac |
12147 | done | |
9c60689e | 12148 | |
47aaa820 DWT |
12149 | # Clean up. |
12150 | rm -f a.out a.exe | |
12151 | else | |
12152 | echo "libtool.m4: error: problem compiling CXX test program" | |
12153 | fi | |
9c60689e | 12154 | |
47aaa820 | 12155 | $RM -f confest.$objext |
9c60689e | 12156 | |
47aaa820 DWT |
12157 | # PORTME: override above test on systems where it is broken |
12158 | case $host_os in | |
12159 | interix[3-9]*) | |
12160 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12161 | # hack all around it, let's just trust "g++" to DTRT. | |
12162 | predep_objects_CXX= | |
12163 | postdep_objects_CXX= | |
12164 | postdeps_CXX= | |
12165 | ;; | |
9c60689e | 12166 | |
47aaa820 DWT |
12167 | linux*) |
12168 | case `$CC -V 2>&1 | sed 5q` in | |
12169 | *Sun\ C*) | |
12170 | # Sun C++ 5.9 | |
9c60689e | 12171 | |
47aaa820 DWT |
12172 | # The more standards-conforming stlport4 library is |
12173 | # incompatible with the Cstd library. Avoid specifying | |
12174 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12175 | # -library=stlport4 depends on it. | |
12176 | case " $CXX $CXXFLAGS " in | |
12177 | *" -library=stlport4 "*) | |
12178 | solaris_use_stlport4=yes | |
12179 | ;; | |
12180 | esac | |
9c60689e | 12181 | |
47aaa820 DWT |
12182 | if test "$solaris_use_stlport4" != yes; then |
12183 | postdeps_CXX='-library=Cstd -library=Crun' | |
12184 | fi | |
12185 | ;; | |
12186 | esac | |
12187 | ;; | |
9c60689e | 12188 | |
47aaa820 DWT |
12189 | solaris*) |
12190 | case $cc_basename in | |
12191 | CC*) | |
12192 | # The more standards-conforming stlport4 library is | |
12193 | # incompatible with the Cstd library. Avoid specifying | |
12194 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12195 | # -library=stlport4 depends on it. | |
12196 | case " $CXX $CXXFLAGS " in | |
12197 | *" -library=stlport4 "*) | |
12198 | solaris_use_stlport4=yes | |
12199 | ;; | |
12200 | esac | |
9c60689e | 12201 | |
47aaa820 DWT |
12202 | # Adding this requires a known-good setup of shared libraries for |
12203 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12204 | # archive will be linked into the output, leading to subtle bugs. | |
12205 | if test "$solaris_use_stlport4" != yes; then | |
12206 | postdeps_CXX='-library=Cstd -library=Crun' | |
12207 | fi | |
12208 | ;; | |
12209 | esac | |
12210 | ;; | |
12211 | esac | |
9c60689e | 12212 | |
9c60689e | 12213 | |
47aaa820 DWT |
12214 | case " $postdeps_CXX " in |
12215 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12216 | esac | |
12217 | compiler_lib_search_dirs_CXX= | |
12218 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12219 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12220 | fi | |
9c60689e | 12221 | |
9c60689e | 12222 | |
9c60689e | 12223 | |
9c60689e | 12224 | |
9c60689e | 12225 | |
9c60689e | 12226 | |
9c60689e | 12227 | |
9c60689e | 12228 | |
9c60689e | 12229 | |
9c60689e | 12230 | |
9c60689e | 12231 | |
9c60689e | 12232 | |
9c60689e | 12233 | |
9c60689e | 12234 | |
9c60689e | 12235 | |
9c60689e | 12236 | |
9c60689e | 12237 | |
9c60689e | 12238 | |
9c60689e | 12239 | |
9c60689e | 12240 | |
9c60689e | 12241 | |
9c60689e | 12242 | |
9c60689e | 12243 | |
9c60689e | 12244 | |
9c60689e | 12245 | |
9c60689e | 12246 | |
9c60689e | 12247 | |
9c60689e | 12248 | |
9c60689e | 12249 | |
9c60689e | 12250 | |
9c60689e | 12251 | |
47aaa820 DWT |
12252 | lt_prog_compiler_wl_CXX= |
12253 | lt_prog_compiler_pic_CXX= | |
12254 | lt_prog_compiler_static_CXX= | |
9c60689e DWT |
12255 | |
12256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12257 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12258 | ||
12259 | # C++ specific cases for pic, static, wl, etc. | |
12260 | if test "$GXX" = yes; then | |
12261 | lt_prog_compiler_wl_CXX='-Wl,' | |
12262 | lt_prog_compiler_static_CXX='-static' | |
12263 | ||
12264 | case $host_os in | |
12265 | aix*) | |
12266 | # All AIX code is PIC. | |
12267 | if test "$host_cpu" = ia64; then | |
12268 | # AIX 5 now supports IA64 processor | |
12269 | lt_prog_compiler_static_CXX='-Bstatic' | |
12270 | fi | |
12271 | ;; | |
12272 | ||
12273 | amigaos*) | |
12274 | case $host_cpu in | |
12275 | powerpc) | |
12276 | # see comment about AmigaOS4 .so support | |
12277 | lt_prog_compiler_pic_CXX='-fPIC' | |
12278 | ;; | |
12279 | m68k) | |
12280 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12281 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12282 | # like `-m68040'. | |
12283 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12284 | ;; | |
12285 | esac | |
12286 | ;; | |
12287 | ||
12288 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12289 | # PIC is the default for these OSes. | |
12290 | ;; | |
12291 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12292 | # This hack is so that the source file can tell whether it is being | |
12293 | # built for inclusion in a dll (and should export symbols for example). | |
12294 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12295 | # (--disable-auto-import) libraries | |
12296 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12297 | ;; | |
12298 | darwin* | rhapsody*) | |
12299 | # PIC is the default on this platform | |
12300 | # Common symbols not allowed in MH_DYLIB files | |
12301 | lt_prog_compiler_pic_CXX='-fno-common' | |
12302 | ;; | |
12303 | *djgpp*) | |
12304 | # DJGPP does not support shared libraries at all | |
12305 | lt_prog_compiler_pic_CXX= | |
12306 | ;; | |
12307 | interix[3-9]*) | |
12308 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12309 | # Instead, we relocate shared libraries at runtime. | |
12310 | ;; | |
12311 | sysv4*MP*) | |
12312 | if test -d /usr/nec; then | |
12313 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12314 | fi | |
12315 | ;; | |
12316 | hpux*) | |
12317 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12318 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12319 | # sets the default TLS model and affects inlining. | |
12320 | case $host_cpu in | |
12321 | hppa*64*) | |
12322 | ;; | |
12323 | *) | |
12324 | lt_prog_compiler_pic_CXX='-fPIC' | |
12325 | ;; | |
12326 | esac | |
12327 | ;; | |
12328 | *qnx* | *nto*) | |
12329 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12330 | # it will coredump. | |
12331 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12332 | ;; | |
12333 | *) | |
12334 | lt_prog_compiler_pic_CXX='-fPIC' | |
12335 | ;; | |
12336 | esac | |
12337 | else | |
12338 | case $host_os in | |
12339 | aix[4-9]*) | |
12340 | # All AIX code is PIC. | |
12341 | if test "$host_cpu" = ia64; then | |
12342 | # AIX 5 now supports IA64 processor | |
12343 | lt_prog_compiler_static_CXX='-Bstatic' | |
12344 | else | |
12345 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12346 | fi | |
12347 | ;; | |
12348 | chorus*) | |
12349 | case $cc_basename in | |
12350 | cxch68*) | |
12351 | # Green Hills C++ Compiler | |
12352 | # _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" | |
12353 | ;; | |
12354 | esac | |
12355 | ;; | |
12356 | dgux*) | |
12357 | case $cc_basename in | |
12358 | ec++*) | |
12359 | lt_prog_compiler_pic_CXX='-KPIC' | |
12360 | ;; | |
12361 | ghcx*) | |
12362 | # Green Hills C++ Compiler | |
12363 | lt_prog_compiler_pic_CXX='-pic' | |
12364 | ;; | |
12365 | *) | |
12366 | ;; | |
12367 | esac | |
12368 | ;; | |
12369 | freebsd* | dragonfly*) | |
12370 | # FreeBSD uses GNU C++ | |
12371 | ;; | |
12372 | hpux9* | hpux10* | hpux11*) | |
12373 | case $cc_basename in | |
12374 | CC*) | |
12375 | lt_prog_compiler_wl_CXX='-Wl,' | |
12376 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12377 | if test "$host_cpu" != ia64; then | |
12378 | lt_prog_compiler_pic_CXX='+Z' | |
12379 | fi | |
12380 | ;; | |
12381 | aCC*) | |
12382 | lt_prog_compiler_wl_CXX='-Wl,' | |
12383 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12384 | case $host_cpu in | |
12385 | hppa*64*|ia64*) | |
12386 | # +Z the default | |
12387 | ;; | |
12388 | *) | |
12389 | lt_prog_compiler_pic_CXX='+Z' | |
12390 | ;; | |
12391 | esac | |
12392 | ;; | |
12393 | *) | |
12394 | ;; | |
12395 | esac | |
12396 | ;; | |
12397 | interix*) | |
12398 | # This is c89, which is MS Visual C++ (no shared libs) | |
12399 | # Anyone wants to do a port? | |
12400 | ;; | |
12401 | irix5* | irix6* | nonstopux*) | |
12402 | case $cc_basename in | |
12403 | CC*) | |
12404 | lt_prog_compiler_wl_CXX='-Wl,' | |
12405 | lt_prog_compiler_static_CXX='-non_shared' | |
12406 | # CC pic flag -KPIC is the default. | |
12407 | ;; | |
12408 | *) | |
12409 | ;; | |
12410 | esac | |
12411 | ;; | |
12412 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12413 | case $cc_basename in | |
12414 | KCC*) | |
12415 | # KAI C++ Compiler | |
12416 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12417 | lt_prog_compiler_pic_CXX='-fPIC' | |
12418 | ;; | |
12419 | ecpc* ) | |
12420 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12421 | lt_prog_compiler_wl_CXX='-Wl,' | |
12422 | lt_prog_compiler_pic_CXX='-KPIC' | |
12423 | lt_prog_compiler_static_CXX='-static' | |
12424 | ;; | |
12425 | icpc* ) | |
12426 | # Intel C++, used to be incompatible with GCC. | |
12427 | # ICC 10 doesn't accept -KPIC any more. | |
12428 | lt_prog_compiler_wl_CXX='-Wl,' | |
12429 | lt_prog_compiler_pic_CXX='-fPIC' | |
12430 | lt_prog_compiler_static_CXX='-static' | |
12431 | ;; | |
12432 | pgCC* | pgcpp*) | |
12433 | # Portland Group C++ compiler | |
12434 | lt_prog_compiler_wl_CXX='-Wl,' | |
12435 | lt_prog_compiler_pic_CXX='-fpic' | |
12436 | lt_prog_compiler_static_CXX='-Bstatic' | |
12437 | ;; | |
12438 | cxx*) | |
12439 | # Compaq C++ | |
12440 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12441 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12442 | lt_prog_compiler_pic_CXX= | |
12443 | lt_prog_compiler_static_CXX='-non_shared' | |
12444 | ;; | |
12445 | xlc* | xlC*) | |
12446 | # IBM XL 8.0 on PPC | |
12447 | lt_prog_compiler_wl_CXX='-Wl,' | |
12448 | lt_prog_compiler_pic_CXX='-qpic' | |
12449 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12450 | ;; | |
12451 | *) | |
12452 | case `$CC -V 2>&1 | sed 5q` in | |
12453 | *Sun\ C*) | |
12454 | # Sun C++ 5.9 | |
12455 | lt_prog_compiler_pic_CXX='-KPIC' | |
12456 | lt_prog_compiler_static_CXX='-Bstatic' | |
12457 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12458 | ;; | |
12459 | esac | |
12460 | ;; | |
12461 | esac | |
12462 | ;; | |
12463 | lynxos*) | |
12464 | ;; | |
12465 | m88k*) | |
12466 | ;; | |
12467 | mvs*) | |
12468 | case $cc_basename in | |
12469 | cxx*) | |
12470 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
12471 | ;; | |
12472 | *) | |
12473 | ;; | |
12474 | esac | |
12475 | ;; | |
12476 | netbsd* | netbsdelf*-gnu) | |
12477 | ;; | |
12478 | *qnx* | *nto*) | |
12479 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12480 | # it will coredump. | |
12481 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12482 | ;; | |
12483 | osf3* | osf4* | osf5*) | |
12484 | case $cc_basename in | |
12485 | KCC*) | |
12486 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12487 | ;; | |
12488 | RCC*) | |
12489 | # Rational C++ 2.4.1 | |
12490 | lt_prog_compiler_pic_CXX='-pic' | |
12491 | ;; | |
12492 | cxx*) | |
12493 | # Digital/Compaq C++ | |
12494 | lt_prog_compiler_wl_CXX='-Wl,' | |
12495 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12496 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12497 | lt_prog_compiler_pic_CXX= | |
12498 | lt_prog_compiler_static_CXX='-non_shared' | |
12499 | ;; | |
12500 | *) | |
12501 | ;; | |
12502 | esac | |
12503 | ;; | |
12504 | psos*) | |
12505 | ;; | |
12506 | solaris*) | |
12507 | case $cc_basename in | |
12508 | CC*) | |
12509 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12510 | lt_prog_compiler_pic_CXX='-KPIC' | |
12511 | lt_prog_compiler_static_CXX='-Bstatic' | |
12512 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12513 | ;; | |
12514 | gcx*) | |
12515 | # Green Hills C++ Compiler | |
12516 | lt_prog_compiler_pic_CXX='-PIC' | |
12517 | ;; | |
12518 | *) | |
12519 | ;; | |
12520 | esac | |
12521 | ;; | |
12522 | sunos4*) | |
12523 | case $cc_basename in | |
12524 | CC*) | |
12525 | # Sun C++ 4.x | |
12526 | lt_prog_compiler_pic_CXX='-pic' | |
12527 | lt_prog_compiler_static_CXX='-Bstatic' | |
12528 | ;; | |
12529 | lcc*) | |
12530 | # Lucid | |
12531 | lt_prog_compiler_pic_CXX='-pic' | |
12532 | ;; | |
12533 | *) | |
12534 | ;; | |
12535 | esac | |
12536 | ;; | |
12537 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12538 | case $cc_basename in | |
12539 | CC*) | |
12540 | lt_prog_compiler_wl_CXX='-Wl,' | |
12541 | lt_prog_compiler_pic_CXX='-KPIC' | |
12542 | lt_prog_compiler_static_CXX='-Bstatic' | |
12543 | ;; | |
12544 | esac | |
12545 | ;; | |
12546 | tandem*) | |
12547 | case $cc_basename in | |
12548 | NCC*) | |
12549 | # NonStop-UX NCC 3.20 | |
12550 | lt_prog_compiler_pic_CXX='-KPIC' | |
12551 | ;; | |
12552 | *) | |
12553 | ;; | |
12554 | esac | |
12555 | ;; | |
12556 | vxworks*) | |
12557 | ;; | |
12558 | *) | |
12559 | lt_prog_compiler_can_build_shared_CXX=no | |
12560 | ;; | |
12561 | esac | |
12562 | fi | |
12563 | ||
12564 | case $host_os in | |
12565 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12566 | *djgpp*) | |
12567 | lt_prog_compiler_pic_CXX= | |
12568 | ;; | |
12569 | *) | |
12570 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12571 | ;; | |
12572 | esac | |
12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
12574 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
12575 | ||
12576 | ||
12577 | ||
12578 | # | |
12579 | # Check to make sure the PIC flag actually works. | |
12580 | # | |
12581 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12583 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
12584 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
12585 | $as_echo_n "(cached) " >&6 | |
12586 | else | |
12587 | lt_cv_prog_compiler_pic_works_CXX=no | |
12588 | ac_outfile=conftest.$ac_objext | |
12589 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12590 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12591 | # Insert the option either (1) after the last *FLAGS variable, or | |
12592 | # (2) before a word containing "conftest.", or (3) at the end. | |
12593 | # Note that $ac_compile itself does not contain backslashes and begins | |
12594 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12595 | # The option is referenced via a variable to avoid confusing sed. | |
12596 | lt_compile=`echo "$ac_compile" | $SED \ | |
12597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12599 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 12600 | (eval echo "\"\$as_me:12600: $lt_compile\"" >&5) |
9c60689e DWT |
12601 | (eval "$lt_compile" 2>conftest.err) |
12602 | ac_status=$? | |
12603 | cat conftest.err >&5 | |
b66977f1 | 12604 | echo "$as_me:12604: \$? = $ac_status" >&5 |
9c60689e DWT |
12605 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12606 | # The compiler can only warn and ignore the option if not recognized | |
12607 | # So say no if there are warnings other than the usual output. | |
12608 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12609 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12610 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12611 | lt_cv_prog_compiler_pic_works_CXX=yes | |
12612 | fi | |
12613 | fi | |
12614 | $RM conftest* | |
12615 | ||
12616 | fi | |
12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
12618 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
12619 | ||
12620 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
12621 | case $lt_prog_compiler_pic_CXX in | |
12622 | "" | " "*) ;; | |
12623 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12624 | esac | |
12625 | else | |
12626 | lt_prog_compiler_pic_CXX= | |
12627 | lt_prog_compiler_can_build_shared_CXX=no | |
12628 | fi | |
12629 | ||
12630 | fi | |
12631 | ||
12632 | ||
12633 | ||
47aaa820 DWT |
12634 | # |
12635 | # Check to make sure the static flag actually works. | |
12636 | # | |
12637 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12639 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
12640 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
12641 | $as_echo_n "(cached) " >&6 | |
12642 | else | |
12643 | lt_cv_prog_compiler_static_works_CXX=no | |
12644 | save_LDFLAGS="$LDFLAGS" | |
12645 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12646 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12647 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12648 | # The linker can only warn and ignore the option if not recognized | |
12649 | # So say no if there are warnings | |
12650 | if test -s conftest.err; then | |
12651 | # Append any errors to the config.log. | |
12652 | cat conftest.err 1>&5 | |
12653 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12654 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12655 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12656 | lt_cv_prog_compiler_static_works_CXX=yes | |
12657 | fi | |
12658 | else | |
12659 | lt_cv_prog_compiler_static_works_CXX=yes | |
12660 | fi | |
12661 | fi | |
12662 | $RM -r conftest* | |
12663 | LDFLAGS="$save_LDFLAGS" | |
12664 | ||
12665 | fi | |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
12667 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
12668 | ||
12669 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
12670 | : | |
12671 | else | |
12672 | lt_prog_compiler_static_CXX= | |
12673 | fi | |
12674 | ||
12675 | ||
12676 | ||
12677 | ||
12678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12679 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12680 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12681 | $as_echo_n "(cached) " >&6 | |
12682 | else | |
12683 | lt_cv_prog_compiler_c_o_CXX=no | |
12684 | $RM -r conftest 2>/dev/null | |
12685 | mkdir conftest | |
12686 | cd conftest | |
12687 | mkdir out | |
12688 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12689 | ||
12690 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12691 | # Insert the option either (1) after the last *FLAGS variable, or | |
12692 | # (2) before a word containing "conftest.", or (3) at the end. | |
12693 | # Note that $ac_compile itself does not contain backslashes and begins | |
12694 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12695 | lt_compile=`echo "$ac_compile" | $SED \ | |
12696 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12697 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12698 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 12699 | (eval echo "\"\$as_me:12699: $lt_compile\"" >&5) |
47aaa820 DWT |
12700 | (eval "$lt_compile" 2>out/conftest.err) |
12701 | ac_status=$? | |
12702 | cat out/conftest.err >&5 | |
b66977f1 | 12703 | echo "$as_me:12703: \$? = $ac_status" >&5 |
47aaa820 DWT |
12704 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12705 | then | |
12706 | # The compiler can only warn and ignore the option if not recognized | |
12707 | # So say no if there are warnings | |
12708 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12709 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12710 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12711 | lt_cv_prog_compiler_c_o_CXX=yes | |
12712 | fi | |
12713 | fi | |
12714 | chmod u+w . 2>&5 | |
12715 | $RM conftest* | |
12716 | # SGI C++ compiler will create directory out/ii_files/ for | |
12717 | # template instantiation | |
12718 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12719 | $RM out/* && rmdir out | |
12720 | cd .. | |
12721 | $RM -r conftest | |
12722 | $RM conftest* | |
12723 | ||
12724 | fi | |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12726 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12727 | ||
12728 | ||
12729 | ||
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12731 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
12732 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
12733 | $as_echo_n "(cached) " >&6 | |
12734 | else | |
12735 | lt_cv_prog_compiler_c_o_CXX=no | |
12736 | $RM -r conftest 2>/dev/null | |
12737 | mkdir conftest | |
12738 | cd conftest | |
12739 | mkdir out | |
12740 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12741 | ||
12742 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12743 | # Insert the option either (1) after the last *FLAGS variable, or | |
12744 | # (2) before a word containing "conftest.", or (3) at the end. | |
12745 | # Note that $ac_compile itself does not contain backslashes and begins | |
12746 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12747 | lt_compile=`echo "$ac_compile" | $SED \ | |
12748 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12749 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12750 | -e 's:$: $lt_compiler_flag:'` | |
b66977f1 | 12751 | (eval echo "\"\$as_me:12751: $lt_compile\"" >&5) |
47aaa820 DWT |
12752 | (eval "$lt_compile" 2>out/conftest.err) |
12753 | ac_status=$? | |
12754 | cat out/conftest.err >&5 | |
b66977f1 | 12755 | echo "$as_me:12755: \$? = $ac_status" >&5 |
47aaa820 DWT |
12756 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12757 | then | |
12758 | # The compiler can only warn and ignore the option if not recognized | |
12759 | # So say no if there are warnings | |
12760 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12761 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12762 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12763 | lt_cv_prog_compiler_c_o_CXX=yes | |
12764 | fi | |
12765 | fi | |
12766 | chmod u+w . 2>&5 | |
12767 | $RM conftest* | |
12768 | # SGI C++ compiler will create directory out/ii_files/ for | |
12769 | # template instantiation | |
12770 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12771 | $RM out/* && rmdir out | |
12772 | cd .. | |
12773 | $RM -r conftest | |
12774 | $RM conftest* | |
12775 | ||
12776 | fi | |
12777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12778 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12779 | ||
12780 | ||
12781 | ||
12782 | ||
12783 | hard_links="nottested" | |
12784 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12785 | # do not overwrite the value of need_locks provided by the user | |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12787 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12788 | hard_links=yes | |
12789 | $RM conftest* | |
12790 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12791 | touch conftest.a | |
12792 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12793 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12795 | $as_echo "$hard_links" >&6; } | |
12796 | if test "$hard_links" = no; then | |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12798 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12799 | need_locks=warn | |
12800 | fi | |
12801 | else | |
12802 | need_locks=no | |
12803 | fi | |
12804 | ||
12805 | ||
12806 | ||
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12808 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12809 | ||
12810 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12811 | case $host_os in | |
12812 | aix[4-9]*) | |
12813 | # If we're using GNU nm, then we don't want the "-C" option. | |
12814 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12815 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
12816 | 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' | |
12817 | else | |
12818 | 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' | |
12819 | fi | |
12820 | ;; | |
12821 | pw32*) | |
12822 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12823 | ;; | |
12824 | cygwin* | mingw* | cegcc*) | |
12825 | 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' | |
12826 | ;; | |
12827 | linux* | k*bsd*-gnu) | |
12828 | link_all_deplibs_CXX=no | |
12829 | ;; | |
12830 | *) | |
12831 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12832 | ;; | |
12833 | esac | |
12834 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12835 | ||
12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
12837 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12838 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12839 | ||
12840 | with_gnu_ld_CXX=$with_gnu_ld | |
12841 | ||
12842 | ||
12843 | ||
12844 | ||
12845 | ||
12846 | ||
12847 | # | |
12848 | # Do we need to explicitly link libc? | |
12849 | # | |
12850 | case "x$archive_cmds_need_lc_CXX" in | |
12851 | x|xyes) | |
12852 | # Assume -lc should be added | |
12853 | archive_cmds_need_lc_CXX=yes | |
12854 | ||
12855 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12856 | case $archive_cmds_CXX in | |
12857 | *'~'*) | |
12858 | # FIXME: we may have to deal with multi-command sequences. | |
12859 | ;; | |
12860 | '$CC '*) | |
12861 | # Test whether the compiler implicitly links with -lc since on some | |
12862 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12863 | # to ld, don't add -lc before -lgcc. | |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
12865 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
12866 | $RM conftest* | |
12867 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12868 | ||
12869 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12870 | (eval $ac_compile) 2>&5 | |
12871 | ac_status=$? | |
12872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12873 | test $ac_status = 0; } 2>conftest.err; then | |
12874 | soname=conftest | |
12875 | lib=conftest | |
12876 | libobjs=conftest.$ac_objext | |
12877 | deplibs= | |
12878 | wl=$lt_prog_compiler_wl_CXX | |
12879 | pic_flag=$lt_prog_compiler_pic_CXX | |
12880 | compiler_flags=-v | |
12881 | linker_flags=-v | |
12882 | verstring= | |
12883 | output_objdir=. | |
12884 | libname=conftest | |
12885 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12886 | allow_undefined_flag_CXX= | |
12887 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
12888 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12889 | ac_status=$? | |
12890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12891 | test $ac_status = 0; } | |
12892 | then | |
12893 | archive_cmds_need_lc_CXX=no | |
12894 | else | |
12895 | archive_cmds_need_lc_CXX=yes | |
12896 | fi | |
12897 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12898 | else | |
12899 | cat conftest.err 1>&5 | |
12900 | fi | |
12901 | $RM conftest* | |
12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
12903 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
12904 | ;; | |
12905 | esac | |
12906 | fi | |
12907 | ;; | |
12908 | esac | |
12909 | ||
12910 | ||
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
12974 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
12975 | ||
12976 | library_names_spec= | |
12977 | libname_spec='lib$name' | |
12978 | soname_spec= | |
12979 | shrext_cmds=".so" | |
12980 | postinstall_cmds= | |
12981 | postuninstall_cmds= | |
12982 | finish_cmds= | |
12983 | finish_eval= | |
12984 | shlibpath_var= | |
12985 | shlibpath_overrides_runpath=unknown | |
12986 | version_type=none | |
12987 | dynamic_linker="$host_os ld.so" | |
12988 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12989 | need_lib_prefix=unknown | |
12990 | hardcode_into_libs=no | |
12991 | ||
12992 | # when you set need_version to no, make sure it does not cause -set_version | |
12993 | # flags to be left without arguments | |
12994 | need_version=unknown | |
12995 | ||
12996 | case $host_os in | |
12997 | aix3*) | |
12998 | version_type=linux | |
12999 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13000 | shlibpath_var=LIBPATH | |
13001 | ||
13002 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13003 | soname_spec='${libname}${release}${shared_ext}$major' | |
13004 | ;; | |
13005 | ||
13006 | aix[4-9]*) | |
13007 | version_type=linux | |
13008 | need_lib_prefix=no | |
13009 | need_version=no | |
13010 | hardcode_into_libs=yes | |
13011 | if test "$host_cpu" = ia64; then | |
13012 | # AIX 5 supports IA64 | |
13013 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13014 | shlibpath_var=LD_LIBRARY_PATH | |
13015 | else | |
13016 | # With GCC up to 2.95.x, collect2 would create an import file | |
13017 | # for dependence libraries. The import file would start with | |
13018 | # the line `#! .'. This would cause the generated library to | |
13019 | # depend on `.', always an invalid library. This was fixed in | |
13020 | # development snapshots of GCC prior to 3.0. | |
13021 | case $host_os in | |
13022 | aix4 | aix4.[01] | aix4.[01].*) | |
13023 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13024 | echo ' yes ' | |
13025 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13026 | : | |
13027 | else | |
13028 | can_build_shared=no | |
13029 | fi | |
13030 | ;; | |
13031 | esac | |
13032 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13033 | # soname into executable. Probably we can add versioning support to | |
13034 | # collect2, so additional links can be useful in future. | |
13035 | if test "$aix_use_runtimelinking" = yes; then | |
13036 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13037 | # instead of lib<name>.a to let people know that these are not | |
13038 | # typical AIX shared libraries. | |
13039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13040 | else | |
13041 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13042 | # and later when we are not doing run time linking. | |
13043 | library_names_spec='${libname}${release}.a $libname.a' | |
13044 | soname_spec='${libname}${release}${shared_ext}$major' | |
13045 | fi | |
13046 | shlibpath_var=LIBPATH | |
13047 | fi | |
13048 | ;; | |
13049 | ||
13050 | amigaos*) | |
13051 | case $host_cpu in | |
13052 | powerpc) | |
13053 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13054 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13056 | ;; | |
13057 | m68k) | |
13058 | library_names_spec='$libname.ixlibrary $libname.a' | |
13059 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13060 | 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' | |
13061 | ;; | |
13062 | esac | |
13063 | ;; | |
13064 | ||
13065 | beos*) | |
13066 | library_names_spec='${libname}${shared_ext}' | |
13067 | dynamic_linker="$host_os ld.so" | |
13068 | shlibpath_var=LIBRARY_PATH | |
13069 | ;; | |
13070 | ||
13071 | bsdi[45]*) | |
13072 | version_type=linux | |
13073 | need_version=no | |
13074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13075 | soname_spec='${libname}${release}${shared_ext}$major' | |
13076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13077 | shlibpath_var=LD_LIBRARY_PATH | |
13078 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13079 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13080 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13081 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13082 | # libtool to hard-code these into programs | |
13083 | ;; | |
9c60689e | 13084 | |
47aaa820 DWT |
13085 | cygwin* | mingw* | pw32* | cegcc*) |
13086 | version_type=windows | |
13087 | shrext_cmds=".dll" | |
13088 | need_version=no | |
13089 | need_lib_prefix=no | |
9c60689e | 13090 | |
47aaa820 DWT |
13091 | case $GCC,$host_os in |
13092 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13093 | library_names_spec='$libname.dll.a' | |
13094 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13095 | postinstall_cmds='base_file=`basename \${file}`~ | |
13096 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13097 | dldir=$destdir/`dirname \$dlpath`~ | |
13098 | test -d \$dldir || mkdir -p \$dldir~ | |
13099 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13100 | chmod a+x \$dldir/$dlname~ | |
13101 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13102 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13103 | fi' | |
13104 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13105 | dlpath=$dir/\$dldll~ | |
13106 | $RM \$dlpath' | |
13107 | shlibpath_overrides_runpath=yes | |
9c60689e | 13108 | |
47aaa820 DWT |
13109 | case $host_os in |
13110 | cygwin*) | |
13111 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13112 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13113 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13114 | ;; | |
13115 | mingw* | cegcc*) | |
13116 | # MinGW DLLs use traditional 'lib' prefix | |
13117 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13118 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13119 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13120 | # It is most probably a Windows format PATH printed by | |
13121 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13122 | # path with ; separators, and with drive letters. We can handle the | |
13123 | # drive letters (cygwin fileutils understands them), so leave them, | |
13124 | # especially as we might pass files found there to a mingw objdump, | |
13125 | # which wouldn't understand a cygwinified path. Ahh. | |
13126 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13127 | else | |
13128 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13129 | fi | |
13130 | ;; | |
13131 | pw32*) | |
13132 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13133 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13134 | ;; | |
13135 | esac | |
13136 | ;; | |
9c60689e | 13137 | |
47aaa820 DWT |
13138 | *) |
13139 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13140 | ;; | |
13141 | esac | |
13142 | dynamic_linker='Win32 ld.exe' | |
13143 | # FIXME: first we should search . and the directory the executable is in | |
13144 | shlibpath_var=PATH | |
13145 | ;; | |
9c60689e | 13146 | |
47aaa820 DWT |
13147 | darwin* | rhapsody*) |
13148 | dynamic_linker="$host_os dyld" | |
13149 | version_type=darwin | |
13150 | need_lib_prefix=no | |
13151 | need_version=no | |
13152 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13153 | soname_spec='${libname}${release}${major}$shared_ext' | |
13154 | shlibpath_overrides_runpath=yes | |
13155 | shlibpath_var=DYLD_LIBRARY_PATH | |
13156 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9c60689e | 13157 | |
47aaa820 DWT |
13158 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13159 | ;; | |
9c60689e | 13160 | |
47aaa820 DWT |
13161 | dgux*) |
13162 | version_type=linux | |
13163 | need_lib_prefix=no | |
13164 | need_version=no | |
13165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13166 | soname_spec='${libname}${release}${shared_ext}$major' | |
13167 | shlibpath_var=LD_LIBRARY_PATH | |
13168 | ;; | |
9c60689e | 13169 | |
47aaa820 DWT |
13170 | freebsd1*) |
13171 | dynamic_linker=no | |
13172 | ;; | |
9c60689e | 13173 | |
47aaa820 DWT |
13174 | freebsd* | dragonfly*) |
13175 | # DragonFly does not have aout. When/if they implement a new | |
13176 | # versioning mechanism, adjust this. | |
13177 | if test -x /usr/bin/objformat; then | |
13178 | objformat=`/usr/bin/objformat` | |
13179 | else | |
13180 | case $host_os in | |
13181 | freebsd[123]*) objformat=aout ;; | |
13182 | *) objformat=elf ;; | |
13183 | esac | |
13184 | fi | |
13185 | version_type=freebsd-$objformat | |
13186 | case $version_type in | |
13187 | freebsd-elf*) | |
13188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13189 | need_version=no | |
13190 | need_lib_prefix=no | |
13191 | ;; | |
13192 | freebsd-*) | |
13193 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13194 | need_version=yes | |
13195 | ;; | |
13196 | esac | |
13197 | shlibpath_var=LD_LIBRARY_PATH | |
13198 | case $host_os in | |
13199 | freebsd2*) | |
13200 | shlibpath_overrides_runpath=yes | |
13201 | ;; | |
13202 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13203 | shlibpath_overrides_runpath=yes | |
13204 | hardcode_into_libs=yes | |
13205 | ;; | |
13206 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13207 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13208 | shlibpath_overrides_runpath=no | |
13209 | hardcode_into_libs=yes | |
13210 | ;; | |
13211 | *) # from 4.6 on, and DragonFly | |
13212 | shlibpath_overrides_runpath=yes | |
13213 | hardcode_into_libs=yes | |
13214 | ;; | |
13215 | esac | |
13216 | ;; | |
9c60689e | 13217 | |
47aaa820 DWT |
13218 | gnu*) |
13219 | version_type=linux | |
13220 | need_lib_prefix=no | |
13221 | need_version=no | |
13222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13223 | soname_spec='${libname}${release}${shared_ext}$major' | |
13224 | shlibpath_var=LD_LIBRARY_PATH | |
13225 | hardcode_into_libs=yes | |
13226 | ;; | |
9c60689e | 13227 | |
47aaa820 DWT |
13228 | hpux9* | hpux10* | hpux11*) |
13229 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13230 | # link against other versions. | |
13231 | version_type=sunos | |
13232 | need_lib_prefix=no | |
13233 | need_version=no | |
13234 | case $host_cpu in | |
13235 | ia64*) | |
13236 | shrext_cmds='.so' | |
13237 | hardcode_into_libs=yes | |
13238 | dynamic_linker="$host_os dld.so" | |
13239 | shlibpath_var=LD_LIBRARY_PATH | |
13240 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13242 | soname_spec='${libname}${release}${shared_ext}$major' | |
13243 | if test "X$HPUX_IA64_MODE" = X32; then | |
13244 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13245 | else | |
13246 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13247 | fi | |
13248 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13249 | ;; | |
13250 | hppa*64*) | |
13251 | shrext_cmds='.sl' | |
13252 | hardcode_into_libs=yes | |
13253 | dynamic_linker="$host_os dld.sl" | |
13254 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13257 | soname_spec='${libname}${release}${shared_ext}$major' | |
13258 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13259 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13260 | ;; | |
13261 | *) | |
13262 | shrext_cmds='.sl' | |
13263 | dynamic_linker="$host_os dld.sl" | |
13264 | shlibpath_var=SHLIB_PATH | |
13265 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13267 | soname_spec='${libname}${release}${shared_ext}$major' | |
13268 | ;; | |
13269 | esac | |
13270 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13271 | postinstall_cmds='chmod 555 $lib' | |
13272 | ;; | |
9c60689e | 13273 | |
47aaa820 DWT |
13274 | interix[3-9]*) |
13275 | version_type=linux | |
13276 | need_lib_prefix=no | |
13277 | need_version=no | |
13278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13279 | soname_spec='${libname}${release}${shared_ext}$major' | |
13280 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13281 | shlibpath_var=LD_LIBRARY_PATH | |
13282 | shlibpath_overrides_runpath=no | |
13283 | hardcode_into_libs=yes | |
13284 | ;; | |
9c60689e | 13285 | |
47aaa820 DWT |
13286 | irix5* | irix6* | nonstopux*) |
13287 | case $host_os in | |
13288 | nonstopux*) version_type=nonstopux ;; | |
13289 | *) | |
13290 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13291 | version_type=linux | |
13292 | else | |
13293 | version_type=irix | |
13294 | fi ;; | |
13295 | esac | |
13296 | need_lib_prefix=no | |
13297 | need_version=no | |
13298 | soname_spec='${libname}${release}${shared_ext}$major' | |
13299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13300 | case $host_os in | |
13301 | irix5* | nonstopux*) | |
13302 | libsuff= shlibsuff= | |
13303 | ;; | |
13304 | *) | |
13305 | case $LD in # libtool.m4 will add one of these switches to LD | |
13306 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13307 | libsuff= shlibsuff= libmagic=32-bit;; | |
13308 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13309 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13310 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13311 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13312 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13313 | esac | |
13314 | ;; | |
13315 | esac | |
13316 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13317 | shlibpath_overrides_runpath=no | |
13318 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13319 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13320 | hardcode_into_libs=yes | |
13321 | ;; | |
9c60689e | 13322 | |
47aaa820 DWT |
13323 | # No shared lib support for Linux oldld, aout, or coff. |
13324 | linux*oldld* | linux*aout* | linux*coff*) | |
13325 | dynamic_linker=no | |
13326 | ;; | |
9c60689e | 13327 | |
47aaa820 DWT |
13328 | # This must be Linux ELF. |
13329 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13330 | version_type=linux | |
13331 | need_lib_prefix=no | |
13332 | need_version=no | |
13333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13334 | soname_spec='${libname}${release}${shared_ext}$major' | |
13335 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13336 | shlibpath_var=LD_LIBRARY_PATH | |
13337 | shlibpath_overrides_runpath=no | |
13338 | # Some binutils ld are patched to set DT_RUNPATH | |
13339 | save_LDFLAGS=$LDFLAGS | |
13340 | save_libdir=$libdir | |
13341 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13342 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13344 | /* end confdefs.h. */ | |
9c60689e | 13345 | |
47aaa820 DWT |
13346 | int |
13347 | main () | |
13348 | { | |
9c60689e | 13349 | |
47aaa820 DWT |
13350 | ; |
13351 | return 0; | |
13352 | } | |
13353 | _ACEOF | |
13354 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13355 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13356 | shlibpath_overrides_runpath=yes | |
9c60689e | 13357 | fi |
47aaa820 DWT |
13358 | fi |
13359 | rm -f core conftest.err conftest.$ac_objext \ | |
13360 | conftest$ac_exeext conftest.$ac_ext | |
13361 | LDFLAGS=$save_LDFLAGS | |
13362 | libdir=$save_libdir | |
9c60689e | 13363 | |
47aaa820 DWT |
13364 | # This implies no fast_install, which is unacceptable. |
13365 | # Some rework will be needed to allow for fast_install | |
13366 | # before this can be enabled. | |
13367 | hardcode_into_libs=yes | |
9c60689e | 13368 | |
47aaa820 DWT |
13369 | # Append ld.so.conf contents to the search path |
13370 | if test -f /etc/ld.so.conf; then | |
13371 | 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' ' '` | |
13372 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13373 | fi | |
9c60689e | 13374 | |
47aaa820 DWT |
13375 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13376 | # powerpc, because MkLinux only supported shared libraries with the | |
13377 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13378 | # most powerpc-linux boxes support dynamic linking these days and | |
13379 | # people can always --disable-shared, the test was removed, and we | |
13380 | # assume the GNU/Linux dynamic linker is in use. | |
13381 | dynamic_linker='GNU/Linux ld.so' | |
9c60689e | 13382 | ;; |
47aaa820 DWT |
13383 | |
13384 | netbsdelf*-gnu) | |
13385 | version_type=linux | |
13386 | need_lib_prefix=no | |
13387 | need_version=no | |
13388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13389 | soname_spec='${libname}${release}${shared_ext}$major' | |
13390 | shlibpath_var=LD_LIBRARY_PATH | |
13391 | shlibpath_overrides_runpath=no | |
13392 | hardcode_into_libs=yes | |
13393 | dynamic_linker='NetBSD ld.elf_so' | |
9c60689e | 13394 | ;; |
47aaa820 DWT |
13395 | |
13396 | netbsd*) | |
13397 | version_type=sunos | |
13398 | need_lib_prefix=no | |
13399 | need_version=no | |
13400 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13402 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13403 | dynamic_linker='NetBSD (a.out) ld.so' | |
13404 | else | |
13405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13406 | soname_spec='${libname}${release}${shared_ext}$major' | |
13407 | dynamic_linker='NetBSD ld.elf_so' | |
13408 | fi | |
13409 | shlibpath_var=LD_LIBRARY_PATH | |
13410 | shlibpath_overrides_runpath=yes | |
13411 | hardcode_into_libs=yes | |
9c60689e | 13412 | ;; |
9c60689e | 13413 | |
47aaa820 DWT |
13414 | newsos6) |
13415 | version_type=linux | |
13416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13417 | shlibpath_var=LD_LIBRARY_PATH | |
13418 | shlibpath_overrides_runpath=yes | |
13419 | ;; | |
9c60689e | 13420 | |
47aaa820 DWT |
13421 | *nto* | *qnx*) |
13422 | version_type=qnx | |
13423 | need_lib_prefix=no | |
13424 | need_version=no | |
13425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13426 | soname_spec='${libname}${release}${shared_ext}$major' | |
13427 | shlibpath_var=LD_LIBRARY_PATH | |
13428 | shlibpath_overrides_runpath=no | |
13429 | hardcode_into_libs=yes | |
13430 | dynamic_linker='ldqnx.so' | |
13431 | ;; | |
9c60689e | 13432 | |
47aaa820 DWT |
13433 | openbsd*) |
13434 | version_type=sunos | |
13435 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13436 | need_lib_prefix=no | |
13437 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13438 | case $host_os in | |
13439 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13440 | *) need_version=no ;; | |
13441 | esac | |
13442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13443 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13444 | shlibpath_var=LD_LIBRARY_PATH | |
13445 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13446 | case $host_os in | |
13447 | openbsd2.[89] | openbsd2.[89].*) | |
13448 | shlibpath_overrides_runpath=no | |
13449 | ;; | |
13450 | *) | |
13451 | shlibpath_overrides_runpath=yes | |
13452 | ;; | |
13453 | esac | |
13454 | else | |
13455 | shlibpath_overrides_runpath=yes | |
13456 | fi | |
13457 | ;; | |
9c60689e | 13458 | |
47aaa820 DWT |
13459 | os2*) |
13460 | libname_spec='$name' | |
13461 | shrext_cmds=".dll" | |
13462 | need_lib_prefix=no | |
13463 | library_names_spec='$libname${shared_ext} $libname.a' | |
13464 | dynamic_linker='OS/2 ld.exe' | |
13465 | shlibpath_var=LIBPATH | |
13466 | ;; | |
9c60689e | 13467 | |
47aaa820 DWT |
13468 | osf3* | osf4* | osf5*) |
13469 | version_type=osf | |
13470 | need_lib_prefix=no | |
13471 | need_version=no | |
13472 | soname_spec='${libname}${release}${shared_ext}$major' | |
13473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13474 | shlibpath_var=LD_LIBRARY_PATH | |
13475 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13476 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13477 | ;; | |
9c60689e | 13478 | |
47aaa820 DWT |
13479 | rdos*) |
13480 | dynamic_linker=no | |
13481 | ;; | |
9c60689e | 13482 | |
47aaa820 DWT |
13483 | solaris*) |
13484 | version_type=linux | |
13485 | need_lib_prefix=no | |
13486 | need_version=no | |
13487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13488 | soname_spec='${libname}${release}${shared_ext}$major' | |
13489 | shlibpath_var=LD_LIBRARY_PATH | |
13490 | shlibpath_overrides_runpath=yes | |
13491 | hardcode_into_libs=yes | |
13492 | # ldd complains unless libraries are executable | |
13493 | postinstall_cmds='chmod +x $lib' | |
13494 | ;; | |
9c60689e | 13495 | |
47aaa820 DWT |
13496 | sunos4*) |
13497 | version_type=sunos | |
13498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13499 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13500 | shlibpath_var=LD_LIBRARY_PATH | |
13501 | shlibpath_overrides_runpath=yes | |
13502 | if test "$with_gnu_ld" = yes; then | |
13503 | need_lib_prefix=no | |
13504 | fi | |
13505 | need_version=yes | |
13506 | ;; | |
9c60689e | 13507 | |
47aaa820 DWT |
13508 | sysv4 | sysv4.3*) |
13509 | version_type=linux | |
13510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13511 | soname_spec='${libname}${release}${shared_ext}$major' | |
13512 | shlibpath_var=LD_LIBRARY_PATH | |
13513 | case $host_vendor in | |
13514 | sni) | |
13515 | shlibpath_overrides_runpath=no | |
13516 | need_lib_prefix=no | |
13517 | runpath_var=LD_RUN_PATH | |
9c60689e | 13518 | ;; |
47aaa820 DWT |
13519 | siemens) |
13520 | need_lib_prefix=no | |
9c60689e | 13521 | ;; |
47aaa820 DWT |
13522 | motorola) |
13523 | need_lib_prefix=no | |
13524 | need_version=no | |
13525 | shlibpath_overrides_runpath=no | |
13526 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13527 | ;; | |
13528 | esac | |
9c60689e | 13529 | ;; |
9c60689e | 13530 | |
47aaa820 DWT |
13531 | sysv4*MP*) |
13532 | if test -d /usr/nec ;then | |
13533 | version_type=linux | |
13534 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13535 | soname_spec='$libname${shared_ext}.$major' | |
13536 | shlibpath_var=LD_LIBRARY_PATH | |
13537 | fi | |
13538 | ;; | |
9c60689e | 13539 | |
47aaa820 DWT |
13540 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13541 | version_type=freebsd-elf | |
13542 | need_lib_prefix=no | |
13543 | need_version=no | |
13544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13545 | soname_spec='${libname}${release}${shared_ext}$major' | |
13546 | shlibpath_var=LD_LIBRARY_PATH | |
13547 | shlibpath_overrides_runpath=yes | |
13548 | hardcode_into_libs=yes | |
13549 | if test "$with_gnu_ld" = yes; then | |
13550 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13551 | else | |
13552 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13553 | case $host_os in | |
13554 | sco3.2v5*) | |
13555 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13556 | ;; | |
13557 | esac | |
13558 | fi | |
13559 | sys_lib_dlsearch_path_spec='/usr/lib' | |
13560 | ;; | |
9c60689e | 13561 | |
47aaa820 DWT |
13562 | tpf*) |
13563 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
13564 | version_type=linux | |
13565 | need_lib_prefix=no | |
13566 | need_version=no | |
13567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13568 | shlibpath_var=LD_LIBRARY_PATH | |
13569 | shlibpath_overrides_runpath=no | |
13570 | hardcode_into_libs=yes | |
13571 | ;; | |
9c60689e | 13572 | |
47aaa820 DWT |
13573 | uts4*) |
13574 | version_type=linux | |
13575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13576 | soname_spec='${libname}${release}${shared_ext}$major' | |
13577 | shlibpath_var=LD_LIBRARY_PATH | |
13578 | ;; | |
9c60689e | 13579 | |
47aaa820 DWT |
13580 | *) |
13581 | dynamic_linker=no | |
13582 | ;; | |
13583 | esac | |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
13585 | $as_echo "$dynamic_linker" >&6; } | |
13586 | test "$dynamic_linker" = no && can_build_shared=no | |
9c60689e | 13587 | |
47aaa820 DWT |
13588 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13589 | if test "$GCC" = yes; then | |
13590 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13591 | fi | |
9c60689e | 13592 | |
47aaa820 DWT |
13593 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13594 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
13595 | fi | |
13596 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
13597 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
13598 | fi | |
9c60689e DWT |
13599 | |
13600 | ||
13601 | ||
13602 | ||
13603 | ||
13604 | ||
13605 | ||
13606 | ||
13607 | ||
13608 | ||
13609 | ||
13610 | ||
13611 | ||
13612 | ||
13613 | ||
13614 | ||
13615 | ||
13616 | ||
13617 | ||
13618 | ||
13619 | ||
13620 | ||
13621 | ||
13622 | ||
13623 | ||
13624 | ||
13625 | ||
13626 | ||
13627 | ||
13628 | ||
13629 | ||
13630 | ||
13631 | ||
13632 | ||
13633 | ||
13634 | ||
47aaa820 DWT |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
13636 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13637 | hardcode_action_CXX= | |
13638 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
13639 | test -n "$runpath_var_CXX" || | |
13640 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
9c60689e | 13641 | |
47aaa820 DWT |
13642 | # We can hardcode non-existent directories. |
13643 | if test "$hardcode_direct_CXX" != no && | |
13644 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13645 | # have to relink, otherwise we might link with an installed library | |
13646 | # when we should be linking with a yet-to-be-installed one | |
13647 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13648 | test "$hardcode_minus_L_CXX" != no; then | |
13649 | # Linking always hardcodes the temporary library directory. | |
13650 | hardcode_action_CXX=relink | |
13651 | else | |
13652 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13653 | hardcode_action_CXX=immediate | |
13654 | fi | |
13655 | else | |
13656 | # We cannot hardcode anything, or else we can only hardcode existing | |
13657 | # directories. | |
13658 | hardcode_action_CXX=unsupported | |
13659 | fi | |
13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
13661 | $as_echo "$hardcode_action_CXX" >&6; } | |
9c60689e | 13662 | |
47aaa820 DWT |
13663 | if test "$hardcode_action_CXX" = relink || |
13664 | test "$inherit_rpath_CXX" = yes; then | |
13665 | # Fast installation is not supported | |
13666 | enable_fast_install=no | |
13667 | elif test "$shlibpath_overrides_runpath" = yes || | |
13668 | test "$enable_shared" = no; then | |
13669 | # Fast installation is not necessary | |
13670 | enable_fast_install=needless | |
13671 | fi | |
9c60689e DWT |
13672 | |
13673 | ||
13674 | ||
13675 | ||
13676 | ||
13677 | ||
13678 | ||
47aaa820 | 13679 | fi # test -n "$compiler" |
9c60689e | 13680 | |
47aaa820 DWT |
13681 | CC=$lt_save_CC |
13682 | LDCXX=$LD | |
13683 | LD=$lt_save_LD | |
13684 | GCC=$lt_save_GCC | |
13685 | with_gnu_ld=$lt_save_with_gnu_ld | |
13686 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13687 | lt_cv_path_LD=$lt_save_path_LD | |
13688 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13689 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13690 | fi # test "$_lt_caught_CXX_error" != yes | |
9c60689e | 13691 | |
47aaa820 DWT |
13692 | ac_ext=c |
13693 | ac_cpp='$CPP $CPPFLAGS' | |
13694 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13695 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13696 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e DWT |
13697 | |
13698 | ||
632b71ea DWT |
13699 | ac_ext=mm |
13700 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
13701 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13702 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13703 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
13704 | if test -n "$ac_tool_prefix"; then | |
13705 | for ac_prog in g++ objc++ objcxx c++ CXX | |
13706 | do | |
13707 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13708 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13710 | $as_echo_n "checking for $ac_word... " >&6; } | |
13711 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : | |
e1cce270 DWT |
13712 | $as_echo_n "(cached) " >&6 |
13713 | else | |
632b71ea DWT |
13714 | if test -n "$OBJCXX"; then |
13715 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
13716 | else | |
13717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e1cce270 DWT |
13718 | for as_dir in $PATH |
13719 | do | |
13720 | IFS=$as_save_IFS | |
13721 | test -z "$as_dir" && as_dir=. | |
e1cce270 | 13722 | for ac_exec_ext in '' $ac_executable_extensions; do |
632b71ea DWT |
13723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
13724 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
13725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13726 | break 2 | |
13727 | fi | |
13728 | done | |
e1cce270 DWT |
13729 | done |
13730 | IFS=$as_save_IFS | |
632b71ea DWT |
13731 | |
13732 | fi | |
13733 | fi | |
13734 | OBJCXX=$ac_cv_prog_OBJCXX | |
13735 | if test -n "$OBJCXX"; then | |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
13737 | $as_echo "$OBJCXX" >&6; } | |
e1cce270 | 13738 | else |
632b71ea DWT |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13740 | $as_echo "no" >&6; } | |
e1cce270 DWT |
13741 | fi |
13742 | ||
e1cce270 | 13743 | |
632b71ea DWT |
13744 | test -n "$OBJCXX" && break |
13745 | done | |
13746 | fi | |
13747 | if test -z "$OBJCXX"; then | |
13748 | ac_ct_OBJCXX=$OBJCXX | |
13749 | for ac_prog in g++ objc++ objcxx c++ CXX | |
47aaa820 DWT |
13750 | do |
13751 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13752 | set dummy $ac_prog; ac_word=$2 | |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13754 | $as_echo_n "checking for $ac_word... " >&6; } | |
632b71ea | 13755 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : |
47aaa820 DWT |
13756 | $as_echo_n "(cached) " >&6 |
13757 | else | |
632b71ea DWT |
13758 | if test -n "$ac_ct_OBJCXX"; then |
13759 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
47aaa820 DWT |
13760 | else |
13761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13762 | for as_dir in $PATH | |
13763 | do | |
13764 | IFS=$as_save_IFS | |
13765 | test -z "$as_dir" && as_dir=. | |
13766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
632b71ea | 13768 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
47aaa820 DWT |
13769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13770 | break 2 | |
13771 | fi | |
13772 | done | |
13773 | done | |
13774 | IFS=$as_save_IFS | |
9c60689e | 13775 | |
47aaa820 DWT |
13776 | fi |
13777 | fi | |
632b71ea DWT |
13778 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
13779 | if test -n "$ac_ct_OBJCXX"; then | |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
13781 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
47aaa820 DWT |
13782 | else |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13784 | $as_echo "no" >&6; } | |
13785 | fi | |
9c60689e DWT |
13786 | |
13787 | ||
632b71ea | 13788 | test -n "$ac_ct_OBJCXX" && break |
47aaa820 | 13789 | done |
9c60689e | 13790 | |
632b71ea DWT |
13791 | if test "x$ac_ct_OBJCXX" = x; then |
13792 | OBJCXX="g++" | |
13793 | else | |
13794 | case $cross_compiling:$ac_tool_warned in | |
13795 | yes:) | |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13797 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13798 | ac_tool_warned=yes ;; | |
13799 | esac | |
13800 | OBJCXX=$ac_ct_OBJCXX | |
13801 | fi | |
13802 | fi | |
9c60689e | 13803 | |
632b71ea DWT |
13804 | # Provide some information about the compiler. |
13805 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
13806 | set X $ac_compile | |
13807 | ac_compiler=$2 | |
13808 | for ac_option in --version -v -V -qversion; do | |
13809 | { { ac_try="$ac_compiler $ac_option >&5" | |
13810 | case "(($ac_try" in | |
13811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13812 | *) ac_try_echo=$ac_try;; | |
13813 | esac | |
13814 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13815 | $as_echo "$ac_try_echo"; } >&5 | |
13816 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
13817 | ac_status=$? | |
13818 | if test -s conftest.err; then | |
13819 | sed '10a\ | |
13820 | ... rest of stderr output deleted ... | |
13821 | 10q' conftest.err >conftest.er1 | |
13822 | cat conftest.er1 >&5 | |
13823 | fi | |
13824 | rm -f conftest.er1 conftest.err | |
13825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13826 | test $ac_status = 0; } | |
13827 | done | |
13828 | ||
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 | |
13830 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
13831 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
47aaa820 DWT |
13832 | $as_echo_n "(cached) " >&6 |
13833 | else | |
632b71ea DWT |
13834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13835 | /* end confdefs.h. */ | |
9c60689e | 13836 | |
632b71ea DWT |
13837 | int |
13838 | main () | |
13839 | { | |
13840 | #ifndef __GNUC__ | |
13841 | choke me | |
13842 | #endif | |
9c60689e | 13843 | |
632b71ea DWT |
13844 | ; |
13845 | return 0; | |
13846 | } | |
13847 | _ACEOF | |
13848 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
13849 | ac_compiler_gnu=yes | |
47aaa820 | 13850 | else |
632b71ea | 13851 | ac_compiler_gnu=no |
47aaa820 | 13852 | fi |
632b71ea DWT |
13853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13854 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
9c60689e | 13855 | |
47aaa820 | 13856 | fi |
632b71ea DWT |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
13858 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
13859 | if test $ac_compiler_gnu = yes; then | |
13860 | GOBJCXX=yes | |
47aaa820 | 13861 | else |
632b71ea | 13862 | GOBJCXX= |
47aaa820 | 13863 | fi |
632b71ea DWT |
13864 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
13865 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
13867 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
13868 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
47aaa820 DWT |
13869 | $as_echo_n "(cached) " >&6 |
13870 | else | |
632b71ea DWT |
13871 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
13872 | ac_objcxx_werror_flag=yes | |
13873 | ac_cv_prog_objcxx_g=no | |
13874 | OBJCXXFLAGS="-g" | |
13875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13876 | /* end confdefs.h. */ | |
9c60689e | 13877 | |
632b71ea DWT |
13878 | int |
13879 | main () | |
13880 | { | |
9c60689e | 13881 | |
632b71ea DWT |
13882 | ; |
13883 | return 0; | |
13884 | } | |
13885 | _ACEOF | |
13886 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
13887 | ac_cv_prog_objcxx_g=yes | |
13888 | else | |
13889 | OBJCXXFLAGS="" | |
13890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13891 | /* end confdefs.h. */ | |
9c60689e | 13892 | |
632b71ea DWT |
13893 | int |
13894 | main () | |
13895 | { | |
9c60689e | 13896 | |
632b71ea DWT |
13897 | ; |
13898 | return 0; | |
13899 | } | |
13900 | _ACEOF | |
13901 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
47aaa820 | 13902 | |
632b71ea DWT |
13903 | else |
13904 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
13905 | OBJCXXFLAGS="-g" | |
13906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13907 | /* end confdefs.h. */ | |
47aaa820 | 13908 | |
632b71ea DWT |
13909 | int |
13910 | main () | |
13911 | { | |
47aaa820 | 13912 | |
632b71ea DWT |
13913 | ; |
13914 | return 0; | |
13915 | } | |
13916 | _ACEOF | |
13917 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
13918 | ac_cv_prog_objcxx_g=yes | |
47aaa820 | 13919 | fi |
632b71ea | 13920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 13921 | fi |
632b71ea | 13922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47aaa820 | 13923 | fi |
632b71ea DWT |
13924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13925 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
47aaa820 | 13926 | fi |
632b71ea DWT |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
13928 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
13929 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
13930 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
13931 | elif test $ac_cv_prog_objcxx_g = yes; then | |
13932 | if test "$GOBJCXX" = yes; then | |
13933 | OBJCXXFLAGS="-g -O2" | |
13934 | else | |
13935 | OBJCXXFLAGS="-g" | |
13936 | fi | |
47aaa820 | 13937 | else |
632b71ea DWT |
13938 | if test "$GOBJCXX" = yes; then |
13939 | OBJCXXFLAGS="-O2" | |
13940 | else | |
13941 | OBJCXXFLAGS= | |
13942 | fi | |
47aaa820 | 13943 | fi |
632b71ea DWT |
13944 | ac_ext=c |
13945 | ac_cpp='$CPP $CPPFLAGS' | |
13946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 13949 | |
9c60689e | 13950 | |
632b71ea DWT |
13951 | # Check whether --with-frameworks was given. |
13952 | if test "${with_frameworks+set}" = set; then : | |
13953 | withval=$with_frameworks; | |
13954 | for framework in $withval; do | |
47aaa820 | 13955 | |
632b71ea DWT |
13956 | for element in -F$framework; do |
13957 | haveit= | |
13958 | for x in $CFLAGS; do | |
47aaa820 | 13959 | |
632b71ea DWT |
13960 | acl_save_prefix="$prefix" |
13961 | prefix="$acl_final_prefix" | |
13962 | acl_save_exec_prefix="$exec_prefix" | |
13963 | exec_prefix="$acl_final_exec_prefix" | |
13964 | eval x=\"$x\" | |
13965 | exec_prefix="$acl_save_exec_prefix" | |
13966 | prefix="$acl_save_prefix" | |
47aaa820 | 13967 | |
632b71ea DWT |
13968 | if test "X$x" = "X$element"; then |
13969 | haveit=yes | |
13970 | break | |
13971 | fi | |
47aaa820 | 13972 | done |
632b71ea DWT |
13973 | if test -z "$haveit"; then |
13974 | CFLAGS="${CFLAGS}${CFLAGS:+ }$element" | |
13975 | fi | |
13976 | done | |
47aaa820 | 13977 | |
47aaa820 | 13978 | |
632b71ea DWT |
13979 | for element in -F$framework; do |
13980 | haveit= | |
13981 | for x in $CXXFLAGS; do | |
47aaa820 | 13982 | |
632b71ea DWT |
13983 | acl_save_prefix="$prefix" |
13984 | prefix="$acl_final_prefix" | |
13985 | acl_save_exec_prefix="$exec_prefix" | |
13986 | exec_prefix="$acl_final_exec_prefix" | |
13987 | eval x=\"$x\" | |
13988 | exec_prefix="$acl_save_exec_prefix" | |
13989 | prefix="$acl_save_prefix" | |
47aaa820 | 13990 | |
632b71ea DWT |
13991 | if test "X$x" = "X$element"; then |
13992 | haveit=yes | |
13993 | break | |
13994 | fi | |
13995 | done | |
13996 | if test -z "$haveit"; then | |
13997 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
13998 | fi | |
13999 | done | |
47aaa820 | 14000 | |
9c60689e | 14001 | |
632b71ea DWT |
14002 | for element in -F$framework; do |
14003 | haveit= | |
14004 | for x in $OBJCCXXFLAGS; do | |
9c60689e | 14005 | |
632b71ea DWT |
14006 | acl_save_prefix="$prefix" |
14007 | prefix="$acl_final_prefix" | |
14008 | acl_save_exec_prefix="$exec_prefix" | |
14009 | exec_prefix="$acl_final_exec_prefix" | |
14010 | eval x=\"$x\" | |
14011 | exec_prefix="$acl_save_exec_prefix" | |
14012 | prefix="$acl_save_prefix" | |
9c60689e | 14013 | |
632b71ea DWT |
14014 | if test "X$x" = "X$element"; then |
14015 | haveit=yes | |
14016 | break | |
14017 | fi | |
14018 | done | |
14019 | if test -z "$haveit"; then | |
14020 | OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element" | |
14021 | fi | |
14022 | done | |
9c60689e | 14023 | |
632b71ea | 14024 | done |
9c60689e | 14025 | |
47aaa820 | 14026 | fi |
9c60689e | 14027 | |
632b71ea DWT |
14028 | ac_ext=cpp |
14029 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
47aaa820 | 14033 | |
632b71ea DWT |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
14035 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
14036 | if test "${ac_cv_path_SED+set}" = set; then : | |
47aaa820 DWT |
14037 | $as_echo_n "(cached) " >&6 |
14038 | else | |
632b71ea DWT |
14039 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
14040 | for ac_i in 1 2 3 4 5 6 7; do | |
14041 | ac_script="$ac_script$as_nl$ac_script" | |
14042 | done | |
14043 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
14044 | { ac_script=; unset ac_script;} | |
14045 | if test -z "$SED"; then | |
14046 | ac_path_SED_found=false | |
14047 | # Loop through the user's path and test for each of PROGNAME-LIST | |
14048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47aaa820 DWT |
14049 | for as_dir in $PATH |
14050 | do | |
14051 | IFS=$as_save_IFS | |
14052 | test -z "$as_dir" && as_dir=. | |
632b71ea | 14053 | for ac_prog in sed gsed; do |
47aaa820 | 14054 | for ac_exec_ext in '' $ac_executable_extensions; do |
632b71ea DWT |
14055 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
14056 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
14057 | # Check for GNU ac_path_SED and select it if it is found. | |
14058 | # Check for GNU $ac_path_SED | |
14059 | case `"$ac_path_SED" --version 2>&1` in | |
14060 | *GNU*) | |
14061 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
14062 | *) | |
14063 | ac_count=0 | |
14064 | $as_echo_n 0123456789 >"conftest.in" | |
14065 | while : | |
14066 | do | |
14067 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
14068 | mv "conftest.tmp" "conftest.in" | |
14069 | cp "conftest.in" "conftest.nl" | |
14070 | $as_echo '' >> "conftest.nl" | |
14071 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
14072 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
14073 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
14074 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
14075 | # Best one so far, save it but keep looking for a better one | |
14076 | ac_cv_path_SED="$ac_path_SED" | |
14077 | ac_path_SED_max=$ac_count | |
14078 | fi | |
14079 | # 10*(2^10) chars as input seems more than enough | |
14080 | test $ac_count -gt 10 && break | |
14081 | done | |
14082 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
14083 | esac | |
14084 | ||
14085 | $ac_path_SED_found && break 3 | |
14086 | done | |
14087 | done | |
14088 | done | |
14089 | IFS=$as_save_IFS | |
14090 | if test -z "$ac_cv_path_SED"; then | |
14091 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
14092 | fi | |
14093 | else | |
14094 | ac_cv_path_SED=$SED | |
14095 | fi | |
47aaa820 | 14096 | |
632b71ea DWT |
14097 | fi |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
14099 | $as_echo "$ac_cv_path_SED" >&6; } | |
14100 | SED="$ac_cv_path_SED" | |
14101 | rm -f conftest.sed | |
47aaa820 | 14102 | |
632b71ea DWT |
14103 | for ac_prog in 'bison -y' byacc |
14104 | do | |
14105 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14106 | set dummy $ac_prog; ac_word=$2 | |
14107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14108 | $as_echo_n "checking for $ac_word... " >&6; } | |
14109 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
14110 | $as_echo_n "(cached) " >&6 | |
14111 | else | |
14112 | if test -n "$YACC"; then | |
14113 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
14114 | else | |
14115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14116 | for as_dir in $PATH | |
14117 | do | |
14118 | IFS=$as_save_IFS | |
14119 | test -z "$as_dir" && as_dir=. | |
14120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14122 | ac_cv_prog_YACC="$ac_prog" | |
14123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14124 | break 2 | |
14125 | fi | |
14126 | done | |
14127 | done | |
14128 | IFS=$as_save_IFS | |
14129 | ||
14130 | fi | |
14131 | fi | |
14132 | YACC=$ac_cv_prog_YACC | |
14133 | if test -n "$YACC"; then | |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14135 | $as_echo "$YACC" >&6; } | |
14136 | else | |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14138 | $as_echo "no" >&6; } | |
14139 | fi | |
14140 | ||
14141 | ||
14142 | test -n "$YACC" && break | |
47aaa820 | 14143 | done |
632b71ea | 14144 | test -n "$YACC" || YACC="yacc" |
47aaa820 | 14145 | |
27557508 | 14146 | |
632b71ea DWT |
14147 | |
14148 | ||
14149 | ||
14150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 | |
14151 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
14152 | if test "${ax_cv_prog_bison+set}" = set; then : | |
14153 | $as_echo_n "(cached) " >&6 | |
14154 | else | |
14155 | ||
14156 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : | |
14157 | ||
14158 | ax_cv_prog_bison=yes | |
14159 | ||
14160 | else | |
14161 | ||
14162 | ax_cv_prog_bison=no | |
14163 | ||
14164 | fi | |
14165 | ||
14166 | fi | |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
14168 | $as_echo "$ax_cv_prog_bison" >&6; } | |
14169 | if test "$ax_cv_prog_bison" = yes; then : | |
14170 | ||
14171 | : | |
14172 | ||
14173 | BISON=`echo $YACC | $SED -e 's/ -y//'` | |
14174 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
14175 | ||
14176 | ||
14177 | else | |
14178 | ||
14179 | : | |
14180 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 | |
14181 | ||
14182 | fi | |
14183 | ||
14184 | for ac_prog in gawk mawk nawk awk | |
47aaa820 DWT |
14185 | do |
14186 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14187 | set dummy $ac_prog; ac_word=$2 | |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14189 | $as_echo_n "checking for $ac_word... " >&6; } | |
632b71ea | 14190 | if test "${ac_cv_prog_AWK+set}" = set; then : |
47aaa820 DWT |
14191 | $as_echo_n "(cached) " >&6 |
14192 | else | |
632b71ea DWT |
14193 | if test -n "$AWK"; then |
14194 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
47aaa820 DWT |
14195 | else |
14196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14197 | for as_dir in $PATH | |
14198 | do | |
14199 | IFS=$as_save_IFS | |
14200 | test -z "$as_dir" && as_dir=. | |
14201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
632b71ea | 14203 | ac_cv_prog_AWK="$ac_prog" |
47aaa820 DWT |
14204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14205 | break 2 | |
9c60689e | 14206 | fi |
47aaa820 DWT |
14207 | done |
14208 | done | |
14209 | IFS=$as_save_IFS | |
9c60689e | 14210 | |
47aaa820 DWT |
14211 | fi |
14212 | fi | |
632b71ea DWT |
14213 | AWK=$ac_cv_prog_AWK |
14214 | if test -n "$AWK"; then | |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
14216 | $as_echo "$AWK" >&6; } | |
47aaa820 DWT |
14217 | else |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14219 | $as_echo "no" >&6; } | |
14220 | fi | |
9c60689e | 14221 | |
9c60689e | 14222 | |
632b71ea | 14223 | test -n "$AWK" && break |
47aaa820 DWT |
14224 | done |
14225 | ||
632b71ea DWT |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.3" >&5 |
14227 | $as_echo_n "checking if bison is >= 2.3... " >&6; } | |
14228 | as_arg_v1=$BISON_VERSION | |
14229 | as_arg_v2=2.3 | |
47aaa820 DWT |
14230 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null |
14231 | case $? in #( | |
14232 | 1) : | |
14233 | ||
14234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14235 | $as_echo "no" >&6; } | |
632b71ea | 14236 | as_fn_error "You need bison 2.3 or greater" "$LINENO" 5 |
47aaa820 DWT |
14237 | ;; #( |
14238 | 0) : | |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14240 | $as_echo "yes" >&6; } ;; #( | |
14241 | 2) : | |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14243 | $as_echo "yes" >&6; } ;; #( | |
14244 | *) : | |
14245 | ;; | |
9c60689e | 14246 | esac |
632b71ea DWT |
14247 | |
14248 | # expand $ac_aux_dir to an absolute path | |
14249 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
14250 | ||
14251 | if test x"${MISSING+set}" != xset; then | |
14252 | case $am_aux_dir in | |
14253 | *\ * | *\ *) | |
14254 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
14255 | *) | |
14256 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
14257 | esac | |
14258 | fi | |
14259 | # Use eval to expand $SHELL | |
14260 | if eval "$MISSING --run true"; then | |
14261 | am_missing_run="$MISSING --run " | |
14262 | else | |
14263 | am_missing_run= | |
14264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
14265 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
14266 | fi | |
14267 | ||
14268 | for ac_prog in flex lex | |
47aaa820 DWT |
14269 | do |
14270 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14271 | set dummy $ac_prog; ac_word=$2 | |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14273 | $as_echo_n "checking for $ac_word... " >&6; } | |
632b71ea | 14274 | if test "${ac_cv_prog_LEX+set}" = set; then : |
47aaa820 DWT |
14275 | $as_echo_n "(cached) " >&6 |
14276 | else | |
632b71ea DWT |
14277 | if test -n "$LEX"; then |
14278 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
47aaa820 DWT |
14279 | else |
14280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14281 | for as_dir in $PATH | |
14282 | do | |
14283 | IFS=$as_save_IFS | |
14284 | test -z "$as_dir" && as_dir=. | |
14285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
632b71ea | 14287 | ac_cv_prog_LEX="$ac_prog" |
47aaa820 DWT |
14288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14289 | break 2 | |
14290 | fi | |
14291 | done | |
14292 | done | |
14293 | IFS=$as_save_IFS | |
9c60689e | 14294 | |
9c60689e | 14295 | fi |
9c60689e | 14296 | fi |
632b71ea DWT |
14297 | LEX=$ac_cv_prog_LEX |
14298 | if test -n "$LEX"; then | |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14300 | $as_echo "$LEX" >&6; } | |
47aaa820 DWT |
14301 | else |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14303 | $as_echo "no" >&6; } | |
9c60689e DWT |
14304 | fi |
14305 | ||
14306 | ||
632b71ea | 14307 | test -n "$LEX" && break |
47aaa820 | 14308 | done |
632b71ea | 14309 | test -n "$LEX" || LEX=":" |
9c60689e | 14310 | |
632b71ea DWT |
14311 | if test "x$LEX" != "x:"; then |
14312 | cat >conftest.l <<_ACEOF | |
14313 | %% | |
14314 | a { ECHO; } | |
14315 | b { REJECT; } | |
14316 | c { yymore (); } | |
14317 | d { yyless (1); } | |
14318 | e { yyless (input () != 0); } | |
14319 | f { unput (yytext[0]); } | |
14320 | . { BEGIN INITIAL; } | |
14321 | %% | |
14322 | #ifdef YYTEXT_POINTER | |
14323 | extern char *yytext; | |
14324 | #endif | |
14325 | int | |
14326 | main (void) | |
14327 | { | |
14328 | return ! yylex () + ! yywrap (); | |
14329 | } | |
14330 | _ACEOF | |
14331 | { { ac_try="$LEX conftest.l" | |
14332 | case "(($ac_try" in | |
14333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14334 | *) ac_try_echo=$ac_try;; | |
14335 | esac | |
14336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14337 | $as_echo "$ac_try_echo"; } >&5 | |
14338 | (eval "$LEX conftest.l") 2>&5 | |
14339 | ac_status=$? | |
14340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14341 | test $ac_status = 0; } | |
14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14343 | $as_echo_n "checking lex output file root... " >&6; } | |
14344 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
14345 | $as_echo_n "(cached) " >&6 | |
14346 | else | |
9c60689e | 14347 | |
632b71ea DWT |
14348 | if test -f lex.yy.c; then |
14349 | ac_cv_prog_lex_root=lex.yy | |
14350 | elif test -f lexyy.c; then | |
14351 | ac_cv_prog_lex_root=lexyy | |
14352 | else | |
14353 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
14354 | fi | |
14355 | fi | |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14357 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14358 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
9c60689e | 14359 | |
632b71ea DWT |
14360 | if test -z "${LEXLIB+set}"; then |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14362 | $as_echo_n "checking lex library... " >&6; } | |
14363 | if test "${ac_cv_lib_lex+set}" = set; then : | |
14364 | $as_echo_n "(cached) " >&6 | |
14365 | else | |
9c60689e | 14366 | |
632b71ea DWT |
14367 | ac_save_LIBS=$LIBS |
14368 | ac_cv_lib_lex='none needed' | |
14369 | for ac_lib in '' -lfl -ll; do | |
14370 | LIBS="$ac_lib $ac_save_LIBS" | |
14371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14372 | /* end confdefs.h. */ | |
14373 | `cat $LEX_OUTPUT_ROOT.c` | |
14374 | _ACEOF | |
14375 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14376 | ac_cv_lib_lex=$ac_lib | |
14377 | fi | |
14378 | rm -f core conftest.err conftest.$ac_objext \ | |
14379 | conftest$ac_exeext conftest.$ac_ext | |
14380 | test "$ac_cv_lib_lex" != 'none needed' && break | |
47aaa820 | 14381 | done |
632b71ea | 14382 | LIBS=$ac_save_LIBS |
9c60689e | 14383 | |
632b71ea DWT |
14384 | fi |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
14386 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14387 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14388 | fi | |
9c60689e DWT |
14389 | |
14390 | ||
632b71ea DWT |
14391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
14392 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
14393 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
14394 | $as_echo_n "(cached) " >&6 | |
47aaa820 | 14395 | else |
632b71ea DWT |
14396 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14397 | # default is implementation-dependent. Figure out which it is, since | |
14398 | # not all implementations provide the %pointer and %array declarations. | |
14399 | ac_cv_prog_lex_yytext_pointer=no | |
14400 | ac_save_LIBS=$LIBS | |
14401 | LIBS="$LEXLIB $ac_save_LIBS" | |
14402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14403 | /* end confdefs.h. */ | |
14404 | #define YYTEXT_POINTER 1 | |
14405 | `cat $LEX_OUTPUT_ROOT.c` | |
14406 | _ACEOF | |
14407 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14408 | ac_cv_prog_lex_yytext_pointer=yes | |
47aaa820 | 14409 | fi |
632b71ea DWT |
14410 | rm -f core conftest.err conftest.$ac_objext \ |
14411 | conftest$ac_exeext conftest.$ac_ext | |
14412 | LIBS=$ac_save_LIBS | |
9c60689e | 14413 | |
632b71ea DWT |
14414 | fi |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
14416 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14417 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
9c60689e | 14418 | |
632b71ea | 14419 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
9c60689e | 14420 | |
632b71ea DWT |
14421 | fi |
14422 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
9c60689e | 14423 | |
632b71ea DWT |
14424 | fi |
14425 | if test "$LEX" = :; then | |
14426 | LEX=${am_missing_run}flex | |
14427 | fi | |
9c60689e DWT |
14428 | |
14429 | ||
14430 | ||
14431 | ||
632b71ea DWT |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 |
14433 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
14434 | if test "${ax_cv_prog_flex+set}" = set; then : | |
14435 | $as_echo_n "(cached) " >&6 | |
14436 | else | |
9c60689e | 14437 | |
632b71ea | 14438 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : |
9c60689e | 14439 | |
632b71ea | 14440 | ax_cv_prog_flex=yes |
9c60689e | 14441 | |
47aaa820 | 14442 | else |
9c60689e | 14443 | |
632b71ea | 14444 | ax_cv_prog_flex=no |
9c60689e | 14445 | |
47aaa820 | 14446 | fi |
9c60689e | 14447 | |
47aaa820 | 14448 | fi |
632b71ea DWT |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 |
14450 | $as_echo "$ax_cv_prog_flex" >&6; } | |
14451 | if test "$ax_cv_prog_flex" = yes; then : | |
9c60689e | 14452 | |
632b71ea | 14453 | : |
9c60689e | 14454 | |
632b71ea DWT |
14455 | FLEX=$LEX |
14456 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
9c60689e DWT |
14457 | |
14458 | ||
47aaa820 | 14459 | else |
9c60689e | 14460 | |
632b71ea DWT |
14461 | : |
14462 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
9c60689e | 14463 | |
47aaa820 | 14464 | fi |
9c60689e | 14465 | |
632b71ea DWT |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.33" >&5 |
14467 | $as_echo_n "checking if flex is >= 2.5.33... " >&6; } | |
14468 | as_arg_v1=$FLEX_VERSION | |
14469 | as_arg_v2=2.5.33 | |
14470 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14471 | case $? in #( | |
14472 | 1) : | |
9c60689e | 14473 | |
632b71ea DWT |
14474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14475 | $as_echo "no" >&6; } | |
14476 | as_fn_error "You need flex 2.5.33 or greater" "$LINENO" 5 | |
14477 | ;; #( | |
14478 | 0) : | |
14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14480 | $as_echo "yes" >&6; } ;; #( | |
14481 | 2) : | |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14483 | $as_echo "yes" >&6; } ;; #( | |
14484 | *) : | |
14485 | ;; | |
14486 | esac | |
9c60689e | 14487 | |
632b71ea DWT |
14488 | for ac_prog in bash |
14489 | do | |
14490 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14491 | set dummy $ac_prog; ac_word=$2 | |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14493 | $as_echo_n "checking for $ac_word... " >&6; } | |
14494 | if test "${ac_cv_prog__BASH+set}" = set; then : | |
14495 | $as_echo_n "(cached) " >&6 | |
14496 | else | |
14497 | if test -n "$_BASH"; then | |
14498 | ac_cv_prog__BASH="$_BASH" # Let the user override the test. | |
14499 | else | |
14500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14501 | for as_dir in $PATH | |
14502 | do | |
14503 | IFS=$as_save_IFS | |
14504 | test -z "$as_dir" && as_dir=. | |
14505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14507 | ac_cv_prog__BASH="$ac_prog" | |
14508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14509 | break 2 | |
14510 | fi | |
14511 | done | |
14512 | done | |
14513 | IFS=$as_save_IFS | |
9c60689e | 14514 | |
47aaa820 | 14515 | fi |
632b71ea DWT |
14516 | fi |
14517 | _BASH=$ac_cv_prog__BASH | |
14518 | if test -n "$_BASH"; then | |
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
14520 | $as_echo "$_BASH" >&6; } | |
14521 | else | |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14523 | $as_echo "no" >&6; } | |
14524 | fi | |
14525 | ||
9c60689e | 14526 | |
632b71ea | 14527 | test -n "$_BASH" && break |
47aaa820 | 14528 | done |
9c60689e DWT |
14529 | |
14530 | ||
632b71ea DWT |
14531 | for ac_prog in gperf |
14532 | do | |
14533 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14534 | set dummy $ac_prog; ac_word=$2 | |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14536 | $as_echo_n "checking for $ac_word... " >&6; } | |
14537 | if test "${ac_cv_prog_GPERF+set}" = set; then : | |
9c60689e DWT |
14538 | $as_echo_n "(cached) " >&6 |
14539 | else | |
632b71ea DWT |
14540 | if test -n "$GPERF"; then |
14541 | ac_cv_prog_GPERF="$GPERF" # Let the user override the test. | |
14542 | else | |
14543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9c60689e DWT |
14544 | for as_dir in $PATH |
14545 | do | |
14546 | IFS=$as_save_IFS | |
14547 | test -z "$as_dir" && as_dir=. | |
632b71ea DWT |
14548 | for ac_exec_ext in '' $ac_executable_extensions; do |
14549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14550 | ac_cv_prog_GPERF="$ac_prog" | |
14551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14552 | break 2 | |
14553 | fi | |
14554 | done | |
9c60689e DWT |
14555 | done |
14556 | IFS=$as_save_IFS | |
14557 | ||
9c60689e | 14558 | fi |
9c60689e | 14559 | fi |
632b71ea DWT |
14560 | GPERF=$ac_cv_prog_GPERF |
14561 | if test -n "$GPERF"; then | |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
14563 | $as_echo "$GPERF" >&6; } | |
14564 | else | |
14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14566 | $as_echo "no" >&6; } | |
14567 | fi | |
94690cff | 14568 | |
9c60689e | 14569 | |
632b71ea DWT |
14570 | test -n "$GPERF" && break |
14571 | done | |
9c60689e | 14572 | |
632b71ea DWT |
14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gperf >= 3.0.3" >&5 |
14574 | $as_echo_n "checking if gperf >= 3.0.3... " >&6; } | |
14575 | GPERF_VERSION=`$GPERF --version | $SED -e 's/^.* \([0-9.]*\)$/\1/p;d'` | |
14576 | as_arg_v1=$GPERF_VERSION | |
14577 | as_arg_v2=3.0.3 | |
14578 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
14579 | case $? in #( | |
14580 | 1) : | |
9c60689e | 14581 | |
632b71ea DWT |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14583 | $as_echo "no" >&6; } | |
14584 | as_fn_error "You need gperf 3.0.3 or greater" "$LINENO" 5 | |
14585 | ;; #( | |
14586 | 0) : | |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14588 | $as_echo "yes" >&6; } ;; #( | |
14589 | 2) : | |
14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14591 | $as_echo "yes" >&6; } ;; #( | |
14592 | *) : | |
14593 | ;; | |
14594 | esac | |
14595 | for ac_prog in time | |
14596 | do | |
14597 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14598 | set dummy $ac_prog; ac_word=$2 | |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14600 | $as_echo_n "checking for $ac_word... " >&6; } | |
14601 | if test "${ac_cv_prog_TIME+set}" = set; then : | |
14602 | $as_echo_n "(cached) " >&6 | |
9c60689e | 14603 | else |
632b71ea DWT |
14604 | if test -n "$TIME"; then |
14605 | ac_cv_prog_TIME="$TIME" # Let the user override the test. | |
9c60689e | 14606 | else |
632b71ea DWT |
14607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14608 | for as_dir in $PATH | |
14609 | do | |
14610 | IFS=$as_save_IFS | |
14611 | test -z "$as_dir" && as_dir=. | |
14612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
14614 | ac_cv_prog_TIME="$ac_prog" | |
14615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14616 | break 2 | |
14617 | fi | |
14618 | done | |
9c60689e | 14619 | done |
632b71ea DWT |
14620 | IFS=$as_save_IFS |
14621 | ||
9c60689e DWT |
14622 | fi |
14623 | fi | |
632b71ea DWT |
14624 | TIME=$ac_cv_prog_TIME |
14625 | if test -n "$TIME"; then | |
14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 | |
14627 | $as_echo "$TIME" >&6; } | |
9c60689e DWT |
14628 | else |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14630 | $as_echo "no" >&6; } | |
14631 | fi | |
9c60689e DWT |
14632 | |
14633 | ||
632b71ea DWT |
14634 | test -n "$TIME" && break |
14635 | done | |
9c60689e DWT |
14636 | |
14637 | ||
632b71ea | 14638 | apr_found="no" |
9c60689e | 14639 | |
632b71ea DWT |
14640 | if test "$target_os" = "os2-emx"; then |
14641 | # Scripts don't pass test -x on OS/2 | |
14642 | TEST_X="test -f" | |
14643 | else | |
14644 | TEST_X="test -x" | |
14645 | fi | |
9c60689e | 14646 | |
632b71ea | 14647 | acceptable_majors="1" |
9c60689e | 14648 | |
632b71ea DWT |
14649 | apr_temp_acceptable_apr_config="" |
14650 | for apr_temp_major in $acceptable_majors | |
14651 | do | |
14652 | case $apr_temp_major in | |
14653 | 0) | |
14654 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
14655 | ;; | |
14656 | *) | |
14657 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
14658 | ;; | |
14659 | esac | |
14660 | done | |
9c60689e | 14661 | |
632b71ea DWT |
14662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 |
14663 | $as_echo_n "checking for APR... " >&6; } | |
9c60689e | 14664 | |
632b71ea DWT |
14665 | # Check whether --with-apr was given. |
14666 | if test "${with_apr+set}" = set; then : | |
14667 | withval=$with_apr; | |
14668 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
14669 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
14670 | fi | |
9c60689e | 14671 | |
632b71ea DWT |
14672 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config |
14673 | do | |
14674 | for lookdir in "$withval/bin" "$withval" | |
14675 | do | |
14676 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
14677 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
9c60689e | 14678 | |
632b71ea DWT |
14679 | apr_found="yes" |
14680 | break 2 | |
14681 | fi | |
14682 | done | |
14683 | done | |
9c60689e | 14684 | |
632b71ea DWT |
14685 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then |
14686 | apr_config="$withval" | |
14687 | apr_found="yes" | |
14688 | fi | |
9c60689e | 14689 | |
632b71ea DWT |
14690 | if test "$apr_found" != "yes"; then |
14691 | 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 | |
14692 | fi | |
9c60689e | 14693 | |
632b71ea | 14694 | else |
9c60689e | 14695 | |
632b71ea DWT |
14696 | if test -n "1" && test "1" = "1"; then |
14697 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
14698 | do | |
14699 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
14700 | apr_config="$apr_temp_apr_config_file" | |
9c60689e | 14701 | |
632b71ea DWT |
14702 | apr_found="yes" |
14703 | break | |
14704 | else | |
14705 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
14706 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
14707 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
9c60689e | 14708 | |
632b71ea DWT |
14709 | apr_found="yes" |
14710 | break 2 | |
14711 | fi | |
14712 | done | |
14713 | fi | |
14714 | done | |
14715 | fi | |
14716 | if test "$apr_found" = "no" && test -d ""; then | |
14717 | apr_temp_abs_srcdir="`cd && pwd`" | |
14718 | apr_found="reconfig" | |
14719 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
14720 | case $apr_bundled_major in | |
14721 | "") | |
14722 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
14723 | ;; | |
14724 | 0) | |
14725 | apr_temp_apr_config_file="apr-config" | |
14726 | ;; | |
14727 | *) | |
14728 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
14729 | ;; | |
14730 | esac | |
14731 | if test -n ""; then | |
14732 | apr_config="/$apr_temp_apr_config_file" | |
14733 | else | |
14734 | apr_config="/$apr_temp_apr_config_file" | |
14735 | fi | |
14736 | fi | |
9c60689e | 14737 | |
632b71ea | 14738 | fi |
9c60689e | 14739 | |
9c60689e | 14740 | |
632b71ea DWT |
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 |
14742 | $as_echo "$apr_found" >&6; } | |
9c60689e | 14743 | |
632b71ea DWT |
14744 | case $apr_found in #( |
14745 | yes) : | |
9c60689e DWT |
14746 | |
14747 | ||
632b71ea DWT |
14748 | for element in `$apr_config --includes`; do |
14749 | haveit= | |
14750 | for x in $CPPFLAGS; do | |
9c60689e DWT |
14751 | |
14752 | acl_save_prefix="$prefix" | |
14753 | prefix="$acl_final_prefix" | |
14754 | acl_save_exec_prefix="$exec_prefix" | |
14755 | exec_prefix="$acl_final_exec_prefix" | |
632b71ea | 14756 | eval x=\"$x\" |
9c60689e DWT |
14757 | exec_prefix="$acl_save_exec_prefix" |
14758 | prefix="$acl_save_prefix" | |
14759 | ||
632b71ea DWT |
14760 | if test "X$x" = "X$element"; then |
14761 | haveit=yes | |
14762 | break | |
9c60689e | 14763 | fi |
632b71ea DWT |
14764 | done |
14765 | if test -z "$haveit"; then | |
14766 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9c60689e | 14767 | fi |
632b71ea | 14768 | done |
9c60689e | 14769 | |
632b71ea | 14770 | LTLIBAPR=`$apr_config --link-libtool` |
9c60689e | 14771 | |
632b71ea DWT |
14772 | ;; #( |
14773 | *) : | |
14774 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
14775 | esac | |
14776 | ||
14777 | ||
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
14779 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
14780 | if test "${vl_cv_lib_readline+set}" = set; then : | |
14781 | $as_echo_n "(cached) " >&6 | |
14782 | else | |
14783 | ||
14784 | ORIG_LIBS="$LIBS" | |
14785 | for readline_lib in readline edit editline; do | |
14786 | for termcap_lib in "" termcap curses ncurses; do | |
14787 | if test -z "$termcap_lib"; then | |
14788 | TRY_LIB="-l$readline_lib" | |
14789 | else | |
14790 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
14791 | fi | |
14792 | LIBS="$ORIG_LIBS $TRY_LIB" | |
14793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14794 | /* end confdefs.h. */ | |
14795 | ||
14796 | /* Override any GCC internal prototype to avoid an error. | |
14797 | Use char because int might match the return type of a GCC | |
14798 | builtin and then its argument prototype would still apply. */ | |
14799 | #ifdef __cplusplus | |
14800 | extern "C" | |
14801 | #endif | |
14802 | char readline (); | |
14803 | int | |
14804 | main () | |
14805 | { | |
14806 | return readline (); | |
14807 | ; | |
14808 | return 0; | |
14809 | } | |
14810 | _ACEOF | |
14811 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14812 | vl_cv_lib_readline="$TRY_LIB" | |
14813 | fi | |
14814 | rm -f core conftest.err conftest.$ac_objext \ | |
14815 | conftest$ac_exeext conftest.$ac_ext | |
14816 | if test -n "$vl_cv_lib_readline"; then | |
9c60689e DWT |
14817 | break |
14818 | fi | |
14819 | done | |
632b71ea DWT |
14820 | if test -n "$vl_cv_lib_readline"; then |
14821 | break | |
14822 | fi | |
14823 | done | |
14824 | if test -z "$vl_cv_lib_readline"; then | |
14825 | vl_cv_lib_readline="no" | |
14826 | LIBS="$ORIG_LIBS" | |
14827 | fi | |
9c60689e | 14828 | |
632b71ea DWT |
14829 | fi |
14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
14831 | $as_echo "$vl_cv_lib_readline" >&6; } | |
9c60689e | 14832 | |
632b71ea | 14833 | if test "$vl_cv_lib_readline" != "no"; then |
9c60689e | 14834 | |
632b71ea | 14835 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h |
9c60689e | 14836 | |
632b71ea DWT |
14837 | for ac_header in readline.h readline/readline.h |
14838 | do : | |
14839 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14840 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14841 | eval as_val=\$$as_ac_Header | |
14842 | if test "x$as_val" = x""yes; then : | |
14843 | cat >>confdefs.h <<_ACEOF | |
14844 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14845 | _ACEOF | |
9c60689e | 14846 | |
632b71ea | 14847 | fi |
9c60689e | 14848 | |
632b71ea | 14849 | done |
9c60689e | 14850 | |
632b71ea DWT |
14851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 |
14852 | $as_echo_n "checking whether readline supports history... " >&6; } | |
14853 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
14854 | $as_echo_n "(cached) " >&6 | |
14855 | else | |
9c60689e | 14856 | |
632b71ea DWT |
14857 | vl_cv_lib_readline_history="no" |
14858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14859 | /* end confdefs.h. */ | |
9c60689e | 14860 | |
632b71ea DWT |
14861 | /* Override any GCC internal prototype to avoid an error. |
14862 | Use char because int might match the return type of a GCC | |
14863 | builtin and then its argument prototype would still apply. */ | |
14864 | #ifdef __cplusplus | |
14865 | extern "C" | |
14866 | #endif | |
14867 | char add_history (); | |
14868 | int | |
14869 | main () | |
14870 | { | |
14871 | return add_history (); | |
14872 | ; | |
14873 | return 0; | |
14874 | } | |
14875 | _ACEOF | |
14876 | if ac_fn_cxx_try_link "$LINENO"; then : | |
14877 | vl_cv_lib_readline_history="yes" | |
14878 | fi | |
14879 | rm -f core conftest.err conftest.$ac_objext \ | |
14880 | conftest$ac_exeext conftest.$ac_ext | |
9c60689e | 14881 | |
632b71ea DWT |
14882 | fi |
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
14884 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
14885 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
9c60689e | 14886 | |
632b71ea | 14887 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h |
9c60689e | 14888 | |
632b71ea DWT |
14889 | for ac_header in history.h readline/history.h |
14890 | do : | |
14891 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14892 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14893 | eval as_val=\$$as_ac_Header | |
14894 | if test "x$as_val" = x""yes; then : | |
14895 | cat >>confdefs.h <<_ACEOF | |
14896 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14897 | _ACEOF | |
9c60689e | 14898 | |
632b71ea | 14899 | fi |
9c60689e | 14900 | |
632b71ea | 14901 | done |
9c60689e | 14902 | |
9c60689e | 14903 | fi |
632b71ea | 14904 | fi |
9c60689e | 14905 | |
632b71ea DWT |
14906 | # Find a good install program. We prefer a C program (faster), |
14907 | # so one script is as good as another. But avoid the broken or | |
14908 | # incompatible versions: | |
14909 | # SysV /etc/install, /usr/sbin/install | |
14910 | # SunOS /usr/etc/install | |
14911 | # IRIX /sbin/install | |
14912 | # AIX /bin/install | |
14913 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14914 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14915 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14916 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14917 | # OS/2's system install, which has a completely different semantic | |
14918 | # ./install, which can be erroneously created by make from ./install.sh. | |
14919 | # Reject install programs that cannot install multiple files. | |
14920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14921 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14922 | if test -z "$INSTALL"; then | |
14923 | if test "${ac_cv_path_install+set}" = set; then : | |
9c60689e DWT |
14924 | $as_echo_n "(cached) " >&6 |
14925 | else | |
632b71ea DWT |
14926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14927 | for as_dir in $PATH | |
14928 | do | |
14929 | IFS=$as_save_IFS | |
14930 | test -z "$as_dir" && as_dir=. | |
14931 | # Account for people who put trailing slashes in PATH elements. | |
14932 | case $as_dir/ in #(( | |
14933 | ./ | .// | /[cC]/* | \ | |
14934 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14935 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14936 | /usr/ucb/* ) ;; | |
14937 | *) | |
14938 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14939 | # Don't use installbsd from OSF since it installs stuff as root | |
14940 | # by default. | |
14941 | for ac_prog in ginstall scoinst install; do | |
14942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14943 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
14944 | if test $ac_prog = install && | |
14945 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14946 | # AIX install. It has an incompatible calling convention. | |
14947 | : | |
14948 | elif test $ac_prog = install && | |
14949 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14950 | # program-specific install script used by HP pwplus--don't use. | |
14951 | : | |
14952 | else | |
14953 | rm -rf conftest.one conftest.two conftest.dir | |
14954 | echo one > conftest.one | |
14955 | echo two > conftest.two | |
14956 | mkdir conftest.dir | |
14957 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14958 | test -s conftest.one && test -s conftest.two && | |
14959 | test -s conftest.dir/conftest.one && | |
14960 | test -s conftest.dir/conftest.two | |
14961 | then | |
14962 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14963 | break 3 | |
14964 | fi | |
14965 | fi | |
14966 | fi | |
14967 | done | |
14968 | done | |
14969 | ;; | |
14970 | esac | |
14971 | ||
14972 | done | |
14973 | IFS=$as_save_IFS | |
14974 | ||
14975 | rm -rf conftest.one conftest.two conftest.dir | |
9c60689e | 14976 | |
9c60689e | 14977 | fi |
632b71ea DWT |
14978 | if test "${ac_cv_path_install+set}" = set; then |
14979 | INSTALL=$ac_cv_path_install | |
14980 | else | |
14981 | # As a last resort, use the slow shell script. Don't cache a | |
14982 | # value for INSTALL within a source directory, because that will | |
14983 | # break other packages using the cache if that directory is | |
14984 | # removed, or if the value is a relative name. | |
14985 | INSTALL=$ac_install_sh | |
14986 | fi | |
9c60689e | 14987 | fi |
632b71ea DWT |
14988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
14989 | $as_echo "$INSTALL" >&6; } | |
9c60689e | 14990 | |
632b71ea DWT |
14991 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
14992 | # It thinks the first close brace ends the variable substitution. | |
14993 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9c60689e | 14994 | |
632b71ea | 14995 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
9c60689e | 14996 | |
632b71ea | 14997 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9c60689e | 14998 | |
632b71ea DWT |
14999 | ac_ext=c |
15000 | ac_cpp='$CPP $CPPFLAGS' | |
15001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9c60689e | 15004 | |
9c60689e | 15005 | |
632b71ea DWT |
15006 | if test "X$prefix" = "XNONE"; then |
15007 | acl_final_prefix="$ac_default_prefix" | |
15008 | else | |
15009 | acl_final_prefix="$prefix" | |
9c60689e | 15010 | fi |
632b71ea DWT |
15011 | if test "X$exec_prefix" = "XNONE"; then |
15012 | acl_final_exec_prefix='${prefix}' | |
9c60689e | 15013 | else |
632b71ea | 15014 | acl_final_exec_prefix="$exec_prefix" |
9c60689e | 15015 | fi |
632b71ea DWT |
15016 | acl_save_prefix="$prefix" |
15017 | prefix="$acl_final_prefix" | |
15018 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
15019 | prefix="$acl_save_prefix" | |
9c60689e DWT |
15020 | |
15021 | ||
632b71ea DWT |
15022 | # Check whether --with-gnu-ld was given. |
15023 | if test "${with_gnu_ld+set}" = set; then : | |
15024 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
9c60689e | 15025 | else |
632b71ea | 15026 | with_gnu_ld=no |
9c60689e DWT |
15027 | fi |
15028 | ||
632b71ea DWT |
15029 | # Prepare PATH_SEPARATOR. |
15030 | # The user is always right. | |
15031 | if test "${PATH_SEPARATOR+set}" != set; then | |
15032 | echo "#! /bin/sh" >conf$$.sh | |
15033 | echo "exit 0" >>conf$$.sh | |
15034 | chmod +x conf$$.sh | |
15035 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15036 | PATH_SEPARATOR=';' | |
15037 | else | |
15038 | PATH_SEPARATOR=: | |
9c60689e | 15039 | fi |
632b71ea DWT |
15040 | rm -f conf$$.sh |
15041 | fi | |
15042 | ac_prog=ld | |
15043 | if test "$GCC" = yes; then | |
15044 | # Check if gcc -print-prog-name=ld gives a path. | |
15045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
15046 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
15047 | case $host in | |
15048 | *-*-mingw*) | |
15049 | # gcc leaves a trailing carriage return which upsets mingw | |
15050 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
15051 | *) | |
15052 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15053 | esac | |
15054 | case $ac_prog in | |
15055 | # Accept absolute paths. | |
15056 | [\\/]* | [A-Za-z]:[\\/]*) | |
15057 | re_direlt='/[^/][^/]*/\.\./' | |
15058 | # Canonicalize the path of ld | |
15059 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
15060 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
15061 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
15062 | done | |
15063 | test -z "$LD" && LD="$ac_prog" | |
15064 | ;; | |
15065 | "") | |
15066 | # If it fails, then pretend we aren't using GCC. | |
15067 | ac_prog=ld | |
15068 | ;; | |
15069 | *) | |
15070 | # If it is relative, then search for the first ld in PATH. | |
15071 | with_gnu_ld=unknown | |
15072 | ;; | |
15073 | esac | |
15074 | elif test "$with_gnu_ld" = yes; then | |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
15076 | $as_echo_n "checking for GNU ld... " >&6; } | |
9c60689e | 15077 | else |
632b71ea DWT |
15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
15079 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
9c60689e | 15080 | fi |
632b71ea DWT |
15081 | if test "${acl_cv_path_LD+set}" = set; then : |
15082 | $as_echo_n "(cached) " >&6 | |
15083 | else | |
15084 | if test -z "$LD"; then | |
15085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
15086 | for ac_dir in $PATH; do | |
15087 | test -z "$ac_dir" && ac_dir=. | |
15088 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
15089 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
15090 | # Check to see if the program is GNU ld. I'd rather use --version, | |
15091 | # but apparently some GNU ld's only accept -v. | |
15092 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15093 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
15094 | *GNU* | *'with BFD'*) | |
15095 | test "$with_gnu_ld" != no && break ;; | |
15096 | *) | |
15097 | test "$with_gnu_ld" != yes && break ;; | |
15098 | esac | |
9c60689e | 15099 | fi |
632b71ea DWT |
15100 | done |
15101 | IFS="$ac_save_ifs" | |
9c60689e | 15102 | else |
632b71ea | 15103 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
9c60689e | 15104 | fi |
632b71ea DWT |
15105 | fi |
15106 | ||
15107 | LD="$acl_cv_path_LD" | |
15108 | if test -n "$LD"; then | |
15109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
15110 | $as_echo "$LD" >&6; } | |
9c60689e | 15111 | else |
632b71ea DWT |
15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15113 | $as_echo "no" >&6; } | |
9c60689e | 15114 | fi |
632b71ea DWT |
15115 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
15117 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
15118 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
15119 | $as_echo_n "(cached) " >&6 | |
9c60689e | 15120 | else |
632b71ea DWT |
15121 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
15122 | case `$LD -v 2>&1 </dev/null` in | |
15123 | *GNU* | *'with BFD'*) | |
15124 | acl_cv_prog_gnu_ld=yes ;; | |
15125 | *) | |
15126 | acl_cv_prog_gnu_ld=no ;; | |
15127 | esac | |
9c60689e | 15128 | fi |
632b71ea DWT |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
15130 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
15131 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
9c60689e DWT |
15132 | |
15133 | ||
15134 | ||
9c60689e | 15135 | |
632b71ea DWT |
15136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
15137 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
15138 | if test "${acl_cv_rpath+set}" = set; then : | |
15139 | $as_echo_n "(cached) " >&6 | |
9c60689e | 15140 | else |
632b71ea DWT |
15141 | |
15142 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
15143 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
15144 | . ./conftest.sh | |
15145 | rm -f ./conftest.sh | |
15146 | acl_cv_rpath=done | |
15147 | ||
9c60689e | 15148 | fi |
632b71ea DWT |
15149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
15150 | $as_echo "$acl_cv_rpath" >&6; } | |
15151 | wl="$acl_cv_wl" | |
15152 | acl_libext="$acl_cv_libext" | |
15153 | acl_shlibext="$acl_cv_shlibext" | |
15154 | acl_libname_spec="$acl_cv_libname_spec" | |
15155 | acl_library_names_spec="$acl_cv_library_names_spec" | |
15156 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
15157 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
15158 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
15159 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
15160 | # Check whether --enable-rpath was given. | |
15161 | if test "${enable_rpath+set}" = set; then : | |
15162 | enableval=$enable_rpath; : | |
15163 | else | |
15164 | enable_rpath=yes | |
15165 | fi | |
15166 | ||
15167 | ||
15168 | ||
15169 | acl_libdirstem=lib | |
15170 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
15171 | if test -n "$searchpath"; then | |
15172 | acl_save_IFS="${IFS= }"; IFS=":" | |
15173 | for searchdir in $searchpath; do | |
15174 | if test -d "$searchdir"; then | |
15175 | case "$searchdir" in | |
15176 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
15177 | *) searchdir=`cd "$searchdir" && pwd` | |
15178 | case "$searchdir" in | |
15179 | */lib64 ) acl_libdirstem=lib64 ;; | |
15180 | esac ;; | |
15181 | esac | |
15182 | fi | |
15183 | done | |
15184 | IFS="$acl_save_IFS" | |
15185 | fi | |
15186 | ||
15187 | ||
15188 | ||
15189 | ||
15190 | ||
15191 | ||
15192 | ||
15193 | ||
15194 | ||
15195 | use_additional=yes | |
15196 | ||
15197 | acl_save_prefix="$prefix" | |
15198 | prefix="$acl_final_prefix" | |
15199 | acl_save_exec_prefix="$exec_prefix" | |
15200 | exec_prefix="$acl_final_exec_prefix" | |
15201 | ||
15202 | eval additional_includedir=\"$includedir\" | |
15203 | eval additional_libdir=\"$libdir\" | |
15204 | ||
15205 | exec_prefix="$acl_save_exec_prefix" | |
15206 | prefix="$acl_save_prefix" | |
15207 | ||
15208 | ||
15209 | # Check whether --with-libiconv-prefix was given. | |
15210 | if test "${with_libiconv_prefix+set}" = set; then : | |
15211 | withval=$with_libiconv_prefix; | |
15212 | if test "X$withval" = "Xno"; then | |
15213 | use_additional=no | |
15214 | else | |
15215 | if test "X$withval" = "X"; then | |
15216 | ||
15217 | acl_save_prefix="$prefix" | |
15218 | prefix="$acl_final_prefix" | |
15219 | acl_save_exec_prefix="$exec_prefix" | |
15220 | exec_prefix="$acl_final_exec_prefix" | |
15221 | ||
15222 | eval additional_includedir=\"$includedir\" | |
15223 | eval additional_libdir=\"$libdir\" | |
15224 | ||
15225 | exec_prefix="$acl_save_exec_prefix" | |
15226 | prefix="$acl_save_prefix" | |
15227 | ||
15228 | else | |
15229 | additional_includedir="$withval/include" | |
15230 | additional_libdir="$withval/$acl_libdirstem" | |
15231 | fi | |
15232 | fi | |
15233 | ||
15234 | fi | |
15235 | ||
15236 | LIBICONV= | |
15237 | LTLIBICONV= | |
15238 | INCICONV= | |
15239 | LIBICONV_PREFIX= | |
15240 | rpathdirs= | |
15241 | ltrpathdirs= | |
15242 | names_already_handled= | |
15243 | names_next_round='iconv ' | |
15244 | while test -n "$names_next_round"; do | |
15245 | names_this_round="$names_next_round" | |
15246 | names_next_round= | |
15247 | for name in $names_this_round; do | |
15248 | already_handled= | |
15249 | for n in $names_already_handled; do | |
15250 | if test "$n" = "$name"; then | |
15251 | already_handled=yes | |
15252 | break | |
15253 | fi | |
15254 | done | |
15255 | if test -z "$already_handled"; then | |
15256 | names_already_handled="$names_already_handled $name" | |
15257 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
15258 | eval value=\"\$HAVE_LIB$uppername\" | |
15259 | if test -n "$value"; then | |
15260 | if test "$value" = yes; then | |
15261 | eval value=\"\$LIB$uppername\" | |
15262 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
15263 | eval value=\"\$LTLIB$uppername\" | |
15264 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
15265 | else | |
15266 | : | |
15267 | fi | |
15268 | else | |
15269 | found_dir= | |
15270 | found_la= | |
15271 | found_so= | |
15272 | found_a= | |
15273 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
15274 | if test -n "$acl_shlibext"; then | |
15275 | shrext=".$acl_shlibext" # typically: shrext=.so | |
15276 | else | |
15277 | shrext= | |
15278 | fi | |
15279 | if test $use_additional = yes; then | |
15280 | dir="$additional_libdir" | |
15281 | if test -n "$acl_shlibext"; then | |
15282 | if test -f "$dir/$libname$shrext"; then | |
15283 | found_dir="$dir" | |
15284 | found_so="$dir/$libname$shrext" | |
15285 | else | |
15286 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
15287 | ver=`(cd "$dir" && \ | |
15288 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
15289 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
15290 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
15291 | | sed 1q ) 2>/dev/null` | |
15292 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
15293 | found_dir="$dir" | |
15294 | found_so="$dir/$libname$shrext.$ver" | |
15295 | fi | |
15296 | else | |
15297 | eval library_names=\"$acl_library_names_spec\" | |
15298 | for f in $library_names; do | |
15299 | if test -f "$dir/$f"; then | |
15300 | found_dir="$dir" | |
15301 | found_so="$dir/$f" | |
15302 | break | |
15303 | fi | |
15304 | done | |
15305 | fi | |
15306 | fi | |
15307 | fi | |
15308 | if test "X$found_dir" = "X"; then | |
15309 | if test -f "$dir/$libname.$acl_libext"; then | |
15310 | found_dir="$dir" | |
15311 | found_a="$dir/$libname.$acl_libext" | |
15312 | fi | |
15313 | fi | |
15314 | if test "X$found_dir" != "X"; then | |
15315 | if test -f "$dir/$libname.la"; then | |
15316 | found_la="$dir/$libname.la" | |
15317 | fi | |
15318 | fi | |
15319 | fi | |
15320 | if test "X$found_dir" = "X"; then | |
15321 | for x in $LDFLAGS $LTLIBICONV; do | |
15322 | ||
15323 | acl_save_prefix="$prefix" | |
15324 | prefix="$acl_final_prefix" | |
15325 | acl_save_exec_prefix="$exec_prefix" | |
15326 | exec_prefix="$acl_final_exec_prefix" | |
15327 | eval x=\"$x\" | |
15328 | exec_prefix="$acl_save_exec_prefix" | |
15329 | prefix="$acl_save_prefix" | |
15330 | ||
15331 | case "$x" in | |
15332 | -L*) | |
15333 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
15334 | if test -n "$acl_shlibext"; then | |
15335 | if test -f "$dir/$libname$shrext"; then | |
15336 | found_dir="$dir" | |
15337 | found_so="$dir/$libname$shrext" | |
15338 | else | |
15339 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
15340 | ver=`(cd "$dir" && \ | |
15341 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
15342 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
15343 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
15344 | | sed 1q ) 2>/dev/null` | |
15345 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
15346 | found_dir="$dir" | |
15347 | found_so="$dir/$libname$shrext.$ver" | |
15348 | fi | |
15349 | else | |
15350 | eval library_names=\"$acl_library_names_spec\" | |
15351 | for f in $library_names; do | |
15352 | if test -f "$dir/$f"; then | |
15353 | found_dir="$dir" | |
15354 | found_so="$dir/$f" | |
15355 | break | |
15356 | fi | |
15357 | done | |
15358 | fi | |
15359 | fi | |
15360 | fi | |
15361 | if test "X$found_dir" = "X"; then | |
15362 | if test -f "$dir/$libname.$acl_libext"; then | |
15363 | found_dir="$dir" | |
15364 | found_a="$dir/$libname.$acl_libext" | |
15365 | fi | |
15366 | fi | |
15367 | if test "X$found_dir" != "X"; then | |
15368 | if test -f "$dir/$libname.la"; then | |
15369 | found_la="$dir/$libname.la" | |
15370 | fi | |
15371 | fi | |
15372 | ;; | |
15373 | esac | |
15374 | if test "X$found_dir" != "X"; then | |
15375 | break | |
15376 | fi | |
15377 | done | |
15378 | fi | |
15379 | if test "X$found_dir" != "X"; then | |
15380 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
15381 | if test "X$found_so" != "X"; then | |
15382 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
15383 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15384 | else | |
15385 | haveit= | |
15386 | for x in $ltrpathdirs; do | |
15387 | if test "X$x" = "X$found_dir"; then | |
15388 | haveit=yes | |
15389 | break | |
15390 | fi | |
15391 | done | |
15392 | if test -z "$haveit"; then | |
15393 | ltrpathdirs="$ltrpathdirs $found_dir" | |
15394 | fi | |
15395 | if test "$acl_hardcode_direct" = yes; then | |
15396 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15397 | else | |
15398 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
15399 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15400 | haveit= | |
15401 | for x in $rpathdirs; do | |
15402 | if test "X$x" = "X$found_dir"; then | |
15403 | haveit=yes | |
15404 | break | |
15405 | fi | |
15406 | done | |
15407 | if test -z "$haveit"; then | |
15408 | rpathdirs="$rpathdirs $found_dir" | |
15409 | fi | |
15410 | else | |
15411 | haveit= | |
15412 | for x in $LDFLAGS $LIBICONV; do | |
15413 | ||
15414 | acl_save_prefix="$prefix" | |
15415 | prefix="$acl_final_prefix" | |
15416 | acl_save_exec_prefix="$exec_prefix" | |
15417 | exec_prefix="$acl_final_exec_prefix" | |
15418 | eval x=\"$x\" | |
15419 | exec_prefix="$acl_save_exec_prefix" | |
15420 | prefix="$acl_save_prefix" | |
15421 | ||
15422 | if test "X$x" = "X-L$found_dir"; then | |
15423 | haveit=yes | |
15424 | break | |
15425 | fi | |
15426 | done | |
15427 | if test -z "$haveit"; then | |
15428 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
15429 | fi | |
15430 | if test "$acl_hardcode_minus_L" != no; then | |
15431 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15432 | else | |
15433 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15434 | fi | |
15435 | fi | |
15436 | fi | |
15437 | fi | |
15438 | else | |
15439 | if test "X$found_a" != "X"; then | |
15440 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
15441 | else | |
15442 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
15443 | fi | |
15444 | fi | |
15445 | additional_includedir= | |
15446 | case "$found_dir" in | |
15447 | */$acl_libdirstem | */$acl_libdirstem/) | |
15448 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
15449 | LIBICONV_PREFIX="$basedir" | |
15450 | additional_includedir="$basedir/include" | |
15451 | ;; | |
15452 | esac | |
15453 | if test "X$additional_includedir" != "X"; then | |
15454 | if test "X$additional_includedir" != "X/usr/include"; then | |
15455 | haveit= | |
15456 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
15457 | if test -n "$GCC"; then | |
15458 | case $host_os in | |
15459 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15460 | esac | |
15461 | fi | |
15462 | fi | |
15463 | if test -z "$haveit"; then | |
15464 | for x in $CPPFLAGS $INCICONV; do | |
15465 | ||
15466 | acl_save_prefix="$prefix" | |
15467 | prefix="$acl_final_prefix" | |
15468 | acl_save_exec_prefix="$exec_prefix" | |
15469 | exec_prefix="$acl_final_exec_prefix" | |
15470 | eval x=\"$x\" | |
15471 | exec_prefix="$acl_save_exec_prefix" | |
15472 | prefix="$acl_save_prefix" | |
15473 | ||
15474 | if test "X$x" = "X-I$additional_includedir"; then | |
15475 | haveit=yes | |
15476 | break | |
15477 | fi | |
15478 | done | |
15479 | if test -z "$haveit"; then | |
15480 | if test -d "$additional_includedir"; then | |
15481 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
15482 | fi | |
15483 | fi | |
15484 | fi | |
15485 | fi | |
15486 | fi | |
15487 | if test -n "$found_la"; then | |
15488 | save_libdir="$libdir" | |
15489 | case "$found_la" in | |
15490 | */* | *\\*) . "$found_la" ;; | |
15491 | *) . "./$found_la" ;; | |
15492 | esac | |
15493 | libdir="$save_libdir" | |
15494 | for dep in $dependency_libs; do | |
15495 | case "$dep" in | |
15496 | -L*) | |
15497 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15498 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
15499 | haveit= | |
15500 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
15501 | if test -n "$GCC"; then | |
15502 | case $host_os in | |
15503 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
15504 | esac | |
15505 | fi | |
15506 | fi | |
15507 | if test -z "$haveit"; then | |
15508 | haveit= | |
15509 | for x in $LDFLAGS $LIBICONV; do | |
15510 | ||
15511 | acl_save_prefix="$prefix" | |
15512 | prefix="$acl_final_prefix" | |
15513 | acl_save_exec_prefix="$exec_prefix" | |
15514 | exec_prefix="$acl_final_exec_prefix" | |
15515 | eval x=\"$x\" | |
15516 | exec_prefix="$acl_save_exec_prefix" | |
15517 | prefix="$acl_save_prefix" | |
15518 | ||
15519 | if test "X$x" = "X-L$additional_libdir"; then | |
15520 | haveit=yes | |
15521 | break | |
15522 | fi | |
15523 | done | |
15524 | if test -z "$haveit"; then | |
15525 | if test -d "$additional_libdir"; then | |
15526 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15527 | fi | |
15528 | fi | |
15529 | haveit= | |
15530 | for x in $LDFLAGS $LTLIBICONV; do | |
15531 | ||
15532 | acl_save_prefix="$prefix" | |
15533 | prefix="$acl_final_prefix" | |
15534 | acl_save_exec_prefix="$exec_prefix" | |
15535 | exec_prefix="$acl_final_exec_prefix" | |
15536 | eval x=\"$x\" | |
15537 | exec_prefix="$acl_save_exec_prefix" | |
15538 | prefix="$acl_save_prefix" | |
15539 | ||
15540 | if test "X$x" = "X-L$additional_libdir"; then | |
15541 | haveit=yes | |
15542 | break | |
15543 | fi | |
15544 | done | |
15545 | if test -z "$haveit"; then | |
15546 | if test -d "$additional_libdir"; then | |
15547 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15548 | fi | |
15549 | fi | |
15550 | fi | |
15551 | fi | |
15552 | ;; | |
15553 | -R*) | |
15554 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15555 | if test "$enable_rpath" != no; then | |
15556 | haveit= | |
15557 | for x in $rpathdirs; do | |
15558 | if test "X$x" = "X$dir"; then | |
15559 | haveit=yes | |
15560 | break | |
15561 | fi | |
15562 | done | |
15563 | if test -z "$haveit"; then | |
15564 | rpathdirs="$rpathdirs $dir" | |
15565 | fi | |
15566 | haveit= | |
15567 | for x in $ltrpathdirs; do | |
15568 | if test "X$x" = "X$dir"; then | |
15569 | haveit=yes | |
15570 | break | |
15571 | fi | |
15572 | done | |
15573 | if test -z "$haveit"; then | |
15574 | ltrpathdirs="$ltrpathdirs $dir" | |
15575 | fi | |
15576 | fi | |
15577 | ;; | |
15578 | -l*) | |
15579 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15580 | ;; | |
15581 | *.la) | |
15582 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15583 | ;; | |
15584 | *) | |
15585 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15586 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15587 | ;; | |
15588 | esac | |
15589 | done | |
15590 | fi | |
15591 | else | |
15592 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15593 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15594 | fi | |
15595 | fi | |
15596 | fi | |
15597 | done | |
15598 | done | |
15599 | if test "X$rpathdirs" != "X"; then | |
15600 | if test -n "$acl_hardcode_libdir_separator"; then | |
15601 | alldirs= | |
15602 | for found_dir in $rpathdirs; do | |
15603 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
15604 | done | |
15605 | acl_save_libdir="$libdir" | |
15606 | libdir="$alldirs" | |
15607 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15608 | libdir="$acl_save_libdir" | |
15609 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15610 | else | |
15611 | for found_dir in $rpathdirs; do | |
15612 | acl_save_libdir="$libdir" | |
15613 | libdir="$found_dir" | |
15614 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
15615 | libdir="$acl_save_libdir" | |
15616 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15617 | done | |
15618 | fi | |
15619 | fi | |
15620 | if test "X$ltrpathdirs" != "X"; then | |
15621 | for found_dir in $ltrpathdirs; do | |
15622 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15623 | done | |
15624 | fi | |
9c60689e | 15625 | |
9c60689e DWT |
15626 | |
15627 | ||
9c60689e | 15628 | |
9c60689e DWT |
15629 | |
15630 | ||
15631 | ||
632b71ea | 15632 | am_save_CPPFLAGS="$CPPFLAGS" |
9c60689e | 15633 | |
632b71ea DWT |
15634 | for element in $INCICONV; do |
15635 | haveit= | |
15636 | for x in $CPPFLAGS; do | |
9c60689e | 15637 | |
632b71ea DWT |
15638 | acl_save_prefix="$prefix" |
15639 | prefix="$acl_final_prefix" | |
15640 | acl_save_exec_prefix="$exec_prefix" | |
15641 | exec_prefix="$acl_final_exec_prefix" | |
15642 | eval x=\"$x\" | |
15643 | exec_prefix="$acl_save_exec_prefix" | |
15644 | prefix="$acl_save_prefix" | |
15645 | ||
15646 | if test "X$x" = "X$element"; then | |
15647 | haveit=yes | |
15648 | break | |
15649 | fi | |
15650 | done | |
15651 | if test -z "$haveit"; then | |
15652 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15653 | fi | |
15654 | done | |
b128dfee | 15655 | |
c823f118 | 15656 | |
632b71ea DWT |
15657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
15658 | $as_echo_n "checking for iconv... " >&6; } | |
15659 | if test "${am_cv_func_iconv+set}" = set; then : | |
c823f118 DWT |
15660 | $as_echo_n "(cached) " >&6 |
15661 | else | |
15662 | ||
632b71ea DWT |
15663 | am_cv_func_iconv="no, consider installing GNU libiconv" |
15664 | am_cv_lib_iconv=no | |
15665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c823f118 | 15666 | /* end confdefs.h. */ |
632b71ea DWT |
15667 | #include <stdlib.h> |
15668 | #include <iconv.h> | |
c823f118 DWT |
15669 | int |
15670 | main () | |
15671 | { | |
632b71ea DWT |
15672 | iconv_t cd = iconv_open("",""); |
15673 | iconv(cd,NULL,NULL,NULL,NULL); | |
15674 | iconv_close(cd); | |
c823f118 DWT |
15675 | ; |
15676 | return 0; | |
15677 | } | |
b128dfee | 15678 | _ACEOF |
632b71ea DWT |
15679 | if ac_fn_c_try_link "$LINENO"; then : |
15680 | am_cv_func_iconv=yes | |
b128dfee | 15681 | fi |
c823f118 DWT |
15682 | rm -f core conftest.err conftest.$ac_objext \ |
15683 | conftest$ac_exeext conftest.$ac_ext | |
632b71ea DWT |
15684 | if test "$am_cv_func_iconv" != yes; then |
15685 | am_save_LIBS="$LIBS" | |
15686 | LIBS="$LIBS $LIBICONV" | |
15687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15688 | /* end confdefs.h. */ | |
15689 | #include <stdlib.h> | |
15690 | #include <iconv.h> | |
15691 | int | |
15692 | main () | |
15693 | { | |
15694 | iconv_t cd = iconv_open("",""); | |
15695 | iconv(cd,NULL,NULL,NULL,NULL); | |
15696 | iconv_close(cd); | |
15697 | ; | |
15698 | return 0; | |
15699 | } | |
15700 | _ACEOF | |
15701 | if ac_fn_c_try_link "$LINENO"; then : | |
15702 | am_cv_lib_iconv=yes | |
15703 | am_cv_func_iconv=yes | |
15704 | fi | |
15705 | rm -f core conftest.err conftest.$ac_objext \ | |
15706 | conftest$ac_exeext conftest.$ac_ext | |
15707 | LIBS="$am_save_LIBS" | |
15708 | fi | |
b128dfee | 15709 | |
c823f118 | 15710 | fi |
632b71ea DWT |
15711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
15712 | $as_echo "$am_cv_func_iconv" >&6; } | |
15713 | if test "$am_cv_func_iconv" = yes; then | |
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15715 | $as_echo_n "checking for working iconv... " >&6; } | |
15716 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15717 | $as_echo_n "(cached) " >&6 | |
15718 | else | |
c823f118 | 15719 | |
632b71ea DWT |
15720 | am_save_LIBS="$LIBS" |
15721 | if test $am_cv_lib_iconv = yes; then | |
15722 | LIBS="$LIBS $LIBICONV" | |
15723 | fi | |
15724 | if test "$cross_compiling" = yes; then : | |
15725 | case "$host_os" in | |
15726 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15727 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15728 | esac | |
15729 | else | |
15730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15731 | /* end confdefs.h. */ | |
c823f118 | 15732 | |
632b71ea DWT |
15733 | #include <iconv.h> |
15734 | #include <string.h> | |
15735 | int main () | |
15736 | { | |
15737 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15738 | returns. */ | |
15739 | { | |
15740 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15741 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15742 | { | |
15743 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15744 | char buf[10]; | |
15745 | const char *inptr = input; | |
15746 | size_t inbytesleft = strlen (input); | |
15747 | char *outptr = buf; | |
15748 | size_t outbytesleft = sizeof (buf); | |
15749 | size_t res = iconv (cd_utf8_to_88591, | |
15750 | (char **) &inptr, &inbytesleft, | |
15751 | &outptr, &outbytesleft); | |
15752 | if (res == 0) | |
15753 | return 1; | |
15754 | } | |
15755 | } | |
15756 | #if 0 /* This bug could be worked around by the caller. */ | |
15757 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15758 | { | |
15759 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15760 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15761 | { | |
15762 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15763 | char buf[50]; | |
15764 | const char *inptr = input; | |
15765 | size_t inbytesleft = strlen (input); | |
15766 | char *outptr = buf; | |
15767 | size_t outbytesleft = sizeof (buf); | |
15768 | size_t res = iconv (cd_88591_to_utf8, | |
15769 | (char **) &inptr, &inbytesleft, | |
15770 | &outptr, &outbytesleft); | |
15771 | if ((int)res > 0) | |
15772 | return 1; | |
15773 | } | |
15774 | } | |
15775 | #endif | |
15776 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15777 | provided. */ | |
15778 | if (/* Try standardized names. */ | |
15779 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15780 | /* Try IRIX, OSF/1 names. */ | |
15781 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15782 | /* Try AIX names. */ | |
15783 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15784 | /* Try HP-UX names. */ | |
15785 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15786 | return 1; | |
15787 | return 0; | |
15788 | } | |
15789 | _ACEOF | |
15790 | if ac_fn_c_try_run "$LINENO"; then : | |
15791 | am_cv_func_iconv_works=yes | |
15792 | else | |
15793 | am_cv_func_iconv_works=no | |
15794 | fi | |
15795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15796 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15797 | fi | |
c823f118 | 15798 | |
632b71ea | 15799 | LIBS="$am_save_LIBS" |
b128dfee | 15800 | |
632b71ea DWT |
15801 | fi |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15803 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15804 | case "$am_cv_func_iconv_works" in | |
15805 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15806 | *) am_func_iconv=yes ;; | |
15807 | esac | |
15808 | else | |
15809 | am_func_iconv=no am_cv_lib_iconv=no | |
15810 | fi | |
15811 | if test "$am_func_iconv" = yes; then | |
c823f118 | 15812 | |
632b71ea | 15813 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
c823f118 | 15814 | |
632b71ea DWT |
15815 | fi |
15816 | if test "$am_cv_lib_iconv" = yes; then | |
15817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15818 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15820 | $as_echo "$LIBICONV" >&6; } | |
15821 | else | |
15822 | CPPFLAGS="$am_save_CPPFLAGS" | |
15823 | LIBICONV= | |
15824 | LTLIBICONV= | |
15825 | fi | |
b128dfee | 15826 | |
b128dfee | 15827 | |
c823f118 | 15828 | |
632b71ea DWT |
15829 | if test "$am_cv_func_iconv" = yes; then |
15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15831 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15832 | if test "${am_cv_proto_iconv+set}" = set; then : | |
c823f118 DWT |
15833 | $as_echo_n "(cached) " >&6 |
15834 | else | |
15835 | ||
632b71ea | 15836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c823f118 DWT |
15837 | /* end confdefs.h. */ |
15838 | ||
632b71ea DWT |
15839 | #include <stdlib.h> |
15840 | #include <iconv.h> | |
15841 | extern | |
15842 | #ifdef __cplusplus | |
15843 | "C" | |
15844 | #endif | |
15845 | #if defined(__STDC__) || defined(__cplusplus) | |
15846 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15847 | #else | |
15848 | size_t iconv(); | |
15849 | #endif | |
c823f118 DWT |
15850 | |
15851 | int | |
15852 | main () | |
15853 | { | |
632b71ea | 15854 | |
c823f118 DWT |
15855 | ; |
15856 | return 0; | |
15857 | } | |
b128dfee | 15858 | _ACEOF |
632b71ea DWT |
15859 | if ac_fn_c_try_compile "$LINENO"; then : |
15860 | am_cv_proto_iconv_arg1="" | |
c823f118 | 15861 | else |
632b71ea | 15862 | am_cv_proto_iconv_arg1="const" |
c823f118 | 15863 | fi |
632b71ea DWT |
15864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15865 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
b128dfee DWT |
15866 | fi |
15867 | ||
632b71ea DWT |
15868 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15870 | }$am_cv_proto_iconv" >&5 | |
15871 | $as_echo "${ac_t:- | |
15872 | }$am_cv_proto_iconv" >&6; } | |
b128dfee | 15873 | |
632b71ea DWT |
15874 | cat >>confdefs.h <<_ACEOF |
15875 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15876 | _ACEOF | |
c823f118 | 15877 | |
632b71ea | 15878 | fi |
c823f118 | 15879 | |
632b71ea DWT |
15880 | ac_ext=cpp |
15881 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
c823f118 | 15885 | |
632b71ea DWT |
15886 | case $am_cv_func_iconv in #( |
15887 | yes) : | |
15888 | ;; #( | |
15889 | *) : | |
15890 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15891 | esac | |
c823f118 | 15892 | |
b66977f1 DWT |
15893 | |
15894 | # Check whether --enable-javascript was given. | |
15895 | if test "${enable_javascript+set}" = set; then : | |
15896 | enableval=$enable_javascript; | |
15897 | case $enableval in #( | |
15898 | yes) : | |
15899 | ||
15900 | ||
15901 | ||
15902 | pkg_failed=no | |
15903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15904 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15905 | ||
15906 | if test -n "$PKG_CONFIG"; then | |
15907 | if test -n "$WEBKIT_CFLAGS"; then | |
15908 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15909 | else | |
15910 | if test -n "$PKG_CONFIG" && \ | |
15911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15912 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15913 | ac_status=$? | |
15914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15915 | test $ac_status = 0; }; then | |
15916 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15917 | else | |
15918 | pkg_failed=yes | |
15919 | fi | |
15920 | fi | |
15921 | else | |
15922 | pkg_failed=untried | |
15923 | fi | |
15924 | if test -n "$PKG_CONFIG"; then | |
15925 | if test -n "$WEBKIT_LIBS"; then | |
15926 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15927 | else | |
15928 | if test -n "$PKG_CONFIG" && \ | |
15929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15930 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15931 | ac_status=$? | |
15932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15933 | test $ac_status = 0; }; then | |
15934 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15935 | else | |
15936 | pkg_failed=yes | |
15937 | fi | |
15938 | fi | |
15939 | else | |
15940 | pkg_failed=untried | |
15941 | fi | |
15942 | ||
15943 | ||
15944 | ||
15945 | if test $pkg_failed = yes; then | |
15946 | ||
15947 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15948 | _pkg_short_errors_supported=yes | |
15949 | else | |
15950 | _pkg_short_errors_supported=no | |
15951 | fi | |
15952 | if test $_pkg_short_errors_supported = yes; then | |
15953 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15954 | else | |
15955 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15956 | fi | |
15957 | # Put the nasty error message in config.log where it belongs | |
15958 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15959 | ||
15960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15961 | $as_echo "no" >&6; } | |
15962 | ||
15963 | ||
15964 | pkg_failed=no | |
15965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15966 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15967 | ||
15968 | if test -n "$PKG_CONFIG"; then | |
15969 | if test -n "$WEBKIT_CFLAGS"; then | |
15970 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15971 | else | |
15972 | if test -n "$PKG_CONFIG" && \ | |
15973 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15974 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15975 | ac_status=$? | |
15976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15977 | test $ac_status = 0; }; then | |
15978 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15979 | else | |
15980 | pkg_failed=yes | |
15981 | fi | |
15982 | fi | |
15983 | else | |
15984 | pkg_failed=untried | |
15985 | fi | |
15986 | if test -n "$PKG_CONFIG"; then | |
15987 | if test -n "$WEBKIT_LIBS"; then | |
15988 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15989 | else | |
15990 | if test -n "$PKG_CONFIG" && \ | |
15991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15992 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15993 | ac_status=$? | |
15994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15995 | test $ac_status = 0; }; then | |
15996 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15997 | else | |
15998 | pkg_failed=yes | |
15999 | fi | |
16000 | fi | |
16001 | else | |
16002 | pkg_failed=untried | |
16003 | fi | |
16004 | ||
16005 | ||
16006 | ||
16007 | if test $pkg_failed = yes; then | |
16008 | ||
16009 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16010 | _pkg_short_errors_supported=yes | |
16011 | else | |
16012 | _pkg_short_errors_supported=no | |
16013 | fi | |
16014 | if test $_pkg_short_errors_supported = yes; then | |
16015 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16016 | else | |
16017 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16018 | fi | |
16019 | # Put the nasty error message in config.log where it belongs | |
16020 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16021 | ||
16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16023 | $as_echo "no" >&6; } | |
16024 | ||
16025 | ||
16026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16027 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16028 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16029 | $as_echo_n "(cached) " >&6 | |
16030 | else | |
16031 | ||
16032 | ac_check_framework_save_LIBS=$LIBS | |
16033 | LIBS="-framework JavaScriptCore $LIBS" | |
16034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16035 | /* end confdefs.h. */ | |
16036 | ||
16037 | #include <JavaScriptCore/JSBase.h> | |
16038 | ||
16039 | int | |
16040 | main () | |
16041 | { | |
16042 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16043 | ; | |
16044 | return 0; | |
16045 | } | |
16046 | _ACEOF | |
16047 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16048 | ||
16049 | ac_cv_framework_JavaScriptCore=yes | |
16050 | ||
16051 | else | |
16052 | ac_cv_framework_JavaScriptCore=no | |
16053 | fi | |
16054 | rm -f core conftest.err conftest.$ac_objext \ | |
16055 | conftest$ac_exeext conftest.$ac_ext | |
16056 | LIBS=$ac_check_framework_save_LIBS | |
16057 | ||
16058 | fi | |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16060 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16061 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16062 | ||
16063 | ||
16064 | for element in "-framework JavaScriptCore $LIBS"; do | |
16065 | haveit= | |
16066 | for x in $LIBS; do | |
16067 | ||
16068 | acl_save_prefix="$prefix" | |
16069 | prefix="$acl_final_prefix" | |
16070 | acl_save_exec_prefix="$exec_prefix" | |
16071 | exec_prefix="$acl_final_exec_prefix" | |
16072 | eval x=\"$x\" | |
16073 | exec_prefix="$acl_save_exec_prefix" | |
16074 | prefix="$acl_save_prefix" | |
16075 | ||
16076 | if test "X$x" = "X$element"; then | |
16077 | haveit=yes | |
16078 | break | |
16079 | fi | |
16080 | done | |
16081 | if test -z "$haveit"; then | |
16082 | LIBS="${LIBS}${LIBS:+ }$element" | |
16083 | fi | |
16084 | done | |
16085 | ||
16086 | CY_EXECUTE=1 | |
16087 | ||
16088 | fi | |
16089 | ||
16090 | elif test $pkg_failed = untried; then | |
16091 | ||
16092 | ||
16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16094 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16095 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16096 | $as_echo_n "(cached) " >&6 | |
16097 | else | |
16098 | ||
16099 | ac_check_framework_save_LIBS=$LIBS | |
16100 | LIBS="-framework JavaScriptCore $LIBS" | |
16101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16102 | /* end confdefs.h. */ | |
16103 | ||
16104 | #include <JavaScriptCore/JSBase.h> | |
16105 | ||
16106 | int | |
16107 | main () | |
16108 | { | |
16109 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16110 | ; | |
16111 | return 0; | |
16112 | } | |
16113 | _ACEOF | |
16114 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16115 | ||
16116 | ac_cv_framework_JavaScriptCore=yes | |
16117 | ||
16118 | else | |
16119 | ac_cv_framework_JavaScriptCore=no | |
16120 | fi | |
16121 | rm -f core conftest.err conftest.$ac_objext \ | |
16122 | conftest$ac_exeext conftest.$ac_ext | |
16123 | LIBS=$ac_check_framework_save_LIBS | |
16124 | ||
16125 | fi | |
16126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16127 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16128 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16129 | ||
16130 | ||
16131 | for element in "-framework JavaScriptCore $LIBS"; do | |
16132 | haveit= | |
16133 | for x in $LIBS; do | |
16134 | ||
16135 | acl_save_prefix="$prefix" | |
16136 | prefix="$acl_final_prefix" | |
16137 | acl_save_exec_prefix="$exec_prefix" | |
16138 | exec_prefix="$acl_final_exec_prefix" | |
16139 | eval x=\"$x\" | |
16140 | exec_prefix="$acl_save_exec_prefix" | |
16141 | prefix="$acl_save_prefix" | |
16142 | ||
16143 | if test "X$x" = "X$element"; then | |
16144 | haveit=yes | |
16145 | break | |
16146 | fi | |
16147 | done | |
16148 | if test -z "$haveit"; then | |
16149 | LIBS="${LIBS}${LIBS:+ }$element" | |
16150 | fi | |
16151 | done | |
16152 | ||
16153 | CY_EXECUTE=1 | |
16154 | ||
16155 | fi | |
16156 | ||
16157 | else | |
16158 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16159 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16161 | $as_echo "yes" >&6; } | |
16162 | ||
16163 | CY_EXECUTE=1 | |
16164 | ||
16165 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16166 | haveit= | |
16167 | for x in $CXXFLAGS; do | |
16168 | ||
16169 | acl_save_prefix="$prefix" | |
16170 | prefix="$acl_final_prefix" | |
16171 | acl_save_exec_prefix="$exec_prefix" | |
16172 | exec_prefix="$acl_final_exec_prefix" | |
16173 | eval x=\"$x\" | |
16174 | exec_prefix="$acl_save_exec_prefix" | |
16175 | prefix="$acl_save_prefix" | |
16176 | ||
16177 | if test "X$x" = "X$element"; then | |
16178 | haveit=yes | |
16179 | break | |
16180 | fi | |
16181 | done | |
16182 | if test -z "$haveit"; then | |
16183 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16184 | fi | |
16185 | done | |
16186 | ||
16187 | ||
16188 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16189 | haveit= | |
16190 | for x in $LIBS; do | |
16191 | ||
16192 | acl_save_prefix="$prefix" | |
16193 | prefix="$acl_final_prefix" | |
16194 | acl_save_exec_prefix="$exec_prefix" | |
16195 | exec_prefix="$acl_final_exec_prefix" | |
16196 | eval x=\"$x\" | |
16197 | exec_prefix="$acl_save_exec_prefix" | |
16198 | prefix="$acl_save_prefix" | |
16199 | ||
16200 | if test "X$x" = "X$element"; then | |
16201 | haveit=yes | |
16202 | break | |
16203 | fi | |
16204 | done | |
16205 | if test -z "$haveit"; then | |
16206 | LIBS="${LIBS}${LIBS:+ }$element" | |
16207 | fi | |
16208 | done | |
16209 | ||
16210 | ||
16211 | fi | |
16212 | ||
16213 | elif test $pkg_failed = untried; then | |
16214 | ||
16215 | ||
16216 | pkg_failed=no | |
16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16218 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16219 | ||
16220 | if test -n "$PKG_CONFIG"; then | |
16221 | if test -n "$WEBKIT_CFLAGS"; then | |
16222 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16223 | else | |
16224 | if test -n "$PKG_CONFIG" && \ | |
16225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16226 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16227 | ac_status=$? | |
16228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16229 | test $ac_status = 0; }; then | |
16230 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16231 | else | |
16232 | pkg_failed=yes | |
16233 | fi | |
16234 | fi | |
16235 | else | |
16236 | pkg_failed=untried | |
16237 | fi | |
16238 | if test -n "$PKG_CONFIG"; then | |
16239 | if test -n "$WEBKIT_LIBS"; then | |
16240 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16241 | else | |
16242 | if test -n "$PKG_CONFIG" && \ | |
16243 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16244 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16245 | ac_status=$? | |
16246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16247 | test $ac_status = 0; }; then | |
16248 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16249 | else | |
16250 | pkg_failed=yes | |
16251 | fi | |
16252 | fi | |
16253 | else | |
16254 | pkg_failed=untried | |
16255 | fi | |
16256 | ||
16257 | ||
16258 | ||
16259 | if test $pkg_failed = yes; then | |
16260 | ||
16261 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16262 | _pkg_short_errors_supported=yes | |
16263 | else | |
16264 | _pkg_short_errors_supported=no | |
16265 | fi | |
16266 | if test $_pkg_short_errors_supported = yes; then | |
16267 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16268 | else | |
16269 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16270 | fi | |
16271 | # Put the nasty error message in config.log where it belongs | |
16272 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16273 | ||
16274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16275 | $as_echo "no" >&6; } | |
16276 | ||
16277 | ||
16278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16279 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16280 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16281 | $as_echo_n "(cached) " >&6 | |
16282 | else | |
16283 | ||
16284 | ac_check_framework_save_LIBS=$LIBS | |
16285 | LIBS="-framework JavaScriptCore $LIBS" | |
16286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16287 | /* end confdefs.h. */ | |
16288 | ||
16289 | #include <JavaScriptCore/JSBase.h> | |
16290 | ||
16291 | int | |
16292 | main () | |
16293 | { | |
16294 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16295 | ; | |
16296 | return 0; | |
16297 | } | |
16298 | _ACEOF | |
16299 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16300 | ||
16301 | ac_cv_framework_JavaScriptCore=yes | |
16302 | ||
16303 | else | |
16304 | ac_cv_framework_JavaScriptCore=no | |
16305 | fi | |
16306 | rm -f core conftest.err conftest.$ac_objext \ | |
16307 | conftest$ac_exeext conftest.$ac_ext | |
16308 | LIBS=$ac_check_framework_save_LIBS | |
16309 | ||
16310 | fi | |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16312 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16313 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16314 | ||
16315 | ||
16316 | for element in "-framework JavaScriptCore $LIBS"; do | |
16317 | haveit= | |
16318 | for x in $LIBS; do | |
16319 | ||
16320 | acl_save_prefix="$prefix" | |
16321 | prefix="$acl_final_prefix" | |
16322 | acl_save_exec_prefix="$exec_prefix" | |
16323 | exec_prefix="$acl_final_exec_prefix" | |
16324 | eval x=\"$x\" | |
16325 | exec_prefix="$acl_save_exec_prefix" | |
16326 | prefix="$acl_save_prefix" | |
16327 | ||
16328 | if test "X$x" = "X$element"; then | |
16329 | haveit=yes | |
16330 | break | |
16331 | fi | |
16332 | done | |
16333 | if test -z "$haveit"; then | |
16334 | LIBS="${LIBS}${LIBS:+ }$element" | |
16335 | fi | |
16336 | done | |
16337 | ||
16338 | CY_EXECUTE=1 | |
16339 | ||
16340 | fi | |
16341 | ||
16342 | elif test $pkg_failed = untried; then | |
16343 | ||
16344 | ||
16345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16346 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16347 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16348 | $as_echo_n "(cached) " >&6 | |
16349 | else | |
16350 | ||
16351 | ac_check_framework_save_LIBS=$LIBS | |
16352 | LIBS="-framework JavaScriptCore $LIBS" | |
16353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16354 | /* end confdefs.h. */ | |
16355 | ||
16356 | #include <JavaScriptCore/JSBase.h> | |
16357 | ||
16358 | int | |
16359 | main () | |
16360 | { | |
16361 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16362 | ; | |
16363 | return 0; | |
16364 | } | |
16365 | _ACEOF | |
16366 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16367 | ||
16368 | ac_cv_framework_JavaScriptCore=yes | |
16369 | ||
16370 | else | |
16371 | ac_cv_framework_JavaScriptCore=no | |
16372 | fi | |
16373 | rm -f core conftest.err conftest.$ac_objext \ | |
16374 | conftest$ac_exeext conftest.$ac_ext | |
16375 | LIBS=$ac_check_framework_save_LIBS | |
16376 | ||
16377 | fi | |
16378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16379 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16380 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16381 | ||
16382 | ||
16383 | for element in "-framework JavaScriptCore $LIBS"; do | |
16384 | haveit= | |
16385 | for x in $LIBS; do | |
16386 | ||
16387 | acl_save_prefix="$prefix" | |
16388 | prefix="$acl_final_prefix" | |
16389 | acl_save_exec_prefix="$exec_prefix" | |
16390 | exec_prefix="$acl_final_exec_prefix" | |
16391 | eval x=\"$x\" | |
16392 | exec_prefix="$acl_save_exec_prefix" | |
16393 | prefix="$acl_save_prefix" | |
16394 | ||
16395 | if test "X$x" = "X$element"; then | |
16396 | haveit=yes | |
16397 | break | |
16398 | fi | |
16399 | done | |
16400 | if test -z "$haveit"; then | |
16401 | LIBS="${LIBS}${LIBS:+ }$element" | |
16402 | fi | |
16403 | done | |
16404 | ||
16405 | CY_EXECUTE=1 | |
16406 | ||
16407 | fi | |
16408 | ||
16409 | else | |
16410 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16411 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16413 | $as_echo "yes" >&6; } | |
16414 | ||
16415 | CY_EXECUTE=1 | |
16416 | ||
16417 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16418 | haveit= | |
16419 | for x in $CXXFLAGS; do | |
16420 | ||
16421 | acl_save_prefix="$prefix" | |
16422 | prefix="$acl_final_prefix" | |
16423 | acl_save_exec_prefix="$exec_prefix" | |
16424 | exec_prefix="$acl_final_exec_prefix" | |
16425 | eval x=\"$x\" | |
16426 | exec_prefix="$acl_save_exec_prefix" | |
16427 | prefix="$acl_save_prefix" | |
16428 | ||
16429 | if test "X$x" = "X$element"; then | |
16430 | haveit=yes | |
16431 | break | |
16432 | fi | |
16433 | done | |
16434 | if test -z "$haveit"; then | |
16435 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16436 | fi | |
16437 | done | |
16438 | ||
16439 | ||
16440 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16441 | haveit= | |
16442 | for x in $LIBS; do | |
16443 | ||
16444 | acl_save_prefix="$prefix" | |
16445 | prefix="$acl_final_prefix" | |
16446 | acl_save_exec_prefix="$exec_prefix" | |
16447 | exec_prefix="$acl_final_exec_prefix" | |
16448 | eval x=\"$x\" | |
16449 | exec_prefix="$acl_save_exec_prefix" | |
16450 | prefix="$acl_save_prefix" | |
16451 | ||
16452 | if test "X$x" = "X$element"; then | |
16453 | haveit=yes | |
16454 | break | |
16455 | fi | |
16456 | done | |
16457 | if test -z "$haveit"; then | |
16458 | LIBS="${LIBS}${LIBS:+ }$element" | |
16459 | fi | |
16460 | done | |
16461 | ||
16462 | ||
16463 | fi | |
16464 | ||
16465 | else | |
16466 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16467 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16469 | $as_echo "yes" >&6; } | |
16470 | ||
16471 | CY_EXECUTE=1 | |
16472 | ||
16473 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
16474 | haveit= | |
16475 | for x in $CXXFLAGS; do | |
16476 | ||
16477 | acl_save_prefix="$prefix" | |
16478 | prefix="$acl_final_prefix" | |
16479 | acl_save_exec_prefix="$exec_prefix" | |
16480 | exec_prefix="$acl_final_exec_prefix" | |
16481 | eval x=\"$x\" | |
16482 | exec_prefix="$acl_save_exec_prefix" | |
16483 | prefix="$acl_save_prefix" | |
16484 | ||
16485 | if test "X$x" = "X$element"; then | |
16486 | haveit=yes | |
16487 | break | |
16488 | fi | |
16489 | done | |
16490 | if test -z "$haveit"; then | |
16491 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16492 | fi | |
16493 | done | |
16494 | ||
16495 | ||
16496 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
16497 | haveit= | |
16498 | for x in $LIBS; do | |
16499 | ||
16500 | acl_save_prefix="$prefix" | |
16501 | prefix="$acl_final_prefix" | |
16502 | acl_save_exec_prefix="$exec_prefix" | |
16503 | exec_prefix="$acl_final_exec_prefix" | |
16504 | eval x=\"$x\" | |
16505 | exec_prefix="$acl_save_exec_prefix" | |
16506 | prefix="$acl_save_prefix" | |
16507 | ||
16508 | if test "X$x" = "X$element"; then | |
16509 | haveit=yes | |
16510 | break | |
16511 | fi | |
16512 | done | |
16513 | if test -z "$haveit"; then | |
16514 | LIBS="${LIBS}${LIBS:+ }$element" | |
16515 | fi | |
16516 | done | |
16517 | ||
16518 | ||
16519 | fi | |
16520 | ||
16521 | ;; #( | |
16522 | no) : | |
16523 | ||
16524 | CY_EXECUTE=0 | |
16525 | ||
16526 | ;; #( | |
16527 | JavaScriptCore) : | |
16528 | ||
16529 | ||
16530 | ||
16531 | pkg_failed=no | |
16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16533 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16534 | ||
16535 | if test -n "$PKG_CONFIG"; then | |
16536 | if test -n "$WEBKIT_CFLAGS"; then | |
16537 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16538 | else | |
16539 | if test -n "$PKG_CONFIG" && \ | |
16540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16541 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16542 | ac_status=$? | |
16543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16544 | test $ac_status = 0; }; then | |
16545 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
16546 | else | |
16547 | pkg_failed=yes | |
16548 | fi | |
16549 | fi | |
16550 | else | |
16551 | pkg_failed=untried | |
16552 | fi | |
16553 | if test -n "$PKG_CONFIG"; then | |
16554 | if test -n "$WEBKIT_LIBS"; then | |
16555 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16556 | else | |
16557 | if test -n "$PKG_CONFIG" && \ | |
16558 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
16559 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
16560 | ac_status=$? | |
16561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16562 | test $ac_status = 0; }; then | |
16563 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
16564 | else | |
16565 | pkg_failed=yes | |
16566 | fi | |
16567 | fi | |
16568 | else | |
16569 | pkg_failed=untried | |
16570 | fi | |
16571 | ||
16572 | ||
16573 | ||
16574 | if test $pkg_failed = yes; then | |
16575 | ||
16576 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16577 | _pkg_short_errors_supported=yes | |
16578 | else | |
16579 | _pkg_short_errors_supported=no | |
16580 | fi | |
16581 | if test $_pkg_short_errors_supported = yes; then | |
16582 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
16583 | else | |
16584 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
16585 | fi | |
16586 | # Put the nasty error message in config.log where it belongs | |
16587 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16588 | ||
16589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16590 | $as_echo "no" >&6; } | |
16591 | ||
16592 | ||
16593 | pkg_failed=no | |
16594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16595 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16596 | ||
16597 | if test -n "$PKG_CONFIG"; then | |
16598 | if test -n "$WEBKIT_CFLAGS"; then | |
16599 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16600 | else | |
16601 | if test -n "$PKG_CONFIG" && \ | |
16602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16603 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16604 | ac_status=$? | |
16605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16606 | test $ac_status = 0; }; then | |
16607 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16608 | else | |
16609 | pkg_failed=yes | |
16610 | fi | |
16611 | fi | |
16612 | else | |
16613 | pkg_failed=untried | |
16614 | fi | |
16615 | if test -n "$PKG_CONFIG"; then | |
16616 | if test -n "$WEBKIT_LIBS"; then | |
16617 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16618 | else | |
16619 | if test -n "$PKG_CONFIG" && \ | |
16620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16621 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16622 | ac_status=$? | |
16623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16624 | test $ac_status = 0; }; then | |
16625 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16626 | else | |
16627 | pkg_failed=yes | |
16628 | fi | |
16629 | fi | |
16630 | else | |
16631 | pkg_failed=untried | |
16632 | fi | |
16633 | ||
16634 | ||
16635 | ||
16636 | if test $pkg_failed = yes; then | |
16637 | ||
16638 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16639 | _pkg_short_errors_supported=yes | |
16640 | else | |
16641 | _pkg_short_errors_supported=no | |
16642 | fi | |
16643 | if test $_pkg_short_errors_supported = yes; then | |
16644 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16645 | else | |
16646 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16647 | fi | |
16648 | # Put the nasty error message in config.log where it belongs | |
16649 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16650 | ||
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16652 | $as_echo "no" >&6; } | |
16653 | ||
16654 | ||
16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16656 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16657 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16658 | $as_echo_n "(cached) " >&6 | |
16659 | else | |
16660 | ||
16661 | ac_check_framework_save_LIBS=$LIBS | |
16662 | LIBS="-framework JavaScriptCore $LIBS" | |
16663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16664 | /* end confdefs.h. */ | |
16665 | ||
16666 | #include <JavaScriptCore/JSBase.h> | |
16667 | ||
16668 | int | |
16669 | main () | |
16670 | { | |
16671 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16672 | ; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
16676 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16677 | ||
16678 | ac_cv_framework_JavaScriptCore=yes | |
16679 | ||
16680 | else | |
16681 | ac_cv_framework_JavaScriptCore=no | |
16682 | fi | |
16683 | rm -f core conftest.err conftest.$ac_objext \ | |
16684 | conftest$ac_exeext conftest.$ac_ext | |
16685 | LIBS=$ac_check_framework_save_LIBS | |
16686 | ||
16687 | fi | |
16688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16689 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16690 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16691 | ||
16692 | ||
16693 | for element in "-framework JavaScriptCore $LIBS"; do | |
16694 | haveit= | |
16695 | for x in $LIBS; do | |
16696 | ||
16697 | acl_save_prefix="$prefix" | |
16698 | prefix="$acl_final_prefix" | |
16699 | acl_save_exec_prefix="$exec_prefix" | |
16700 | exec_prefix="$acl_final_exec_prefix" | |
16701 | eval x=\"$x\" | |
16702 | exec_prefix="$acl_save_exec_prefix" | |
16703 | prefix="$acl_save_prefix" | |
16704 | ||
16705 | if test "X$x" = "X$element"; then | |
16706 | haveit=yes | |
16707 | break | |
16708 | fi | |
16709 | done | |
16710 | if test -z "$haveit"; then | |
16711 | LIBS="${LIBS}${LIBS:+ }$element" | |
16712 | fi | |
16713 | done | |
16714 | ||
16715 | CY_EXECUTE=1 | |
16716 | ||
16717 | fi | |
16718 | ||
16719 | elif test $pkg_failed = untried; then | |
16720 | ||
16721 | ||
16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16723 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16724 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16725 | $as_echo_n "(cached) " >&6 | |
16726 | else | |
16727 | ||
16728 | ac_check_framework_save_LIBS=$LIBS | |
16729 | LIBS="-framework JavaScriptCore $LIBS" | |
16730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16731 | /* end confdefs.h. */ | |
16732 | ||
16733 | #include <JavaScriptCore/JSBase.h> | |
16734 | ||
16735 | int | |
16736 | main () | |
16737 | { | |
16738 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16739 | ; | |
16740 | return 0; | |
16741 | } | |
16742 | _ACEOF | |
16743 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16744 | ||
16745 | ac_cv_framework_JavaScriptCore=yes | |
16746 | ||
16747 | else | |
16748 | ac_cv_framework_JavaScriptCore=no | |
16749 | fi | |
16750 | rm -f core conftest.err conftest.$ac_objext \ | |
16751 | conftest$ac_exeext conftest.$ac_ext | |
16752 | LIBS=$ac_check_framework_save_LIBS | |
16753 | ||
16754 | fi | |
16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16756 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16757 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16758 | ||
16759 | ||
16760 | for element in "-framework JavaScriptCore $LIBS"; do | |
16761 | haveit= | |
16762 | for x in $LIBS; do | |
16763 | ||
16764 | acl_save_prefix="$prefix" | |
16765 | prefix="$acl_final_prefix" | |
16766 | acl_save_exec_prefix="$exec_prefix" | |
16767 | exec_prefix="$acl_final_exec_prefix" | |
16768 | eval x=\"$x\" | |
16769 | exec_prefix="$acl_save_exec_prefix" | |
16770 | prefix="$acl_save_prefix" | |
16771 | ||
16772 | if test "X$x" = "X$element"; then | |
16773 | haveit=yes | |
16774 | break | |
16775 | fi | |
16776 | done | |
16777 | if test -z "$haveit"; then | |
16778 | LIBS="${LIBS}${LIBS:+ }$element" | |
16779 | fi | |
16780 | done | |
16781 | ||
16782 | CY_EXECUTE=1 | |
16783 | ||
16784 | fi | |
16785 | ||
16786 | else | |
16787 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
16788 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
16789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16790 | $as_echo "yes" >&6; } | |
16791 | ||
16792 | CY_EXECUTE=1 | |
16793 | ||
16794 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
16795 | haveit= | |
16796 | for x in $CXXFLAGS; do | |
16797 | ||
16798 | acl_save_prefix="$prefix" | |
16799 | prefix="$acl_final_prefix" | |
16800 | acl_save_exec_prefix="$exec_prefix" | |
16801 | exec_prefix="$acl_final_exec_prefix" | |
16802 | eval x=\"$x\" | |
16803 | exec_prefix="$acl_save_exec_prefix" | |
16804 | prefix="$acl_save_prefix" | |
16805 | ||
16806 | if test "X$x" = "X$element"; then | |
16807 | haveit=yes | |
16808 | break | |
16809 | fi | |
16810 | done | |
16811 | if test -z "$haveit"; then | |
16812 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
16813 | fi | |
16814 | done | |
16815 | ||
16816 | ||
16817 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
16818 | haveit= | |
16819 | for x in $LIBS; do | |
16820 | ||
16821 | acl_save_prefix="$prefix" | |
16822 | prefix="$acl_final_prefix" | |
16823 | acl_save_exec_prefix="$exec_prefix" | |
16824 | exec_prefix="$acl_final_exec_prefix" | |
16825 | eval x=\"$x\" | |
16826 | exec_prefix="$acl_save_exec_prefix" | |
16827 | prefix="$acl_save_prefix" | |
16828 | ||
16829 | if test "X$x" = "X$element"; then | |
16830 | haveit=yes | |
16831 | break | |
16832 | fi | |
16833 | done | |
16834 | if test -z "$haveit"; then | |
16835 | LIBS="${LIBS}${LIBS:+ }$element" | |
16836 | fi | |
16837 | done | |
16838 | ||
16839 | ||
16840 | fi | |
16841 | ||
16842 | elif test $pkg_failed = untried; then | |
16843 | ||
16844 | ||
16845 | pkg_failed=no | |
16846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
16847 | $as_echo_n "checking for WEBKIT... " >&6; } | |
16848 | ||
16849 | if test -n "$PKG_CONFIG"; then | |
16850 | if test -n "$WEBKIT_CFLAGS"; then | |
16851 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
16852 | else | |
16853 | if test -n "$PKG_CONFIG" && \ | |
16854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16855 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16856 | ac_status=$? | |
16857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16858 | test $ac_status = 0; }; then | |
16859 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
16860 | else | |
16861 | pkg_failed=yes | |
16862 | fi | |
16863 | fi | |
16864 | else | |
16865 | pkg_failed=untried | |
16866 | fi | |
16867 | if test -n "$PKG_CONFIG"; then | |
16868 | if test -n "$WEBKIT_LIBS"; then | |
16869 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
16870 | else | |
16871 | if test -n "$PKG_CONFIG" && \ | |
16872 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
16873 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
16874 | ac_status=$? | |
16875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16876 | test $ac_status = 0; }; then | |
16877 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
16878 | else | |
16879 | pkg_failed=yes | |
16880 | fi | |
16881 | fi | |
16882 | else | |
16883 | pkg_failed=untried | |
16884 | fi | |
16885 | ||
16886 | ||
16887 | ||
16888 | if test $pkg_failed = yes; then | |
16889 | ||
16890 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16891 | _pkg_short_errors_supported=yes | |
16892 | else | |
16893 | _pkg_short_errors_supported=no | |
16894 | fi | |
16895 | if test $_pkg_short_errors_supported = yes; then | |
16896 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
16897 | else | |
16898 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
16899 | fi | |
16900 | # Put the nasty error message in config.log where it belongs | |
16901 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
16902 | ||
16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16904 | $as_echo "no" >&6; } | |
16905 | ||
16906 | ||
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16908 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16909 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16910 | $as_echo_n "(cached) " >&6 | |
16911 | else | |
16912 | ||
16913 | ac_check_framework_save_LIBS=$LIBS | |
16914 | LIBS="-framework JavaScriptCore $LIBS" | |
16915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16916 | /* end confdefs.h. */ | |
16917 | ||
16918 | #include <JavaScriptCore/JSBase.h> | |
16919 | ||
16920 | int | |
16921 | main () | |
16922 | { | |
16923 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16924 | ; | |
16925 | return 0; | |
16926 | } | |
16927 | _ACEOF | |
16928 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16929 | ||
16930 | ac_cv_framework_JavaScriptCore=yes | |
16931 | ||
16932 | else | |
16933 | ac_cv_framework_JavaScriptCore=no | |
16934 | fi | |
16935 | rm -f core conftest.err conftest.$ac_objext \ | |
16936 | conftest$ac_exeext conftest.$ac_ext | |
16937 | LIBS=$ac_check_framework_save_LIBS | |
16938 | ||
16939 | fi | |
16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
16941 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
16942 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
16943 | ||
16944 | ||
16945 | for element in "-framework JavaScriptCore $LIBS"; do | |
16946 | haveit= | |
16947 | for x in $LIBS; do | |
16948 | ||
16949 | acl_save_prefix="$prefix" | |
16950 | prefix="$acl_final_prefix" | |
16951 | acl_save_exec_prefix="$exec_prefix" | |
16952 | exec_prefix="$acl_final_exec_prefix" | |
16953 | eval x=\"$x\" | |
16954 | exec_prefix="$acl_save_exec_prefix" | |
16955 | prefix="$acl_save_prefix" | |
16956 | ||
16957 | if test "X$x" = "X$element"; then | |
16958 | haveit=yes | |
16959 | break | |
16960 | fi | |
16961 | done | |
16962 | if test -z "$haveit"; then | |
16963 | LIBS="${LIBS}${LIBS:+ }$element" | |
16964 | fi | |
16965 | done | |
16966 | ||
16967 | CY_EXECUTE=1 | |
16968 | ||
16969 | fi | |
16970 | ||
16971 | elif test $pkg_failed = untried; then | |
16972 | ||
16973 | ||
16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
16975 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
16976 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
16977 | $as_echo_n "(cached) " >&6 | |
16978 | else | |
16979 | ||
16980 | ac_check_framework_save_LIBS=$LIBS | |
16981 | LIBS="-framework JavaScriptCore $LIBS" | |
16982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16983 | /* end confdefs.h. */ | |
16984 | ||
16985 | #include <JavaScriptCore/JSBase.h> | |
16986 | ||
16987 | int | |
16988 | main () | |
16989 | { | |
16990 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
16991 | ; | |
16992 | return 0; | |
16993 | } | |
16994 | _ACEOF | |
16995 | if ac_fn_cxx_try_link "$LINENO"; then : | |
16996 | ||
16997 | ac_cv_framework_JavaScriptCore=yes | |
16998 | ||
16999 | else | |
17000 | ac_cv_framework_JavaScriptCore=no | |
17001 | fi | |
17002 | rm -f core conftest.err conftest.$ac_objext \ | |
17003 | conftest$ac_exeext conftest.$ac_ext | |
17004 | LIBS=$ac_check_framework_save_LIBS | |
17005 | ||
17006 | fi | |
17007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17008 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17009 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17010 | ||
17011 | ||
17012 | for element in "-framework JavaScriptCore $LIBS"; do | |
17013 | haveit= | |
17014 | for x in $LIBS; do | |
17015 | ||
17016 | acl_save_prefix="$prefix" | |
17017 | prefix="$acl_final_prefix" | |
17018 | acl_save_exec_prefix="$exec_prefix" | |
17019 | exec_prefix="$acl_final_exec_prefix" | |
17020 | eval x=\"$x\" | |
17021 | exec_prefix="$acl_save_exec_prefix" | |
17022 | prefix="$acl_save_prefix" | |
17023 | ||
17024 | if test "X$x" = "X$element"; then | |
17025 | haveit=yes | |
17026 | break | |
17027 | fi | |
17028 | done | |
17029 | if test -z "$haveit"; then | |
17030 | LIBS="${LIBS}${LIBS:+ }$element" | |
17031 | fi | |
17032 | done | |
17033 | ||
17034 | CY_EXECUTE=1 | |
17035 | ||
17036 | fi | |
17037 | ||
17038 | else | |
17039 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17040 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17042 | $as_echo "yes" >&6; } | |
17043 | ||
17044 | CY_EXECUTE=1 | |
17045 | ||
17046 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
17047 | haveit= | |
17048 | for x in $CXXFLAGS; do | |
17049 | ||
17050 | acl_save_prefix="$prefix" | |
17051 | prefix="$acl_final_prefix" | |
17052 | acl_save_exec_prefix="$exec_prefix" | |
17053 | exec_prefix="$acl_final_exec_prefix" | |
17054 | eval x=\"$x\" | |
17055 | exec_prefix="$acl_save_exec_prefix" | |
17056 | prefix="$acl_save_prefix" | |
17057 | ||
17058 | if test "X$x" = "X$element"; then | |
17059 | haveit=yes | |
17060 | break | |
17061 | fi | |
17062 | done | |
17063 | if test -z "$haveit"; then | |
17064 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17065 | fi | |
17066 | done | |
17067 | ||
17068 | ||
17069 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
17070 | haveit= | |
17071 | for x in $LIBS; do | |
17072 | ||
17073 | acl_save_prefix="$prefix" | |
17074 | prefix="$acl_final_prefix" | |
17075 | acl_save_exec_prefix="$exec_prefix" | |
17076 | exec_prefix="$acl_final_exec_prefix" | |
17077 | eval x=\"$x\" | |
17078 | exec_prefix="$acl_save_exec_prefix" | |
17079 | prefix="$acl_save_prefix" | |
17080 | ||
17081 | if test "X$x" = "X$element"; then | |
17082 | haveit=yes | |
17083 | break | |
17084 | fi | |
17085 | done | |
17086 | if test -z "$haveit"; then | |
17087 | LIBS="${LIBS}${LIBS:+ }$element" | |
17088 | fi | |
17089 | done | |
17090 | ||
17091 | ||
17092 | fi | |
17093 | ||
17094 | else | |
17095 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17096 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17098 | $as_echo "yes" >&6; } | |
17099 | ||
17100 | CY_EXECUTE=1 | |
17101 | ||
17102 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
17103 | haveit= | |
17104 | for x in $CXXFLAGS; do | |
17105 | ||
17106 | acl_save_prefix="$prefix" | |
17107 | prefix="$acl_final_prefix" | |
17108 | acl_save_exec_prefix="$exec_prefix" | |
17109 | exec_prefix="$acl_final_exec_prefix" | |
17110 | eval x=\"$x\" | |
17111 | exec_prefix="$acl_save_exec_prefix" | |
17112 | prefix="$acl_save_prefix" | |
17113 | ||
17114 | if test "X$x" = "X$element"; then | |
17115 | haveit=yes | |
17116 | break | |
17117 | fi | |
17118 | done | |
17119 | if test -z "$haveit"; then | |
17120 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17121 | fi | |
17122 | done | |
17123 | ||
17124 | ||
17125 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
17126 | haveit= | |
17127 | for x in $LIBS; do | |
17128 | ||
17129 | acl_save_prefix="$prefix" | |
17130 | prefix="$acl_final_prefix" | |
17131 | acl_save_exec_prefix="$exec_prefix" | |
17132 | exec_prefix="$acl_final_exec_prefix" | |
17133 | eval x=\"$x\" | |
17134 | exec_prefix="$acl_save_exec_prefix" | |
17135 | prefix="$acl_save_prefix" | |
17136 | ||
17137 | if test "X$x" = "X$element"; then | |
17138 | haveit=yes | |
17139 | break | |
17140 | fi | |
17141 | done | |
17142 | if test -z "$haveit"; then | |
17143 | LIBS="${LIBS}${LIBS:+ }$element" | |
17144 | fi | |
17145 | done | |
17146 | ||
17147 | ||
17148 | fi | |
17149 | ||
17150 | ;; #( | |
17151 | *) : | |
17152 | as_fn_error "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;; | |
17153 | esac | |
17154 | ||
17155 | else | |
17156 | ||
17157 | ||
17158 | ||
632b71ea DWT |
17159 | pkg_failed=no |
17160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17161 | $as_echo_n "checking for WEBKIT... " >&6; } | |
b128dfee | 17162 | |
632b71ea DWT |
17163 | if test -n "$PKG_CONFIG"; then |
17164 | if test -n "$WEBKIT_CFLAGS"; then | |
17165 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17166 | else | |
17167 | if test -n "$PKG_CONFIG" && \ | |
17168 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
17169 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17170 | ac_status=$? | |
17171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17172 | test $ac_status = 0; }; then | |
17173 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
9c60689e | 17174 | else |
632b71ea DWT |
17175 | pkg_failed=yes |
17176 | fi | |
3fd51f51 | 17177 | fi |
632b71ea DWT |
17178 | else |
17179 | pkg_failed=untried | |
17180 | fi | |
17181 | if test -n "$PKG_CONFIG"; then | |
17182 | if test -n "$WEBKIT_LIBS"; then | |
17183 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17184 | else | |
17185 | if test -n "$PKG_CONFIG" && \ | |
17186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
17187 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
17188 | ac_status=$? | |
17189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17190 | test $ac_status = 0; }; then | |
17191 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
17192 | else | |
17193 | pkg_failed=yes | |
17194 | fi | |
17195 | fi | |
17196 | else | |
17197 | pkg_failed=untried | |
17198 | fi | |
3fd51f51 | 17199 | |
3fd51f51 | 17200 | |
3fd51f51 | 17201 | |
632b71ea | 17202 | if test $pkg_failed = yes; then |
3fd51f51 | 17203 | |
632b71ea DWT |
17204 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
17205 | _pkg_short_errors_supported=yes | |
17206 | else | |
17207 | _pkg_short_errors_supported=no | |
9c60689e | 17208 | fi |
632b71ea DWT |
17209 | if test $_pkg_short_errors_supported = yes; then |
17210 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
17211 | else | |
17212 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
17213 | fi | |
17214 | # Put the nasty error message in config.log where it belongs | |
17215 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
9c60689e | 17216 | |
632b71ea DWT |
17217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17218 | $as_echo "no" >&6; } | |
9c60689e DWT |
17219 | |
17220 | ||
17221 | pkg_failed=no | |
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17223 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17224 | ||
17225 | if test -n "$PKG_CONFIG"; then | |
17226 | if test -n "$WEBKIT_CFLAGS"; then | |
17227 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17228 | else | |
17229 | if test -n "$PKG_CONFIG" && \ | |
17230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17231 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17232 | ac_status=$? | |
17233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17234 | test $ac_status = 0; }; then | |
17235 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
17236 | else | |
17237 | pkg_failed=yes | |
17238 | fi | |
17239 | fi | |
17240 | else | |
17241 | pkg_failed=untried | |
17242 | fi | |
17243 | if test -n "$PKG_CONFIG"; then | |
17244 | if test -n "$WEBKIT_LIBS"; then | |
17245 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17246 | else | |
17247 | if test -n "$PKG_CONFIG" && \ | |
17248 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17249 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17250 | ac_status=$? | |
17251 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17252 | test $ac_status = 0; }; then | |
17253 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17254 | else | |
17255 | pkg_failed=yes | |
17256 | fi | |
17257 | fi | |
17258 | else | |
17259 | pkg_failed=untried | |
17260 | fi | |
17261 | ||
17262 | ||
17263 | ||
17264 | if test $pkg_failed = yes; then | |
17265 | ||
17266 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17267 | _pkg_short_errors_supported=yes | |
17268 | else | |
17269 | _pkg_short_errors_supported=no | |
17270 | fi | |
17271 | if test $_pkg_short_errors_supported = yes; then | |
17272 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
17273 | else | |
17274 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
17275 | fi | |
17276 | # Put the nasty error message in config.log where it belongs | |
17277 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
17278 | ||
17279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17280 | $as_echo "no" >&6; } | |
b128dfee | 17281 | |
c823f118 DWT |
17282 | |
17283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17284 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17285 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
17286 | $as_echo_n "(cached) " >&6 | |
17287 | else | |
17288 | ||
17289 | ac_check_framework_save_LIBS=$LIBS | |
17290 | LIBS="-framework JavaScriptCore $LIBS" | |
17291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17292 | /* end confdefs.h. */ | |
17293 | ||
b66977f1 | 17294 | #include <JavaScriptCore/JSBase.h> |
c823f118 DWT |
17295 | |
17296 | int | |
17297 | main () | |
17298 | { | |
17299 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17300 | ; | |
17301 | return 0; | |
17302 | } | |
b128dfee | 17303 | _ACEOF |
c823f118 DWT |
17304 | if ac_fn_cxx_try_link "$LINENO"; then : |
17305 | ||
17306 | ac_cv_framework_JavaScriptCore=yes | |
17307 | ||
17308 | else | |
17309 | ac_cv_framework_JavaScriptCore=no | |
17310 | fi | |
17311 | rm -f core conftest.err conftest.$ac_objext \ | |
17312 | conftest$ac_exeext conftest.$ac_ext | |
17313 | LIBS=$ac_check_framework_save_LIBS | |
17314 | ||
b128dfee | 17315 | fi |
c823f118 DWT |
17316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
17317 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17318 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
b128dfee | 17319 | |
b128dfee | 17320 | |
c823f118 DWT |
17321 | for element in "-framework JavaScriptCore $LIBS"; do |
17322 | haveit= | |
17323 | for x in $LIBS; do | |
17324 | ||
17325 | acl_save_prefix="$prefix" | |
17326 | prefix="$acl_final_prefix" | |
17327 | acl_save_exec_prefix="$exec_prefix" | |
17328 | exec_prefix="$acl_final_exec_prefix" | |
17329 | eval x=\"$x\" | |
17330 | exec_prefix="$acl_save_exec_prefix" | |
17331 | prefix="$acl_save_prefix" | |
17332 | ||
17333 | if test "X$x" = "X$element"; then | |
17334 | haveit=yes | |
17335 | break | |
17336 | fi | |
17337 | done | |
17338 | if test -z "$haveit"; then | |
17339 | LIBS="${LIBS}${LIBS:+ }$element" | |
17340 | fi | |
17341 | done | |
17342 | ||
17343 | CY_EXECUTE=1 | |
17344 | ||
17345 | fi | |
b128dfee | 17346 | |
9c60689e | 17347 | elif test $pkg_failed = untried; then |
b128dfee | 17348 | |
c823f118 DWT |
17349 | |
17350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17351 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17352 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
17353 | $as_echo_n "(cached) " >&6 | |
17354 | else | |
17355 | ||
17356 | ac_check_framework_save_LIBS=$LIBS | |
17357 | LIBS="-framework JavaScriptCore $LIBS" | |
17358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17359 | /* end confdefs.h. */ | |
17360 | ||
b66977f1 | 17361 | #include <JavaScriptCore/JSBase.h> |
c823f118 DWT |
17362 | |
17363 | int | |
17364 | main () | |
17365 | { | |
17366 | JSEvaluateScript(0, 0, 0, 0, 0, 0); | |
17367 | ; | |
17368 | return 0; | |
17369 | } | |
b128dfee | 17370 | _ACEOF |
c823f118 DWT |
17371 | if ac_fn_cxx_try_link "$LINENO"; then : |
17372 | ||
17373 | ac_cv_framework_JavaScriptCore=yes | |
17374 | ||
632b71ea DWT |
17375 | else |
17376 | ac_cv_framework_JavaScriptCore=no | |
17377 | fi | |
17378 | rm -f core conftest.err conftest.$ac_objext \ | |
17379 | conftest$ac_exeext conftest.$ac_ext | |
17380 | LIBS=$ac_check_framework_save_LIBS | |
3fd51f51 | 17381 | |
632b71ea DWT |
17382 | fi |
17383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17384 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17385 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
3fd51f51 DWT |
17386 | |
17387 | ||
632b71ea | 17388 | for element in "-framework JavaScriptCore $LIBS"; do |
3fd51f51 DWT |
17389 | haveit= |
17390 | for x in $LIBS; do | |
17391 | ||
17392 | acl_save_prefix="$prefix" | |
17393 | prefix="$acl_final_prefix" | |
17394 | acl_save_exec_prefix="$exec_prefix" | |
17395 | exec_prefix="$acl_final_exec_prefix" | |
17396 | eval x=\"$x\" | |
17397 | exec_prefix="$acl_save_exec_prefix" | |
17398 | prefix="$acl_save_prefix" | |
17399 | ||
17400 | if test "X$x" = "X$element"; then | |
17401 | haveit=yes | |
17402 | break | |
17403 | fi | |
17404 | done | |
17405 | if test -z "$haveit"; then | |
17406 | LIBS="${LIBS}${LIBS:+ }$element" | |
17407 | fi | |
17408 | done | |
17409 | ||
632b71ea | 17410 | CY_EXECUTE=1 |
3fd51f51 | 17411 | |
9c60689e DWT |
17412 | fi |
17413 | ||
17414 | else | |
17415 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17416 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17418 | $as_echo "yes" >&6; } | |
3fd51f51 | 17419 | |
b66977f1 | 17420 | CY_EXECUTE=1 |
3fd51f51 | 17421 | |
632b71ea | 17422 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do |
3fd51f51 DWT |
17423 | haveit= |
17424 | for x in $CXXFLAGS; do | |
17425 | ||
17426 | acl_save_prefix="$prefix" | |
17427 | prefix="$acl_final_prefix" | |
17428 | acl_save_exec_prefix="$exec_prefix" | |
17429 | exec_prefix="$acl_final_exec_prefix" | |
17430 | eval x=\"$x\" | |
17431 | exec_prefix="$acl_save_exec_prefix" | |
17432 | prefix="$acl_save_prefix" | |
17433 | ||
17434 | if test "X$x" = "X$element"; then | |
17435 | haveit=yes | |
17436 | break | |
17437 | fi | |
17438 | done | |
17439 | if test -z "$haveit"; then | |
17440 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17441 | fi | |
17442 | done | |
17443 | ||
17444 | ||
632b71ea | 17445 | for element in `$PKG_CONFIG --libs WebKitGtk`; do |
3fd51f51 DWT |
17446 | haveit= |
17447 | for x in $LIBS; do | |
17448 | ||
17449 | acl_save_prefix="$prefix" | |
17450 | prefix="$acl_final_prefix" | |
17451 | acl_save_exec_prefix="$exec_prefix" | |
17452 | exec_prefix="$acl_final_exec_prefix" | |
17453 | eval x=\"$x\" | |
17454 | exec_prefix="$acl_save_exec_prefix" | |
17455 | prefix="$acl_save_prefix" | |
17456 | ||
17457 | if test "X$x" = "X$element"; then | |
17458 | haveit=yes | |
17459 | break | |
17460 | fi | |
17461 | done | |
17462 | if test -z "$haveit"; then | |
17463 | LIBS="${LIBS}${LIBS:+ }$element" | |
17464 | fi | |
17465 | done | |
17466 | ||
17467 | ||
9c60689e | 17468 | fi |
a667869d | 17469 | |
632b71ea | 17470 | elif test $pkg_failed = untried; then |
9c60689e DWT |
17471 | |
17472 | ||
632b71ea DWT |
17473 | pkg_failed=no |
17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
17475 | $as_echo_n "checking for WEBKIT... " >&6; } | |
17476 | ||
17477 | if test -n "$PKG_CONFIG"; then | |
17478 | if test -n "$WEBKIT_CFLAGS"; then | |
17479 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
17480 | else | |
17481 | if test -n "$PKG_CONFIG" && \ | |
17482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17483 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17484 | ac_status=$? | |
17485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17486 | test $ac_status = 0; }; then | |
17487 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
a667869d | 17488 | else |
632b71ea DWT |
17489 | pkg_failed=yes |
17490 | fi | |
17491 | fi | |
a667869d | 17492 | else |
632b71ea | 17493 | pkg_failed=untried |
a667869d | 17494 | fi |
632b71ea DWT |
17495 | if test -n "$PKG_CONFIG"; then |
17496 | if test -n "$WEBKIT_LIBS"; then | |
17497 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
17498 | else | |
17499 | if test -n "$PKG_CONFIG" && \ | |
17500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
17501 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
17502 | ac_status=$? | |
17503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17504 | test $ac_status = 0; }; then | |
17505 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
17506 | else | |
17507 | pkg_failed=yes | |
a667869d | 17508 | fi |
632b71ea | 17509 | fi |
a667869d | 17510 | else |
632b71ea | 17511 | pkg_failed=untried |
9c60689e DWT |
17512 | fi |
17513 | ||
a667869d | 17514 | |
9c60689e | 17515 | |
632b71ea DWT |
17516 | if test $pkg_failed = yes; then |
17517 | ||
17518 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17519 | _pkg_short_errors_supported=yes | |
17520 | else | |
17521 | _pkg_short_errors_supported=no | |
a667869d | 17522 | fi |
632b71ea DWT |
17523 | if test $_pkg_short_errors_supported = yes; then |
17524 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
17525 | else | |
17526 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
17527 | fi | |
17528 | # Put the nasty error message in config.log where it belongs | |
17529 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
9c60689e | 17530 | |
632b71ea DWT |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17532 | $as_echo "no" >&6; } | |
9c60689e | 17533 | |
632b71ea DWT |
17534 | |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17536 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17537 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
9c60689e DWT |
17538 | $as_echo_n "(cached) " >&6 |
17539 | else | |
632b71ea DWT |
17540 | |
17541 | ac_check_framework_save_LIBS=$LIBS | |
17542 | LIBS="-framework JavaScriptCore $LIBS" | |
17543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9c60689e DWT |
17544 | /* end confdefs.h. */ |
17545 | ||
b66977f1 | 17546 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 17547 | |
9c60689e DWT |
17548 | int |
17549 | main () | |
17550 | { | |
632b71ea | 17551 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
9c60689e DWT |
17552 | ; |
17553 | return 0; | |
17554 | } | |
17555 | _ACEOF | |
632b71ea DWT |
17556 | if ac_fn_cxx_try_link "$LINENO"; then : |
17557 | ||
17558 | ac_cv_framework_JavaScriptCore=yes | |
17559 | ||
9c60689e | 17560 | else |
632b71ea | 17561 | ac_cv_framework_JavaScriptCore=no |
9c60689e | 17562 | fi |
632b71ea DWT |
17563 | rm -f core conftest.err conftest.$ac_objext \ |
17564 | conftest$ac_exeext conftest.$ac_ext | |
17565 | LIBS=$ac_check_framework_save_LIBS | |
9c60689e DWT |
17566 | |
17567 | fi | |
632b71ea DWT |
17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 |
17569 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17570 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
17571 | ||
17572 | ||
17573 | for element in "-framework JavaScriptCore $LIBS"; do | |
17574 | haveit= | |
17575 | for x in $LIBS; do | |
17576 | ||
17577 | acl_save_prefix="$prefix" | |
17578 | prefix="$acl_final_prefix" | |
17579 | acl_save_exec_prefix="$exec_prefix" | |
17580 | exec_prefix="$acl_final_exec_prefix" | |
17581 | eval x=\"$x\" | |
17582 | exec_prefix="$acl_save_exec_prefix" | |
17583 | prefix="$acl_save_prefix" | |
17584 | ||
17585 | if test "X$x" = "X$element"; then | |
17586 | haveit=yes | |
17587 | break | |
17588 | fi | |
17589 | done | |
17590 | if test -z "$haveit"; then | |
17591 | LIBS="${LIBS}${LIBS:+ }$element" | |
17592 | fi | |
17593 | done | |
17594 | ||
17595 | CY_EXECUTE=1 | |
17596 | ||
a667869d | 17597 | fi |
632b71ea DWT |
17598 | |
17599 | elif test $pkg_failed = untried; then | |
17600 | ||
17601 | ||
17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5 | |
17603 | $as_echo_n "checking for framework JavaScriptCore... " >&6; } | |
17604 | if test "${ac_cv_framework_JavaScriptCore+set}" = set; then : | |
a667869d DWT |
17605 | $as_echo_n "(cached) " >&6 |
17606 | else | |
632b71ea DWT |
17607 | |
17608 | ac_check_framework_save_LIBS=$LIBS | |
17609 | LIBS="-framework JavaScriptCore $LIBS" | |
17610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a667869d DWT |
17611 | /* end confdefs.h. */ |
17612 | ||
b66977f1 | 17613 | #include <JavaScriptCore/JSBase.h> |
632b71ea | 17614 | |
a667869d DWT |
17615 | int |
17616 | main () | |
17617 | { | |
632b71ea | 17618 | JSEvaluateScript(0, 0, 0, 0, 0, 0); |
a667869d DWT |
17619 | ; |
17620 | return 0; | |
17621 | } | |
17622 | _ACEOF | |
632b71ea DWT |
17623 | if ac_fn_cxx_try_link "$LINENO"; then : |
17624 | ||
17625 | ac_cv_framework_JavaScriptCore=yes | |
17626 | ||
a667869d | 17627 | else |
632b71ea DWT |
17628 | ac_cv_framework_JavaScriptCore=no |
17629 | fi | |
17630 | rm -f core conftest.err conftest.$ac_objext \ | |
17631 | conftest$ac_exeext conftest.$ac_ext | |
17632 | LIBS=$ac_check_framework_save_LIBS | |
a667869d | 17633 | |
632b71ea DWT |
17634 | fi |
17635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5 | |
17636 | $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } | |
17637 | if test $ac_cv_framework_JavaScriptCore = yes; then : | |
a667869d | 17638 | |
a667869d | 17639 | |
632b71ea DWT |
17640 | for element in "-framework JavaScriptCore $LIBS"; do |
17641 | haveit= | |
17642 | for x in $LIBS; do | |
a667869d | 17643 | |
632b71ea DWT |
17644 | acl_save_prefix="$prefix" |
17645 | prefix="$acl_final_prefix" | |
17646 | acl_save_exec_prefix="$exec_prefix" | |
17647 | exec_prefix="$acl_final_exec_prefix" | |
17648 | eval x=\"$x\" | |
17649 | exec_prefix="$acl_save_exec_prefix" | |
17650 | prefix="$acl_save_prefix" | |
17651 | ||
17652 | if test "X$x" = "X$element"; then | |
17653 | haveit=yes | |
17654 | break | |
17655 | fi | |
17656 | done | |
17657 | if test -z "$haveit"; then | |
17658 | LIBS="${LIBS}${LIBS:+ }$element" | |
17659 | fi | |
17660 | done | |
17661 | ||
17662 | CY_EXECUTE=1 | |
a667869d | 17663 | |
a667869d | 17664 | fi |
632b71ea | 17665 | |
a667869d | 17666 | else |
632b71ea DWT |
17667 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS |
17668 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17670 | $as_echo "yes" >&6; } | |
17671 | ||
b66977f1 | 17672 | CY_EXECUTE=1 |
632b71ea DWT |
17673 | |
17674 | for element in `$PKG_CONFIG --cflags WebKitGtk`; do | |
17675 | haveit= | |
17676 | for x in $CXXFLAGS; do | |
17677 | ||
17678 | acl_save_prefix="$prefix" | |
17679 | prefix="$acl_final_prefix" | |
17680 | acl_save_exec_prefix="$exec_prefix" | |
17681 | exec_prefix="$acl_final_exec_prefix" | |
17682 | eval x=\"$x\" | |
17683 | exec_prefix="$acl_save_exec_prefix" | |
17684 | prefix="$acl_save_prefix" | |
17685 | ||
17686 | if test "X$x" = "X$element"; then | |
17687 | haveit=yes | |
17688 | break | |
17689 | fi | |
17690 | done | |
17691 | if test -z "$haveit"; then | |
17692 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17693 | fi | |
17694 | done | |
17695 | ||
17696 | ||
17697 | for element in `$PKG_CONFIG --libs WebKitGtk`; do | |
17698 | haveit= | |
17699 | for x in $LIBS; do | |
17700 | ||
17701 | acl_save_prefix="$prefix" | |
17702 | prefix="$acl_final_prefix" | |
17703 | acl_save_exec_prefix="$exec_prefix" | |
17704 | exec_prefix="$acl_final_exec_prefix" | |
17705 | eval x=\"$x\" | |
17706 | exec_prefix="$acl_save_exec_prefix" | |
17707 | prefix="$acl_save_prefix" | |
17708 | ||
17709 | if test "X$x" = "X$element"; then | |
17710 | haveit=yes | |
17711 | break | |
17712 | fi | |
17713 | done | |
17714 | if test -z "$haveit"; then | |
17715 | LIBS="${LIBS}${LIBS:+ }$element" | |
17716 | fi | |
17717 | done | |
17718 | ||
17719 | ||
a667869d | 17720 | fi |
a667869d | 17721 | |
632b71ea DWT |
17722 | else |
17723 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
17724 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17726 | $as_echo "yes" >&6; } | |
17727 | ||
b66977f1 | 17728 | CY_EXECUTE=1 |
632b71ea DWT |
17729 | |
17730 | for element in `$PKG_CONFIG --cflags webkit-1.0`; do | |
17731 | haveit= | |
17732 | for x in $CXXFLAGS; do | |
17733 | ||
17734 | acl_save_prefix="$prefix" | |
17735 | prefix="$acl_final_prefix" | |
17736 | acl_save_exec_prefix="$exec_prefix" | |
17737 | exec_prefix="$acl_final_exec_prefix" | |
17738 | eval x=\"$x\" | |
17739 | exec_prefix="$acl_save_exec_prefix" | |
17740 | prefix="$acl_save_prefix" | |
17741 | ||
17742 | if test "X$x" = "X$element"; then | |
17743 | haveit=yes | |
17744 | break | |
17745 | fi | |
17746 | done | |
17747 | if test -z "$haveit"; then | |
17748 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
17749 | fi | |
17750 | done | |
17751 | ||
17752 | ||
17753 | for element in `$PKG_CONFIG --libs webkit-1.0`; do | |
17754 | haveit= | |
17755 | for x in $LIBS; do | |
17756 | ||
17757 | acl_save_prefix="$prefix" | |
17758 | prefix="$acl_final_prefix" | |
17759 | acl_save_exec_prefix="$exec_prefix" | |
17760 | exec_prefix="$acl_final_exec_prefix" | |
17761 | eval x=\"$x\" | |
17762 | exec_prefix="$acl_save_exec_prefix" | |
17763 | prefix="$acl_save_prefix" | |
17764 | ||
17765 | if test "X$x" = "X$element"; then | |
17766 | haveit=yes | |
17767 | break | |
17768 | fi | |
17769 | done | |
17770 | if test -z "$haveit"; then | |
17771 | LIBS="${LIBS}${LIBS:+ }$element" | |
17772 | fi | |
17773 | done | |
17774 | ||
17775 | ||
17776 | fi | |
a667869d | 17777 | |
b66977f1 DWT |
17778 | |
17779 | fi | |
17780 | ||
17781 | ||
a667869d DWT |
17782 | case $CY_EXECUTE in #( |
17783 | 1) : | |
17784 | ||
17785 | ||
17786 | ||
17787 | pkg_failed=no | |
17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
17789 | $as_echo_n "checking for LIBFFI... " >&6; } | |
17790 | ||
17791 | if test -n "$PKG_CONFIG"; then | |
17792 | if test -n "$LIBFFI_CFLAGS"; then | |
17793 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
17794 | else | |
17795 | if test -n "$PKG_CONFIG" && \ | |
17796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
17797 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17798 | ac_status=$? | |
17799 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17800 | test $ac_status = 0; }; then | |
17801 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
17802 | else | |
17803 | pkg_failed=yes | |
17804 | fi | |
17805 | fi | |
17806 | else | |
17807 | pkg_failed=untried | |
17808 | fi | |
17809 | if test -n "$PKG_CONFIG"; then | |
17810 | if test -n "$LIBFFI_LIBS"; then | |
17811 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
17812 | else | |
17813 | if test -n "$PKG_CONFIG" && \ | |
17814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
17815 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
17816 | ac_status=$? | |
17817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17818 | test $ac_status = 0; }; then | |
17819 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
17820 | else | |
17821 | pkg_failed=yes | |
17822 | fi | |
17823 | fi | |
17824 | else | |
17825 | pkg_failed=untried | |
17826 | fi | |
17827 | ||
17828 | ||
17829 | ||
17830 | if test $pkg_failed = yes; then | |
17831 | ||
17832 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
17833 | _pkg_short_errors_supported=yes | |
17834 | else | |
17835 | _pkg_short_errors_supported=no | |
17836 | fi | |
17837 | if test $_pkg_short_errors_supported = yes; then | |
17838 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
17839 | else | |
17840 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
17841 | fi | |
17842 | # Put the nasty error message in config.log where it belongs | |
17843 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
17844 | ||
17845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17846 | $as_echo "no" >&6; } | |
17847 | ||
17848 | for ac_header in ffi.h ffi/ffi.h | |
17849 | do : | |
17850 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17851 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
17852 | eval as_val=\$$as_ac_Header | |
17853 | if test "x$as_val" = x""yes; then : | |
17854 | cat >>confdefs.h <<_ACEOF | |
17855 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17856 | _ACEOF | |
17857 | break | |
17858 | fi | |
17859 | ||
17860 | done | |
17861 | ||
17862 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
17863 | ||
17864 | as_fn_error "You need libffi" "$LINENO" 5 | |
17865 | ||
17866 | fi | |
17867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
17868 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17869 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17870 | $as_echo_n "(cached) " >&6 | |
17871 | else | |
17872 | ac_func_search_save_LIBS=$LIBS | |
17873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17874 | /* end confdefs.h. */ | |
17875 | ||
17876 | /* Override any GCC internal prototype to avoid an error. | |
17877 | Use char because int might match the return type of a GCC | |
17878 | builtin and then its argument prototype would still apply. */ | |
17879 | #ifdef __cplusplus | |
17880 | extern "C" | |
17881 | #endif | |
17882 | char ffi_call (); | |
17883 | int | |
17884 | main () | |
17885 | { | |
17886 | return ffi_call (); | |
17887 | ; | |
17888 | return 0; | |
17889 | } | |
17890 | _ACEOF | |
17891 | for ac_lib in '' ffi; do | |
17892 | if test -z "$ac_lib"; then | |
17893 | ac_res="none required" | |
17894 | else | |
17895 | ac_res=-l$ac_lib | |
17896 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17897 | fi | |
17898 | if ac_fn_cxx_try_link "$LINENO"; then : | |
17899 | ac_cv_search_ffi_call=$ac_res | |
17900 | fi | |
17901 | rm -f core conftest.err conftest.$ac_objext \ | |
17902 | conftest$ac_exeext | |
17903 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17904 | break | |
17905 | fi | |
17906 | done | |
17907 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17908 | ||
17909 | else | |
17910 | ac_cv_search_ffi_call=no | |
17911 | fi | |
17912 | rm conftest.$ac_ext | |
17913 | LIBS=$ac_func_search_save_LIBS | |
17914 | fi | |
17915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
17916 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
17917 | ac_res=$ac_cv_search_ffi_call | |
17918 | if test "$ac_res" != no; then : | |
17919 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
17920 | ||
17921 | fi | |
17922 | ||
17923 | case $ac_cv_search_ffi_call in #( | |
17924 | no) : | |
17925 | ||
17926 | as_fn_error "You need libffi" "$LINENO" 5 | |
17927 | ;; #( | |
17928 | *) : | |
9c60689e DWT |
17929 | ;; |
17930 | esac | |
17931 | ||
17932 | elif test $pkg_failed = untried; then | |
17933 | ||
17934 | for ac_header in ffi.h ffi/ffi.h | |
17935 | do : | |
17936 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
47aaa820 | 17937 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
9c60689e DWT |
17938 | eval as_val=\$$as_ac_Header |
17939 | if test "x$as_val" = x""yes; then : | |
17940 | cat >>confdefs.h <<_ACEOF | |
17941 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17942 | _ACEOF | |
17943 | break | |
17944 | fi | |
17945 | ||
17946 | done | |
17947 | ||
17948 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
17949 | ||
17950 | as_fn_error "You need libffi" "$LINENO" 5 | |
17951 | ||
17952 | fi | |
17953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
17954 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
17955 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17956 | $as_echo_n "(cached) " >&6 | |
17957 | else | |
17958 | ac_func_search_save_LIBS=$LIBS | |
17959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17960 | /* end confdefs.h. */ | |
17961 | ||
17962 | /* Override any GCC internal prototype to avoid an error. | |
17963 | Use char because int might match the return type of a GCC | |
17964 | builtin and then its argument prototype would still apply. */ | |
17965 | #ifdef __cplusplus | |
17966 | extern "C" | |
17967 | #endif | |
17968 | char ffi_call (); | |
17969 | int | |
17970 | main () | |
17971 | { | |
17972 | return ffi_call (); | |
17973 | ; | |
17974 | return 0; | |
17975 | } | |
17976 | _ACEOF | |
17977 | for ac_lib in '' ffi; do | |
17978 | if test -z "$ac_lib"; then | |
17979 | ac_res="none required" | |
17980 | else | |
17981 | ac_res=-l$ac_lib | |
17982 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17983 | fi | |
47aaa820 | 17984 | if ac_fn_cxx_try_link "$LINENO"; then : |
9c60689e DWT |
17985 | ac_cv_search_ffi_call=$ac_res |
17986 | fi | |
17987 | rm -f core conftest.err conftest.$ac_objext \ | |
17988 | conftest$ac_exeext | |
17989 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17990 | break | |
17991 | fi | |
17992 | done | |
17993 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
17994 | ||
17995 | else | |
17996 | ac_cv_search_ffi_call=no | |
17997 | fi | |
17998 | rm conftest.$ac_ext | |
17999 | LIBS=$ac_func_search_save_LIBS | |
18000 | fi | |
18001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
18002 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
18003 | ac_res=$ac_cv_search_ffi_call | |
18004 | if test "$ac_res" != no; then : | |
18005 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
18006 | ||
18007 | fi | |
18008 | ||
18009 | case $ac_cv_search_ffi_call in #( | |
18010 | no) : | |
18011 | ||
18012 | as_fn_error "You need libffi" "$LINENO" 5 | |
18013 | ;; #( | |
18014 | *) : | |
18015 | ;; | |
18016 | esac | |
18017 | ||
18018 | else | |
18019 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
18020 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
18021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
18022 | $as_echo "yes" >&6; } | |
3fd51f51 DWT |
18023 | |
18024 | ||
18025 | for element in `$PKG_CONFIG --cflags libffi`; do | |
18026 | haveit= | |
18027 | for x in $CXXFLAGS; do | |
18028 | ||
18029 | acl_save_prefix="$prefix" | |
18030 | prefix="$acl_final_prefix" | |
18031 | acl_save_exec_prefix="$exec_prefix" | |
18032 | exec_prefix="$acl_final_exec_prefix" | |
18033 | eval x=\"$x\" | |
18034 | exec_prefix="$acl_save_exec_prefix" | |
18035 | prefix="$acl_save_prefix" | |
18036 | ||
18037 | if test "X$x" = "X$element"; then | |
18038 | haveit=yes | |
18039 | break | |
18040 | fi | |
18041 | done | |
18042 | if test -z "$haveit"; then | |
18043 | CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element" | |
18044 | fi | |
18045 | done | |
18046 | ||
18047 | ||
18048 | for element in `$PKG_CONFIG --libs libffi`; do | |
18049 | haveit= | |
18050 | for x in $LIBS; do | |
18051 | ||
18052 | acl_save_prefix="$prefix" | |
18053 | prefix="$acl_final_prefix" | |
18054 | acl_save_exec_prefix="$exec_prefix" | |
18055 | exec_prefix="$acl_final_exec_prefix" | |
18056 | eval x=\"$x\" | |
18057 | exec_prefix="$acl_save_exec_prefix" | |
18058 | prefix="$acl_save_prefix" | |
18059 | ||
18060 | if test "X$x" = "X$element"; then | |
18061 | haveit=yes | |
18062 | break | |
18063 | fi | |
18064 | done | |
18065 | if test -z "$haveit"; then | |
18066 | LIBS="${LIBS}${LIBS:+ }$element" | |
18067 | fi | |
18068 | done | |
18069 | ||
18070 | ||
9c60689e | 18071 | fi |
a667869d | 18072 | ac_ext=mm |
47aaa820 DWT |
18073 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
18074 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18075 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18076 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
18077 | ||
a667869d | 18078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5 |
47aaa820 | 18079 | $as_echo_n "checking if we really have Objective C++... " >&6; } |
a667869d | 18080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
47aaa820 DWT |
18081 | /* end confdefs.h. */ |
18082 | ||
a667869d | 18083 | // This space intentionally left blank |
47aaa820 DWT |
18084 | |
18085 | _ACEOF | |
18086 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
18087 | ||
a667869d DWT |
18088 | CY_OBJECTIVEC=1 |
18089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
47aaa820 DWT |
18090 | $as_echo "yes" >&6; } |
18091 | ||
18092 | else | |
18093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18094 | $as_echo "no" >&6; } | |
18095 | fi | |
18096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a667869d | 18097 | if test "x$CY_OBJECTIVEC" = x1; then : |
47aaa820 | 18098 | |
c823f118 DWT |
18099 | |
18100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5 | |
18101 | $as_echo_n "checking for framework CoreFoundation... " >&6; } | |
18102 | if test "${ac_cv_framework_CoreFoundation+set}" = set; then : | |
18103 | $as_echo_n "(cached) " >&6 | |
18104 | else | |
18105 | ||
18106 | ac_check_framework_save_LIBS=$LIBS | |
18107 | LIBS="-framework CoreFoundation $LIBS" | |
18108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18109 | /* end confdefs.h. */ | |
18110 | ||
18111 | #include <CoreFoundation/CFBase.h> | |
18112 | ||
18113 | int | |
18114 | main () | |
18115 | { | |
18116 | CFAllocatorGetDefault(); | |
18117 | ; | |
18118 | return 0; | |
18119 | } | |
18120 | _ACEOF | |
18121 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
18122 | ||
18123 | ac_cv_framework_CoreFoundation=yes | |
18124 | ||
18125 | else | |
18126 | ac_cv_framework_CoreFoundation=no | |
18127 | fi | |
18128 | rm -f core conftest.err conftest.$ac_objext \ | |
18129 | conftest$ac_exeext conftest.$ac_ext | |
18130 | LIBS=$ac_check_framework_save_LIBS | |
18131 | ||
18132 | fi | |
18133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5 | |
18134 | $as_echo "$ac_cv_framework_CoreFoundation" >&6; } | |
18135 | if test $ac_cv_framework_CoreFoundation = yes; then : | |
18136 | ||
18137 | ||
18138 | for element in "-framework CoreFoundation $LIBS"; do | |
18139 | haveit= | |
18140 | for x in $LIBS; do | |
18141 | ||
18142 | acl_save_prefix="$prefix" | |
18143 | prefix="$acl_final_prefix" | |
18144 | acl_save_exec_prefix="$exec_prefix" | |
18145 | exec_prefix="$acl_final_exec_prefix" | |
18146 | eval x=\"$x\" | |
18147 | exec_prefix="$acl_save_exec_prefix" | |
18148 | prefix="$acl_save_prefix" | |
18149 | ||
18150 | if test "X$x" = "X$element"; then | |
18151 | haveit=yes | |
18152 | break | |
18153 | fi | |
18154 | done | |
18155 | if test -z "$haveit"; then | |
18156 | LIBS="${LIBS}${LIBS:+ }$element" | |
18157 | fi | |
18158 | done | |
18159 | ||
18160 | ||
18161 | ||
18162 | ||
18163 | ||
18164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5 | |
18165 | $as_echo_n "checking for framework Foundation... " >&6; } | |
18166 | if test "${ac_cv_framework_Foundation+set}" = set; then : | |
18167 | $as_echo_n "(cached) " >&6 | |
18168 | else | |
18169 | ||
18170 | ac_check_framework_save_LIBS=$LIBS | |
18171 | LIBS="-framework Foundation $LIBS" | |
18172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18173 | /* end confdefs.h. */ | |
18174 | ||
18175 | #include <Foundation/NSObject.h> | |
18176 | ||
18177 | int | |
18178 | main () | |
18179 | { | |
18180 | [[NSObject alloc] init]; | |
18181 | ; | |
18182 | return 0; | |
18183 | } | |
18184 | _ACEOF | |
18185 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
18186 | ||
18187 | ac_cv_framework_Foundation=yes | |
18188 | ||
18189 | else | |
18190 | ac_cv_framework_Foundation=no | |
18191 | fi | |
18192 | rm -f core conftest.err conftest.$ac_objext \ | |
18193 | conftest$ac_exeext conftest.$ac_ext | |
18194 | LIBS=$ac_check_framework_save_LIBS | |
18195 | ||
18196 | fi | |
18197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5 | |
18198 | $as_echo "$ac_cv_framework_Foundation" >&6; } | |
18199 | if test $ac_cv_framework_Foundation = yes; then : | |
18200 | ||
18201 | ||
18202 | for element in "-framework Foundation $LIBS"; do | |
18203 | haveit= | |
18204 | for x in $LIBS; do | |
18205 | ||
18206 | acl_save_prefix="$prefix" | |
18207 | prefix="$acl_final_prefix" | |
18208 | acl_save_exec_prefix="$exec_prefix" | |
18209 | exec_prefix="$acl_final_exec_prefix" | |
18210 | eval x=\"$x\" | |
18211 | exec_prefix="$acl_save_exec_prefix" | |
18212 | prefix="$acl_save_prefix" | |
18213 | ||
18214 | if test "X$x" = "X$element"; then | |
18215 | haveit=yes | |
18216 | break | |
18217 | fi | |
18218 | done | |
18219 | if test -z "$haveit"; then | |
18220 | LIBS="${LIBS}${LIBS:+ }$element" | |
18221 | fi | |
18222 | done | |
18223 | ||
18224 | cat >>confdefs.h <<_ACEOF | |
18225 | #define HAVE_FRAMEWORK_FOUNDATION 1 | |
18226 | _ACEOF | |
18227 | ||
18228 | ||
18229 | fi | |
18230 | ||
18231 | ||
18232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5 | |
18233 | $as_echo_n "checking for framework WebKit... " >&6; } | |
18234 | if test "${ac_cv_framework_WebKit+set}" = set; then : | |
18235 | $as_echo_n "(cached) " >&6 | |
18236 | else | |
18237 | ||
18238 | ac_check_framework_save_LIBS=$LIBS | |
18239 | LIBS="-framework WebKit $LIBS" | |
18240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18241 | /* end confdefs.h. */ | |
18242 | ||
18243 | #include <WebKit/WebScriptObject.h> | |
18244 | ||
18245 | int | |
18246 | main () | |
18247 | { | |
18248 | [[WebScriptObject alloc] init]; | |
18249 | ; | |
18250 | return 0; | |
18251 | } | |
18252 | _ACEOF | |
18253 | if ac_fn_objcxx_try_link "$LINENO"; then : | |
18254 | ||
18255 | ac_cv_framework_WebKit=yes | |
18256 | ||
18257 | else | |
18258 | ac_cv_framework_WebKit=no | |
18259 | fi | |
18260 | rm -f core conftest.err conftest.$ac_objext \ | |
18261 | conftest$ac_exeext conftest.$ac_ext | |
18262 | LIBS=$ac_check_framework_save_LIBS | |
18263 | ||
18264 | fi | |
18265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5 | |
18266 | $as_echo "$ac_cv_framework_WebKit" >&6; } | |
18267 | if test $ac_cv_framework_WebKit = yes; then : | |
18268 | ||
18269 | ||
18270 | for element in "-framework WebKit $LIBS"; do | |
18271 | haveit= | |
18272 | for x in $LIBS; do | |
18273 | ||
18274 | acl_save_prefix="$prefix" | |
18275 | prefix="$acl_final_prefix" | |
18276 | acl_save_exec_prefix="$exec_prefix" | |
18277 | exec_prefix="$acl_final_exec_prefix" | |
18278 | eval x=\"$x\" | |
18279 | exec_prefix="$acl_save_exec_prefix" | |
18280 | prefix="$acl_save_prefix" | |
18281 | ||
18282 | if test "X$x" = "X$element"; then | |
18283 | haveit=yes | |
18284 | break | |
18285 | fi | |
18286 | done | |
18287 | if test -z "$haveit"; then | |
18288 | LIBS="${LIBS}${LIBS:+ }$element" | |
18289 | fi | |
18290 | done | |
18291 | ||
18292 | cat >>confdefs.h <<_ACEOF | |
18293 | #define HAVE_FRAMEWORK_WEBKIT 1 | |
18294 | _ACEOF | |
18295 | ||
18296 | ||
18297 | fi | |
18298 | ||
18299 | ||
18300 | else | |
18301 | ||
18302 | for ac_prog in gnustep-config | |
47aaa820 DWT |
18303 | do |
18304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
18305 | set dummy $ac_prog; ac_word=$2 | |
18306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18307 | $as_echo_n "checking for $ac_word... " >&6; } | |
18308 | if test "${ac_cv_prog_GNUSTEP_CONFIG+set}" = set; then : | |
18309 | $as_echo_n "(cached) " >&6 | |
18310 | else | |
18311 | if test -n "$GNUSTEP_CONFIG"; then | |
18312 | ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test. | |
18313 | else | |
18314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18315 | for as_dir in $PATH | |
18316 | do | |
18317 | IFS=$as_save_IFS | |
18318 | test -z "$as_dir" && as_dir=. | |
18319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18320 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18321 | ac_cv_prog_GNUSTEP_CONFIG="$ac_prog" | |
18322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18323 | break 2 | |
18324 | fi | |
18325 | done | |
18326 | done | |
18327 | IFS=$as_save_IFS | |
18328 | ||
18329 | fi | |
18330 | fi | |
18331 | GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG | |
18332 | if test -n "$GNUSTEP_CONFIG"; then | |
18333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5 | |
18334 | $as_echo "$GNUSTEP_CONFIG" >&6; } | |
18335 | else | |
18336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18337 | $as_echo "no" >&6; } | |
18338 | fi | |
18339 | ||
18340 | ||
18341 | test -n "$GNUSTEP_CONFIG" && break | |
18342 | done | |
18343 | ||
c823f118 | 18344 | if test "x$GNUSTEP_CONFIG" != x; then : |
47aaa820 DWT |
18345 | |
18346 | ||
18347 | ||
18348 | for element in `$GNUSTEP_CONFIG --objc-flags`; do | |
18349 | haveit= | |
18350 | for x in $OBJCXXFLAGS; do | |
18351 | ||
18352 | acl_save_prefix="$prefix" | |
18353 | prefix="$acl_final_prefix" | |
18354 | acl_save_exec_prefix="$exec_prefix" | |
18355 | exec_prefix="$acl_final_exec_prefix" | |
18356 | eval x=\"$x\" | |
18357 | exec_prefix="$acl_save_exec_prefix" | |
18358 | prefix="$acl_save_prefix" | |
9c60689e | 18359 | |
47aaa820 DWT |
18360 | if test "X$x" = "X$element"; then |
18361 | haveit=yes | |
18362 | break | |
18363 | fi | |
18364 | done | |
18365 | if test -z "$haveit"; then | |
18366 | OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element" | |
18367 | fi | |
18368 | done | |
18369 | ||
18370 | ||
18371 | for element in `$GNUSTEP_CONFIG --base-libs`; do | |
18372 | haveit= | |
18373 | for x in $LIBS; do | |
18374 | ||
18375 | acl_save_prefix="$prefix" | |
18376 | prefix="$acl_final_prefix" | |
18377 | acl_save_exec_prefix="$exec_prefix" | |
18378 | exec_prefix="$acl_final_exec_prefix" | |
18379 | eval x=\"$x\" | |
18380 | exec_prefix="$acl_save_exec_prefix" | |
18381 | prefix="$acl_save_prefix" | |
18382 | ||
18383 | if test "X$x" = "X$element"; then | |
18384 | haveit=yes | |
18385 | break | |
18386 | fi | |
18387 | done | |
18388 | if test -z "$haveit"; then | |
18389 | LIBS="${LIBS}${LIBS:+ }$element" | |
18390 | fi | |
18391 | done | |
18392 | ||
18393 | ||
c823f118 DWT |
18394 | else |
18395 | CY_OBJECTIVEC=0 | |
18396 | ||
18397 | fi | |
18398 | ||
47aaa820 DWT |
18399 | fi |
18400 | ||
18401 | fi | |
c823f118 DWT |
18402 | ac_ext=cpp |
18403 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18407 | ||
a667869d DWT |
18408 | ;; #( |
18409 | *) : | |
b66977f1 | 18410 | ;; |
a667869d | 18411 | esac |
e1cce270 DWT |
18412 | if test "x$CY_OBJECTIVEC" = x1; then : |
18413 | ||
18414 | ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | |
18415 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : | |
18416 | ||
18417 | case $OTOOL in #( | |
18418 | :) : | |
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing otool?" >&5 | |
18420 | $as_echo "$as_me: WARNING: Missing otool?" >&2;} ;; #( | |
18421 | *) : | |
18422 | CY_OBJECTIVEC_MACH=1 | |
18423 | ;; | |
18424 | esac | |
18425 | ||
18426 | fi | |
18427 | ||
18428 | ||
18429 | ||
47aaa820 | 18430 | fi |
9c60689e DWT |
18431 | ac_config_files="$ac_config_files GNUmakefile" |
18432 | ||
18433 | cat >confcache <<\_ACEOF | |
18434 | # This file is a shell script that caches the results of configure | |
18435 | # tests run on this system so they can be shared between configure | |
18436 | # scripts and configure runs, see configure's option --config-cache. | |
18437 | # It is not useful on other systems. If it contains results you don't | |
18438 | # want to keep, you may remove or edit it. | |
18439 | # | |
18440 | # config.status only pays attention to the cache file if you give it | |
18441 | # the --recheck option to rerun configure. | |
18442 | # | |
18443 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18444 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18445 | # following values. | |
18446 | ||
18447 | _ACEOF | |
18448 | ||
18449 | # The following way of writing the cache mishandles newlines in values, | |
18450 | # but we know of no workaround that is simple, portable, and efficient. | |
18451 | # So, we kill variables containing newlines. | |
18452 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18453 | # and sets the high bit in the cache file unless we assign to the vars. | |
18454 | ( | |
18455 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18456 | eval ac_val=\$$ac_var | |
18457 | case $ac_val in #( | |
18458 | *${as_nl}*) | |
18459 | case $ac_var in #( | |
18460 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18461 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18462 | esac | |
18463 | case $ac_var in #( | |
18464 | _ | IFS | as_nl) ;; #( | |
18465 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18466 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18467 | esac ;; | |
18468 | esac | |
18469 | done | |
18470 | ||
18471 | (set) 2>&1 | | |
18472 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18473 | *${as_nl}ac_space=\ *) | |
18474 | # `set' does not quote correctly, so add quotes: double-quote | |
18475 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18476 | sed -n \ | |
18477 | "s/'/'\\\\''/g; | |
18478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
18479 | ;; #( | |
18480 | *) | |
18481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18482 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
18483 | ;; | |
18484 | esac | | |
18485 | sort | |
18486 | ) | | |
18487 | sed ' | |
18488 | /^ac_cv_env_/b end | |
18489 | t clear | |
18490 | :clear | |
18491 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18492 | t end | |
18493 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18494 | :end' >>confcache | |
18495 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
18496 | if test -w "$cache_file"; then | |
18497 | test "x$cache_file" != "x/dev/null" && | |
18498 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
18499 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
18500 | cat confcache >$cache_file | |
18501 | else | |
18502 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
18503 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
18504 | fi | |
18505 | fi | |
18506 | rm -f confcache | |
18507 | ||
18508 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18509 | # Let make expand exec_prefix. | |
18510 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18511 | ||
18512 | # Transform confdefs.h into DEFS. | |
18513 | # Protect against shell expansion while executing Makefile rules. | |
18514 | # Protect against Makefile macro expansion. | |
18515 | # | |
18516 | # If the first sed substitution is executed (which looks for macros that | |
18517 | # take arguments), then branch to the quote section. Otherwise, | |
18518 | # look for a macro that doesn't take arguments. | |
18519 | ac_script=' | |
18520 | :mline | |
18521 | /\\$/{ | |
18522 | N | |
18523 | s,\\\n,, | |
18524 | b mline | |
18525 | } | |
18526 | t clear | |
18527 | :clear | |
18528 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
18529 | t quote | |
18530 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
18531 | t quote | |
18532 | b any | |
18533 | :quote | |
18534 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
18535 | s/\[/\\&/g | |
18536 | s/\]/\\&/g | |
18537 | s/\$/$$/g | |
18538 | H | |
18539 | :any | |
18540 | ${ | |
18541 | g | |
18542 | s/^\n// | |
18543 | s/\n/ /g | |
18544 | p | |
18545 | } | |
18546 | ' | |
18547 | DEFS=`sed -n "$ac_script" confdefs.h` | |
18548 | ||
18549 | ||
18550 | ac_libobjs= | |
18551 | ac_ltlibobjs= | |
18552 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
18553 | # 1. Remove the extension, and $U if already installed. | |
18554 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
18555 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
18556 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
18557 | # will be set to the directory where LIBOBJS objects are built. | |
18558 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
18559 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
18560 | done | |
18561 | LIBOBJS=$ac_libobjs | |
18562 | ||
18563 | LTLIBOBJS=$ac_ltlibobjs | |
18564 | ||
18565 | ||
18566 | ||
18567 | : ${CONFIG_STATUS=./config.status} | |
18568 | ac_write_fail=0 | |
18569 | ac_clean_files_save=$ac_clean_files | |
18570 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
18571 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
18572 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
18573 | as_write_fail=0 | |
18574 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
18575 | #! $SHELL | |
18576 | # Generated by $as_me. | |
18577 | # Run this file to recreate the current configuration. | |
18578 | # Compiler output produced by configure, useful for debugging | |
18579 | # configure, is in config.log if it exists. | |
18580 | ||
18581 | debug=false | |
18582 | ac_cs_recheck=false | |
18583 | ac_cs_silent=false | |
18584 | ||
18585 | SHELL=\${CONFIG_SHELL-$SHELL} | |
18586 | export SHELL | |
18587 | _ASEOF | |
18588 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18589 | ## -------------------- ## | |
18590 | ## M4sh Initialization. ## | |
18591 | ## -------------------- ## | |
18592 | ||
18593 | # Be more Bourne compatible | |
18594 | DUALCASE=1; export DUALCASE # for MKS sh | |
18595 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18596 | emulate sh | |
18597 | NULLCMD=: | |
18598 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18599 | # is contrary to our usage. Disable this feature. | |
18600 | alias -g '${1+"$@"}'='"$@"' | |
18601 | setopt NO_GLOB_SUBST | |
18602 | else | |
18603 | case `(set -o) 2>/dev/null` in #( | |
18604 | *posix*) : | |
18605 | set -o posix ;; #( | |
18606 | *) : | |
18607 | ;; | |
18608 | esac | |
18609 | fi | |
18610 | ||
18611 | ||
18612 | as_nl=' | |
18613 | ' | |
18614 | export as_nl | |
18615 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18616 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18617 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18618 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18619 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18620 | # but without wasting forks for bash or zsh. | |
18621 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18622 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18623 | as_echo='print -r --' | |
18624 | as_echo_n='print -rn --' | |
18625 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18626 | as_echo='printf %s\n' | |
18627 | as_echo_n='printf %s' | |
18628 | else | |
18629 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18630 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18631 | as_echo_n='/usr/ucb/echo -n' | |
18632 | else | |
18633 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
18634 | as_echo_n_body='eval | |
18635 | arg=$1; | |
18636 | case $arg in #( | |
18637 | *"$as_nl"*) | |
18638 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18639 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18640 | esac; | |
18641 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18642 | ' | |
18643 | export as_echo_n_body | |
18644 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
18645 | fi | |
18646 | export as_echo_body | |
18647 | as_echo='sh -c $as_echo_body as_echo' | |
18648 | fi | |
18649 | ||
18650 | # The user is always right. | |
18651 | if test "${PATH_SEPARATOR+set}" != set; then | |
18652 | PATH_SEPARATOR=: | |
18653 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18654 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18655 | PATH_SEPARATOR=';' | |
18656 | } | |
18657 | fi | |
18658 | ||
18659 | ||
18660 | # IFS | |
18661 | # We need space, tab and new line, in precisely that order. Quoting is | |
18662 | # there to prevent editors from complaining about space-tab. | |
18663 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18664 | # splitting by setting IFS to empty value.) | |
18665 | IFS=" "" $as_nl" | |
18666 | ||
18667 | # Find who we are. Look in the path if we contain no directory separator. | |
18668 | case $0 in #(( | |
18669 | *[\\/]* ) as_myself=$0 ;; | |
18670 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18671 | for as_dir in $PATH | |
18672 | do | |
18673 | IFS=$as_save_IFS | |
18674 | test -z "$as_dir" && as_dir=. | |
18675 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
18676 | done | |
18677 | IFS=$as_save_IFS | |
18678 | ||
18679 | ;; | |
18680 | esac | |
18681 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18682 | # in which case we are not to be found in the path. | |
18683 | if test "x$as_myself" = x; then | |
18684 | as_myself=$0 | |
18685 | fi | |
18686 | if test ! -f "$as_myself"; then | |
18687 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
18688 | exit 1 | |
18689 | fi | |
18690 | ||
18691 | # Unset variables that we do not need and which cause bugs (e.g. in | |
18692 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18693 | # suppresses any "Segmentation fault" message there. '((' could | |
18694 | # trigger a bug in pdksh 5.2.14. | |
18695 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18696 | do eval test x\${$as_var+set} = xset \ | |
18697 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
18698 | done | |
18699 | PS1='$ ' | |
18700 | PS2='> ' | |
18701 | PS4='+ ' | |
18702 | ||
18703 | # NLS nuisances. | |
18704 | LC_ALL=C | |
18705 | export LC_ALL | |
18706 | LANGUAGE=C | |
18707 | export LANGUAGE | |
18708 | ||
18709 | # CDPATH. | |
18710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18711 | ||
18712 | ||
18713 | # as_fn_error ERROR [LINENO LOG_FD] | |
18714 | # --------------------------------- | |
18715 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
18716 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
18717 | # script with status $?, using 1 if that was 0. | |
18718 | as_fn_error () | |
18719 | { | |
18720 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
18721 | if test "$3"; then | |
18722 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18723 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
18724 | fi | |
18725 | $as_echo "$as_me: error: $1" >&2 | |
18726 | as_fn_exit $as_status | |
18727 | } # as_fn_error | |
18728 | ||
18729 | ||
18730 | # as_fn_set_status STATUS | |
18731 | # ----------------------- | |
18732 | # Set $? to STATUS, without forking. | |
18733 | as_fn_set_status () | |
18734 | { | |
18735 | return $1 | |
18736 | } # as_fn_set_status | |
18737 | ||
18738 | # as_fn_exit STATUS | |
18739 | # ----------------- | |
18740 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18741 | as_fn_exit () | |
18742 | { | |
18743 | set +e | |
18744 | as_fn_set_status $1 | |
18745 | exit $1 | |
18746 | } # as_fn_exit | |
18747 | ||
18748 | # as_fn_unset VAR | |
18749 | # --------------- | |
18750 | # Portably unset VAR. | |
18751 | as_fn_unset () | |
18752 | { | |
18753 | { eval $1=; unset $1;} | |
18754 | } | |
18755 | as_unset=as_fn_unset | |
18756 | # as_fn_append VAR VALUE | |
18757 | # ---------------------- | |
18758 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18759 | # advantage of any shell optimizations that allow amortized linear growth over | |
18760 | # repeated appends, instead of the typical quadratic growth present in naive | |
18761 | # implementations. | |
18762 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18763 | eval 'as_fn_append () | |
18764 | { | |
18765 | eval $1+=\$2 | |
18766 | }' | |
18767 | else | |
18768 | as_fn_append () | |
18769 | { | |
18770 | eval $1=\$$1\$2 | |
18771 | } | |
18772 | fi # as_fn_append | |
18773 | ||
18774 | # as_fn_arith ARG... | |
18775 | # ------------------ | |
18776 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18777 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18778 | # must be portable across $(()) and expr. | |
18779 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18780 | eval 'as_fn_arith () | |
18781 | { | |
18782 | as_val=$(( $* )) | |
18783 | }' | |
18784 | else | |
18785 | as_fn_arith () | |
18786 | { | |
18787 | as_val=`expr "$@" || test $? -eq 1` | |
18788 | } | |
18789 | fi # as_fn_arith | |
18790 | ||
18791 | ||
18792 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18793 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
18794 | as_expr=expr | |
18795 | else | |
18796 | as_expr=false | |
18797 | fi | |
18798 | ||
18799 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
18800 | as_basename=basename | |
18801 | else | |
18802 | as_basename=false | |
18803 | fi | |
18804 | ||
18805 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
18806 | as_dirname=dirname | |
18807 | else | |
18808 | as_dirname=false | |
18809 | fi | |
18810 | ||
18811 | as_me=`$as_basename -- "$0" || | |
18812 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
18813 | X"$0" : 'X\(//\)$' \| \ | |
18814 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
18815 | $as_echo X/"$0" | | |
18816 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18817 | s//\1/ | |
18818 | q | |
18819 | } | |
18820 | /^X\/\(\/\/\)$/{ | |
18821 | s//\1/ | |
18822 | q | |
18823 | } | |
18824 | /^X\/\(\/\).*/{ | |
18825 | s//\1/ | |
18826 | q | |
18827 | } | |
18828 | s/.*/./; q'` | |
18829 | ||
18830 | # Avoid depending upon Character Ranges. | |
18831 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18832 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18833 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18834 | as_cr_digits='0123456789' | |
18835 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18836 | ||
18837 | ECHO_C= ECHO_N= ECHO_T= | |
18838 | case `echo -n x` in #((((( | |
18839 | -n*) | |
18840 | case `echo 'xy\c'` in | |
18841 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18842 | xy) ECHO_C='\c';; | |
18843 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18844 | ECHO_T=' ';; | |
18845 | esac;; | |
18846 | *) | |
18847 | ECHO_N='-n';; | |
18848 | esac | |
18849 | ||
18850 | rm -f conf$$ conf$$.exe conf$$.file | |
18851 | if test -d conf$$.dir; then | |
18852 | rm -f conf$$.dir/conf$$.file | |
18853 | else | |
18854 | rm -f conf$$.dir | |
18855 | mkdir conf$$.dir 2>/dev/null | |
18856 | fi | |
18857 | if (echo >conf$$.file) 2>/dev/null; then | |
18858 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18859 | as_ln_s='ln -s' | |
18860 | # ... but there are two gotchas: | |
18861 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18862 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
18863 | # In both cases, we have to default to `cp -p'. | |
18864 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
18865 | as_ln_s='cp -p' | |
18866 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
18867 | as_ln_s=ln | |
18868 | else | |
18869 | as_ln_s='cp -p' | |
18870 | fi | |
18871 | else | |
18872 | as_ln_s='cp -p' | |
18873 | fi | |
18874 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
18875 | rmdir conf$$.dir 2>/dev/null | |
18876 | ||
18877 | ||
18878 | # as_fn_mkdir_p | |
18879 | # ------------- | |
18880 | # Create "$as_dir" as a directory, including parents if necessary. | |
18881 | as_fn_mkdir_p () | |
18882 | { | |
18883 | ||
18884 | case $as_dir in #( | |
18885 | -*) as_dir=./$as_dir;; | |
18886 | esac | |
18887 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18888 | as_dirs= | |
18889 | while :; do | |
18890 | case $as_dir in #( | |
18891 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18892 | *) as_qdir=$as_dir;; | |
18893 | esac | |
18894 | as_dirs="'$as_qdir' $as_dirs" | |
18895 | as_dir=`$as_dirname -- "$as_dir" || | |
18896 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18897 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18898 | X"$as_dir" : 'X\(//\)$' \| \ | |
18899 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18900 | $as_echo X"$as_dir" | | |
18901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18902 | s//\1/ | |
18903 | q | |
18904 | } | |
18905 | /^X\(\/\/\)[^/].*/{ | |
18906 | s//\1/ | |
18907 | q | |
18908 | } | |
18909 | /^X\(\/\/\)$/{ | |
18910 | s//\1/ | |
18911 | q | |
18912 | } | |
18913 | /^X\(\/\).*/{ | |
18914 | s//\1/ | |
18915 | q | |
18916 | } | |
18917 | s/.*/./; q'` | |
18918 | test -d "$as_dir" && break | |
18919 | done | |
18920 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
18921 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
18922 | ||
18923 | ||
18924 | } # as_fn_mkdir_p | |
18925 | if mkdir -p . 2>/dev/null; then | |
18926 | as_mkdir_p='mkdir -p "$as_dir"' | |
18927 | else | |
18928 | test -d ./-p && rmdir ./-p | |
18929 | as_mkdir_p=false | |
18930 | fi | |
18931 | ||
18932 | if test -x / >/dev/null 2>&1; then | |
18933 | as_test_x='test -x' | |
18934 | else | |
18935 | if ls -dL / >/dev/null 2>&1; then | |
18936 | as_ls_L_option=L | |
18937 | else | |
18938 | as_ls_L_option= | |
18939 | fi | |
18940 | as_test_x=' | |
18941 | eval sh -c '\'' | |
18942 | if test -d "$1"; then | |
18943 | test -d "$1/."; | |
18944 | else | |
18945 | case $1 in #( | |
18946 | -*)set "./$1";; | |
18947 | esac; | |
18948 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
18949 | ???[sx]*):;;*)false;;esac;fi | |
18950 | '\'' sh | |
18951 | ' | |
18952 | fi | |
18953 | as_executable_p=$as_test_x | |
18954 | ||
18955 | # Sed expression to map a string onto a valid CPP name. | |
18956 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18957 | ||
18958 | # Sed expression to map a string onto a valid variable name. | |
18959 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18960 | ||
18961 | ||
18962 | exec 6>&1 | |
18963 | ## ----------------------------------- ## | |
18964 | ## Main body of $CONFIG_STATUS script. ## | |
18965 | ## ----------------------------------- ## | |
18966 | _ASEOF | |
18967 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18968 | ||
18969 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18970 | # Save the log message, to keep $0 and so on meaningful, and to | |
18971 | # report actual input values of CONFIG_FILES etc. instead of their | |
18972 | # values after options handling. | |
18973 | ac_log=" | |
18974 | This file was extended by Cycript $as_me 0.9, which was | |
18975 | generated by GNU Autoconf 2.65. Invocation command line was | |
18976 | ||
18977 | CONFIG_FILES = $CONFIG_FILES | |
18978 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18979 | CONFIG_LINKS = $CONFIG_LINKS | |
18980 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18981 | $ $0 $@ | |
18982 | ||
18983 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
18984 | " | |
18985 | ||
18986 | _ACEOF | |
18987 | ||
18988 | case $ac_config_files in *" | |
18989 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18990 | esac | |
18991 | ||
18992 | ||
18993 | ||
18994 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18995 | # Files that config.status was made for. | |
18996 | config_files="$ac_config_files" | |
18997 | config_commands="$ac_config_commands" | |
18998 | ||
18999 | _ACEOF | |
19000 | ||
19001 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19002 | ac_cs_usage="\ | |
19003 | \`$as_me' instantiates files and other configuration actions | |
19004 | from templates according to the current configuration. Unless the files | |
19005 | and actions are specified as TAGs, all are instantiated by default. | |
19006 | ||
19007 | Usage: $0 [OPTION]... [TAG]... | |
19008 | ||
19009 | -h, --help print this help, then exit | |
19010 | -V, --version print version number and configuration settings, then exit | |
19011 | --config print configuration, then exit | |
19012 | -q, --quiet, --silent | |
19013 | do not print progress messages | |
19014 | -d, --debug don't remove temporary files | |
19015 | --recheck update $as_me by reconfiguring in the same conditions | |
19016 | --file=FILE[:TEMPLATE] | |
19017 | instantiate the configuration file FILE | |
19018 | ||
19019 | Configuration files: | |
19020 | $config_files | |
19021 | ||
19022 | Configuration commands: | |
19023 | $config_commands | |
19024 | ||
19025 | Report bugs to <saurik@saurik.com>. | |
19026 | Cycript home page: <http://www.cycript.org/>." | |
19027 | ||
19028 | _ACEOF | |
19029 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19030 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19031 | ac_cs_version="\\ | |
19032 | Cycript config.status 0.9 | |
19033 | configured by $0, generated by GNU Autoconf 2.65, | |
19034 | with options \\"\$ac_cs_config\\" | |
19035 | ||
19036 | Copyright (C) 2009 Free Software Foundation, Inc. | |
19037 | This config.status script is free software; the Free Software Foundation | |
19038 | gives unlimited permission to copy, distribute and modify it." | |
19039 | ||
19040 | ac_pwd='$ac_pwd' | |
19041 | srcdir='$srcdir' | |
19042 | INSTALL='$INSTALL' | |
19043 | AWK='$AWK' | |
19044 | test -n "\$AWK" || AWK=awk | |
19045 | _ACEOF | |
19046 | ||
19047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19048 | # The default lists apply if the user does not specify any file. | |
19049 | ac_need_defaults=: | |
19050 | while test $# != 0 | |
19051 | do | |
19052 | case $1 in | |
19053 | --*=*) | |
19054 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19055 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19056 | ac_shift=: | |
19057 | ;; | |
19058 | *) | |
19059 | ac_option=$1 | |
19060 | ac_optarg=$2 | |
19061 | ac_shift=shift | |
19062 | ;; | |
19063 | esac | |
19064 | ||
19065 | case $ac_option in | |
19066 | # Handling of the options. | |
19067 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19068 | ac_cs_recheck=: ;; | |
19069 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19070 | $as_echo "$ac_cs_version"; exit ;; | |
19071 | --config | --confi | --conf | --con | --co | --c ) | |
19072 | $as_echo "$ac_cs_config"; exit ;; | |
19073 | --debug | --debu | --deb | --de | --d | -d ) | |
19074 | debug=: ;; | |
19075 | --file | --fil | --fi | --f ) | |
19076 | $ac_shift | |
19077 | case $ac_optarg in | |
19078 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19079 | esac | |
19080 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19081 | ac_need_defaults=false;; | |
19082 | --he | --h | --help | --hel | -h ) | |
19083 | $as_echo "$ac_cs_usage"; exit ;; | |
19084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19085 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19086 | ac_cs_silent=: ;; | |
19087 | ||
19088 | # This is an error. | |
19089 | -*) as_fn_error "unrecognized option: \`$1' | |
19090 | Try \`$0 --help' for more information." ;; | |
19091 | ||
19092 | *) as_fn_append ac_config_targets " $1" | |
19093 | ac_need_defaults=false ;; | |
19094 | ||
19095 | esac | |
19096 | shift | |
19097 | done | |
19098 | ||
19099 | ac_configure_extra_args= | |
19100 | ||
19101 | if $ac_cs_silent; then | |
19102 | exec 6>/dev/null | |
19103 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19104 | fi | |
19105 | ||
19106 | _ACEOF | |
19107 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19108 | if \$ac_cs_recheck; then | |
19109 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19110 | shift | |
19111 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19112 | CONFIG_SHELL='$SHELL' | |
19113 | export CONFIG_SHELL | |
19114 | exec "\$@" | |
19115 | fi | |
19116 | ||
19117 | _ACEOF | |
19118 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19119 | exec 5>>config.log | |
19120 | { | |
19121 | echo | |
19122 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19123 | ## Running $as_me. ## | |
19124 | _ASBOX | |
19125 | $as_echo "$ac_log" | |
19126 | } >&5 | |
19127 | ||
19128 | _ACEOF | |
19129 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19130 | # | |
19131 | # INIT-COMMANDS | |
19132 | # | |
19133 | ||
19134 | ||
19135 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
19136 | # if CDPATH is set. | |
19137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19138 | ||
19139 | sed_quote_subst='$sed_quote_subst' | |
19140 | double_quote_subst='$double_quote_subst' | |
19141 | delay_variable_subst='$delay_variable_subst' | |
19142 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19143 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
9c60689e | 19144 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
549f29b5 | 19145 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
9c60689e DWT |
19146 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
19147 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
19148 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19149 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
19150 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19151 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
19152 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
19153 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
19154 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
19155 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
19156 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19157 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19158 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
19159 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
19160 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
19161 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
19162 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
19163 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
19164 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
19165 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
19166 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
19167 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
19168 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19169 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19170 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
19171 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
19172 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
19173 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
19174 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19175 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
19176 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
19177 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19178 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19179 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19180 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
19181 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
19182 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
19183 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
19184 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
19185 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
19186 | 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"`' | |
19187 | 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"`' | |
19188 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
19189 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
19190 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
19191 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
19192 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19193 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
19194 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
19195 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19196 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
19197 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
19198 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
19199 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
19200 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
19201 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
19202 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
19203 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
19204 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19205 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19206 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
19207 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
19208 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19209 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19210 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
19211 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19212 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19213 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19214 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19215 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19216 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19217 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19218 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19219 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
19220 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19221 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
19222 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
19223 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
19224 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
19225 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
19226 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19227 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
19228 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19229 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
19230 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
19231 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
19232 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19233 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19234 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
19235 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19236 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19237 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
19238 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
19239 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
19240 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
19241 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19242 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
19243 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
19244 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19245 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19246 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19247 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19248 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19249 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
19250 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
19251 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
19252 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19253 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
19254 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
19255 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
19256 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
19257 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
19258 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19259 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
19260 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
19261 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
19262 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
19263 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
19264 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
19265 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
19266 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19267 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19268 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19269 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19270 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19271 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19272 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19273 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19274 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19275 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19276 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19277 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19278 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19279 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19280 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19281 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19282 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19283 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19284 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19285 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19286 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19287 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19288 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19289 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19290 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19291 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19292 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19293 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19294 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19295 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19296 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19297 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19298 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19299 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19300 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19301 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19302 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19303 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19304 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19305 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19306 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19307 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19308 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19309 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19310 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19311 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19312 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
19313 | ||
19314 | LTCC='$LTCC' | |
19315 | LTCFLAGS='$LTCFLAGS' | |
19316 | compiler='$compiler_DEFAULT' | |
19317 | ||
19318 | # Quote evaled strings. | |
19319 | for var in SED \ | |
19320 | GREP \ | |
19321 | EGREP \ | |
19322 | FGREP \ | |
19323 | LD \ | |
19324 | NM \ | |
19325 | LN_S \ | |
19326 | lt_SP2NL \ | |
19327 | lt_NL2SP \ | |
19328 | reload_flag \ | |
19329 | OBJDUMP \ | |
19330 | deplibs_check_method \ | |
19331 | file_magic_cmd \ | |
19332 | AR \ | |
19333 | AR_FLAGS \ | |
19334 | STRIP \ | |
19335 | RANLIB \ | |
19336 | CC \ | |
19337 | CFLAGS \ | |
19338 | compiler \ | |
19339 | lt_cv_sys_global_symbol_pipe \ | |
19340 | lt_cv_sys_global_symbol_to_cdecl \ | |
19341 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19342 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19343 | SHELL \ | |
19344 | ECHO \ | |
19345 | lt_prog_compiler_no_builtin_flag \ | |
19346 | lt_prog_compiler_wl \ | |
19347 | lt_prog_compiler_pic \ | |
19348 | lt_prog_compiler_static \ | |
19349 | lt_cv_prog_compiler_c_o \ | |
19350 | need_locks \ | |
19351 | DSYMUTIL \ | |
19352 | NMEDIT \ | |
19353 | LIPO \ | |
19354 | OTOOL \ | |
19355 | OTOOL64 \ | |
19356 | shrext_cmds \ | |
19357 | export_dynamic_flag_spec \ | |
19358 | whole_archive_flag_spec \ | |
19359 | compiler_needs_object \ | |
19360 | with_gnu_ld \ | |
19361 | allow_undefined_flag \ | |
19362 | no_undefined_flag \ | |
19363 | hardcode_libdir_flag_spec \ | |
19364 | hardcode_libdir_flag_spec_ld \ | |
19365 | hardcode_libdir_separator \ | |
19366 | fix_srcfile_path \ | |
19367 | exclude_expsyms \ | |
19368 | include_expsyms \ | |
19369 | file_list_spec \ | |
19370 | variables_saved_for_relink \ | |
19371 | libname_spec \ | |
19372 | library_names_spec \ | |
19373 | soname_spec \ | |
19374 | finish_eval \ | |
19375 | old_striplib \ | |
19376 | striplib \ | |
19377 | compiler_lib_search_dirs \ | |
19378 | predep_objects \ | |
19379 | postdep_objects \ | |
19380 | predeps \ | |
19381 | postdeps \ | |
19382 | compiler_lib_search_path \ | |
19383 | LD_CXX \ | |
19384 | compiler_CXX \ | |
19385 | lt_prog_compiler_no_builtin_flag_CXX \ | |
19386 | lt_prog_compiler_wl_CXX \ | |
19387 | lt_prog_compiler_pic_CXX \ | |
19388 | lt_prog_compiler_static_CXX \ | |
19389 | lt_cv_prog_compiler_c_o_CXX \ | |
19390 | export_dynamic_flag_spec_CXX \ | |
19391 | whole_archive_flag_spec_CXX \ | |
19392 | compiler_needs_object_CXX \ | |
19393 | with_gnu_ld_CXX \ | |
19394 | allow_undefined_flag_CXX \ | |
19395 | no_undefined_flag_CXX \ | |
19396 | hardcode_libdir_flag_spec_CXX \ | |
19397 | hardcode_libdir_flag_spec_ld_CXX \ | |
19398 | hardcode_libdir_separator_CXX \ | |
19399 | fix_srcfile_path_CXX \ | |
19400 | exclude_expsyms_CXX \ | |
19401 | include_expsyms_CXX \ | |
19402 | file_list_spec_CXX \ | |
19403 | compiler_lib_search_dirs_CXX \ | |
19404 | predep_objects_CXX \ | |
19405 | postdep_objects_CXX \ | |
19406 | predeps_CXX \ | |
19407 | postdeps_CXX \ | |
19408 | compiler_lib_search_path_CXX; do | |
19409 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19410 | *[\\\\\\\`\\"\\\$]*) | |
19411 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19412 | ;; | |
19413 | *) | |
19414 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19415 | ;; | |
19416 | esac | |
19417 | done | |
19418 | ||
19419 | # Double-quote double-evaled strings. | |
19420 | for var in reload_cmds \ | |
19421 | old_postinstall_cmds \ | |
19422 | old_postuninstall_cmds \ | |
19423 | old_archive_cmds \ | |
19424 | extract_expsyms_cmds \ | |
19425 | old_archive_from_new_cmds \ | |
19426 | old_archive_from_expsyms_cmds \ | |
19427 | archive_cmds \ | |
19428 | archive_expsym_cmds \ | |
19429 | module_cmds \ | |
19430 | module_expsym_cmds \ | |
19431 | export_symbols_cmds \ | |
19432 | prelink_cmds \ | |
19433 | postinstall_cmds \ | |
19434 | postuninstall_cmds \ | |
19435 | finish_cmds \ | |
19436 | sys_lib_search_path_spec \ | |
19437 | sys_lib_dlsearch_path_spec \ | |
19438 | old_archive_cmds_CXX \ | |
19439 | old_archive_from_new_cmds_CXX \ | |
19440 | old_archive_from_expsyms_cmds_CXX \ | |
19441 | archive_cmds_CXX \ | |
19442 | archive_expsym_cmds_CXX \ | |
19443 | module_cmds_CXX \ | |
19444 | module_expsym_cmds_CXX \ | |
19445 | export_symbols_cmds_CXX \ | |
19446 | prelink_cmds_CXX; do | |
19447 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
19448 | *[\\\\\\\`\\"\\\$]*) | |
19449 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19450 | ;; | |
19451 | *) | |
19452 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19453 | ;; | |
19454 | esac | |
19455 | done | |
19456 | ||
19457 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
19458 | case \$lt_ECHO in | |
19459 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
19460 | ;; | |
19461 | esac | |
19462 | ||
19463 | ac_aux_dir='$ac_aux_dir' | |
19464 | xsi_shell='$xsi_shell' | |
19465 | lt_shell_append='$lt_shell_append' | |
19466 | ||
19467 | # See if we are running on zsh, and set the options which allow our | |
19468 | # commands through without removal of \ escapes INIT. | |
19469 | if test -n "\${ZSH_VERSION+set}" ; then | |
19470 | setopt NO_GLOB_SUBST | |
19471 | fi | |
19472 | ||
19473 | ||
19474 | PACKAGE='$PACKAGE' | |
19475 | VERSION='$VERSION' | |
19476 | TIMESTAMP='$TIMESTAMP' | |
19477 | RM='$RM' | |
19478 | ofile='$ofile' | |
19479 | ||
19480 | ||
19481 | ||
19482 | ||
19483 | ||
19484 | ||
19485 | _ACEOF | |
19486 | ||
19487 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19488 | ||
19489 | # Handling of arguments. | |
19490 | for ac_config_target in $ac_config_targets | |
19491 | do | |
19492 | case $ac_config_target in | |
19493 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19494 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; | |
19495 | ||
19496 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
19497 | esac | |
19498 | done | |
19499 | ||
19500 | ||
19501 | # If the user did not use the arguments to specify the items to instantiate, | |
19502 | # then the envvar interface is used. Set only those that are not. | |
19503 | # We use the long form for the default assignment because of an extremely | |
19504 | # bizarre bug on SunOS 4.1.3. | |
19505 | if $ac_need_defaults; then | |
19506 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
19507 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
19508 | fi | |
19509 | ||
19510 | # Have a temporary directory for convenience. Make it in the build tree | |
19511 | # simply because there is no reason against having it here, and in addition, | |
19512 | # creating and moving files from /tmp can sometimes cause problems. | |
19513 | # Hook for its removal unless debugging. | |
19514 | # Note that there is a small window in which the directory will not be cleaned: | |
19515 | # after its creation but before its name has been assigned to `$tmp'. | |
19516 | $debug || | |
19517 | { | |
19518 | tmp= | |
19519 | trap 'exit_status=$? | |
19520 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
19521 | ' 0 | |
19522 | trap 'as_fn_exit 1' 1 2 13 15 | |
19523 | } | |
19524 | # Create a (secure) tmp directory for tmp files. | |
19525 | ||
19526 | { | |
19527 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
19528 | test -n "$tmp" && test -d "$tmp" | |
19529 | } || | |
19530 | { | |
19531 | tmp=./conf$$-$RANDOM | |
19532 | (umask 077 && mkdir "$tmp") | |
19533 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
19534 | ||
19535 | # Set up the scripts for CONFIG_FILES section. | |
19536 | # No need to generate them if there are no CONFIG_FILES. | |
19537 | # This happens for instance with `./config.status config.h'. | |
19538 | if test -n "$CONFIG_FILES"; then | |
19539 | ||
19540 | ||
19541 | ac_cr=`echo X | tr X '\015'` | |
19542 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
19543 | # But we know of no other shell where ac_cr would be empty at this | |
19544 | # point, so we can use a bashism as a fallback. | |
19545 | if test "x$ac_cr" = x; then | |
19546 | eval ac_cr=\$\'\\r\' | |
19547 | fi | |
19548 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
19549 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
19550 | ac_cs_awk_cr='\r' | |
19551 | else | |
19552 | ac_cs_awk_cr=$ac_cr | |
19553 | fi | |
19554 | ||
19555 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
19556 | _ACEOF | |
19557 | ||
19558 | ||
19559 | { | |
19560 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
19561 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
19562 | echo "_ACEOF" | |
19563 | } >conf$$subs.sh || | |
19564 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19565 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
19566 | ac_delim='%!_!# ' | |
19567 | for ac_last_try in false false false false false :; do | |
19568 | . ./conf$$subs.sh || | |
19569 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19570 | ||
19571 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
19572 | if test $ac_delim_n = $ac_delim_num; then | |
19573 | break | |
19574 | elif $ac_last_try; then | |
19575 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
19576 | else | |
19577 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19578 | fi | |
19579 | done | |
19580 | rm -f conf$$subs.sh | |
19581 | ||
19582 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19583 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
19584 | _ACEOF | |
19585 | sed -n ' | |
19586 | h | |
19587 | s/^/S["/; s/!.*/"]=/ | |
19588 | p | |
19589 | g | |
19590 | s/^[^!]*!// | |
19591 | :repl | |
19592 | t repl | |
19593 | s/'"$ac_delim"'$// | |
19594 | t delim | |
19595 | :nl | |
19596 | h | |
19597 | s/\(.\{148\}\)..*/\1/ | |
19598 | t more1 | |
19599 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
19600 | p | |
19601 | n | |
19602 | b repl | |
19603 | :more1 | |
19604 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19605 | p | |
19606 | g | |
19607 | s/.\{148\}// | |
19608 | t nl | |
19609 | :delim | |
19610 | h | |
19611 | s/\(.\{148\}\)..*/\1/ | |
19612 | t more2 | |
19613 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
19614 | p | |
19615 | b | |
19616 | :more2 | |
19617 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
19618 | p | |
19619 | g | |
19620 | s/.\{148\}// | |
19621 | t delim | |
19622 | ' <conf$$subs.awk | sed ' | |
19623 | /^[^""]/{ | |
19624 | N | |
19625 | s/\n// | |
19626 | } | |
19627 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19628 | rm -f conf$$subs.awk | |
19629 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19630 | _ACAWK | |
19631 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
19632 | for (key in S) S_is_set[key] = 1 | |
19633 | FS = "\a" | |
19634 | ||
19635 | } | |
19636 | { | |
19637 | line = $ 0 | |
19638 | nfields = split(line, field, "@") | |
19639 | substed = 0 | |
19640 | len = length(field[1]) | |
19641 | for (i = 2; i < nfields; i++) { | |
19642 | key = field[i] | |
19643 | keylen = length(key) | |
19644 | if (S_is_set[key]) { | |
19645 | value = S[key] | |
19646 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19647 | len += length(value) + length(field[++i]) | |
19648 | substed = 1 | |
19649 | } else | |
19650 | len += 1 + keylen | |
19651 | } | |
19652 | ||
19653 | print line | |
19654 | } | |
19655 | ||
19656 | _ACAWK | |
19657 | _ACEOF | |
19658 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19659 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19660 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19661 | else | |
19662 | cat | |
19663 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
19664 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
19665 | _ACEOF | |
19666 | ||
19667 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
19668 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
19669 | # trailing colons and then remove the whole line if VPATH becomes empty | |
19670 | # (actually we leave an empty line to preserve line numbers). | |
19671 | if test "x$srcdir" = x.; then | |
19672 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
19673 | s/:*\$(srcdir):*/:/ | |
19674 | s/:*\${srcdir}:*/:/ | |
19675 | s/:*@srcdir@:*/:/ | |
19676 | s/^\([^=]*=[ ]*\):*/\1/ | |
19677 | s/:*$// | |
19678 | s/^[^=]*=[ ]*$// | |
19679 | }' | |
19680 | fi | |
19681 | ||
19682 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19683 | fi # test -n "$CONFIG_FILES" | |
19684 | ||
19685 | ||
19686 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
19687 | shift | |
19688 | for ac_tag | |
19689 | do | |
19690 | case $ac_tag in | |
19691 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19692 | esac | |
19693 | case $ac_mode$ac_tag in | |
19694 | :[FHL]*:*);; | |
19695 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19696 | :[FH]-) ac_tag=-:-;; | |
19697 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19698 | esac | |
19699 | ac_save_IFS=$IFS | |
19700 | IFS=: | |
19701 | set x $ac_tag | |
19702 | IFS=$ac_save_IFS | |
19703 | shift | |
19704 | ac_file=$1 | |
19705 | shift | |
19706 | ||
19707 | case $ac_mode in | |
19708 | :L) ac_source=$1;; | |
19709 | :[FH]) | |
19710 | ac_file_inputs= | |
19711 | for ac_f | |
19712 | do | |
19713 | case $ac_f in | |
19714 | -) ac_f="$tmp/stdin";; | |
19715 | *) # Look for the file first in the build tree, then in the source tree | |
19716 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19717 | # because $ac_f cannot contain `:'. | |
19718 | test -f "$ac_f" || | |
19719 | case $ac_f in | |
19720 | [\\/$]*) false;; | |
19721 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19722 | esac || | |
19723 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19724 | esac | |
19725 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19726 | as_fn_append ac_file_inputs " '$ac_f'" | |
19727 | done | |
19728 | ||
19729 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19730 | # use $as_me), people would be surprised to read: | |
19731 | # /* config.h. Generated by config.status. */ | |
19732 | configure_input='Generated from '` | |
19733 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19734 | `' by configure.' | |
19735 | if test x"$ac_file" != x-; then | |
19736 | configure_input="$ac_file. $configure_input" | |
19737 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19738 | $as_echo "$as_me: creating $ac_file" >&6;} | |
19739 | fi | |
19740 | # Neutralize special characters interpreted by sed in replacement strings. | |
19741 | case $configure_input in #( | |
19742 | *\&* | *\|* | *\\* ) | |
19743 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19744 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19745 | *) ac_sed_conf_input=$configure_input;; | |
19746 | esac | |
19747 | ||
19748 | case $ac_tag in | |
19749 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
19750 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
19751 | esac | |
19752 | ;; | |
19753 | esac | |
19754 | ||
19755 | ac_dir=`$as_dirname -- "$ac_file" || | |
19756 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19757 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19758 | X"$ac_file" : 'X\(//\)$' \| \ | |
19759 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
19760 | $as_echo X"$ac_file" | | |
19761 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19762 | s//\1/ | |
19763 | q | |
19764 | } | |
19765 | /^X\(\/\/\)[^/].*/{ | |
19766 | s//\1/ | |
19767 | q | |
19768 | } | |
19769 | /^X\(\/\/\)$/{ | |
19770 | s//\1/ | |
19771 | q | |
19772 | } | |
19773 | /^X\(\/\).*/{ | |
19774 | s//\1/ | |
19775 | q | |
19776 | } | |
19777 | s/.*/./; q'` | |
19778 | as_dir="$ac_dir"; as_fn_mkdir_p | |
19779 | ac_builddir=. | |
19780 | ||
19781 | case "$ac_dir" in | |
19782 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19783 | *) | |
19784 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19785 | # A ".." for each directory in $ac_dir_suffix. | |
19786 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19787 | case $ac_top_builddir_sub in | |
19788 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19789 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19790 | esac ;; | |
19791 | esac | |
19792 | ac_abs_top_builddir=$ac_pwd | |
19793 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19794 | # for backward compatibility: | |
19795 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 19796 | |
9c60689e DWT |
19797 | case $srcdir in |
19798 | .) # We are building in place. | |
19799 | ac_srcdir=. | |
19800 | ac_top_srcdir=$ac_top_builddir_sub | |
19801 | ac_abs_top_srcdir=$ac_pwd ;; | |
19802 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
19803 | ac_srcdir=$srcdir$ac_dir_suffix; | |
19804 | ac_top_srcdir=$srcdir | |
19805 | ac_abs_top_srcdir=$srcdir ;; | |
19806 | *) # Relative name. | |
19807 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19808 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19809 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
19810 | esac | |
19811 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
19812 | |
19813 | ||
9c60689e DWT |
19814 | case $ac_mode in |
19815 | :F) | |
19816 | # | |
19817 | # CONFIG_FILE | |
19818 | # | |
35fa52c0 | 19819 | |
9c60689e DWT |
19820 | case $INSTALL in |
19821 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
19822 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
19823 | esac | |
19824 | _ACEOF | |
35fa52c0 | 19825 | |
9c60689e DWT |
19826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19827 | # If the template does not know about datarootdir, expand it. | |
19828 | # FIXME: This hack should be removed a few years after 2.60. | |
19829 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19830 | ac_sed_dataroot=' | |
19831 | /datarootdir/ { | |
19832 | p | |
19833 | q | |
19834 | } | |
19835 | /@datadir@/p | |
19836 | /@docdir@/p | |
19837 | /@infodir@/p | |
19838 | /@localedir@/p | |
19839 | /@mandir@/p' | |
19840 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19841 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19842 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19844 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19845 | _ACEOF | |
19846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19847 | ac_datarootdir_hack=' | |
19848 | s&@datadir@&$datadir&g | |
19849 | s&@docdir@&$docdir&g | |
19850 | s&@infodir@&$infodir&g | |
19851 | s&@localedir@&$localedir&g | |
19852 | s&@mandir@&$mandir&g | |
19853 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19854 | esac | |
19855 | _ACEOF | |
35fa52c0 | 19856 | |
9c60689e DWT |
19857 | # Neutralize VPATH when `$srcdir' = `.'. |
19858 | # Shell code in configure.ac might set extrasub. | |
19859 | # FIXME: do we really want to maintain this feature? | |
19860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19861 | ac_sed_extra="$ac_vpsub | |
19862 | $extrasub | |
19863 | _ACEOF | |
19864 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19865 | :t | |
19866 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
19867 | s|@configure_input@|$ac_sed_conf_input|;t t | |
19868 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19869 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19870 | s&@srcdir@&$ac_srcdir&;t t | |
19871 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19872 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19873 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19874 | s&@builddir@&$ac_builddir&;t t | |
19875 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19876 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19877 | s&@INSTALL@&$ac_INSTALL&;t t | |
19878 | $ac_datarootdir_hack | |
19879 | " | |
19880 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
19881 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19882 | ||
19883 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
19884 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
19885 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
19886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19887 | which seems to be undefined. Please make sure it is defined." >&5 | |
19888 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
19889 | which seems to be undefined. Please make sure it is defined." >&2;} | |
19890 | ||
19891 | rm -f "$tmp/stdin" | |
19892 | case $ac_file in | |
19893 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
19894 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
19895 | esac \ | |
19896 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19897 | ;; | |
35fa52c0 | 19898 | |
35fa52c0 | 19899 | |
9c60689e DWT |
19900 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19901 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19902 | ;; | |
19903 | esac | |
35fa52c0 | 19904 | |
35fa52c0 | 19905 | |
9c60689e DWT |
19906 | case $ac_file$ac_mode in |
19907 | "libtool":C) | |
19908 | ||
19909 | # See if we are running on zsh, and set the options which allow our | |
19910 | # commands through without removal of \ escapes. | |
19911 | if test -n "${ZSH_VERSION+set}" ; then | |
19912 | setopt NO_GLOB_SUBST | |
35fa52c0 | 19913 | fi |
35fa52c0 | 19914 | |
9c60689e DWT |
19915 | cfgfile="${ofile}T" |
19916 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19917 | $RM "$cfgfile" | |
35fa52c0 | 19918 | |
9c60689e DWT |
19919 | cat <<_LT_EOF >> "$cfgfile" |
19920 | #! $SHELL | |
35fa52c0 | 19921 | |
9c60689e DWT |
19922 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
19923 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19924 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19925 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19926 | # | |
19927 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19928 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
19929 | # Written by Gordon Matzigkeit, 1996 | |
19930 | # | |
19931 | # This file is part of GNU Libtool. | |
19932 | # | |
19933 | # GNU Libtool is free software; you can redistribute it and/or | |
19934 | # modify it under the terms of the GNU General Public License as | |
19935 | # published by the Free Software Foundation; either version 2 of | |
19936 | # the License, or (at your option) any later version. | |
19937 | # | |
19938 | # As a special exception to the GNU General Public License, | |
19939 | # if you distribute this file as part of a program or library that | |
19940 | # is built using GNU Libtool, you may include this file under the | |
19941 | # same distribution terms that you use for the rest of that program. | |
19942 | # | |
19943 | # GNU Libtool is distributed in the hope that it will be useful, | |
19944 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19945 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19946 | # GNU General Public License for more details. | |
19947 | # | |
19948 | # You should have received a copy of the GNU General Public License | |
19949 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19950 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19951 | # obtained by writing to the Free Software Foundation, Inc., | |
19952 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 19953 | |
35fa52c0 | 19954 | |
9c60689e DWT |
19955 | # The names of the tagged configurations supported by this script. |
19956 | available_tags="CXX " | |
35fa52c0 | 19957 | |
9c60689e | 19958 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 19959 | |
9c60689e DWT |
19960 | # Which release of libtool.m4 was used? |
19961 | macro_version=$macro_version | |
19962 | macro_revision=$macro_revision | |
35fa52c0 | 19963 | |
9c60689e DWT |
19964 | # Whether or not to build static libraries. |
19965 | build_old_libs=$enable_static | |
35fa52c0 | 19966 | |
549f29b5 DWT |
19967 | # Whether or not to build shared libraries. |
19968 | build_libtool_libs=$enable_shared | |
19969 | ||
9c60689e DWT |
19970 | # What type of objects to build. |
19971 | pic_mode=$pic_mode | |
35fa52c0 | 19972 | |
9c60689e DWT |
19973 | # Whether or not to optimize for fast installation. |
19974 | fast_install=$enable_fast_install | |
35fa52c0 | 19975 | |
9c60689e DWT |
19976 | # The host system. |
19977 | host_alias=$host_alias | |
19978 | host=$host | |
19979 | host_os=$host_os | |
35fa52c0 | 19980 | |
9c60689e DWT |
19981 | # The build system. |
19982 | build_alias=$build_alias | |
19983 | build=$build | |
19984 | build_os=$build_os | |
19985 | ||
19986 | # A sed program that does not truncate output. | |
19987 | SED=$lt_SED | |
19988 | ||
19989 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19990 | Xsed="\$SED -e 1s/^X//" | |
19991 | ||
19992 | # A grep program that handles long lines. | |
19993 | GREP=$lt_GREP | |
19994 | ||
19995 | # An ERE matcher. | |
19996 | EGREP=$lt_EGREP | |
19997 | ||
19998 | # A literal string matcher. | |
19999 | FGREP=$lt_FGREP | |
20000 | ||
20001 | # A BSD- or MS-compatible name lister. | |
20002 | NM=$lt_NM | |
20003 | ||
20004 | # Whether we need soft or hard links. | |
20005 | LN_S=$lt_LN_S | |
20006 | ||
20007 | # What is the maximum length of a command? | |
20008 | max_cmd_len=$max_cmd_len | |
20009 | ||
20010 | # Object file suffix (normally "o"). | |
20011 | objext=$ac_objext | |
20012 | ||
20013 | # Executable file suffix (normally ""). | |
20014 | exeext=$exeext | |
20015 | ||
20016 | # whether the shell understands "unset". | |
20017 | lt_unset=$lt_unset | |
20018 | ||
20019 | # turn spaces into newlines. | |
20020 | SP2NL=$lt_lt_SP2NL | |
20021 | ||
20022 | # turn newlines into spaces. | |
20023 | NL2SP=$lt_lt_NL2SP | |
20024 | ||
20025 | # How to create reloadable object files. | |
20026 | reload_flag=$lt_reload_flag | |
20027 | reload_cmds=$lt_reload_cmds | |
20028 | ||
20029 | # An object symbol dumper. | |
20030 | OBJDUMP=$lt_OBJDUMP | |
20031 | ||
20032 | # Method to check whether dependent libraries are shared objects. | |
20033 | deplibs_check_method=$lt_deplibs_check_method | |
20034 | ||
20035 | # Command to use when deplibs_check_method == "file_magic". | |
20036 | file_magic_cmd=$lt_file_magic_cmd | |
20037 | ||
20038 | # The archiver. | |
20039 | AR=$lt_AR | |
20040 | AR_FLAGS=$lt_AR_FLAGS | |
20041 | ||
20042 | # A symbol stripping program. | |
20043 | STRIP=$lt_STRIP | |
20044 | ||
20045 | # Commands used to install an old-style archive. | |
20046 | RANLIB=$lt_RANLIB | |
20047 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20048 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20049 | ||
20050 | # A C compiler. | |
20051 | LTCC=$lt_CC | |
20052 | ||
20053 | # LTCC compiler flags. | |
20054 | LTCFLAGS=$lt_CFLAGS | |
20055 | ||
20056 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20057 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20058 | ||
20059 | # Transform the output of nm in a proper C declaration. | |
20060 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20061 | ||
20062 | # Transform the output of nm in a C name address pair. | |
20063 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20064 | ||
20065 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20066 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20067 | ||
20068 | # The name of the directory that contains temporary libtool files. | |
20069 | objdir=$objdir | |
20070 | ||
20071 | # Shell to use when invoking shell scripts. | |
20072 | SHELL=$lt_SHELL | |
20073 | ||
20074 | # An echo program that does not interpret backslashes. | |
20075 | ECHO=$lt_ECHO | |
20076 | ||
20077 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20078 | MAGIC_CMD=$MAGIC_CMD | |
20079 | ||
20080 | # Must we lock files when doing compilation? | |
20081 | need_locks=$lt_need_locks | |
20082 | ||
20083 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20084 | DSYMUTIL=$lt_DSYMUTIL | |
20085 | ||
20086 | # Tool to change global to local symbols on Mac OS X. | |
20087 | NMEDIT=$lt_NMEDIT | |
20088 | ||
20089 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20090 | LIPO=$lt_LIPO | |
20091 | ||
20092 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20093 | OTOOL=$lt_OTOOL | |
20094 | ||
20095 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20096 | OTOOL64=$lt_OTOOL64 | |
20097 | ||
20098 | # Old archive suffix (normally "a"). | |
20099 | libext=$libext | |
20100 | ||
20101 | # Shared library suffix (normally ".so"). | |
20102 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 20103 | |
9c60689e DWT |
20104 | # The commands to extract the exported symbol list from a shared archive. |
20105 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 20106 | |
9c60689e DWT |
20107 | # Variables whose values should be saved in libtool wrapper scripts and |
20108 | # restored at link time. | |
20109 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 20110 | |
9c60689e DWT |
20111 | # Do we need the "lib" prefix for modules? |
20112 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 20113 | |
9c60689e DWT |
20114 | # Do we need a version for libraries? |
20115 | need_version=$need_version | |
35fa52c0 | 20116 | |
9c60689e DWT |
20117 | # Library versioning type. |
20118 | version_type=$version_type | |
35fa52c0 | 20119 | |
9c60689e DWT |
20120 | # Shared library runtime path variable. |
20121 | runpath_var=$runpath_var | |
35fa52c0 | 20122 | |
9c60689e DWT |
20123 | # Shared library path variable. |
20124 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 20125 | |
9c60689e DWT |
20126 | # Is shlibpath searched before the hard-coded library search path? |
20127 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 20128 | |
9c60689e DWT |
20129 | # Format of library name prefix. |
20130 | libname_spec=$lt_libname_spec | |
35fa52c0 | 20131 | |
9c60689e DWT |
20132 | # List of archive names. First name is the real one, the rest are links. |
20133 | # The last name is the one that the linker finds with -lNAME | |
20134 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 20135 | |
9c60689e DWT |
20136 | # The coded name of the library, if different from the real name. |
20137 | soname_spec=$lt_soname_spec | |
dbadc56a | 20138 | |
9c60689e DWT |
20139 | # Command to use after installation of a shared archive. |
20140 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 20141 | |
9c60689e DWT |
20142 | # Command to use after uninstallation of a shared archive. |
20143 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 20144 | |
9c60689e DWT |
20145 | # Commands used to finish a libtool library installation in a directory. |
20146 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 20147 | |
9c60689e DWT |
20148 | # As "finish_cmds", except a single script fragment to be evaled but |
20149 | # not shown. | |
20150 | finish_eval=$lt_finish_eval | |
35fa52c0 | 20151 | |
9c60689e DWT |
20152 | # Whether we should hardcode library paths into libraries. |
20153 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 20154 | |
9c60689e DWT |
20155 | # Compile-time system search path for libraries. |
20156 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 20157 | |
9c60689e DWT |
20158 | # Run-time system search path for libraries. |
20159 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 20160 | |
9c60689e DWT |
20161 | # Whether dlopen is supported. |
20162 | dlopen_support=$enable_dlopen | |
dbadc56a | 20163 | |
9c60689e DWT |
20164 | # Whether dlopen of programs is supported. |
20165 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 20166 | |
9c60689e DWT |
20167 | # Whether dlopen of statically linked programs is supported. |
20168 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 20169 | |
9c60689e DWT |
20170 | # Commands to strip libraries. |
20171 | old_striplib=$lt_old_striplib | |
20172 | striplib=$lt_striplib | |
35fa52c0 | 20173 | |
35fa52c0 | 20174 | |
9c60689e DWT |
20175 | # The linker used to build libraries. |
20176 | LD=$lt_LD | |
dbadc56a | 20177 | |
9c60689e DWT |
20178 | # Commands used to build an old-style archive. |
20179 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 20180 | |
9c60689e DWT |
20181 | # A language specific compiler. |
20182 | CC=$lt_compiler | |
35fa52c0 | 20183 | |
9c60689e DWT |
20184 | # Is the compiler the GNU compiler? |
20185 | with_gcc=$GCC | |
dbadc56a | 20186 | |
9c60689e DWT |
20187 | # Compiler flag to turn off builtin functions. |
20188 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 20189 | |
9c60689e DWT |
20190 | # How to pass a linker flag through the compiler. |
20191 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 20192 | |
9c60689e DWT |
20193 | # Additional compiler flags for building library objects. |
20194 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 20195 | |
9c60689e DWT |
20196 | # Compiler flag to prevent dynamic linking. |
20197 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 20198 | |
9c60689e DWT |
20199 | # Does compiler simultaneously support -c and -o options? |
20200 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 20201 | |
9c60689e DWT |
20202 | # Whether or not to add -lc for building shared libraries. |
20203 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 20204 | |
9c60689e DWT |
20205 | # Whether or not to disallow shared libs when runtime libs are static. |
20206 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 20207 | |
9c60689e DWT |
20208 | # Compiler flag to allow reflexive dlopens. |
20209 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 20210 | |
9c60689e DWT |
20211 | # Compiler flag to generate shared objects directly from archives. |
20212 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 20213 | |
9c60689e DWT |
20214 | # Whether the compiler copes with passing no objects directly. |
20215 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 20216 | |
9c60689e DWT |
20217 | # Create an old-style archive from a shared archive. |
20218 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 20219 | |
9c60689e DWT |
20220 | # Create a temporary old-style archive to link instead of a shared archive. |
20221 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 20222 | |
9c60689e DWT |
20223 | # Commands used to build a shared archive. |
20224 | archive_cmds=$lt_archive_cmds | |
20225 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 20226 | |
9c60689e DWT |
20227 | # Commands used to build a loadable module if different from building |
20228 | # a shared archive. | |
20229 | module_cmds=$lt_module_cmds | |
20230 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 20231 | |
9c60689e DWT |
20232 | # Whether we are building with GNU ld or not. |
20233 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 20234 | |
9c60689e DWT |
20235 | # Flag that allows shared libraries with undefined symbols to be built. |
20236 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 20237 | |
9c60689e DWT |
20238 | # Flag that enforces no undefined symbols. |
20239 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 20240 | |
9c60689e DWT |
20241 | # Flag to hardcode \$libdir into a binary during linking. |
20242 | # This must work even if \$libdir does not exist | |
20243 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 20244 | |
9c60689e DWT |
20245 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
20246 | # during linking. This must work even if \$libdir does not exist. | |
20247 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 20248 | |
9c60689e DWT |
20249 | # Whether we need a single "-rpath" flag with a separated argument. |
20250 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 20251 | |
9c60689e DWT |
20252 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20253 | # DIR into the resulting binary. | |
20254 | hardcode_direct=$hardcode_direct | |
6b66678a | 20255 | |
9c60689e DWT |
20256 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20257 | # DIR into the resulting binary and the resulting library dependency is | |
20258 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20259 | # library is relocated. | |
20260 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 20261 | |
9c60689e DWT |
20262 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
20263 | # into the resulting binary. | |
20264 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 20265 | |
9c60689e DWT |
20266 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
20267 | # into the resulting binary. | |
20268 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 20269 | |
9c60689e DWT |
20270 | # Set to "yes" if building a shared library automatically hardcodes DIR |
20271 | # into the library and all subsequent libraries and executables linked | |
20272 | # against it. | |
20273 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 20274 | |
9c60689e DWT |
20275 | # Set to yes if linker adds runtime paths of dependent libraries |
20276 | # to runtime path list. | |
20277 | inherit_rpath=$inherit_rpath | |
6b66678a | 20278 | |
9c60689e DWT |
20279 | # Whether libtool must link a program against all its dependency libraries. |
20280 | link_all_deplibs=$link_all_deplibs | |
20281 | ||
20282 | # Fix the shell variable \$srcfile for the compiler. | |
20283 | fix_srcfile_path=$lt_fix_srcfile_path | |
20284 | ||
20285 | # Set to "yes" if exported symbols are required. | |
20286 | always_export_symbols=$always_export_symbols | |
6b66678a | 20287 | |
9c60689e DWT |
20288 | # The commands to list exported symbols. |
20289 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 20290 | |
9c60689e DWT |
20291 | # Symbols that should not be listed in the preloaded symbols. |
20292 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 20293 | |
9c60689e DWT |
20294 | # Symbols that must always be exported. |
20295 | include_expsyms=$lt_include_expsyms | |
6b66678a | 20296 | |
9c60689e DWT |
20297 | # Commands necessary for linking programs (against libraries) with templates. |
20298 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 20299 | |
9c60689e DWT |
20300 | # Specify filename containing input files. |
20301 | file_list_spec=$lt_file_list_spec | |
6b66678a | 20302 | |
9c60689e DWT |
20303 | # How to hardcode a shared library path into an executable. |
20304 | hardcode_action=$hardcode_action | |
20305 | ||
20306 | # The directories searched by this compiler when creating a shared library. | |
20307 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
20308 | ||
20309 | # Dependencies to place before and after the objects being linked to | |
20310 | # create a shared library. | |
20311 | predep_objects=$lt_predep_objects | |
20312 | postdep_objects=$lt_postdep_objects | |
20313 | predeps=$lt_predeps | |
20314 | postdeps=$lt_postdeps | |
20315 | ||
20316 | # The library search path used internally by the compiler when linking | |
20317 | # a shared library. | |
20318 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
20319 | ||
20320 | # ### END LIBTOOL CONFIG | |
20321 | ||
20322 | _LT_EOF | |
20323 | ||
20324 | case $host_os in | |
20325 | aix3*) | |
20326 | cat <<\_LT_EOF >> "$cfgfile" | |
20327 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20328 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20329 | # vanish in a puff of smoke. | |
20330 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20331 | COLLECT_NAMES= | |
20332 | export COLLECT_NAMES | |
6b66678a | 20333 | fi |
9c60689e DWT |
20334 | _LT_EOF |
20335 | ;; | |
20336 | esac | |
6b66678a DWT |
20337 | |
20338 | ||
9c60689e | 20339 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 20340 | |
9c60689e DWT |
20341 | |
20342 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20343 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20344 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20345 | # is reportedly fixed, but why not run on old versions too? | |
20346 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
20347 | || (rm -f "$cfgfile"; exit 1) | |
20348 | ||
20349 | case $xsi_shell in | |
20350 | yes) | |
20351 | cat << \_LT_EOF >> "$cfgfile" | |
20352 | ||
20353 | # func_dirname file append nondir_replacement | |
20354 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20355 | # otherwise set result to NONDIR_REPLACEMENT. | |
20356 | func_dirname () | |
6b66678a | 20357 | { |
9c60689e DWT |
20358 | case ${1} in |
20359 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20360 | * ) func_dirname_result="${3}" ;; | |
20361 | esac | |
20362 | } | |
6b66678a | 20363 | |
9c60689e DWT |
20364 | # func_basename file |
20365 | func_basename () | |
20366 | { | |
20367 | func_basename_result="${1##*/}" | |
6b66678a | 20368 | } |
6b66678a | 20369 | |
9c60689e DWT |
20370 | # func_dirname_and_basename file append nondir_replacement |
20371 | # perform func_basename and func_dirname in a single function | |
20372 | # call: | |
20373 | # dirname: Compute the dirname of FILE. If nonempty, | |
20374 | # add APPEND to the result, otherwise set result | |
20375 | # to NONDIR_REPLACEMENT. | |
20376 | # value returned in "$func_dirname_result" | |
20377 | # basename: Compute filename of FILE. | |
20378 | # value retuned in "$func_basename_result" | |
20379 | # Implementation must be kept synchronized with func_dirname | |
20380 | # and func_basename. For efficiency, we do not delegate to | |
20381 | # those functions but instead duplicate the functionality here. | |
20382 | func_dirname_and_basename () | |
20383 | { | |
20384 | case ${1} in | |
20385 | */*) func_dirname_result="${1%/*}${2}" ;; | |
20386 | * ) func_dirname_result="${3}" ;; | |
20387 | esac | |
20388 | func_basename_result="${1##*/}" | |
20389 | } | |
6b66678a | 20390 | |
9c60689e DWT |
20391 | # func_stripname prefix suffix name |
20392 | # strip PREFIX and SUFFIX off of NAME. | |
20393 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20394 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20395 | # dot (in which case that matches only a dot). | |
20396 | func_stripname () | |
20397 | { | |
20398 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
20399 | # positional parameters, so assign one to ordinary parameter first. | |
20400 | func_stripname_result=${3} | |
20401 | func_stripname_result=${func_stripname_result#"${1}"} | |
20402 | func_stripname_result=${func_stripname_result%"${2}"} | |
20403 | } | |
6b66678a | 20404 | |
9c60689e DWT |
20405 | # func_opt_split |
20406 | func_opt_split () | |
20407 | { | |
20408 | func_opt_split_opt=${1%%=*} | |
20409 | func_opt_split_arg=${1#*=} | |
20410 | } | |
6b66678a | 20411 | |
9c60689e DWT |
20412 | # func_lo2o object |
20413 | func_lo2o () | |
20414 | { | |
20415 | case ${1} in | |
20416 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
20417 | *) func_lo2o_result=${1} ;; | |
20418 | esac | |
20419 | } | |
6b66678a | 20420 | |
9c60689e DWT |
20421 | # func_xform libobj-or-source |
20422 | func_xform () | |
20423 | { | |
20424 | func_xform_result=${1%.*}.lo | |
20425 | } | |
6b66678a | 20426 | |
9c60689e DWT |
20427 | # func_arith arithmetic-term... |
20428 | func_arith () | |
20429 | { | |
20430 | func_arith_result=$(( $* )) | |
20431 | } | |
6b66678a | 20432 | |
9c60689e DWT |
20433 | # func_len string |
20434 | # STRING may not start with a hyphen. | |
20435 | func_len () | |
20436 | { | |
20437 | func_len_result=${#1} | |
20438 | } | |
6b66678a | 20439 | |
9c60689e DWT |
20440 | _LT_EOF |
20441 | ;; | |
20442 | *) # Bourne compatible functions. | |
20443 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 20444 | |
9c60689e DWT |
20445 | # func_dirname file append nondir_replacement |
20446 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
20447 | # otherwise set result to NONDIR_REPLACEMENT. | |
20448 | func_dirname () | |
20449 | { | |
20450 | # Extract subdirectory from the argument. | |
20451 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
20452 | if test "X$func_dirname_result" = "X${1}"; then | |
20453 | func_dirname_result="${3}" | |
20454 | else | |
20455 | func_dirname_result="$func_dirname_result${2}" | |
20456 | fi | |
20457 | } | |
6b66678a | 20458 | |
9c60689e DWT |
20459 | # func_basename file |
20460 | func_basename () | |
6b66678a | 20461 | { |
9c60689e | 20462 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 20463 | } |
6b66678a | 20464 | |
6b66678a | 20465 | |
9c60689e DWT |
20466 | # func_stripname prefix suffix name |
20467 | # strip PREFIX and SUFFIX off of NAME. | |
20468 | # PREFIX and SUFFIX must not contain globbing or regex special | |
20469 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
20470 | # dot (in which case that matches only a dot). | |
20471 | # func_strip_suffix prefix name | |
20472 | func_stripname () | |
20473 | { | |
20474 | case ${2} in | |
20475 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
20476 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
20477 | *) func_stripname_result=`$ECHO "X${3}" \ | |
20478 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
20479 | esac | |
20480 | } | |
6b66678a | 20481 | |
9c60689e DWT |
20482 | # sed scripts: |
20483 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
20484 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 20485 | |
9c60689e DWT |
20486 | # func_opt_split |
20487 | func_opt_split () | |
20488 | { | |
20489 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
20490 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
20491 | } | |
6b66678a | 20492 | |
9c60689e DWT |
20493 | # func_lo2o object |
20494 | func_lo2o () | |
20495 | { | |
20496 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
20497 | } | |
20498 | ||
20499 | # func_xform libobj-or-source | |
20500 | func_xform () | |
20501 | { | |
20502 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
20503 | } | |
20504 | ||
20505 | # func_arith arithmetic-term... | |
20506 | func_arith () | |
20507 | { | |
20508 | func_arith_result=`expr "$@"` | |
20509 | } | |
20510 | ||
20511 | # func_len string | |
20512 | # STRING may not start with a hyphen. | |
20513 | func_len () | |
20514 | { | |
20515 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
20516 | } | |
20517 | ||
20518 | _LT_EOF | |
20519 | esac | |
20520 | ||
20521 | case $lt_shell_append in | |
20522 | yes) | |
20523 | cat << \_LT_EOF >> "$cfgfile" | |
20524 | ||
20525 | # func_append var value | |
20526 | # Append VALUE to the end of shell variable VAR. | |
20527 | func_append () | |
20528 | { | |
20529 | eval "$1+=\$2" | |
20530 | } | |
20531 | _LT_EOF | |
20532 | ;; | |
20533 | *) | |
20534 | cat << \_LT_EOF >> "$cfgfile" | |
20535 | ||
20536 | # func_append var value | |
20537 | # Append VALUE to the end of shell variable VAR. | |
20538 | func_append () | |
20539 | { | |
20540 | eval "$1=\$$1\$2" | |
20541 | } | |
20542 | ||
20543 | _LT_EOF | |
20544 | ;; | |
20545 | esac | |
20546 | ||
20547 | ||
20548 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
20549 | || (rm -f "$cfgfile"; exit 1) | |
20550 | ||
20551 | mv -f "$cfgfile" "$ofile" || | |
20552 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20553 | chmod +x "$ofile" | |
20554 | ||
20555 | ||
20556 | cat <<_LT_EOF >> "$ofile" | |
20557 | ||
20558 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
20559 | ||
20560 | # The linker used to build libraries. | |
20561 | LD=$lt_LD_CXX | |
20562 | ||
20563 | # Commands used to build an old-style archive. | |
20564 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20565 | ||
20566 | # A language specific compiler. | |
20567 | CC=$lt_compiler_CXX | |
20568 | ||
20569 | # Is the compiler the GNU compiler? | |
20570 | with_gcc=$GCC_CXX | |
20571 | ||
20572 | # Compiler flag to turn off builtin functions. | |
20573 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 20574 | |
9c60689e DWT |
20575 | # How to pass a linker flag through the compiler. |
20576 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 20577 | |
9c60689e DWT |
20578 | # Additional compiler flags for building library objects. |
20579 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 20580 | |
9c60689e DWT |
20581 | # Compiler flag to prevent dynamic linking. |
20582 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 20583 | |
9c60689e DWT |
20584 | # Does compiler simultaneously support -c and -o options? |
20585 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 20586 | |
9c60689e DWT |
20587 | # Whether or not to add -lc for building shared libraries. |
20588 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 20589 | |
9c60689e DWT |
20590 | # Whether or not to disallow shared libs when runtime libs are static. |
20591 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 20592 | |
9c60689e DWT |
20593 | # Compiler flag to allow reflexive dlopens. |
20594 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 20595 | |
9c60689e DWT |
20596 | # Compiler flag to generate shared objects directly from archives. |
20597 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 20598 | |
9c60689e DWT |
20599 | # Whether the compiler copes with passing no objects directly. |
20600 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 20601 | |
9c60689e DWT |
20602 | # Create an old-style archive from a shared archive. |
20603 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 20604 | |
9c60689e DWT |
20605 | # Create a temporary old-style archive to link instead of a shared archive. |
20606 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 20607 | |
9c60689e DWT |
20608 | # Commands used to build a shared archive. |
20609 | archive_cmds=$lt_archive_cmds_CXX | |
20610 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 20611 | |
9c60689e DWT |
20612 | # Commands used to build a loadable module if different from building |
20613 | # a shared archive. | |
20614 | module_cmds=$lt_module_cmds_CXX | |
20615 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 20616 | |
9c60689e DWT |
20617 | # Whether we are building with GNU ld or not. |
20618 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 20619 | |
9c60689e DWT |
20620 | # Flag that allows shared libraries with undefined symbols to be built. |
20621 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 20622 | |
9c60689e DWT |
20623 | # Flag that enforces no undefined symbols. |
20624 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 20625 | |
9c60689e DWT |
20626 | # Flag to hardcode \$libdir into a binary during linking. |
20627 | # This must work even if \$libdir does not exist | |
20628 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 20629 | |
9c60689e DWT |
20630 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
20631 | # during linking. This must work even if \$libdir does not exist. | |
20632 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 20633 | |
9c60689e DWT |
20634 | # Whether we need a single "-rpath" flag with a separated argument. |
20635 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 20636 | |
9c60689e DWT |
20637 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20638 | # DIR into the resulting binary. | |
20639 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 20640 | |
9c60689e DWT |
20641 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
20642 | # DIR into the resulting binary and the resulting library dependency is | |
20643 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
20644 | # library is relocated. | |
20645 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 20646 | |
9c60689e DWT |
20647 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
20648 | # into the resulting binary. | |
20649 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 20650 | |
9c60689e DWT |
20651 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
20652 | # into the resulting binary. | |
20653 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 20654 | |
9c60689e DWT |
20655 | # Set to "yes" if building a shared library automatically hardcodes DIR |
20656 | # into the library and all subsequent libraries and executables linked | |
20657 | # against it. | |
20658 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 20659 | |
9c60689e DWT |
20660 | # Set to yes if linker adds runtime paths of dependent libraries |
20661 | # to runtime path list. | |
20662 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 20663 | |
9c60689e DWT |
20664 | # Whether libtool must link a program against all its dependency libraries. |
20665 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 20666 | |
9c60689e DWT |
20667 | # Fix the shell variable \$srcfile for the compiler. |
20668 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 20669 | |
9c60689e DWT |
20670 | # Set to "yes" if exported symbols are required. |
20671 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 20672 | |
9c60689e DWT |
20673 | # The commands to list exported symbols. |
20674 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 20675 | |
9c60689e DWT |
20676 | # Symbols that should not be listed in the preloaded symbols. |
20677 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 20678 | |
9c60689e DWT |
20679 | # Symbols that must always be exported. |
20680 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 20681 | |
9c60689e DWT |
20682 | # Commands necessary for linking programs (against libraries) with templates. |
20683 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 20684 | |
9c60689e DWT |
20685 | # Specify filename containing input files. |
20686 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 20687 | |
9c60689e DWT |
20688 | # How to hardcode a shared library path into an executable. |
20689 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 20690 | |
9c60689e DWT |
20691 | # The directories searched by this compiler when creating a shared library. |
20692 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 20693 | |
9c60689e DWT |
20694 | # Dependencies to place before and after the objects being linked to |
20695 | # create a shared library. | |
20696 | predep_objects=$lt_predep_objects_CXX | |
20697 | postdep_objects=$lt_postdep_objects_CXX | |
20698 | predeps=$lt_predeps_CXX | |
20699 | postdeps=$lt_postdeps_CXX | |
309b0535 | 20700 | |
9c60689e DWT |
20701 | # The library search path used internally by the compiler when linking |
20702 | # a shared library. | |
20703 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20704 | ||
20705 | # ### END LIBTOOL TAG CONFIG: CXX | |
20706 | _LT_EOF | |
20707 | ||
20708 | ;; | |
20709 | ||
20710 | esac | |
20711 | done # for ac_tag | |
20712 | ||
20713 | ||
20714 | as_fn_exit 0 | |
20715 | _ACEOF | |
20716 | ac_clean_files=$ac_clean_files_save | |
20717 | ||
20718 | test $ac_write_fail = 0 || | |
20719 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20720 | ||
20721 | ||
20722 | # configure is writing to config.log, and then calls config.status. | |
20723 | # config.status does its own redirection, appending to config.log. | |
20724 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20725 | # by configure, so config.status won't be able to write to it; its | |
20726 | # output is simply discarded. So we exec the FD to /dev/null, | |
20727 | # effectively closing config.log, so it can be properly (re)opened and | |
20728 | # appended to by config.status. When coming back to configure, we | |
20729 | # need to make the FD available again. | |
20730 | if test "$no_create" != yes; then | |
20731 | ac_cs_success=: | |
20732 | ac_config_status_args= | |
20733 | test "$silent" = yes && | |
20734 | ac_config_status_args="$ac_config_status_args --quiet" | |
20735 | exec 5>/dev/null | |
20736 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20737 | exec 5>>config.log | |
20738 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20739 | # would make configure fail if this is the last instruction. | |
20740 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 20741 | fi |
9c60689e DWT |
20742 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20744 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20745 | fi | |
20746 |