]>
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 | |
808 | ac_ct_OBJCXX | |
809 | OBJCXXFLAGS | |
810 | OBJCXX | |
811 | ifGNUmake | |
309b0535 | 812 | LIBFFI_LIBS |
35fa52c0 DWT |
813 | LIBFFI_CFLAGS |
814 | WEBKIT_LIBS | |
815 | WEBKIT_CFLAGS | |
816 | PKG_CONFIG | |
817 | LTLIBICONV | |
818 | LIBICONV | |
35fa52c0 DWT |
819 | INSTALL_DATA |
820 | INSTALL_SCRIPT | |
821 | INSTALL_PROGRAM | |
9c60689e | 822 | CXXCPP |
dbadc56a | 823 | ac_ct_CXX |
dbadc56a DWT |
824 | CXXFLAGS |
825 | CXX | |
309b0535 | 826 | APR |
9c60689e DWT |
827 | GPERF |
828 | _BASH | |
35fa52c0 DWT |
829 | FLEX |
830 | LEXLIB | |
9c60689e DWT |
831 | LEX_OUTPUT_ROOT |
832 | LEX | |
833 | BISON | |
834 | AWK | |
835 | YFLAGS | |
836 | YACC | |
837 | CPP | |
838 | OTOOL64 | |
839 | OTOOL | |
840 | LIPO | |
841 | NMEDIT | |
842 | DSYMUTIL | |
843 | lt_ECHO | |
844 | RANLIB | |
845 | STRIP | |
846 | AR | |
847 | OBJDUMP | |
848 | LN_S | |
849 | NM | |
850 | ac_ct_DUMPBIN | |
851 | DUMPBIN | |
852 | LD | |
853 | FGREP | |
854 | EGREP | |
855 | GREP | |
856 | SED | |
35fa52c0 DWT |
857 | OBJEXT |
858 | EXEEXT | |
859 | ac_ct_CC | |
860 | CPPFLAGS | |
861 | LDFLAGS | |
862 | CFLAGS | |
863 | CC | |
9c60689e DWT |
864 | host_os |
865 | host_vendor | |
866 | host_cpu | |
867 | host | |
868 | build_os | |
869 | build_vendor | |
870 | build_cpu | |
871 | build | |
872 | LIBTOOL | |
dbadc56a | 873 | target_alias |
c7aa54aa DWT |
874 | host_alias |
875 | build_alias | |
876 | LIBS | |
877 | ECHO_T | |
878 | ECHO_N | |
879 | ECHO_C | |
880 | DEFS | |
881 | mandir | |
882 | localedir | |
883 | libdir | |
884 | psdir | |
885 | pdfdir | |
886 | dvidir | |
887 | htmldir | |
888 | infodir | |
889 | docdir | |
890 | oldincludedir | |
891 | includedir | |
892 | localstatedir | |
893 | sharedstatedir | |
894 | sysconfdir | |
895 | datadir | |
896 | datarootdir | |
897 | libexecdir | |
898 | sbindir | |
899 | bindir | |
900 | program_transform_name | |
901 | prefix | |
902 | exec_prefix | |
903 | PACKAGE_URL | |
904 | PACKAGE_BUGREPORT | |
905 | PACKAGE_STRING | |
906 | PACKAGE_VERSION | |
907 | PACKAGE_TARNAME | |
908 | PACKAGE_NAME | |
909 | PATH_SEPARATOR | |
910 | SHELL' | |
911 | ac_subst_files='' | |
912 | ac_user_opts=' | |
913 | enable_option_checking | |
9c60689e DWT |
914 | enable_shared |
915 | enable_static | |
916 | with_pic | |
917 | enable_fast_install | |
35fa52c0 | 918 | with_gnu_ld |
9c60689e DWT |
919 | enable_libtool_lock |
920 | with_apr | |
35fa52c0 DWT |
921 | enable_rpath |
922 | with_libiconv_prefix | |
c7aa54aa DWT |
923 | ' |
924 | ac_precious_vars='build_alias | |
925 | host_alias | |
dbadc56a | 926 | target_alias |
35fa52c0 DWT |
927 | CC |
928 | CFLAGS | |
dbadc56a DWT |
929 | LDFLAGS |
930 | LIBS | |
931 | CPPFLAGS | |
9c60689e DWT |
932 | CPP |
933 | YACC | |
934 | YFLAGS | |
35fa52c0 DWT |
935 | CXX |
936 | CXXFLAGS | |
937 | CCC | |
9c60689e | 938 | CXXCPP |
35fa52c0 DWT |
939 | PKG_CONFIG |
940 | WEBKIT_CFLAGS | |
941 | WEBKIT_LIBS | |
942 | LIBFFI_CFLAGS | |
6b66678a | 943 | LIBFFI_LIBS |
9c60689e DWT |
944 | OBJCXX |
945 | OBJCXXFLAGS' | |
c7aa54aa DWT |
946 | |
947 | ||
948 | # Initialize some variables set by options. | |
949 | ac_init_help= | |
950 | ac_init_version=false | |
951 | ac_unrecognized_opts= | |
952 | ac_unrecognized_sep= | |
953 | # The variables have the same names as the options, with | |
954 | # dashes changed to underlines. | |
955 | cache_file=/dev/null | |
956 | exec_prefix=NONE | |
957 | no_create= | |
958 | no_recursion= | |
959 | prefix=NONE | |
960 | program_prefix=NONE | |
961 | program_suffix=NONE | |
962 | program_transform_name=s,x,x, | |
963 | silent= | |
964 | site= | |
965 | srcdir= | |
966 | verbose= | |
967 | x_includes=NONE | |
968 | x_libraries=NONE | |
969 | ||
970 | # Installation directory options. | |
971 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
972 | # and all the variables that are supposed to be based on exec_prefix | |
973 | # by default will actually change. | |
974 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
975 | # (The list follows the same order as the GNU Coding Standards.) | |
976 | bindir='${exec_prefix}/bin' | |
977 | sbindir='${exec_prefix}/sbin' | |
978 | libexecdir='${exec_prefix}/libexec' | |
979 | datarootdir='${prefix}/share' | |
980 | datadir='${datarootdir}' | |
981 | sysconfdir='${prefix}/etc' | |
982 | sharedstatedir='${prefix}/com' | |
983 | localstatedir='${prefix}/var' | |
984 | includedir='${prefix}/include' | |
985 | oldincludedir='/usr/include' | |
986 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
987 | infodir='${datarootdir}/info' | |
988 | htmldir='${docdir}' | |
989 | dvidir='${docdir}' | |
990 | pdfdir='${docdir}' | |
991 | psdir='${docdir}' | |
992 | libdir='${exec_prefix}/lib' | |
993 | localedir='${datarootdir}/locale' | |
994 | mandir='${datarootdir}/man' | |
995 | ||
996 | ac_prev= | |
997 | ac_dashdash= | |
998 | for ac_option | |
999 | do | |
1000 | # If the previous option needs an argument, assign it. | |
1001 | if test -n "$ac_prev"; then | |
1002 | eval $ac_prev=\$ac_option | |
1003 | ac_prev= | |
1004 | continue | |
1005 | fi | |
1006 | ||
1007 | case $ac_option in | |
1008 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1009 | *) ac_optarg=yes ;; | |
1010 | esac | |
1011 | ||
1012 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1013 | ||
1014 | case $ac_dashdash$ac_option in | |
1015 | --) | |
1016 | ac_dashdash=yes ;; | |
1017 | ||
1018 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1019 | ac_prev=bindir ;; | |
1020 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1021 | bindir=$ac_optarg ;; | |
1022 | ||
1023 | -build | --build | --buil | --bui | --bu) | |
1024 | ac_prev=build_alias ;; | |
1025 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1026 | build_alias=$ac_optarg ;; | |
1027 | ||
1028 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1029 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1030 | ac_prev=cache_file ;; | |
1031 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1032 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1033 | cache_file=$ac_optarg ;; | |
1034 | ||
1035 | --config-cache | -C) | |
1036 | cache_file=config.cache ;; | |
1037 | ||
1038 | -datadir | --datadir | --datadi | --datad) | |
1039 | ac_prev=datadir ;; | |
1040 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1041 | datadir=$ac_optarg ;; | |
1042 | ||
1043 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1044 | | --dataroo | --dataro | --datar) | |
1045 | ac_prev=datarootdir ;; | |
1046 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1047 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1048 | datarootdir=$ac_optarg ;; | |
1049 | ||
1050 | -disable-* | --disable-*) | |
1051 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
1053 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1054 | as_fn_error "invalid feature name: $ac_useropt" | |
1055 | ac_useropt_orig=$ac_useropt | |
1056 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1057 | case $ac_user_opts in | |
1058 | *" | |
1059 | "enable_$ac_useropt" | |
1060 | "*) ;; | |
1061 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1062 | ac_unrecognized_sep=', ';; | |
1063 | esac | |
1064 | eval enable_$ac_useropt=no ;; | |
1065 | ||
1066 | -docdir | --docdir | --docdi | --doc | --do) | |
1067 | ac_prev=docdir ;; | |
1068 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1069 | docdir=$ac_optarg ;; | |
1070 | ||
1071 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1072 | ac_prev=dvidir ;; | |
1073 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1074 | dvidir=$ac_optarg ;; | |
1075 | ||
1076 | -enable-* | --enable-*) | |
1077 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1078 | # Reject names that are not valid shell variable names. | |
1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1080 | as_fn_error "invalid feature name: $ac_useropt" | |
1081 | ac_useropt_orig=$ac_useropt | |
1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1083 | case $ac_user_opts in | |
1084 | *" | |
1085 | "enable_$ac_useropt" | |
1086 | "*) ;; | |
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1088 | ac_unrecognized_sep=', ';; | |
1089 | esac | |
1090 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1091 | ||
1092 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1093 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1094 | | --exec | --exe | --ex) | |
1095 | ac_prev=exec_prefix ;; | |
1096 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1097 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1098 | | --exec=* | --exe=* | --ex=*) | |
1099 | exec_prefix=$ac_optarg ;; | |
1100 | ||
1101 | -gas | --gas | --ga | --g) | |
1102 | # Obsolete; use --with-gas. | |
1103 | with_gas=yes ;; | |
1104 | ||
1105 | -help | --help | --hel | --he | -h) | |
1106 | ac_init_help=long ;; | |
1107 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1108 | ac_init_help=recursive ;; | |
1109 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1110 | ac_init_help=short ;; | |
1111 | ||
1112 | -host | --host | --hos | --ho) | |
1113 | ac_prev=host_alias ;; | |
1114 | -host=* | --host=* | --hos=* | --ho=*) | |
1115 | host_alias=$ac_optarg ;; | |
1116 | ||
1117 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1118 | ac_prev=htmldir ;; | |
1119 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1120 | | --ht=*) | |
1121 | htmldir=$ac_optarg ;; | |
1122 | ||
1123 | -includedir | --includedir | --includedi | --included | --include \ | |
1124 | | --includ | --inclu | --incl | --inc) | |
1125 | ac_prev=includedir ;; | |
1126 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1127 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1128 | includedir=$ac_optarg ;; | |
1129 | ||
1130 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1131 | ac_prev=infodir ;; | |
1132 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1133 | infodir=$ac_optarg ;; | |
1134 | ||
1135 | -libdir | --libdir | --libdi | --libd) | |
1136 | ac_prev=libdir ;; | |
1137 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1138 | libdir=$ac_optarg ;; | |
1139 | ||
1140 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1141 | | --libexe | --libex | --libe) | |
1142 | ac_prev=libexecdir ;; | |
1143 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1144 | | --libexe=* | --libex=* | --libe=*) | |
1145 | libexecdir=$ac_optarg ;; | |
1146 | ||
1147 | -localedir | --localedir | --localedi | --localed | --locale) | |
1148 | ac_prev=localedir ;; | |
1149 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1150 | localedir=$ac_optarg ;; | |
1151 | ||
1152 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1153 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1154 | ac_prev=localstatedir ;; | |
1155 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1156 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1157 | localstatedir=$ac_optarg ;; | |
1158 | ||
1159 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1160 | ac_prev=mandir ;; | |
1161 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1162 | mandir=$ac_optarg ;; | |
1163 | ||
1164 | -nfp | --nfp | --nf) | |
1165 | # Obsolete; use --without-fp. | |
1166 | with_fp=no ;; | |
1167 | ||
1168 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1169 | | --no-cr | --no-c | -n) | |
1170 | no_create=yes ;; | |
1171 | ||
1172 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1173 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1174 | no_recursion=yes ;; | |
1175 | ||
1176 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1177 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1178 | | --oldin | --oldi | --old | --ol | --o) | |
1179 | ac_prev=oldincludedir ;; | |
1180 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1181 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1182 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1183 | oldincludedir=$ac_optarg ;; | |
1184 | ||
1185 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1186 | ac_prev=prefix ;; | |
1187 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1188 | prefix=$ac_optarg ;; | |
1189 | ||
1190 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1191 | | --program-pre | --program-pr | --program-p) | |
1192 | ac_prev=program_prefix ;; | |
1193 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1194 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1195 | program_prefix=$ac_optarg ;; | |
1196 | ||
1197 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1198 | | --program-suf | --program-su | --program-s) | |
1199 | ac_prev=program_suffix ;; | |
1200 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1201 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1202 | program_suffix=$ac_optarg ;; | |
1203 | ||
1204 | -program-transform-name | --program-transform-name \ | |
1205 | | --program-transform-nam | --program-transform-na \ | |
1206 | | --program-transform-n | --program-transform- \ | |
1207 | | --program-transform | --program-transfor \ | |
1208 | | --program-transfo | --program-transf \ | |
1209 | | --program-trans | --program-tran \ | |
1210 | | --progr-tra | --program-tr | --program-t) | |
1211 | ac_prev=program_transform_name ;; | |
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 | program_transform_name=$ac_optarg ;; | |
1220 | ||
1221 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1222 | ac_prev=pdfdir ;; | |
1223 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1224 | pdfdir=$ac_optarg ;; | |
1225 | ||
1226 | -psdir | --psdir | --psdi | --psd | --ps) | |
1227 | ac_prev=psdir ;; | |
1228 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1229 | psdir=$ac_optarg ;; | |
1230 | ||
1231 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1232 | | -silent | --silent | --silen | --sile | --sil) | |
1233 | silent=yes ;; | |
1234 | ||
1235 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1236 | ac_prev=sbindir ;; | |
1237 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1238 | | --sbi=* | --sb=*) | |
1239 | sbindir=$ac_optarg ;; | |
1240 | ||
1241 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1242 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1243 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1244 | | --sha | --sh) | |
1245 | ac_prev=sharedstatedir ;; | |
1246 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1247 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1248 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1249 | | --sha=* | --sh=*) | |
1250 | sharedstatedir=$ac_optarg ;; | |
1251 | ||
1252 | -site | --site | --sit) | |
1253 | ac_prev=site ;; | |
1254 | -site=* | --site=* | --sit=*) | |
1255 | site=$ac_optarg ;; | |
1256 | ||
1257 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1258 | ac_prev=srcdir ;; | |
1259 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1260 | srcdir=$ac_optarg ;; | |
1261 | ||
1262 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1263 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1264 | ac_prev=sysconfdir ;; | |
1265 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1266 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1267 | sysconfdir=$ac_optarg ;; | |
1268 | ||
1269 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1270 | ac_prev=target_alias ;; | |
1271 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1272 | target_alias=$ac_optarg ;; | |
1273 | ||
1274 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1275 | verbose=yes ;; | |
1276 | ||
1277 | -version | --version | --versio | --versi | --vers | -V) | |
1278 | ac_init_version=: ;; | |
1279 | ||
1280 | -with-* | --with-*) | |
1281 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1282 | # Reject names that are not valid shell variable names. | |
1283 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1284 | as_fn_error "invalid package name: $ac_useropt" | |
1285 | ac_useropt_orig=$ac_useropt | |
1286 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1287 | case $ac_user_opts in | |
1288 | *" | |
1289 | "with_$ac_useropt" | |
1290 | "*) ;; | |
1291 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1292 | ac_unrecognized_sep=', ';; | |
1293 | esac | |
1294 | eval with_$ac_useropt=\$ac_optarg ;; | |
1295 | ||
1296 | -without-* | --without-*) | |
1297 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1298 | # Reject names that are not valid shell variable names. | |
1299 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1300 | as_fn_error "invalid package name: $ac_useropt" | |
1301 | ac_useropt_orig=$ac_useropt | |
1302 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1303 | case $ac_user_opts in | |
1304 | *" | |
1305 | "with_$ac_useropt" | |
1306 | "*) ;; | |
1307 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1308 | ac_unrecognized_sep=', ';; | |
1309 | esac | |
1310 | eval with_$ac_useropt=no ;; | |
1311 | ||
1312 | --x) | |
1313 | # Obsolete; use --with-x. | |
1314 | with_x=yes ;; | |
1315 | ||
1316 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1317 | | --x-incl | --x-inc | --x-in | --x-i) | |
1318 | ac_prev=x_includes ;; | |
1319 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1320 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1321 | x_includes=$ac_optarg ;; | |
1322 | ||
1323 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1324 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1325 | ac_prev=x_libraries ;; | |
1326 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1327 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1328 | x_libraries=$ac_optarg ;; | |
1329 | ||
1330 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1331 | Try \`$0 --help' for more information." | |
1332 | ;; | |
1333 | ||
1334 | *=*) | |
1335 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1336 | # Reject names that are not valid shell variable names. | |
1337 | case $ac_envvar in #( | |
1338 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1339 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1340 | esac | |
1341 | eval $ac_envvar=\$ac_optarg | |
1342 | export $ac_envvar ;; | |
1343 | ||
1344 | *) | |
1345 | # FIXME: should be removed in autoconf 3.0. | |
1346 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1347 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1348 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1349 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1350 | ;; | |
1351 | ||
1352 | esac | |
1353 | done | |
1354 | ||
1355 | if test -n "$ac_prev"; then | |
1356 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1357 | as_fn_error "missing argument to $ac_option" | |
1358 | fi | |
1359 | ||
1360 | if test -n "$ac_unrecognized_opts"; then | |
1361 | case $enable_option_checking in | |
1362 | no) ;; | |
1363 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1364 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1365 | esac | |
1366 | fi | |
1367 | ||
1368 | # Check all directory arguments for consistency. | |
1369 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1370 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1371 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1372 | libdir localedir mandir | |
1373 | do | |
1374 | eval ac_val=\$$ac_var | |
1375 | # Remove trailing slashes. | |
1376 | case $ac_val in | |
1377 | */ ) | |
1378 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1379 | eval $ac_var=\$ac_val;; | |
1380 | esac | |
1381 | # Be sure to have absolute directory names. | |
1382 | case $ac_val in | |
1383 | [\\/$]* | ?:[\\/]* ) continue;; | |
1384 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1385 | esac | |
1386 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1387 | done | |
1388 | ||
1389 | # There might be people who depend on the old broken behavior: `$host' | |
1390 | # used to hold the argument of --host etc. | |
1391 | # FIXME: To remove some day. | |
1392 | build=$build_alias | |
1393 | host=$host_alias | |
1394 | target=$target_alias | |
1395 | ||
1396 | # FIXME: To remove some day. | |
1397 | if test "x$host_alias" != x; then | |
1398 | if test "x$build_alias" = x; then | |
1399 | cross_compiling=maybe | |
1400 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1401 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1402 | elif test "x$build_alias" != "x$host_alias"; then | |
1403 | cross_compiling=yes | |
1404 | fi | |
1405 | fi | |
1406 | ||
1407 | ac_tool_prefix= | |
1408 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1409 | ||
1410 | test "$silent" = yes && exec 6>/dev/null | |
1411 | ||
1412 | ||
1413 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1414 | ac_ls_di=`ls -di .` && | |
1415 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1416 | as_fn_error "working directory cannot be determined" | |
1417 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1418 | as_fn_error "pwd does not report name of working directory" | |
1419 | ||
1420 | ||
1421 | # Find the source files, if location was not specified. | |
1422 | if test -z "$srcdir"; then | |
1423 | ac_srcdir_defaulted=yes | |
1424 | # Try the directory containing this script, then the parent directory. | |
1425 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1426 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1427 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1428 | X"$as_myself" : 'X\(//\)$' \| \ | |
1429 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1430 | $as_echo X"$as_myself" | | |
1431 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1432 | s//\1/ | |
1433 | q | |
1434 | } | |
1435 | /^X\(\/\/\)[^/].*/{ | |
1436 | s//\1/ | |
1437 | q | |
1438 | } | |
1439 | /^X\(\/\/\)$/{ | |
1440 | s//\1/ | |
1441 | q | |
1442 | } | |
1443 | /^X\(\/\).*/{ | |
1444 | s//\1/ | |
1445 | q | |
1446 | } | |
1447 | s/.*/./; q'` | |
1448 | srcdir=$ac_confdir | |
1449 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1450 | srcdir=.. | |
1451 | fi | |
1452 | else | |
1453 | ac_srcdir_defaulted=no | |
1454 | fi | |
1455 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1456 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1457 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1458 | fi | |
1459 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1460 | ac_abs_confdir=`( | |
1461 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1462 | pwd)` | |
1463 | # When building in place, set srcdir=. | |
1464 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1465 | srcdir=. | |
1466 | fi | |
1467 | # Remove unnecessary trailing slashes from srcdir. | |
1468 | # Double slashes in file names in object file debugging info | |
1469 | # mess up M-x gdb in Emacs. | |
1470 | case $srcdir in | |
1471 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1472 | esac | |
1473 | for ac_var in $ac_precious_vars; do | |
1474 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1475 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1476 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1477 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1478 | done | |
1479 | ||
1480 | # | |
1481 | # Report the --help message. | |
1482 | # | |
1483 | if test "$ac_init_help" = "long"; then | |
1484 | # Omit some internal or obsolete options to make the list less imposing. | |
1485 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1486 | cat <<_ACEOF | |
1487 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1488 | ||
1489 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1490 | ||
1491 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1492 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1493 | ||
1494 | Defaults for the options are specified in brackets. | |
1495 | ||
1496 | Configuration: | |
1497 | -h, --help display this help and exit | |
1498 | --help=short display options specific to this package | |
1499 | --help=recursive display the short help of all the included packages | |
1500 | -V, --version display version information and exit | |
1501 | -q, --quiet, --silent do not print \`checking...' messages | |
1502 | --cache-file=FILE cache test results in FILE [disabled] | |
1503 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1504 | -n, --no-create do not create output files | |
1505 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1506 | ||
1507 | Installation directories: | |
1508 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1509 | [$ac_default_prefix] | |
1510 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1511 | [PREFIX] | |
1512 | ||
1513 | By default, \`make install' will install all the files in | |
1514 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1515 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1516 | for instance \`--prefix=\$HOME'. | |
1517 | ||
1518 | For better control, use the options below. | |
1519 | ||
1520 | Fine tuning of the installation directories: | |
1521 | --bindir=DIR user executables [EPREFIX/bin] | |
1522 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1523 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1524 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1525 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1526 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1527 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1528 | --includedir=DIR C header files [PREFIX/include] | |
1529 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1530 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1531 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1532 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1533 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1534 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1535 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1536 | --htmldir=DIR html documentation [DOCDIR] | |
1537 | --dvidir=DIR dvi documentation [DOCDIR] | |
1538 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1539 | --psdir=DIR ps documentation [DOCDIR] | |
1540 | _ACEOF | |
1541 | ||
1542 | cat <<\_ACEOF | |
35fa52c0 DWT |
1543 | |
1544 | System types: | |
1545 | --build=BUILD configure for building on BUILD [guessed] | |
1546 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
c7aa54aa DWT |
1547 | _ACEOF |
1548 | fi | |
1549 | ||
1550 | if test -n "$ac_init_help"; then | |
1551 | case $ac_init_help in | |
1552 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1553 | esac | |
1554 | cat <<\_ACEOF | |
1555 | ||
35fa52c0 DWT |
1556 | Optional Features: |
1557 | --disable-option-checking ignore unrecognized --enable/--with options | |
1558 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1559 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9c60689e DWT |
1560 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1561 | --enable-static[=PKGS] build static libraries [default=yes] | |
1562 | --enable-fast-install[=PKGS] | |
1563 | optimize for fast installation [default=yes] | |
1564 | --disable-libtool-lock avoid locking (might break parallel builds) | |
35fa52c0 DWT |
1565 | --disable-rpath do not hardcode runtime library paths |
1566 | ||
1567 | Optional Packages: | |
1568 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1569 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
9c60689e DWT |
1570 | --with-pic try to use only PIC/non-PIC objects [default=use |
1571 | both] | |
1572 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
309b0535 DWT |
1573 | --with-apr=PATH prefix for installed APR or the full path to |
1574 | apr-config | |
35fa52c0 DWT |
1575 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1576 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1577 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1578 | ||
dbadc56a | 1579 | Some influential environment variables: |
35fa52c0 DWT |
1580 | CC C compiler command |
1581 | CFLAGS C compiler flags | |
dbadc56a DWT |
1582 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1583 | nonstandard directory <lib dir> | |
1584 | LIBS libraries to pass to the linker, e.g. -l<library> | |
9c60689e | 1585 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dbadc56a | 1586 | you have headers in a nonstandard directory <include dir> |
9c60689e DWT |
1587 | CPP C preprocessor |
1588 | YACC The `Yet Another C Compiler' implementation to use. Defaults to | |
1589 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1590 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1591 | This script will default YFLAGS to the empty string to avoid a | |
1592 | default value of `-d' given by some make applications. | |
35fa52c0 DWT |
1593 | CXX C++ compiler command |
1594 | CXXFLAGS C++ compiler flags | |
9c60689e | 1595 | CXXCPP C++ preprocessor |
35fa52c0 DWT |
1596 | PKG_CONFIG path to pkg-config utility |
1597 | WEBKIT_CFLAGS | |
1598 | C compiler flags for WEBKIT, overriding pkg-config | |
1599 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
1600 | LIBFFI_CFLAGS | |
1601 | C compiler flags for LIBFFI, overriding pkg-config | |
1602 | LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config | |
9c60689e DWT |
1603 | OBJCXX Objective C++ compiler command |
1604 | OBJCXXFLAGS Objective C++ compiler flags | |
dbadc56a DWT |
1605 | |
1606 | Use these variables to override the choices made by `configure' or to help | |
1607 | it to find libraries and programs with nonstandard names/locations. | |
1608 | ||
c7aa54aa DWT |
1609 | Report bugs to <saurik@saurik.com>. |
1610 | Cycript home page: <http://www.cycript.org/>. | |
1611 | _ACEOF | |
1612 | ac_status=$? | |
1613 | fi | |
1614 | ||
1615 | if test "$ac_init_help" = "recursive"; then | |
1616 | # If there are subdirs, report their specific --help. | |
1617 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1618 | test -d "$ac_dir" || | |
1619 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1620 | continue | |
1621 | ac_builddir=. | |
1622 | ||
1623 | case "$ac_dir" in | |
1624 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1625 | *) | |
1626 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1627 | # A ".." for each directory in $ac_dir_suffix. | |
1628 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1629 | case $ac_top_builddir_sub in | |
1630 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1631 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1632 | esac ;; | |
1633 | esac | |
1634 | ac_abs_top_builddir=$ac_pwd | |
1635 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1636 | # for backward compatibility: | |
1637 | ac_top_builddir=$ac_top_build_prefix | |
1638 | ||
1639 | case $srcdir in | |
1640 | .) # We are building in place. | |
1641 | ac_srcdir=. | |
1642 | ac_top_srcdir=$ac_top_builddir_sub | |
1643 | ac_abs_top_srcdir=$ac_pwd ;; | |
1644 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1645 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1646 | ac_top_srcdir=$srcdir | |
1647 | ac_abs_top_srcdir=$srcdir ;; | |
1648 | *) # Relative name. | |
1649 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1650 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1651 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1652 | esac | |
1653 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1654 | ||
1655 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1656 | # Check for guested configure. | |
1657 | if test -f "$ac_srcdir/configure.gnu"; then | |
1658 | echo && | |
1659 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1660 | elif test -f "$ac_srcdir/configure"; then | |
1661 | echo && | |
1662 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1663 | else | |
1664 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1665 | fi || ac_status=$? | |
1666 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1667 | done | |
1668 | fi | |
1669 | ||
1670 | test -n "$ac_init_help" && exit $ac_status | |
1671 | if $ac_init_version; then | |
1672 | cat <<\_ACEOF | |
1673 | Cycript configure 0.9 | |
9c60689e | 1674 | generated by GNU Autoconf 2.65 |
c7aa54aa DWT |
1675 | |
1676 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1677 | This configure script is free software; the Free Software Foundation | |
1678 | gives unlimited permission to copy, distribute and modify it. | |
1679 | _ACEOF | |
1680 | exit | |
1681 | fi | |
1682 | ||
1683 | ## ------------------------ ## | |
1684 | ## Autoconf initialization. ## | |
1685 | ## ------------------------ ## | |
dbadc56a | 1686 | |
35fa52c0 DWT |
1687 | # ac_fn_c_try_compile LINENO |
1688 | # -------------------------- | |
1689 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1690 | ac_fn_c_try_compile () | |
1691 | { | |
1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1693 | rm -f conftest.$ac_objext | |
1694 | if { { ac_try="$ac_compile" | |
1695 | case "(($ac_try" in | |
1696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1697 | *) ac_try_echo=$ac_try;; | |
1698 | esac | |
1699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1700 | $as_echo "$ac_try_echo"; } >&5 | |
1701 | (eval "$ac_compile") 2>conftest.err | |
1702 | ac_status=$? | |
1703 | if test -s conftest.err; then | |
1704 | grep -v '^ *+' conftest.err >conftest.er1 | |
1705 | cat conftest.er1 >&5 | |
1706 | mv -f conftest.er1 conftest.err | |
1707 | fi | |
1708 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1709 | test $ac_status = 0; } && { | |
1710 | test -z "$ac_c_werror_flag" || | |
1711 | test ! -s conftest.err | |
1712 | } && test -s conftest.$ac_objext; then : | |
1713 | ac_retval=0 | |
1714 | else | |
1715 | $as_echo "$as_me: failed program was:" >&5 | |
1716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1717 | ||
1718 | ac_retval=1 | |
1719 | fi | |
1720 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1721 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1722 | |
1723 | } # ac_fn_c_try_compile | |
1724 | ||
1725 | # ac_fn_c_try_link LINENO | |
1726 | # ----------------------- | |
1727 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1728 | ac_fn_c_try_link () | |
1729 | { | |
1730 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1732 | if { { ac_try="$ac_link" | |
1733 | case "(($ac_try" in | |
1734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1735 | *) ac_try_echo=$ac_try;; | |
1736 | esac | |
1737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1738 | $as_echo "$ac_try_echo"; } >&5 | |
1739 | (eval "$ac_link") 2>conftest.err | |
1740 | ac_status=$? | |
1741 | if test -s conftest.err; then | |
1742 | grep -v '^ *+' conftest.err >conftest.er1 | |
1743 | cat conftest.er1 >&5 | |
1744 | mv -f conftest.er1 conftest.err | |
1745 | fi | |
1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1747 | test $ac_status = 0; } && { | |
1748 | test -z "$ac_c_werror_flag" || | |
1749 | test ! -s conftest.err | |
1750 | } && test -s conftest$ac_exeext && { | |
1751 | test "$cross_compiling" = yes || | |
1752 | $as_test_x conftest$ac_exeext | |
1753 | }; then : | |
1754 | ac_retval=0 | |
1755 | else | |
1756 | $as_echo "$as_me: failed program was:" >&5 | |
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1758 | ||
1759 | ac_retval=1 | |
1760 | fi | |
1761 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1762 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1763 | # interfere with the next link command; also delete a directory that is | |
1764 | # left behind by Apple's compiler. We do this before executing the actions. | |
1765 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1766 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1767 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1768 | |
1769 | } # ac_fn_c_try_link | |
1770 | ||
9c60689e DWT |
1771 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1772 | # ------------------------------------------------------- | |
1773 | # Tests whether HEADER exists and can be compiled using the include files in | |
1774 | # INCLUDES, setting the cache variable VAR accordingly. | |
1775 | ac_fn_c_check_header_compile () | |
dbadc56a DWT |
1776 | { |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1779 | $as_echo_n "checking for $2... " >&6; } | |
1780 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1781 | $as_echo_n "(cached) " >&6 | |
1782 | else | |
1783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1784 | /* end confdefs.h. */ | |
1785 | $4 | |
1786 | #include <$2> | |
1787 | _ACEOF | |
1788 | if ac_fn_c_try_compile "$LINENO"; then : | |
1789 | eval "$3=yes" | |
1790 | else | |
1791 | eval "$3=no" | |
1792 | fi | |
1793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1794 | fi | |
1795 | eval ac_res=\$$3 | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1797 | $as_echo "$ac_res" >&6; } | |
1798 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1799 | ||
1800 | } # ac_fn_c_check_header_compile | |
1801 | ||
1802 | # ac_fn_c_try_cpp LINENO | |
1803 | # ---------------------- | |
1804 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1805 | ac_fn_c_try_cpp () | |
1806 | { | |
1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1808 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
dbadc56a DWT |
1809 | case "(($ac_try" in |
1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1811 | *) ac_try_echo=$ac_try;; | |
1812 | esac | |
1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1814 | $as_echo "$ac_try_echo"; } >&5 | |
9c60689e | 1815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
dbadc56a DWT |
1816 | ac_status=$? |
1817 | if test -s conftest.err; then | |
1818 | grep -v '^ *+' conftest.err >conftest.er1 | |
1819 | cat conftest.er1 >&5 | |
1820 | mv -f conftest.er1 conftest.err | |
1821 | fi | |
1822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9c60689e DWT |
1823 | test $ac_status = 0; } >/dev/null && { |
1824 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
dbadc56a | 1825 | test ! -s conftest.err |
9c60689e | 1826 | }; then : |
dbadc56a DWT |
1827 | ac_retval=0 |
1828 | else | |
1829 | $as_echo "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1831 | ||
9c60689e | 1832 | ac_retval=1 |
dbadc56a DWT |
1833 | fi |
1834 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1835 | as_fn_set_status $ac_retval |
dbadc56a | 1836 | |
9c60689e | 1837 | } # ac_fn_c_try_cpp |
35fa52c0 DWT |
1838 | |
1839 | # ac_fn_c_try_run LINENO | |
1840 | # ---------------------- | |
1841 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1842 | # that executables *can* be run. | |
1843 | ac_fn_c_try_run () | |
1844 | { | |
1845 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1846 | if { { ac_try="$ac_link" | |
1847 | case "(($ac_try" in | |
1848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1849 | *) ac_try_echo=$ac_try;; | |
1850 | esac | |
1851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1852 | $as_echo "$ac_try_echo"; } >&5 | |
1853 | (eval "$ac_link") 2>&5 | |
1854 | ac_status=$? | |
1855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1857 | { { case "(($ac_try" in | |
1858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1859 | *) ac_try_echo=$ac_try;; | |
1860 | esac | |
1861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1862 | $as_echo "$ac_try_echo"; } >&5 | |
1863 | (eval "$ac_try") 2>&5 | |
1864 | ac_status=$? | |
1865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1866 | test $ac_status = 0; }; }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1870 | $as_echo "$as_me: failed program was:" >&5 | |
1871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1872 | ||
1873 | ac_retval=$ac_status | |
1874 | fi | |
1875 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1876 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
9c60689e | 1877 | as_fn_set_status $ac_retval |
35fa52c0 DWT |
1878 | |
1879 | } # ac_fn_c_try_run | |
6b66678a | 1880 | |
9c60689e DWT |
1881 | # ac_fn_c_check_func LINENO FUNC VAR |
1882 | # ---------------------------------- | |
1883 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1884 | ac_fn_c_check_func () | |
6b66678a DWT |
1885 | { |
1886 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1888 | $as_echo_n "checking for $2... " >&6; } | |
1889 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1890 | $as_echo_n "(cached) " >&6 | |
6b66678a | 1891 | else |
9c60689e DWT |
1892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1893 | /* end confdefs.h. */ | |
1894 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1896 | #define $2 innocuous_$2 | |
6b66678a | 1897 | |
9c60689e DWT |
1898 | /* System header to define __stub macros and hopefully few prototypes, |
1899 | which can conflict with char $2 (); below. | |
1900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1901 | <limits.h> exists even on freestanding compilers. */ | |
1902 | ||
1903 | #ifdef __STDC__ | |
1904 | # include <limits.h> | |
1905 | #else | |
1906 | # include <assert.h> | |
1907 | #endif | |
1908 | ||
1909 | #undef $2 | |
1910 | ||
1911 | /* Override any GCC internal prototype to avoid an error. | |
1912 | Use char because int might match the return type of a GCC | |
1913 | builtin and then its argument prototype would still apply. */ | |
1914 | #ifdef __cplusplus | |
1915 | extern "C" | |
1916 | #endif | |
1917 | char $2 (); | |
1918 | /* The GNU C library defines this for functions which it implements | |
1919 | to always fail with ENOSYS. Some functions are actually named | |
1920 | something starting with __ and the normal name is an alias. */ | |
1921 | #if defined __stub_$2 || defined __stub___$2 | |
1922 | choke me | |
1923 | #endif | |
1924 | ||
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | return $2 (); | |
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | if ac_fn_c_try_link "$LINENO"; then : | |
1934 | eval "$3=yes" | |
1935 | else | |
1936 | eval "$3=no" | |
1937 | fi | |
1938 | rm -f core conftest.err conftest.$ac_objext \ | |
1939 | conftest$ac_exeext conftest.$ac_ext | |
6b66678a | 1940 | fi |
9c60689e DWT |
1941 | eval ac_res=\$$3 |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1943 | $as_echo "$ac_res" >&6; } | |
6b66678a | 1944 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
6b66678a | 1945 | |
9c60689e | 1946 | } # ac_fn_c_check_func |
6b66678a DWT |
1947 | |
1948 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1949 | # ------------------------------------------------------- | |
1950 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1951 | # the include files in INCLUDES and setting the cache variable VAR | |
1952 | # accordingly. | |
1953 | ac_fn_c_check_header_mongrel () | |
1954 | { | |
1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1956 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1958 | $as_echo_n "checking for $2... " >&6; } | |
1959 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1960 | $as_echo_n "(cached) " >&6 | |
1961 | fi | |
1962 | eval ac_res=\$$3 | |
1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1964 | $as_echo "$ac_res" >&6; } | |
1965 | else | |
1966 | # Is the header compilable? | |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1968 | $as_echo_n "checking $2 usability... " >&6; } | |
1969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1970 | /* end confdefs.h. */ | |
1971 | $4 | |
1972 | #include <$2> | |
1973 | _ACEOF | |
1974 | if ac_fn_c_try_compile "$LINENO"; then : | |
1975 | ac_header_compiler=yes | |
1976 | else | |
1977 | ac_header_compiler=no | |
1978 | fi | |
1979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1981 | $as_echo "$ac_header_compiler" >&6; } | |
1982 | ||
1983 | # Is the header present? | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1985 | $as_echo_n "checking $2 presence... " >&6; } | |
1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1987 | /* end confdefs.h. */ | |
1988 | #include <$2> | |
1989 | _ACEOF | |
1990 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1991 | ac_header_preproc=yes | |
1992 | else | |
1993 | ac_header_preproc=no | |
1994 | fi | |
1995 | rm -f conftest.err conftest.$ac_ext | |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1997 | $as_echo "$ac_header_preproc" >&6; } | |
1998 | ||
1999 | # So? What about this header? | |
2000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2001 | yes:no: ) | |
2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2003 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2005 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2006 | ;; | |
2007 | no:yes:* ) | |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2009 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2011 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2013 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2015 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2017 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2018 | ( cat <<\_ASBOX | |
2019 | ## -------------------------------- ## | |
2020 | ## Report this to saurik@saurik.com ## | |
2021 | ## -------------------------------- ## | |
2022 | _ASBOX | |
2023 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2024 | ;; | |
2025 | esac | |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2027 | $as_echo_n "checking for $2... " >&6; } | |
2028 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2029 | $as_echo_n "(cached) " >&6 | |
2030 | else | |
2031 | eval "$3=\$ac_header_compiler" | |
2032 | fi | |
2033 | eval ac_res=\$$3 | |
2034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2035 | $as_echo "$ac_res" >&6; } | |
2036 | fi | |
2037 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2038 | ||
2039 | } # ac_fn_c_check_header_mongrel | |
2040 | ||
9c60689e DWT |
2041 | # ac_fn_cxx_try_compile LINENO |
2042 | # ---------------------------- | |
2043 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2044 | ac_fn_cxx_try_compile () | |
6b66678a DWT |
2045 | { |
2046 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9c60689e DWT |
2047 | rm -f conftest.$ac_objext |
2048 | if { { ac_try="$ac_compile" | |
2049 | case "(($ac_try" in | |
2050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2051 | *) ac_try_echo=$ac_try;; | |
2052 | esac | |
2053 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2054 | $as_echo "$ac_try_echo"; } >&5 | |
2055 | (eval "$ac_compile") 2>conftest.err | |
2056 | ac_status=$? | |
2057 | if test -s conftest.err; then | |
2058 | grep -v '^ *+' conftest.err >conftest.er1 | |
2059 | cat conftest.er1 >&5 | |
2060 | mv -f conftest.er1 conftest.err | |
2061 | fi | |
2062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2063 | test $ac_status = 0; } && { | |
2064 | test -z "$ac_cxx_werror_flag" || | |
2065 | test ! -s conftest.err | |
2066 | } && test -s conftest.$ac_objext; then : | |
2067 | ac_retval=0 | |
2068 | else | |
2069 | $as_echo "$as_me: failed program was:" >&5 | |
2070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2071 | ||
2072 | ac_retval=1 | |
2073 | fi | |
2074 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2075 | as_fn_set_status $ac_retval | |
2076 | ||
2077 | } # ac_fn_cxx_try_compile | |
2078 | ||
2079 | # ac_fn_cxx_try_cpp LINENO | |
2080 | # ------------------------ | |
2081 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2082 | ac_fn_cxx_try_cpp () | |
2083 | { | |
2084 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2085 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2086 | case "(($ac_try" in | |
2087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2088 | *) ac_try_echo=$ac_try;; | |
2089 | esac | |
2090 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2091 | $as_echo "$ac_try_echo"; } >&5 | |
2092 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2093 | ac_status=$? | |
2094 | if test -s conftest.err; then | |
2095 | grep -v '^ *+' conftest.err >conftest.er1 | |
2096 | cat conftest.er1 >&5 | |
2097 | mv -f conftest.er1 conftest.err | |
2098 | fi | |
2099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2100 | test $ac_status = 0; } >/dev/null && { | |
2101 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
2102 | test ! -s conftest.err | |
2103 | }; then : | |
2104 | ac_retval=0 | |
2105 | else | |
2106 | $as_echo "$as_me: failed program was:" >&5 | |
2107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2108 | ||
2109 | ac_retval=1 | |
2110 | fi | |
2111 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2112 | as_fn_set_status $ac_retval | |
2113 | ||
2114 | } # ac_fn_cxx_try_cpp | |
2115 | ||
2116 | # ac_fn_cxx_try_link LINENO | |
2117 | # ------------------------- | |
2118 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2119 | ac_fn_cxx_try_link () | |
2120 | { | |
2121 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2123 | if { { ac_try="$ac_link" | |
2124 | case "(($ac_try" in | |
2125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2126 | *) ac_try_echo=$ac_try;; | |
2127 | esac | |
2128 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2129 | $as_echo "$ac_try_echo"; } >&5 | |
2130 | (eval "$ac_link") 2>conftest.err | |
2131 | ac_status=$? | |
2132 | if test -s conftest.err; then | |
2133 | grep -v '^ *+' conftest.err >conftest.er1 | |
2134 | cat conftest.er1 >&5 | |
2135 | mv -f conftest.er1 conftest.err | |
2136 | fi | |
2137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2138 | test $ac_status = 0; } && { | |
2139 | test -z "$ac_cxx_werror_flag" || | |
2140 | test ! -s conftest.err | |
2141 | } && test -s conftest$ac_exeext && { | |
2142 | test "$cross_compiling" = yes || | |
2143 | $as_test_x conftest$ac_exeext | |
2144 | }; then : | |
2145 | ac_retval=0 | |
2146 | else | |
2147 | $as_echo "$as_me: failed program was:" >&5 | |
2148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2149 | ||
2150 | ac_retval=1 | |
2151 | fi | |
2152 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2153 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2154 | # interfere with the next link command; also delete a directory that is | |
2155 | # left behind by Apple's compiler. We do this before executing the actions. | |
2156 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2157 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2158 | as_fn_set_status $ac_retval | |
2159 | ||
2160 | } # ac_fn_cxx_try_link | |
2161 | ||
2162 | # ac_fn_objcxx_try_compile LINENO | |
2163 | # ------------------------------- | |
2164 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2165 | ac_fn_objcxx_try_compile () | |
2166 | { | |
2167 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2168 | rm -f conftest.$ac_objext | |
2169 | if { { ac_try="$ac_compile" | |
2170 | case "(($ac_try" in | |
2171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2172 | *) ac_try_echo=$ac_try;; | |
2173 | esac | |
2174 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2175 | $as_echo "$ac_try_echo"; } >&5 | |
2176 | (eval "$ac_compile") 2>conftest.err | |
2177 | ac_status=$? | |
2178 | if test -s conftest.err; then | |
2179 | grep -v '^ *+' conftest.err >conftest.er1 | |
2180 | cat conftest.er1 >&5 | |
2181 | mv -f conftest.er1 conftest.err | |
2182 | fi | |
2183 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2184 | test $ac_status = 0; } && { | |
2185 | test -z "$ac_objcxx_werror_flag" || | |
2186 | test ! -s conftest.err | |
2187 | } && test -s conftest.$ac_objext; then : | |
2188 | ac_retval=0 | |
2189 | else | |
2190 | $as_echo "$as_me: failed program was:" >&5 | |
2191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2192 | ||
2193 | ac_retval=1 | |
2194 | fi | |
2195 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2196 | as_fn_set_status $ac_retval | |
2197 | ||
2198 | } # ac_fn_objcxx_try_compile | |
c7aa54aa DWT |
2199 | cat >config.log <<_ACEOF |
2200 | This file contains any messages produced by compilers while | |
2201 | running configure, to aid debugging if configure makes a mistake. | |
2202 | ||
2203 | It was created by Cycript $as_me 0.9, which was | |
9c60689e | 2204 | generated by GNU Autoconf 2.65. Invocation command line was |
c7aa54aa DWT |
2205 | |
2206 | $ $0 $@ | |
2207 | ||
2208 | _ACEOF | |
2209 | exec 5>>config.log | |
2210 | { | |
2211 | cat <<_ASUNAME | |
2212 | ## --------- ## | |
2213 | ## Platform. ## | |
2214 | ## --------- ## | |
2215 | ||
2216 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2217 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2218 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2219 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2220 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2221 | ||
2222 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2223 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2224 | ||
2225 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2226 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2227 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2228 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2229 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2230 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2231 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2232 | ||
2233 | _ASUNAME | |
2234 | ||
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2236 | for as_dir in $PATH | |
2237 | do | |
2238 | IFS=$as_save_IFS | |
2239 | test -z "$as_dir" && as_dir=. | |
2240 | $as_echo "PATH: $as_dir" | |
2241 | done | |
2242 | IFS=$as_save_IFS | |
2243 | ||
2244 | } >&5 | |
2245 | ||
2246 | cat >&5 <<_ACEOF | |
2247 | ||
2248 | ||
2249 | ## ----------- ## | |
2250 | ## Core tests. ## | |
2251 | ## ----------- ## | |
2252 | ||
2253 | _ACEOF | |
2254 | ||
2255 | ||
2256 | # Keep a trace of the command line. | |
2257 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2258 | # Strip out --silent because we don't want to record it for future runs. | |
2259 | # Also quote any args containing shell meta-characters. | |
2260 | # Make two passes to allow for proper duplicate-argument suppression. | |
2261 | ac_configure_args= | |
2262 | ac_configure_args0= | |
2263 | ac_configure_args1= | |
2264 | ac_must_keep_next=false | |
2265 | for ac_pass in 1 2 | |
2266 | do | |
2267 | for ac_arg | |
2268 | do | |
2269 | case $ac_arg in | |
2270 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2271 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2272 | | -silent | --silent | --silen | --sile | --sil) | |
2273 | continue ;; | |
2274 | *\'*) | |
2275 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2276 | esac | |
2277 | case $ac_pass in | |
2278 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2279 | 2) | |
2280 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2281 | if test $ac_must_keep_next = true; then | |
2282 | ac_must_keep_next=false # Got value, back to normal. | |
2283 | else | |
2284 | case $ac_arg in | |
2285 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2286 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2287 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2288 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2289 | case "$ac_configure_args0 " in | |
2290 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2291 | esac | |
2292 | ;; | |
2293 | -* ) ac_must_keep_next=true ;; | |
2294 | esac | |
2295 | fi | |
2296 | as_fn_append ac_configure_args " '$ac_arg'" | |
2297 | ;; | |
2298 | esac | |
2299 | done | |
2300 | done | |
2301 | { ac_configure_args0=; unset ac_configure_args0;} | |
2302 | { ac_configure_args1=; unset ac_configure_args1;} | |
2303 | ||
2304 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2305 | # config.log. We remove comments because anyway the quotes in there | |
2306 | # would cause problems or look ugly. | |
2307 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2308 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2309 | trap 'exit_status=$? | |
2310 | # Save into config.log some information that might help in debugging. | |
2311 | { | |
2312 | echo | |
2313 | ||
2314 | cat <<\_ASBOX | |
2315 | ## ---------------- ## | |
2316 | ## Cache variables. ## | |
2317 | ## ---------------- ## | |
2318 | _ASBOX | |
2319 | echo | |
2320 | # The following way of writing the cache mishandles newlines in values, | |
2321 | ( | |
2322 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2323 | eval ac_val=\$$ac_var | |
2324 | case $ac_val in #( | |
2325 | *${as_nl}*) | |
2326 | case $ac_var in #( | |
2327 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2328 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2329 | esac | |
2330 | case $ac_var in #( | |
2331 | _ | IFS | as_nl) ;; #( | |
2332 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2333 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2334 | esac ;; | |
2335 | esac | |
2336 | done | |
2337 | (set) 2>&1 | | |
2338 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2339 | *${as_nl}ac_space=\ *) | |
2340 | sed -n \ | |
2341 | "s/'\''/'\''\\\\'\'''\''/g; | |
2342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2343 | ;; #( | |
2344 | *) | |
2345 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2346 | ;; | |
2347 | esac | | |
2348 | sort | |
2349 | ) | |
2350 | echo | |
2351 | ||
2352 | cat <<\_ASBOX | |
2353 | ## ----------------- ## | |
2354 | ## Output variables. ## | |
2355 | ## ----------------- ## | |
2356 | _ASBOX | |
2357 | echo | |
2358 | for ac_var in $ac_subst_vars | |
2359 | do | |
2360 | eval ac_val=\$$ac_var | |
2361 | case $ac_val in | |
2362 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2363 | esac | |
2364 | $as_echo "$ac_var='\''$ac_val'\''" | |
2365 | done | sort | |
2366 | echo | |
2367 | ||
2368 | if test -n "$ac_subst_files"; then | |
2369 | cat <<\_ASBOX | |
2370 | ## ------------------- ## | |
2371 | ## File substitutions. ## | |
2372 | ## ------------------- ## | |
2373 | _ASBOX | |
2374 | echo | |
2375 | for ac_var in $ac_subst_files | |
2376 | do | |
2377 | eval ac_val=\$$ac_var | |
2378 | case $ac_val in | |
2379 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2380 | esac | |
2381 | $as_echo "$ac_var='\''$ac_val'\''" | |
2382 | done | sort | |
2383 | echo | |
2384 | fi | |
2385 | ||
2386 | if test -s confdefs.h; then | |
2387 | cat <<\_ASBOX | |
2388 | ## ----------- ## | |
2389 | ## confdefs.h. ## | |
2390 | ## ----------- ## | |
2391 | _ASBOX | |
2392 | echo | |
2393 | cat confdefs.h | |
2394 | echo | |
2395 | fi | |
2396 | test "$ac_signal" != 0 && | |
2397 | $as_echo "$as_me: caught signal $ac_signal" | |
2398 | $as_echo "$as_me: exit $exit_status" | |
2399 | } >&5 | |
2400 | rm -f core *.core core.conftest.* && | |
2401 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2402 | exit $exit_status | |
2403 | ' 0 | |
2404 | for ac_signal in 1 2 13 15; do | |
2405 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2406 | done | |
2407 | ac_signal=0 | |
2408 | ||
2409 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2410 | rm -f -r conftest* confdefs.h | |
2411 | ||
2412 | $as_echo "/* confdefs.h */" > confdefs.h | |
2413 | ||
2414 | # Predefined preprocessor variables. | |
2415 | ||
2416 | cat >>confdefs.h <<_ACEOF | |
2417 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2418 | _ACEOF | |
2419 | ||
2420 | cat >>confdefs.h <<_ACEOF | |
2421 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2422 | _ACEOF | |
2423 | ||
2424 | cat >>confdefs.h <<_ACEOF | |
2425 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2426 | _ACEOF | |
2427 | ||
2428 | cat >>confdefs.h <<_ACEOF | |
2429 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2430 | _ACEOF | |
2431 | ||
2432 | cat >>confdefs.h <<_ACEOF | |
2433 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2434 | _ACEOF | |
2435 | ||
2436 | cat >>confdefs.h <<_ACEOF | |
2437 | #define PACKAGE_URL "$PACKAGE_URL" | |
2438 | _ACEOF | |
2439 | ||
2440 | ||
2441 | # Let the site file select an alternate cache file if it wants to. | |
2442 | # Prefer an explicitly selected file to automatically selected ones. | |
2443 | ac_site_file1=NONE | |
2444 | ac_site_file2=NONE | |
2445 | if test -n "$CONFIG_SITE"; then | |
2446 | ac_site_file1=$CONFIG_SITE | |
2447 | elif test "x$prefix" != xNONE; then | |
2448 | ac_site_file1=$prefix/share/config.site | |
2449 | ac_site_file2=$prefix/etc/config.site | |
2450 | else | |
2451 | ac_site_file1=$ac_default_prefix/share/config.site | |
2452 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2453 | fi | |
2454 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2455 | do | |
2456 | test "x$ac_site_file" = xNONE && continue | |
9c60689e | 2457 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
c7aa54aa DWT |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2459 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2460 | sed 's/^/| /' "$ac_site_file" >&5 | |
2461 | . "$ac_site_file" | |
2462 | fi | |
2463 | done | |
2464 | ||
2465 | if test -r "$cache_file"; then | |
9c60689e DWT |
2466 | # Some versions of bash will fail to source /dev/null (special files |
2467 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2468 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c7aa54aa DWT |
2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2470 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2471 | case $cache_file in | |
2472 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2473 | *) . "./$cache_file";; | |
2474 | esac | |
2475 | fi | |
2476 | else | |
2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2478 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2479 | >$cache_file | |
2480 | fi | |
2481 | ||
2482 | # Check that the precious variables saved in the cache have kept the same | |
2483 | # value. | |
2484 | ac_cache_corrupted=false | |
2485 | for ac_var in $ac_precious_vars; do | |
2486 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2487 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2488 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2489 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2490 | case $ac_old_set,$ac_new_set in | |
2491 | set,) | |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2493 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2494 | ac_cache_corrupted=: ;; | |
2495 | ,set) | |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2497 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2498 | ac_cache_corrupted=: ;; | |
2499 | ,);; | |
2500 | *) | |
2501 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2502 | # differences in whitespace do not lead to failure. | |
2503 | ac_old_val_w=`echo x $ac_old_val` | |
2504 | ac_new_val_w=`echo x $ac_new_val` | |
2505 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2507 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2508 | ac_cache_corrupted=: | |
2509 | else | |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2511 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2512 | eval $ac_var=\$ac_old_val | |
2513 | fi | |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2515 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2516 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2517 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2518 | fi;; | |
2519 | esac | |
2520 | # Pass precious variables to config.status. | |
2521 | if test "$ac_new_set" = set; then | |
2522 | case $ac_new_val in | |
2523 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2524 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2525 | esac | |
2526 | case " $ac_configure_args " in | |
2527 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2528 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2529 | esac | |
2530 | fi | |
2531 | done | |
2532 | if $ac_cache_corrupted; then | |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2536 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2537 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2538 | fi | |
2539 | ## -------------------- ## | |
2540 | ## Main body of script. ## | |
2541 | ## -------------------- ## | |
2542 | ||
2543 | ac_ext=c | |
2544 | ac_cpp='$CPP $CPPFLAGS' | |
2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2548 | ||
2549 | ||
35fa52c0 | 2550 | |
6b66678a DWT |
2551 | ac_aux_dir= |
2552 | for ac_dir in . "$srcdir"/.; do | |
2553 | for ac_t in install-sh install.sh shtool; do | |
2554 | if test -f "$ac_dir/$ac_t"; then | |
2555 | ac_aux_dir=$ac_dir | |
2556 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2557 | break 2 | |
2558 | fi | |
2559 | done | |
2560 | done | |
2561 | if test -z "$ac_aux_dir"; then | |
2562 | as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 | |
2563 | fi | |
2564 | ||
2565 | # These three variables are undocumented and unsupported, | |
2566 | # and are intended to be withdrawn in a future Autoconf release. | |
2567 | # They can cause serious problems if a builder's source tree is in a directory | |
2568 | # whose full name contains unusual characters. | |
2569 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2570 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2571 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2572 | ||
2573 | ||
9c60689e DWT |
2574 | case `pwd` in |
2575 | *\ * | *\ *) | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
2577 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
2578 | esac | |
2579 | ||
2580 | ||
2581 | ||
2582 | macro_version='2.2.6b' | |
2583 | macro_revision='1.3017' | |
2584 | ||
2585 | ||
2586 | ||
2587 | ||
2588 | ||
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ||
2597 | ltmain="$ac_aux_dir/ltmain.sh" | |
2598 | ||
2599 | # Make sure we can run config.sub. | |
2600 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2601 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2602 | ||
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2604 | $as_echo_n "checking build system type... " >&6; } | |
2605 | if test "${ac_cv_build+set}" = set; then : | |
2606 | $as_echo_n "(cached) " >&6 | |
2607 | else | |
2608 | ac_build_alias=$build_alias | |
2609 | test "x$ac_build_alias" = x && | |
2610 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2611 | test "x$ac_build_alias" = x && | |
2612 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2613 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2614 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2615 | ||
2616 | fi | |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2618 | $as_echo "$ac_cv_build" >&6; } | |
2619 | case $ac_cv_build in | |
2620 | *-*-*) ;; | |
2621 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2622 | esac | |
2623 | build=$ac_cv_build | |
2624 | ac_save_IFS=$IFS; IFS='-' | |
2625 | set x $ac_cv_build | |
2626 | shift | |
2627 | build_cpu=$1 | |
2628 | build_vendor=$2 | |
2629 | shift; shift | |
2630 | # Remember, the first character of IFS is used to create $*, | |
2631 | # except with old shells: | |
2632 | build_os=$* | |
2633 | IFS=$ac_save_IFS | |
2634 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2635 | ||
2636 | ||
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2638 | $as_echo_n "checking host system type... " >&6; } | |
2639 | if test "${ac_cv_host+set}" = set; then : | |
2640 | $as_echo_n "(cached) " >&6 | |
2641 | else | |
2642 | if test "x$host_alias" = x; then | |
2643 | ac_cv_host=$ac_cv_build | |
2644 | else | |
2645 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2646 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2647 | fi | |
2648 | ||
2649 | fi | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2651 | $as_echo "$ac_cv_host" >&6; } | |
2652 | case $ac_cv_host in | |
2653 | *-*-*) ;; | |
2654 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2655 | esac | |
2656 | host=$ac_cv_host | |
2657 | ac_save_IFS=$IFS; IFS='-' | |
2658 | set x $ac_cv_host | |
2659 | shift | |
2660 | host_cpu=$1 | |
2661 | host_vendor=$2 | |
2662 | shift; shift | |
2663 | # Remember, the first character of IFS is used to create $*, | |
2664 | # except with old shells: | |
2665 | host_os=$* | |
2666 | IFS=$ac_save_IFS | |
2667 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2668 | ||
2669 | ||
2670 | ac_ext=c | |
2671 | ac_cpp='$CPP $CPPFLAGS' | |
2672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2675 | if test -n "$ac_tool_prefix"; then | |
2676 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2677 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
dbadc56a DWT |
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2679 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 2680 | if test "${ac_cv_prog_CC+set}" = set; then : |
dbadc56a DWT |
2681 | $as_echo_n "(cached) " >&6 |
2682 | else | |
9c60689e DWT |
2683 | if test -n "$CC"; then |
2684 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dbadc56a DWT |
2685 | else |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
2691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 2693 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
dbadc56a DWT |
2694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2695 | break 2 | |
2696 | fi | |
2697 | done | |
2698 | done | |
2699 | IFS=$as_save_IFS | |
2700 | ||
2701 | fi | |
2702 | fi | |
9c60689e DWT |
2703 | CC=$ac_cv_prog_CC |
2704 | if test -n "$CC"; then | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2706 | $as_echo "$CC" >&6; } | |
35fa52c0 DWT |
2707 | else |
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2709 | $as_echo "no" >&6; } | |
2710 | fi | |
2711 | ||
2712 | ||
2713 | fi | |
2714 | if test -z "$ac_cv_prog_CC"; then | |
2715 | ac_ct_CC=$CC | |
2716 | # Extract the first word of "gcc", so it can be a program name with args. | |
2717 | set dummy gcc; ac_word=$2 | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2719 | $as_echo_n "checking for $ac_word... " >&6; } | |
2720 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2721 | $as_echo_n "(cached) " >&6 | |
2722 | else | |
2723 | if test -n "$ac_ct_CC"; then | |
2724 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2725 | else | |
2726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2727 | for as_dir in $PATH | |
2728 | do | |
2729 | IFS=$as_save_IFS | |
2730 | test -z "$as_dir" && as_dir=. | |
2731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2733 | ac_cv_prog_ac_ct_CC="gcc" | |
2734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2735 | break 2 | |
2736 | fi | |
2737 | done | |
2738 | done | |
2739 | IFS=$as_save_IFS | |
2740 | ||
2741 | fi | |
2742 | fi | |
2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2744 | if test -n "$ac_ct_CC"; then | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2746 | $as_echo "$ac_ct_CC" >&6; } | |
2747 | else | |
2748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2749 | $as_echo "no" >&6; } | |
2750 | fi | |
2751 | ||
2752 | if test "x$ac_ct_CC" = x; then | |
2753 | CC="" | |
2754 | else | |
2755 | case $cross_compiling:$ac_tool_warned in | |
2756 | yes:) | |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2758 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2759 | ac_tool_warned=yes ;; | |
2760 | esac | |
2761 | CC=$ac_ct_CC | |
2762 | fi | |
2763 | else | |
2764 | CC="$ac_cv_prog_CC" | |
2765 | fi | |
2766 | ||
2767 | if test -z "$CC"; then | |
2768 | if test -n "$ac_tool_prefix"; then | |
2769 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2770 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2772 | $as_echo_n "checking for $ac_word... " >&6; } | |
2773 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2774 | $as_echo_n "(cached) " >&6 | |
2775 | else | |
2776 | if test -n "$CC"; then | |
2777 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2778 | else | |
2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2780 | for as_dir in $PATH | |
2781 | do | |
2782 | IFS=$as_save_IFS | |
2783 | test -z "$as_dir" && as_dir=. | |
2784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2786 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2788 | break 2 | |
2789 | fi | |
2790 | done | |
2791 | done | |
2792 | IFS=$as_save_IFS | |
2793 | ||
2794 | fi | |
2795 | fi | |
2796 | CC=$ac_cv_prog_CC | |
2797 | if test -n "$CC"; then | |
2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2799 | $as_echo "$CC" >&6; } | |
2800 | else | |
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2802 | $as_echo "no" >&6; } | |
2803 | fi | |
2804 | ||
2805 | ||
2806 | fi | |
2807 | fi | |
2808 | if test -z "$CC"; then | |
2809 | # Extract the first word of "cc", so it can be a program name with args. | |
2810 | set dummy cc; ac_word=$2 | |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2812 | $as_echo_n "checking for $ac_word... " >&6; } | |
2813 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2814 | $as_echo_n "(cached) " >&6 | |
2815 | else | |
2816 | if test -n "$CC"; then | |
2817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2818 | else | |
2819 | ac_prog_rejected=no | |
2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2821 | for as_dir in $PATH | |
2822 | do | |
2823 | IFS=$as_save_IFS | |
2824 | test -z "$as_dir" && as_dir=. | |
2825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2827 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2828 | ac_prog_rejected=yes | |
2829 | continue | |
2830 | fi | |
2831 | ac_cv_prog_CC="cc" | |
2832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2833 | break 2 | |
2834 | fi | |
2835 | done | |
2836 | done | |
2837 | IFS=$as_save_IFS | |
2838 | ||
2839 | if test $ac_prog_rejected = yes; then | |
2840 | # We found a bogon in the path, so make sure we never use it. | |
2841 | set dummy $ac_cv_prog_CC | |
2842 | shift | |
2843 | if test $# != 0; then | |
2844 | # We chose a different compiler from the bogus one. | |
2845 | # However, it has the same basename, so the bogon will be chosen | |
2846 | # first if we set CC to just the basename; use the full file name. | |
2847 | shift | |
2848 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2849 | fi | |
2850 | fi | |
2851 | fi | |
2852 | fi | |
2853 | CC=$ac_cv_prog_CC | |
2854 | if test -n "$CC"; then | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2856 | $as_echo "$CC" >&6; } | |
2857 | else | |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2859 | $as_echo "no" >&6; } | |
2860 | fi | |
2861 | ||
2862 | ||
2863 | fi | |
2864 | if test -z "$CC"; then | |
2865 | if test -n "$ac_tool_prefix"; then | |
2866 | for ac_prog in cl.exe | |
2867 | do | |
2868 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2869 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2871 | $as_echo_n "checking for $ac_word... " >&6; } | |
2872 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2873 | $as_echo_n "(cached) " >&6 | |
2874 | else | |
2875 | if test -n "$CC"; then | |
2876 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2877 | else | |
2878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2879 | for as_dir in $PATH | |
2880 | do | |
2881 | IFS=$as_save_IFS | |
2882 | test -z "$as_dir" && as_dir=. | |
2883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2885 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2887 | break 2 | |
2888 | fi | |
2889 | done | |
2890 | done | |
2891 | IFS=$as_save_IFS | |
2892 | ||
2893 | fi | |
2894 | fi | |
2895 | CC=$ac_cv_prog_CC | |
2896 | if test -n "$CC"; then | |
2897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2898 | $as_echo "$CC" >&6; } | |
2899 | else | |
2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2901 | $as_echo "no" >&6; } | |
2902 | fi | |
2903 | ||
2904 | ||
2905 | test -n "$CC" && break | |
2906 | done | |
2907 | fi | |
2908 | if test -z "$CC"; then | |
2909 | ac_ct_CC=$CC | |
2910 | for ac_prog in cl.exe | |
2911 | do | |
2912 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2913 | set dummy $ac_prog; ac_word=$2 | |
2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2915 | $as_echo_n "checking for $ac_word... " >&6; } | |
2916 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2917 | $as_echo_n "(cached) " >&6 | |
2918 | else | |
2919 | if test -n "$ac_ct_CC"; then | |
2920 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2921 | else | |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
2927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2929 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2931 | break 2 | |
2932 | fi | |
2933 | done | |
2934 | done | |
2935 | IFS=$as_save_IFS | |
2936 | ||
2937 | fi | |
2938 | fi | |
2939 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2940 | if test -n "$ac_ct_CC"; then | |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2942 | $as_echo "$ac_ct_CC" >&6; } | |
2943 | else | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2945 | $as_echo "no" >&6; } | |
2946 | fi | |
2947 | ||
2948 | ||
2949 | test -n "$ac_ct_CC" && break | |
2950 | done | |
2951 | ||
2952 | if test "x$ac_ct_CC" = x; then | |
2953 | CC="" | |
2954 | else | |
2955 | case $cross_compiling:$ac_tool_warned in | |
2956 | yes:) | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2958 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2959 | ac_tool_warned=yes ;; | |
2960 | esac | |
2961 | CC=$ac_ct_CC | |
2962 | fi | |
2963 | fi | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | ||
2968 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2970 | as_fn_error "no acceptable C compiler found in \$PATH | |
2971 | See \`config.log' for more details." "$LINENO" 5; } | |
2972 | ||
2973 | # Provide some information about the compiler. | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2975 | set X $ac_compile | |
2976 | ac_compiler=$2 | |
2977 | for ac_option in --version -v -V -qversion; do | |
2978 | { { ac_try="$ac_compiler $ac_option >&5" | |
2979 | case "(($ac_try" in | |
2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2981 | *) ac_try_echo=$ac_try;; | |
2982 | esac | |
2983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2984 | $as_echo "$ac_try_echo"; } >&5 | |
2985 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2986 | ac_status=$? | |
2987 | if test -s conftest.err; then | |
2988 | sed '10a\ | |
2989 | ... rest of stderr output deleted ... | |
2990 | 10q' conftest.err >conftest.er1 | |
2991 | cat conftest.er1 >&5 | |
35fa52c0 | 2992 | fi |
9c60689e | 2993 | rm -f conftest.er1 conftest.err |
35fa52c0 DWT |
2994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2995 | test $ac_status = 0; } | |
2996 | done | |
2997 | ||
2998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2999 | /* end confdefs.h. */ | |
9c60689e | 3000 | |
35fa52c0 DWT |
3001 | int |
3002 | main () | |
3003 | { | |
35fa52c0 DWT |
3004 | |
3005 | ; | |
3006 | return 0; | |
3007 | } | |
3008 | _ACEOF | |
3009 | ac_clean_files_save=$ac_clean_files | |
9c60689e | 3010 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
35fa52c0 DWT |
3011 | # Try to create an executable without -o first, disregard a.out. |
3012 | # It will help us diagnose broken compilers, and finding out an intuition | |
3013 | # of exeext. | |
9c60689e DWT |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3015 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
35fa52c0 DWT |
3016 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3017 | ||
3018 | # The possible output files: | |
3019 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3020 | ||
3021 | ac_rmfiles= | |
3022 | for ac_file in $ac_files | |
3023 | do | |
3024 | case $ac_file in | |
3025 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3026 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3027 | esac | |
3028 | done | |
3029 | rm -f $ac_rmfiles | |
3030 | ||
3031 | if { { ac_try="$ac_link_default" | |
3032 | case "(($ac_try" in | |
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3034 | *) ac_try_echo=$ac_try;; | |
3035 | esac | |
3036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3037 | $as_echo "$ac_try_echo"; } >&5 | |
3038 | (eval "$ac_link_default") 2>&5 | |
3039 | ac_status=$? | |
3040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3041 | test $ac_status = 0; }; then : | |
3042 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3043 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3044 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3045 | # so that the user can short-circuit this test for compilers unknown to | |
3046 | # Autoconf. | |
3047 | for ac_file in $ac_files '' | |
3048 | do | |
3049 | test -f "$ac_file" || continue | |
3050 | case $ac_file in | |
3051 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3052 | ;; | |
3053 | [ab].out ) | |
3054 | # We found the default executable, but exeext='' is most | |
3055 | # certainly right. | |
3056 | break;; | |
3057 | *.* ) | |
3058 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3059 | then :; else | |
3060 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3061 | fi | |
3062 | # We set ac_cv_exeext here because the later test for it is not | |
3063 | # safe: cross compilers may not add the suffix if given an `-o' | |
3064 | # argument, so we may need to know it at that point already. | |
3065 | # Even if this section looks crufty: it has the advantage of | |
3066 | # actually working. | |
3067 | break;; | |
3068 | * ) | |
3069 | break;; | |
3070 | esac | |
3071 | done | |
3072 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3073 | ||
3074 | else | |
3075 | ac_file='' | |
3076 | fi | |
35fa52c0 | 3077 | if test -z "$ac_file"; then : |
9c60689e DWT |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3079 | $as_echo "no" >&6; } | |
3080 | $as_echo "$as_me: failed program was:" >&5 | |
35fa52c0 DWT |
3081 | sed 's/^/| /' conftest.$ac_ext >&5 |
3082 | ||
3083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3085 | { as_fn_set_status 77 | |
3086 | as_fn_error "C compiler cannot create executables | |
3087 | See \`config.log' for more details." "$LINENO" 5; }; } | |
9c60689e DWT |
3088 | else |
3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3090 | $as_echo "yes" >&6; } | |
35fa52c0 | 3091 | fi |
9c60689e DWT |
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3093 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3095 | $as_echo "$ac_file" >&6; } | |
35fa52c0 DWT |
3096 | ac_exeext=$ac_cv_exeext |
3097 | ||
9c60689e | 3098 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
35fa52c0 | 3099 | ac_clean_files=$ac_clean_files_save |
35fa52c0 DWT |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3101 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3102 | if { { ac_try="$ac_link" | |
3103 | case "(($ac_try" in | |
3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3105 | *) ac_try_echo=$ac_try;; | |
3106 | esac | |
3107 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3108 | $as_echo "$ac_try_echo"; } >&5 | |
3109 | (eval "$ac_link") 2>&5 | |
3110 | ac_status=$? | |
3111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3112 | test $ac_status = 0; }; then : | |
3113 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3114 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3115 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3116 | # `rm'. | |
3117 | for ac_file in conftest.exe conftest conftest.*; do | |
3118 | test -f "$ac_file" || continue | |
3119 | case $ac_file in | |
3120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3121 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3122 | break;; | |
3123 | * ) break;; | |
3124 | esac | |
3125 | done | |
3126 | else | |
3127 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3128 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3129 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3130 | See \`config.log' for more details." "$LINENO" 5; } | |
3131 | fi | |
9c60689e | 3132 | rm -f conftest conftest$ac_cv_exeext |
35fa52c0 DWT |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3134 | $as_echo "$ac_cv_exeext" >&6; } | |
3135 | ||
3136 | rm -f conftest.$ac_ext | |
3137 | EXEEXT=$ac_cv_exeext | |
3138 | ac_exeext=$EXEEXT | |
9c60689e DWT |
3139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3140 | /* end confdefs.h. */ | |
3141 | #include <stdio.h> | |
3142 | int | |
3143 | main () | |
3144 | { | |
3145 | FILE *f = fopen ("conftest.out", "w"); | |
3146 | return ferror (f) || fclose (f) != 0; | |
3147 | ||
3148 | ; | |
3149 | return 0; | |
3150 | } | |
3151 | _ACEOF | |
3152 | ac_clean_files="$ac_clean_files conftest.out" | |
3153 | # Check that the compiler produces executables we can run. If not, either | |
3154 | # the compiler is broken, or we cross compile. | |
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3156 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3157 | if test "$cross_compiling" != yes; then | |
3158 | { { ac_try="$ac_link" | |
3159 | case "(($ac_try" in | |
3160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3161 | *) ac_try_echo=$ac_try;; | |
3162 | esac | |
3163 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3164 | $as_echo "$ac_try_echo"; } >&5 | |
3165 | (eval "$ac_link") 2>&5 | |
3166 | ac_status=$? | |
3167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3168 | test $ac_status = 0; } | |
3169 | if { ac_try='./conftest$ac_cv_exeext' | |
3170 | { { case "(($ac_try" in | |
3171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3172 | *) ac_try_echo=$ac_try;; | |
3173 | esac | |
3174 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3175 | $as_echo "$ac_try_echo"; } >&5 | |
3176 | (eval "$ac_try") 2>&5 | |
3177 | ac_status=$? | |
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3179 | test $ac_status = 0; }; }; then | |
3180 | cross_compiling=no | |
3181 | else | |
3182 | if test "$cross_compiling" = maybe; then | |
3183 | cross_compiling=yes | |
3184 | else | |
3185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3187 | as_fn_error "cannot run C compiled programs. | |
3188 | If you meant to cross compile, use \`--host'. | |
3189 | See \`config.log' for more details." "$LINENO" 5; } | |
3190 | fi | |
3191 | fi | |
3192 | fi | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3194 | $as_echo "$cross_compiling" >&6; } | |
3195 | ||
3196 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3197 | ac_clean_files=$ac_clean_files_save | |
35fa52c0 DWT |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3199 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3200 | if test "${ac_cv_objext+set}" = set; then : | |
3201 | $as_echo_n "(cached) " >&6 | |
3202 | else | |
3203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3204 | /* end confdefs.h. */ | |
3205 | ||
3206 | int | |
3207 | main () | |
3208 | { | |
3209 | ||
3210 | ; | |
3211 | return 0; | |
3212 | } | |
3213 | _ACEOF | |
3214 | rm -f conftest.o conftest.obj | |
3215 | if { { ac_try="$ac_compile" | |
3216 | case "(($ac_try" in | |
3217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3218 | *) ac_try_echo=$ac_try;; | |
3219 | esac | |
3220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3221 | $as_echo "$ac_try_echo"; } >&5 | |
3222 | (eval "$ac_compile") 2>&5 | |
3223 | ac_status=$? | |
3224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3225 | test $ac_status = 0; }; then : | |
3226 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3227 | test -f "$ac_file" || continue; | |
3228 | case $ac_file in | |
3229 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3230 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3231 | break;; | |
3232 | esac | |
3233 | done | |
3234 | else | |
3235 | $as_echo "$as_me: failed program was:" >&5 | |
3236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3237 | ||
3238 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3239 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3240 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3241 | See \`config.log' for more details." "$LINENO" 5; } | |
3242 | fi | |
3243 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3244 | fi | |
3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3246 | $as_echo "$ac_cv_objext" >&6; } | |
3247 | OBJEXT=$ac_cv_objext | |
3248 | ac_objext=$OBJEXT | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3250 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3251 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3252 | $as_echo_n "(cached) " >&6 | |
3253 | else | |
3254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3255 | /* end confdefs.h. */ | |
3256 | ||
3257 | int | |
3258 | main () | |
3259 | { | |
3260 | #ifndef __GNUC__ | |
3261 | choke me | |
3262 | #endif | |
3263 | ||
3264 | ; | |
3265 | return 0; | |
3266 | } | |
3267 | _ACEOF | |
3268 | if ac_fn_c_try_compile "$LINENO"; then : | |
3269 | ac_compiler_gnu=yes | |
3270 | else | |
3271 | ac_compiler_gnu=no | |
3272 | fi | |
3273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3274 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3275 | ||
3276 | fi | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3278 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3279 | if test $ac_compiler_gnu = yes; then | |
3280 | GCC=yes | |
3281 | else | |
3282 | GCC= | |
3283 | fi | |
3284 | ac_test_CFLAGS=${CFLAGS+set} | |
3285 | ac_save_CFLAGS=$CFLAGS | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3287 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3288 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3289 | $as_echo_n "(cached) " >&6 | |
3290 | else | |
3291 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3292 | ac_c_werror_flag=yes | |
3293 | ac_cv_prog_cc_g=no | |
3294 | CFLAGS="-g" | |
3295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3296 | /* end confdefs.h. */ | |
3297 | ||
3298 | int | |
3299 | main () | |
3300 | { | |
3301 | ||
3302 | ; | |
3303 | return 0; | |
3304 | } | |
3305 | _ACEOF | |
3306 | if ac_fn_c_try_compile "$LINENO"; then : | |
3307 | ac_cv_prog_cc_g=yes | |
3308 | else | |
3309 | CFLAGS="" | |
3310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3311 | /* end confdefs.h. */ | |
3312 | ||
3313 | int | |
3314 | main () | |
3315 | { | |
3316 | ||
3317 | ; | |
3318 | return 0; | |
3319 | } | |
3320 | _ACEOF | |
3321 | if ac_fn_c_try_compile "$LINENO"; then : | |
3322 | ||
3323 | else | |
3324 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3325 | CFLAGS="-g" | |
3326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3327 | /* end confdefs.h. */ | |
3328 | ||
3329 | int | |
3330 | main () | |
3331 | { | |
3332 | ||
3333 | ; | |
3334 | return 0; | |
3335 | } | |
3336 | _ACEOF | |
3337 | if ac_fn_c_try_compile "$LINENO"; then : | |
3338 | ac_cv_prog_cc_g=yes | |
3339 | fi | |
3340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3341 | fi | |
3342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3343 | fi | |
3344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3345 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3346 | fi | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3348 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3349 | if test "$ac_test_CFLAGS" = set; then | |
3350 | CFLAGS=$ac_save_CFLAGS | |
3351 | elif test $ac_cv_prog_cc_g = yes; then | |
3352 | if test "$GCC" = yes; then | |
3353 | CFLAGS="-g -O2" | |
3354 | else | |
3355 | CFLAGS="-g" | |
3356 | fi | |
3357 | else | |
3358 | if test "$GCC" = yes; then | |
3359 | CFLAGS="-O2" | |
3360 | else | |
3361 | CFLAGS= | |
3362 | fi | |
3363 | fi | |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3365 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3366 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3367 | $as_echo_n "(cached) " >&6 | |
3368 | else | |
3369 | ac_cv_prog_cc_c89=no | |
3370 | ac_save_CC=$CC | |
3371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3372 | /* end confdefs.h. */ | |
3373 | #include <stdarg.h> | |
3374 | #include <stdio.h> | |
3375 | #include <sys/types.h> | |
3376 | #include <sys/stat.h> | |
3377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3378 | struct buf { int x; }; | |
3379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3380 | static char *e (p, i) | |
3381 | char **p; | |
3382 | int i; | |
3383 | { | |
3384 | return p[i]; | |
3385 | } | |
3386 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3387 | { | |
3388 | char *s; | |
3389 | va_list v; | |
3390 | va_start (v,p); | |
3391 | s = g (p, va_arg (v,int)); | |
3392 | va_end (v); | |
3393 | return s; | |
3394 | } | |
3395 | ||
3396 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3397 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3398 | These don't provoke an error unfortunately, instead are silently treated | |
3399 | as 'x'. The following induces an error, until -std is added to get | |
3400 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3401 | array size at least. It's necessary to write '\x00'==0 to get something | |
3402 | that's true only with -std. */ | |
3403 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3404 | ||
3405 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3406 | inside strings and character constants. */ | |
3407 | #define FOO(x) 'x' | |
3408 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3409 | ||
3410 | int test (int i, double x); | |
3411 | struct s1 {int (*f) (int a);}; | |
3412 | struct s2 {int (*f) (double a);}; | |
3413 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3414 | int argc; | |
3415 | char **argv; | |
3416 | int | |
3417 | main () | |
3418 | { | |
3419 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3420 | ; | |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3425 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3426 | do | |
3427 | CC="$ac_save_CC $ac_arg" | |
3428 | if ac_fn_c_try_compile "$LINENO"; then : | |
3429 | ac_cv_prog_cc_c89=$ac_arg | |
3430 | fi | |
3431 | rm -f core conftest.err conftest.$ac_objext | |
3432 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3433 | done | |
3434 | rm -f conftest.$ac_ext | |
3435 | CC=$ac_save_CC | |
3436 | ||
3437 | fi | |
3438 | # AC_CACHE_VAL | |
3439 | case "x$ac_cv_prog_cc_c89" in | |
3440 | x) | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3442 | $as_echo "none needed" >&6; } ;; | |
3443 | xno) | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3445 | $as_echo "unsupported" >&6; } ;; | |
3446 | *) | |
3447 | CC="$CC $ac_cv_prog_cc_c89" | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3449 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3450 | esac | |
3451 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3452 | ||
3453 | fi | |
3454 | ||
3455 | ac_ext=c | |
3456 | ac_cpp='$CPP $CPPFLAGS' | |
3457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3460 | ||
9c60689e DWT |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3462 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3463 | if test "${ac_cv_path_SED+set}" = set; then : | |
35fa52c0 DWT |
3464 | $as_echo_n "(cached) " >&6 |
3465 | else | |
9c60689e DWT |
3466 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3467 | for ac_i in 1 2 3 4 5 6 7; do | |
3468 | ac_script="$ac_script$as_nl$ac_script" | |
3469 | done | |
3470 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3471 | { ac_script=; unset ac_script;} | |
3472 | if test -z "$SED"; then | |
3473 | ac_path_SED_found=false | |
3474 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35fa52c0 DWT |
3476 | for as_dir in $PATH |
3477 | do | |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
9c60689e | 3480 | for ac_prog in sed gsed; do |
35fa52c0 | 3481 | for ac_exec_ext in '' $ac_executable_extensions; do |
9c60689e DWT |
3482 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3483 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3484 | # Check for GNU ac_path_SED and select it if it is found. | |
3485 | # Check for GNU $ac_path_SED | |
3486 | case `"$ac_path_SED" --version 2>&1` in | |
3487 | *GNU*) | |
3488 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3489 | *) | |
3490 | ac_count=0 | |
3491 | $as_echo_n 0123456789 >"conftest.in" | |
3492 | while : | |
3493 | do | |
3494 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3495 | mv "conftest.tmp" "conftest.in" | |
3496 | cp "conftest.in" "conftest.nl" | |
3497 | $as_echo '' >> "conftest.nl" | |
3498 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3499 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3500 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3501 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3502 | # Best one so far, save it but keep looking for a better one | |
3503 | ac_cv_path_SED="$ac_path_SED" | |
3504 | ac_path_SED_max=$ac_count | |
3505 | fi | |
3506 | # 10*(2^10) chars as input seems more than enough | |
3507 | test $ac_count -gt 10 && break | |
35fa52c0 | 3508 | done |
9c60689e DWT |
3509 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3510 | esac | |
35fa52c0 | 3511 | |
9c60689e DWT |
3512 | $ac_path_SED_found && break 3 |
3513 | done | |
3514 | done | |
3515 | done | |
3516 | IFS=$as_save_IFS | |
3517 | if test -z "$ac_cv_path_SED"; then | |
3518 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3519 | fi | |
35fa52c0 | 3520 | else |
9c60689e | 3521 | ac_cv_path_SED=$SED |
35fa52c0 DWT |
3522 | fi |
3523 | ||
9c60689e DWT |
3524 | fi |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3526 | $as_echo "$ac_cv_path_SED" >&6; } | |
3527 | SED="$ac_cv_path_SED" | |
3528 | rm -f conftest.sed | |
35fa52c0 | 3529 | |
9c60689e DWT |
3530 | test -z "$SED" && SED=sed |
3531 | Xsed="$SED -e 1s/^X//" | |
35fa52c0 | 3532 | |
35fa52c0 | 3533 | |
35fa52c0 | 3534 | |
35fa52c0 | 3535 | |
35fa52c0 | 3536 | |
35fa52c0 DWT |
3537 | |
3538 | ||
35fa52c0 | 3539 | |
35fa52c0 | 3540 | |
35fa52c0 | 3541 | |
35fa52c0 | 3542 | |
9c60689e DWT |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3544 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3545 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3546 | $as_echo_n "(cached) " >&6 | |
3547 | else | |
3548 | if test -z "$GREP"; then | |
3549 | ac_path_GREP_found=false | |
3550 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3552 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3553 | do | |
3554 | IFS=$as_save_IFS | |
3555 | test -z "$as_dir" && as_dir=. | |
3556 | for ac_prog in grep ggrep; do | |
3557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3558 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3559 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3560 | # Check for GNU ac_path_GREP and select it if it is found. | |
3561 | # Check for GNU $ac_path_GREP | |
3562 | case `"$ac_path_GREP" --version 2>&1` in | |
3563 | *GNU*) | |
3564 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3565 | *) | |
3566 | ac_count=0 | |
3567 | $as_echo_n 0123456789 >"conftest.in" | |
3568 | while : | |
3569 | do | |
3570 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3571 | mv "conftest.tmp" "conftest.in" | |
3572 | cp "conftest.in" "conftest.nl" | |
3573 | $as_echo 'GREP' >> "conftest.nl" | |
3574 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3575 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3576 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3577 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3578 | # Best one so far, save it but keep looking for a better one | |
3579 | ac_cv_path_GREP="$ac_path_GREP" | |
3580 | ac_path_GREP_max=$ac_count | |
3581 | fi | |
3582 | # 10*(2^10) chars as input seems more than enough | |
3583 | test $ac_count -gt 10 && break | |
3584 | done | |
3585 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3586 | esac | |
6b66678a | 3587 | |
9c60689e DWT |
3588 | $ac_path_GREP_found && break 3 |
3589 | done | |
3590 | done | |
3591 | done | |
3592 | IFS=$as_save_IFS | |
3593 | if test -z "$ac_cv_path_GREP"; then | |
3594 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3595 | fi | |
3596 | else | |
3597 | ac_cv_path_GREP=$GREP | |
3598 | fi | |
6b66678a | 3599 | |
9c60689e DWT |
3600 | fi |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3602 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3603 | GREP="$ac_cv_path_GREP" | |
6b66678a DWT |
3604 | |
3605 | ||
9c60689e DWT |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3607 | $as_echo_n "checking for egrep... " >&6; } | |
3608 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
6b66678a DWT |
3609 | $as_echo_n "(cached) " >&6 |
3610 | else | |
9c60689e DWT |
3611 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3612 | then ac_cv_path_EGREP="$GREP -E" | |
3613 | else | |
3614 | if test -z "$EGREP"; then | |
3615 | ac_path_EGREP_found=false | |
3616 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3618 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3619 | do | |
3620 | IFS=$as_save_IFS | |
3621 | test -z "$as_dir" && as_dir=. | |
3622 | for ac_prog in egrep; do | |
3623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3624 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3625 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3626 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3627 | # Check for GNU $ac_path_EGREP | |
3628 | case `"$ac_path_EGREP" --version 2>&1` in | |
3629 | *GNU*) | |
3630 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3631 | *) | |
3632 | ac_count=0 | |
3633 | $as_echo_n 0123456789 >"conftest.in" | |
3634 | while : | |
3635 | do | |
3636 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3637 | mv "conftest.tmp" "conftest.in" | |
3638 | cp "conftest.in" "conftest.nl" | |
3639 | $as_echo 'EGREP' >> "conftest.nl" | |
3640 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3641 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3642 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3643 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3644 | # Best one so far, save it but keep looking for a better one | |
3645 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3646 | ac_path_EGREP_max=$ac_count | |
3647 | fi | |
3648 | # 10*(2^10) chars as input seems more than enough | |
3649 | test $ac_count -gt 10 && break | |
3650 | done | |
3651 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3652 | esac | |
3653 | ||
3654 | $ac_path_EGREP_found && break 3 | |
3655 | done | |
3656 | done | |
3657 | done | |
3658 | IFS=$as_save_IFS | |
3659 | if test -z "$ac_cv_path_EGREP"; then | |
3660 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3661 | fi | |
3662 | else | |
3663 | ac_cv_path_EGREP=$EGREP | |
3664 | fi | |
6b66678a | 3665 | |
9c60689e DWT |
3666 | fi |
3667 | fi | |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3669 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3670 | EGREP="$ac_cv_path_EGREP" | |
6b66678a | 3671 | |
6b66678a | 3672 | |
9c60689e DWT |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
3674 | $as_echo_n "checking for fgrep... " >&6; } | |
3675 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
3676 | $as_echo_n "(cached) " >&6 | |
6b66678a | 3677 | else |
9c60689e DWT |
3678 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
3679 | then ac_cv_path_FGREP="$GREP -F" | |
3680 | else | |
3681 | if test -z "$FGREP"; then | |
3682 | ac_path_FGREP_found=false | |
3683 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_prog in fgrep; do | |
3690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3691 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3692 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
3693 | # Check for GNU ac_path_FGREP and select it if it is found. | |
3694 | # Check for GNU $ac_path_FGREP | |
3695 | case `"$ac_path_FGREP" --version 2>&1` in | |
3696 | *GNU*) | |
3697 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
3698 | *) | |
3699 | ac_count=0 | |
3700 | $as_echo_n 0123456789 >"conftest.in" | |
3701 | while : | |
3702 | do | |
3703 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3704 | mv "conftest.tmp" "conftest.in" | |
3705 | cp "conftest.in" "conftest.nl" | |
3706 | $as_echo 'FGREP' >> "conftest.nl" | |
3707 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3708 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3709 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3710 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
3711 | # Best one so far, save it but keep looking for a better one | |
3712 | ac_cv_path_FGREP="$ac_path_FGREP" | |
3713 | ac_path_FGREP_max=$ac_count | |
3714 | fi | |
3715 | # 10*(2^10) chars as input seems more than enough | |
3716 | test $ac_count -gt 10 && break | |
3717 | done | |
3718 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3719 | esac | |
6b66678a | 3720 | |
9c60689e DWT |
3721 | $ac_path_FGREP_found && break 3 |
3722 | done | |
3723 | done | |
3724 | done | |
3725 | IFS=$as_save_IFS | |
3726 | if test -z "$ac_cv_path_FGREP"; then | |
3727 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3728 | fi | |
3729 | else | |
3730 | ac_cv_path_FGREP=$FGREP | |
6b66678a DWT |
3731 | fi |
3732 | ||
9c60689e | 3733 | fi |
6b66678a | 3734 | fi |
9c60689e DWT |
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
3736 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
3737 | FGREP="$ac_cv_path_FGREP" | |
6b66678a | 3738 | |
35fa52c0 | 3739 | |
9c60689e | 3740 | test -z "$GREP" && GREP=grep |
35fa52c0 | 3741 | |
309b0535 | 3742 | |
35fa52c0 | 3743 | |
6b66678a | 3744 | |
6b66678a DWT |
3745 | |
3746 | ||
6b66678a | 3747 | |
6b66678a | 3748 | |
35fa52c0 | 3749 | |
35fa52c0 | 3750 | |
309b0535 | 3751 | |
309b0535 | 3752 | |
309b0535 | 3753 | |
309b0535 | 3754 | |
309b0535 | 3755 | |
309b0535 | 3756 | |
309b0535 | 3757 | |
309b0535 | 3758 | |
309b0535 | 3759 | |
9c60689e DWT |
3760 | # Check whether --with-gnu-ld was given. |
3761 | if test "${with_gnu_ld+set}" = set; then : | |
3762 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
309b0535 | 3763 | else |
9c60689e DWT |
3764 | with_gnu_ld=no |
3765 | fi | |
309b0535 | 3766 | |
9c60689e DWT |
3767 | ac_prog=ld |
3768 | if test "$GCC" = yes; then | |
3769 | # Check if gcc -print-prog-name=ld gives a path. | |
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
3771 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
3772 | case $host in | |
3773 | *-*-mingw*) | |
3774 | # gcc leaves a trailing carriage return which upsets mingw | |
3775 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3776 | *) | |
3777 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3778 | esac | |
3779 | case $ac_prog in | |
3780 | # Accept absolute paths. | |
3781 | [\\/]* | ?:[\\/]*) | |
3782 | re_direlt='/[^/][^/]*/\.\./' | |
3783 | # Canonicalize the pathname of ld | |
3784 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
3785 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
3786 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
309b0535 | 3787 | done |
9c60689e DWT |
3788 | test -z "$LD" && LD="$ac_prog" |
3789 | ;; | |
3790 | "") | |
3791 | # If it fails, then pretend we aren't using GCC. | |
3792 | ac_prog=ld | |
3793 | ;; | |
3794 | *) | |
3795 | # If it is relative, then search for the first ld in PATH. | |
3796 | with_gnu_ld=unknown | |
3797 | ;; | |
3798 | esac | |
3799 | elif test "$with_gnu_ld" = yes; then | |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
3801 | $as_echo_n "checking for GNU ld... " >&6; } | |
3802 | else | |
3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
3804 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
3805 | fi | |
3806 | if test "${lt_cv_path_LD+set}" = set; then : | |
3807 | $as_echo_n "(cached) " >&6 | |
3808 | else | |
3809 | if test -z "$LD"; then | |
3810 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3811 | for ac_dir in $PATH; do | |
3812 | IFS="$lt_save_ifs" | |
3813 | test -z "$ac_dir" && ac_dir=. | |
3814 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3815 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3816 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3817 | # but apparently some variants of GNU ld only accept -v. | |
3818 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3819 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3820 | *GNU* | *'with BFD'*) | |
3821 | test "$with_gnu_ld" != no && break | |
3822 | ;; | |
3823 | *) | |
3824 | test "$with_gnu_ld" != yes && break | |
3825 | ;; | |
309b0535 | 3826 | esac |
309b0535 | 3827 | fi |
9c60689e DWT |
3828 | done |
3829 | IFS="$lt_save_ifs" | |
3830 | else | |
3831 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3832 | fi | |
3833 | fi | |
309b0535 | 3834 | |
9c60689e DWT |
3835 | LD="$lt_cv_path_LD" |
3836 | if test -n "$LD"; then | |
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3838 | $as_echo "$LD" >&6; } | |
3839 | else | |
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3841 | $as_echo "no" >&6; } | |
3842 | fi | |
3843 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
3845 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
3846 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
3847 | $as_echo_n "(cached) " >&6 | |
3848 | else | |
3849 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3850 | case `$LD -v 2>&1 </dev/null` in | |
3851 | *GNU* | *'with BFD'*) | |
3852 | lt_cv_prog_gnu_ld=yes | |
3853 | ;; | |
3854 | *) | |
3855 | lt_cv_prog_gnu_ld=no | |
3856 | ;; | |
3857 | esac | |
309b0535 | 3858 | fi |
9c60689e DWT |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
3860 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
3861 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
309b0535 DWT |
3862 | |
3863 | ||
309b0535 | 3864 | |
309b0535 DWT |
3865 | |
3866 | ||
309b0535 | 3867 | |
309b0535 | 3868 | |
9c60689e DWT |
3869 | |
3870 | ||
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
3872 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
3873 | if test "${lt_cv_path_NM+set}" = set; then : | |
3874 | $as_echo_n "(cached) " >&6 | |
3875 | else | |
3876 | if test -n "$NM"; then | |
3877 | # Let the user override the test. | |
3878 | lt_cv_path_NM="$NM" | |
3879 | else | |
3880 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3881 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3882 | lt_nm_to_check="$lt_nm_to_check nm" | |
3883 | fi | |
3884 | for lt_tmp_nm in $lt_nm_to_check; do | |
3885 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3886 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3887 | IFS="$lt_save_ifs" | |
3888 | test -z "$ac_dir" && ac_dir=. | |
3889 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3890 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3891 | # Check to see if the nm accepts a BSD-compat flag. | |
3892 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3893 | # nm: unknown option "B" ignored | |
3894 | # Tru64's nm complains that /dev/null is an invalid object file | |
3895 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3896 | */dev/null* | *'Invalid file or object type'*) | |
3897 | lt_cv_path_NM="$tmp_nm -B" | |
3898 | break | |
3899 | ;; | |
3900 | *) | |
3901 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3902 | */dev/null*) | |
3903 | lt_cv_path_NM="$tmp_nm -p" | |
3904 | break | |
3905 | ;; | |
3906 | *) | |
3907 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3908 | continue # so that we can try to find one that supports BSD flags | |
3909 | ;; | |
3910 | esac | |
3911 | ;; | |
3912 | esac | |
309b0535 DWT |
3913 | fi |
3914 | done | |
9c60689e | 3915 | IFS="$lt_save_ifs" |
309b0535 | 3916 | done |
9c60689e DWT |
3917 | : ${lt_cv_path_NM=no} |
3918 | fi | |
3919 | fi | |
3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
3921 | $as_echo "$lt_cv_path_NM" >&6; } | |
3922 | if test "$lt_cv_path_NM" != "no"; then | |
3923 | NM="$lt_cv_path_NM" | |
3924 | else | |
3925 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3926 | if test -n "$ac_tool_prefix"; then | |
3927 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3928 | do |
3929 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3930 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3932 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3933 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3934 | $as_echo_n "(cached) " >&6 |
3935 | else | |
9c60689e DWT |
3936 | if test -n "$DUMPBIN"; then |
3937 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3938 | else |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3946 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
35fa52c0 DWT |
3947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
3952 | IFS=$as_save_IFS | |
3953 | ||
3954 | fi | |
3955 | fi | |
9c60689e DWT |
3956 | DUMPBIN=$ac_cv_prog_DUMPBIN |
3957 | if test -n "$DUMPBIN"; then | |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
3959 | $as_echo "$DUMPBIN" >&6; } | |
35fa52c0 DWT |
3960 | else |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3962 | $as_echo "no" >&6; } | |
3963 | fi | |
3964 | ||
3965 | ||
9c60689e | 3966 | test -n "$DUMPBIN" && break |
35fa52c0 DWT |
3967 | done |
3968 | fi | |
9c60689e DWT |
3969 | if test -z "$DUMPBIN"; then |
3970 | ac_ct_DUMPBIN=$DUMPBIN | |
3971 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
35fa52c0 DWT |
3972 | do |
3973 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3974 | set dummy $ac_prog; ac_word=$2 | |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3976 | $as_echo_n "checking for $ac_word... " >&6; } | |
9c60689e | 3977 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
35fa52c0 DWT |
3978 | $as_echo_n "(cached) " >&6 |
3979 | else | |
9c60689e DWT |
3980 | if test -n "$ac_ct_DUMPBIN"; then |
3981 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
35fa52c0 DWT |
3982 | else |
3983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3984 | for as_dir in $PATH | |
3985 | do | |
3986 | IFS=$as_save_IFS | |
3987 | test -z "$as_dir" && as_dir=. | |
3988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9c60689e | 3990 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
35fa52c0 DWT |
3991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3992 | break 2 | |
3993 | fi | |
3994 | done | |
3995 | done | |
3996 | IFS=$as_save_IFS | |
3997 | ||
3998 | fi | |
3999 | fi | |
9c60689e DWT |
4000 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4001 | if test -n "$ac_ct_DUMPBIN"; then | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4003 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
35fa52c0 DWT |
4004 | else |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4006 | $as_echo "no" >&6; } | |
4007 | fi | |
4008 | ||
4009 | ||
9c60689e | 4010 | test -n "$ac_ct_DUMPBIN" && break |
35fa52c0 DWT |
4011 | done |
4012 | ||
9c60689e DWT |
4013 | if test "x$ac_ct_DUMPBIN" = x; then |
4014 | DUMPBIN=":" | |
35fa52c0 DWT |
4015 | else |
4016 | case $cross_compiling:$ac_tool_warned in | |
4017 | yes:) | |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4019 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4020 | ac_tool_warned=yes ;; | |
4021 | esac | |
9c60689e | 4022 | DUMPBIN=$ac_ct_DUMPBIN |
35fa52c0 DWT |
4023 | fi |
4024 | fi | |
4025 | ||
9c60689e DWT |
4026 | |
4027 | if test "$DUMPBIN" != ":"; then | |
4028 | NM="$DUMPBIN" | |
35fa52c0 DWT |
4029 | fi |
4030 | fi | |
9c60689e | 4031 | test -z "$NM" && NM=nm |
35fa52c0 | 4032 | |
35fa52c0 | 4033 | |
35fa52c0 | 4034 | |
35fa52c0 | 4035 | |
9c60689e DWT |
4036 | |
4037 | ||
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4039 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4040 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4041 | $as_echo_n "(cached) " >&6 | |
4042 | else | |
4043 | lt_cv_nm_interface="BSD nm" | |
4044 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4045 | (eval echo "\"\$as_me:4045: $ac_compile\"" >&5) | |
4046 | (eval "$ac_compile" 2>conftest.err) | |
4047 | cat conftest.err >&5 | |
4048 | (eval echo "\"\$as_me:4048: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4049 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4050 | cat conftest.err >&5 | |
4051 | (eval echo "\"\$as_me:4051: output\"" >&5) | |
4052 | cat conftest.out >&5 | |
4053 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4054 | lt_cv_nm_interface="MS dumpbin" | |
4055 | fi | |
4056 | rm -f conftest* | |
35fa52c0 | 4057 | fi |
9c60689e DWT |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
4059 | $as_echo "$lt_cv_nm_interface" >&6; } | |
4060 | ||
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4062 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4063 | LN_S=$as_ln_s | |
4064 | if test "$LN_S" = "ln -s"; then | |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4066 | $as_echo "yes" >&6; } | |
35fa52c0 | 4067 | else |
9c60689e DWT |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4069 | $as_echo "no, using $LN_S" >&6; } | |
35fa52c0 | 4070 | fi |
9c60689e DWT |
4071 | |
4072 | # find the maximum length of command line arguments | |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4074 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4075 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
35fa52c0 DWT |
4076 | $as_echo_n "(cached) " >&6 |
4077 | else | |
9c60689e DWT |
4078 | i=0 |
4079 | teststring="ABCD" | |
4080 | ||
4081 | case $build_os in | |
4082 | msdosdjgpp*) | |
4083 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4084 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4085 | # during glob expansion). Even if it were fixed, the result of this | |
4086 | # check would be larger than it should be. | |
4087 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4088 | ;; | |
35fa52c0 | 4089 | |
9c60689e DWT |
4090 | gnu*) |
4091 | # Under GNU Hurd, this test is not required because there is | |
4092 | # no limit to the length of command line arguments. | |
4093 | # Libtool will interpret -1 as no limit whatsoever | |
4094 | lt_cv_sys_max_cmd_len=-1; | |
4095 | ;; | |
35fa52c0 | 4096 | |
9c60689e DWT |
4097 | cygwin* | mingw* | cegcc*) |
4098 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4099 | # about 5 minutes as the teststring grows exponentially. | |
4100 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4101 | # you end up with a "frozen" computer, even though with patience | |
4102 | # the test eventually succeeds (with a max line length of 256k). | |
4103 | # Instead, let's just punt: use the minimum linelength reported by | |
4104 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4105 | lt_cv_sys_max_cmd_len=8192; | |
4106 | ;; | |
35fa52c0 | 4107 | |
9c60689e DWT |
4108 | amigaos*) |
4109 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4110 | # So we just punt and use a minimum line length of 8192. | |
4111 | lt_cv_sys_max_cmd_len=8192; | |
4112 | ;; | |
35fa52c0 | 4113 | |
9c60689e DWT |
4114 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4115 | # This has been around since 386BSD, at least. Likely further. | |
4116 | if test -x /sbin/sysctl; then | |
4117 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4118 | elif test -x /usr/sbin/sysctl; then | |
4119 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4120 | else | |
4121 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4122 | fi | |
4123 | # And add a safety zone | |
4124 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4125 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4126 | ;; | |
35fa52c0 | 4127 | |
9c60689e DWT |
4128 | interix*) |
4129 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4130 | lt_cv_sys_max_cmd_len=196608 | |
4131 | ;; | |
35fa52c0 | 4132 | |
9c60689e DWT |
4133 | osf*) |
4134 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4135 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4136 | # nice to cause kernel panics so lets avoid the loop below. | |
4137 | # First set a reasonable default. | |
4138 | lt_cv_sys_max_cmd_len=16384 | |
4139 | # | |
4140 | if test -x /sbin/sysconfig; then | |
4141 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4142 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4143 | esac | |
4144 | fi | |
4145 | ;; | |
4146 | sco3.2v5*) | |
4147 | lt_cv_sys_max_cmd_len=102400 | |
4148 | ;; | |
4149 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4150 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4151 | if test -n "$kargmax"; then | |
4152 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4153 | else | |
4154 | lt_cv_sys_max_cmd_len=32768 | |
4155 | fi | |
4156 | ;; | |
4157 | *) | |
4158 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4159 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4160 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4161 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4162 | else | |
4163 | # Make teststring a little bigger before we do anything with it. | |
4164 | # a 1K string should be a reasonable start. | |
4165 | for i in 1 2 3 4 5 6 7 8 ; do | |
4166 | teststring=$teststring$teststring | |
4167 | done | |
4168 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4169 | # If test is not a shell built-in, we'll probably end up computing a | |
4170 | # maximum length that is only half of the actual maximum length, but | |
4171 | # we can't tell. | |
4172 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4173 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4174 | test $i != 17 # 1/2 MB should be enough | |
4175 | do | |
4176 | i=`expr $i + 1` | |
4177 | teststring=$teststring$teststring | |
4178 | done | |
4179 | # Only check the string length outside the loop. | |
4180 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4181 | teststring= | |
4182 | # Add a significant safety factor because C++ compilers can tack on | |
4183 | # massive amounts of additional arguments before passing them to the | |
4184 | # linker. It appears as though 1/2 is a usable value. | |
4185 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4186 | fi | |
4187 | ;; | |
4188 | esac | |
35fa52c0 | 4189 | |
35fa52c0 | 4190 | fi |
9c60689e DWT |
4191 | |
4192 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4194 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
35fa52c0 | 4195 | else |
9c60689e DWT |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
4197 | $as_echo "none" >&6; } | |
35fa52c0 | 4198 | fi |
9c60689e | 4199 | max_cmd_len=$lt_cv_sys_max_cmd_len |
35fa52c0 | 4200 | |
9c60689e DWT |
4201 | |
4202 | ||
4203 | ||
4204 | ||
4205 | ||
4206 | : ${CP="cp -f"} | |
4207 | : ${MV="mv -f"} | |
4208 | : ${RM="rm -f"} | |
4209 | ||
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4211 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4212 | # Try some XSI features | |
4213 | xsi_shell=no | |
4214 | ( _lt_dummy="a/b/c" | |
4215 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4216 | = c,a/b,, \ | |
4217 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4218 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4219 | && xsi_shell=yes | |
4220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4221 | $as_echo "$xsi_shell" >&6; } | |
4222 | ||
4223 | ||
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4225 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4226 | lt_shell_append=no | |
4227 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4228 | >/dev/null 2>&1 \ | |
4229 | && lt_shell_append=yes | |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4231 | $as_echo "$lt_shell_append" >&6; } | |
4232 | ||
4233 | ||
4234 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4235 | lt_unset=unset | |
35fa52c0 | 4236 | else |
9c60689e DWT |
4237 | lt_unset=false |
4238 | fi | |
4239 | ||
4240 | ||
4241 | ||
4242 | ||
4243 | ||
4244 | # test EBCDIC or ASCII | |
4245 | case `echo X|tr X '\101'` in | |
4246 | A) # ASCII based system | |
4247 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4248 | lt_SP2NL='tr \040 \012' | |
4249 | lt_NL2SP='tr \015\012 \040\040' | |
4250 | ;; | |
4251 | *) # EBCDIC based system | |
4252 | lt_SP2NL='tr \100 \n' | |
4253 | lt_NL2SP='tr \r\n \100\100' | |
4254 | ;; | |
35fa52c0 DWT |
4255 | esac |
4256 | ||
35fa52c0 | 4257 | |
35fa52c0 | 4258 | |
35fa52c0 | 4259 | |
35fa52c0 | 4260 | |
35fa52c0 | 4261 | |
35fa52c0 | 4262 | |
35fa52c0 | 4263 | |
9c60689e DWT |
4264 | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4266 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4267 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
35fa52c0 DWT |
4268 | $as_echo_n "(cached) " >&6 |
4269 | else | |
9c60689e | 4270 | lt_cv_ld_reload_flag='-r' |
35fa52c0 | 4271 | fi |
9c60689e DWT |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
4273 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4274 | reload_flag=$lt_cv_ld_reload_flag | |
4275 | case $reload_flag in | |
4276 | "" | " "*) ;; | |
4277 | *) reload_flag=" $reload_flag" ;; | |
4278 | esac | |
4279 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4280 | case $host_os in | |
4281 | darwin*) | |
4282 | if test "$GCC" = yes; then | |
4283 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4284 | else | |
4285 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4286 | fi | |
4287 | ;; | |
35fa52c0 | 4288 | esac |
35fa52c0 DWT |
4289 | |
4290 | ||
9c60689e DWT |
4291 | |
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | if test -n "$ac_tool_prefix"; then | |
4299 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4300 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4302 | $as_echo_n "checking for $ac_word... " >&6; } | |
4303 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4304 | $as_echo_n "(cached) " >&6 |
4305 | else | |
9c60689e DWT |
4306 | if test -n "$OBJDUMP"; then |
4307 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4308 | else |
9c60689e DWT |
4309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4310 | for as_dir in $PATH | |
4311 | do | |
4312 | IFS=$as_save_IFS | |
4313 | test -z "$as_dir" && as_dir=. | |
4314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4316 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4318 | break 2 | |
35fa52c0 | 4319 | fi |
9c60689e DWT |
4320 | done |
4321 | done | |
4322 | IFS=$as_save_IFS | |
35fa52c0 | 4323 | |
35fa52c0 | 4324 | fi |
35fa52c0 | 4325 | fi |
9c60689e DWT |
4326 | OBJDUMP=$ac_cv_prog_OBJDUMP |
4327 | if test -n "$OBJDUMP"; then | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4329 | $as_echo "$OBJDUMP" >&6; } | |
35fa52c0 | 4330 | else |
9c60689e DWT |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4332 | $as_echo "no" >&6; } | |
35fa52c0 | 4333 | fi |
9c60689e DWT |
4334 | |
4335 | ||
4336 | fi | |
4337 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4338 | ac_ct_OBJDUMP=$OBJDUMP | |
4339 | # Extract the first word of "objdump", so it can be a program name with args. | |
4340 | set dummy objdump; ac_word=$2 | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4342 | $as_echo_n "checking for $ac_word... " >&6; } | |
4343 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
35fa52c0 DWT |
4344 | $as_echo_n "(cached) " >&6 |
4345 | else | |
9c60689e DWT |
4346 | if test -n "$ac_ct_OBJDUMP"; then |
4347 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
35fa52c0 | 4348 | else |
9c60689e DWT |
4349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4350 | for as_dir in $PATH | |
4351 | do | |
4352 | IFS=$as_save_IFS | |
4353 | test -z "$as_dir" && as_dir=. | |
4354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4356 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4358 | break 2 | |
4359 | fi | |
4360 | done | |
4361 | done | |
4362 | IFS=$as_save_IFS | |
4363 | ||
35fa52c0 DWT |
4364 | fi |
4365 | fi | |
9c60689e DWT |
4366 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
4367 | if test -n "$ac_ct_OBJDUMP"; then | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4369 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
35fa52c0 DWT |
4370 | else |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4372 | $as_echo "no" >&6; } | |
4373 | fi | |
9c60689e DWT |
4374 | |
4375 | if test "x$ac_ct_OBJDUMP" = x; then | |
4376 | OBJDUMP="false" | |
4377 | else | |
4378 | case $cross_compiling:$ac_tool_warned in | |
4379 | yes:) | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4382 | ac_tool_warned=yes ;; | |
35fa52c0 | 4383 | esac |
9c60689e DWT |
4384 | OBJDUMP=$ac_ct_OBJDUMP |
4385 | fi | |
4386 | else | |
4387 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
35fa52c0 | 4388 | fi |
35fa52c0 | 4389 | |
9c60689e | 4390 | test -z "$OBJDUMP" && OBJDUMP=objdump |
35fa52c0 DWT |
4391 | |
4392 | ||
35fa52c0 | 4393 | |
35fa52c0 | 4394 | |
35fa52c0 DWT |
4395 | |
4396 | ||
4397 | ||
35fa52c0 DWT |
4398 | |
4399 | ||
9c60689e DWT |
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
4401 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4402 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4403 | $as_echo_n "(cached) " >&6 | |
4404 | else | |
4405 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4406 | lt_cv_file_magic_test_file= | |
4407 | lt_cv_deplibs_check_method='unknown' | |
4408 | # Need to set the preceding variable on all platforms that support | |
4409 | # interlibrary dependencies. | |
4410 | # 'none' -- dependencies not supported. | |
4411 | # `unknown' -- same as none, but documents that we really don't know. | |
4412 | # 'pass_all' -- all dependencies passed with no checks. | |
4413 | # 'test_compile' -- check by making test program. | |
4414 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4415 | # which responds to the $file_magic_cmd with a given extended regex. | |
4416 | # If you have `file' or equivalent on your system and you're not sure | |
4417 | # whether `pass_all' will *always* work, you probably want this one. | |
4418 | ||
4419 | case $host_os in | |
4420 | aix[4-9]*) | |
4421 | lt_cv_deplibs_check_method=pass_all | |
4422 | ;; | |
35fa52c0 | 4423 | |
9c60689e DWT |
4424 | beos*) |
4425 | lt_cv_deplibs_check_method=pass_all | |
4426 | ;; | |
35fa52c0 | 4427 | |
9c60689e DWT |
4428 | bsdi[45]*) |
4429 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4430 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4431 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4432 | ;; | |
35fa52c0 | 4433 | |
9c60689e DWT |
4434 | cygwin*) |
4435 | # func_win32_libid is a shell function defined in ltmain.sh | |
4436 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4437 | lt_cv_file_magic_cmd='func_win32_libid' | |
4438 | ;; | |
35fa52c0 | 4439 | |
9c60689e DWT |
4440 | mingw* | pw32*) |
4441 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4442 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4443 | # unless we find 'file', for example because we are cross-compiling. | |
4444 | if ( file / ) >/dev/null 2>&1; then | |
4445 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4446 | lt_cv_file_magic_cmd='func_win32_libid' | |
4447 | else | |
4448 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4449 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4450 | fi | |
4451 | ;; | |
35fa52c0 | 4452 | |
9c60689e DWT |
4453 | cegcc) |
4454 | # use the weaker test based on 'objdump'. See mingw*. | |
4455 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4456 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4457 | ;; | |
35fa52c0 | 4458 | |
9c60689e DWT |
4459 | darwin* | rhapsody*) |
4460 | lt_cv_deplibs_check_method=pass_all | |
4461 | ;; | |
35fa52c0 | 4462 | |
9c60689e DWT |
4463 | freebsd* | dragonfly*) |
4464 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4465 | case $host_cpu in | |
4466 | i*86 ) | |
4467 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4468 | # Let's accept both of them until this is cleared up. | |
4469 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4470 | lt_cv_file_magic_cmd=/usr/bin/file | |
4471 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4472 | ;; | |
4473 | esac | |
4474 | else | |
4475 | lt_cv_deplibs_check_method=pass_all | |
4476 | fi | |
4477 | ;; | |
35fa52c0 | 4478 | |
9c60689e DWT |
4479 | gnu*) |
4480 | lt_cv_deplibs_check_method=pass_all | |
4481 | ;; | |
35fa52c0 | 4482 | |
9c60689e DWT |
4483 | hpux10.20* | hpux11*) |
4484 | lt_cv_file_magic_cmd=/usr/bin/file | |
4485 | case $host_cpu in | |
4486 | ia64*) | |
4487 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4488 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4489 | ;; | |
4490 | hppa*64*) | |
4491 | 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]' | |
4492 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4493 | ;; | |
4494 | *) | |
4495 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4496 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4497 | ;; | |
4498 | esac | |
4499 | ;; | |
35fa52c0 | 4500 | |
9c60689e DWT |
4501 | interix[3-9]*) |
4502 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4503 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4504 | ;; | |
35fa52c0 | 4505 | |
9c60689e DWT |
4506 | irix5* | irix6* | nonstopux*) |
4507 | case $LD in | |
4508 | *-32|*"-32 ") libmagic=32-bit;; | |
4509 | *-n32|*"-n32 ") libmagic=N32;; | |
4510 | *-64|*"-64 ") libmagic=64-bit;; | |
4511 | *) libmagic=never-match;; | |
4512 | esac | |
4513 | lt_cv_deplibs_check_method=pass_all | |
4514 | ;; | |
35fa52c0 | 4515 | |
9c60689e DWT |
4516 | # This must be Linux ELF. |
4517 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4518 | lt_cv_deplibs_check_method=pass_all | |
4519 | ;; | |
35fa52c0 | 4520 | |
9c60689e DWT |
4521 | netbsd* | netbsdelf*-gnu) |
4522 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4523 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4524 | else | |
4525 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4526 | fi | |
4527 | ;; | |
35fa52c0 | 4528 | |
9c60689e DWT |
4529 | newos6*) |
4530 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4531 | lt_cv_file_magic_cmd=/usr/bin/file | |
4532 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4533 | ;; | |
35fa52c0 | 4534 | |
9c60689e DWT |
4535 | *nto* | *qnx*) |
4536 | lt_cv_deplibs_check_method=pass_all | |
4537 | ;; | |
35fa52c0 | 4538 | |
9c60689e DWT |
4539 | openbsd*) |
4540 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4541 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4542 | else | |
4543 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4544 | fi | |
4545 | ;; | |
4546 | ||
4547 | osf3* | osf4* | osf5*) | |
4548 | lt_cv_deplibs_check_method=pass_all | |
4549 | ;; | |
4550 | ||
4551 | rdos*) | |
4552 | lt_cv_deplibs_check_method=pass_all | |
4553 | ;; | |
4554 | ||
4555 | solaris*) | |
4556 | lt_cv_deplibs_check_method=pass_all | |
4557 | ;; | |
4558 | ||
4559 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4560 | lt_cv_deplibs_check_method=pass_all | |
4561 | ;; | |
4562 | ||
4563 | sysv4 | sysv4.3*) | |
4564 | case $host_vendor in | |
4565 | motorola) | |
4566 | 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]' | |
4567 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4568 | ;; | |
4569 | ncr) | |
4570 | lt_cv_deplibs_check_method=pass_all | |
4571 | ;; | |
4572 | sequent) | |
4573 | lt_cv_file_magic_cmd='/bin/file' | |
4574 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4575 | ;; | |
4576 | sni) | |
4577 | lt_cv_file_magic_cmd='/bin/file' | |
4578 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4579 | lt_cv_file_magic_test_file=/lib/libc.so | |
4580 | ;; | |
4581 | siemens) | |
4582 | lt_cv_deplibs_check_method=pass_all | |
4583 | ;; | |
4584 | pc) | |
4585 | lt_cv_deplibs_check_method=pass_all | |
4586 | ;; | |
4587 | esac | |
4588 | ;; | |
4589 | ||
4590 | tpf*) | |
4591 | lt_cv_deplibs_check_method=pass_all | |
4592 | ;; | |
4593 | esac | |
35fa52c0 DWT |
4594 | |
4595 | fi | |
9c60689e DWT |
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
4597 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4598 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4599 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4600 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dbadc56a | 4601 | |
35fa52c0 | 4602 | |
35fa52c0 | 4603 | |
35fa52c0 | 4604 | |
35fa52c0 | 4605 | |
35fa52c0 | 4606 | |
35fa52c0 | 4607 | |
35fa52c0 | 4608 | |
35fa52c0 | 4609 | |
35fa52c0 | 4610 | |
35fa52c0 | 4611 | |
9c60689e DWT |
4612 | |
4613 | if test -n "$ac_tool_prefix"; then | |
4614 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4615 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4617 | $as_echo_n "checking for $ac_word... " >&6; } | |
4618 | if test "${ac_cv_prog_AR+set}" = set; then : | |
4619 | $as_echo_n "(cached) " >&6 | |
4620 | else | |
4621 | if test -n "$AR"; then | |
4622 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4623 | else | |
4624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4625 | for as_dir in $PATH | |
4626 | do | |
4627 | IFS=$as_save_IFS | |
4628 | test -z "$as_dir" && as_dir=. | |
4629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4631 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4633 | break 2 | |
4634 | fi | |
4635 | done | |
35fa52c0 | 4636 | done |
9c60689e DWT |
4637 | IFS=$as_save_IFS |
4638 | ||
4639 | fi | |
4640 | fi | |
4641 | AR=$ac_cv_prog_AR | |
4642 | if test -n "$AR"; then | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4644 | $as_echo "$AR" >&6; } | |
4645 | else | |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4647 | $as_echo "no" >&6; } | |
4648 | fi | |
4649 | ||
4650 | ||
4651 | fi | |
4652 | if test -z "$ac_cv_prog_AR"; then | |
4653 | ac_ct_AR=$AR | |
4654 | # Extract the first word of "ar", so it can be a program name with args. | |
4655 | set dummy ar; ac_word=$2 | |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4657 | $as_echo_n "checking for $ac_word... " >&6; } | |
4658 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4659 | $as_echo_n "(cached) " >&6 | |
4660 | else | |
4661 | if test -n "$ac_ct_AR"; then | |
4662 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4663 | else | |
4664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4665 | for as_dir in $PATH | |
4666 | do | |
4667 | IFS=$as_save_IFS | |
4668 | test -z "$as_dir" && as_dir=. | |
4669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4671 | ac_cv_prog_ac_ct_AR="ar" | |
4672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4673 | break 2 | |
35fa52c0 | 4674 | fi |
9c60689e DWT |
4675 | done |
4676 | done | |
4677 | IFS=$as_save_IFS | |
4678 | ||
4679 | fi | |
4680 | fi | |
4681 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4682 | if test -n "$ac_ct_AR"; then | |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4684 | $as_echo "$ac_ct_AR" >&6; } | |
4685 | else | |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4687 | $as_echo "no" >&6; } | |
4688 | fi | |
4689 | ||
4690 | if test "x$ac_ct_AR" = x; then | |
4691 | AR="false" | |
4692 | else | |
4693 | case $cross_compiling:$ac_tool_warned in | |
4694 | yes:) | |
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4696 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4697 | ac_tool_warned=yes ;; | |
4698 | esac | |
4699 | AR=$ac_ct_AR | |
4700 | fi | |
4701 | else | |
4702 | AR="$ac_cv_prog_AR" | |
4703 | fi | |
4704 | ||
4705 | test -z "$AR" && AR=ar | |
4706 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | if test -n "$ac_tool_prefix"; then | |
4719 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4720 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4722 | $as_echo_n "checking for $ac_word... " >&6; } | |
4723 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4724 | $as_echo_n "(cached) " >&6 | |
4725 | else | |
4726 | if test -n "$STRIP"; then | |
4727 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4728 | else | |
4729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4730 | for as_dir in $PATH | |
4731 | do | |
4732 | IFS=$as_save_IFS | |
4733 | test -z "$as_dir" && as_dir=. | |
4734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4736 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4738 | break 2 | |
35fa52c0 | 4739 | fi |
9c60689e DWT |
4740 | done |
4741 | done | |
4742 | IFS=$as_save_IFS | |
4743 | ||
4744 | fi | |
4745 | fi | |
4746 | STRIP=$ac_cv_prog_STRIP | |
4747 | if test -n "$STRIP"; then | |
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4749 | $as_echo "$STRIP" >&6; } | |
4750 | else | |
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4752 | $as_echo "no" >&6; } | |
4753 | fi | |
4754 | ||
4755 | ||
4756 | fi | |
4757 | if test -z "$ac_cv_prog_STRIP"; then | |
4758 | ac_ct_STRIP=$STRIP | |
4759 | # Extract the first word of "strip", so it can be a program name with args. | |
4760 | set dummy strip; ac_word=$2 | |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4762 | $as_echo_n "checking for $ac_word... " >&6; } | |
4763 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4764 | $as_echo_n "(cached) " >&6 | |
4765 | else | |
4766 | if test -n "$ac_ct_STRIP"; then | |
4767 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4768 | else | |
4769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4770 | for as_dir in $PATH | |
4771 | do | |
4772 | IFS=$as_save_IFS | |
4773 | test -z "$as_dir" && as_dir=. | |
4774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4776 | ac_cv_prog_ac_ct_STRIP="strip" | |
4777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4778 | break 2 | |
4779 | fi | |
4780 | done | |
4781 | done | |
4782 | IFS=$as_save_IFS | |
4783 | ||
4784 | fi | |
4785 | fi | |
4786 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4787 | if test -n "$ac_ct_STRIP"; then | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4789 | $as_echo "$ac_ct_STRIP" >&6; } | |
4790 | else | |
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4792 | $as_echo "no" >&6; } | |
4793 | fi | |
4794 | ||
4795 | if test "x$ac_ct_STRIP" = x; then | |
4796 | STRIP=":" | |
4797 | else | |
4798 | case $cross_compiling:$ac_tool_warned in | |
4799 | yes:) | |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4801 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4802 | ac_tool_warned=yes ;; | |
4803 | esac | |
4804 | STRIP=$ac_ct_STRIP | |
4805 | fi | |
4806 | else | |
4807 | STRIP="$ac_cv_prog_STRIP" | |
4808 | fi | |
4809 | ||
4810 | test -z "$STRIP" && STRIP=: | |
4811 | ||
4812 | ||
4813 | ||
4814 | ||
4815 | ||
4816 | ||
4817 | if test -n "$ac_tool_prefix"; then | |
4818 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4819 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4821 | $as_echo_n "checking for $ac_word... " >&6; } | |
4822 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4823 | $as_echo_n "(cached) " >&6 | |
4824 | else | |
4825 | if test -n "$RANLIB"; then | |
4826 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4827 | else | |
4828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4829 | for as_dir in $PATH | |
4830 | do | |
4831 | IFS=$as_save_IFS | |
4832 | test -z "$as_dir" && as_dir=. | |
4833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4835 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4837 | break 2 | |
4838 | fi | |
4839 | done | |
4840 | done | |
4841 | IFS=$as_save_IFS | |
4842 | ||
4843 | fi | |
4844 | fi | |
4845 | RANLIB=$ac_cv_prog_RANLIB | |
4846 | if test -n "$RANLIB"; then | |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4848 | $as_echo "$RANLIB" >&6; } | |
4849 | else | |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4851 | $as_echo "no" >&6; } | |
4852 | fi | |
4853 | ||
4854 | ||
4855 | fi | |
4856 | if test -z "$ac_cv_prog_RANLIB"; then | |
4857 | ac_ct_RANLIB=$RANLIB | |
4858 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4859 | set dummy ranlib; ac_word=$2 | |
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4861 | $as_echo_n "checking for $ac_word... " >&6; } | |
4862 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4863 | $as_echo_n "(cached) " >&6 | |
4864 | else | |
4865 | if test -n "$ac_ct_RANLIB"; then | |
4866 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4867 | else | |
4868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4869 | for as_dir in $PATH | |
4870 | do | |
4871 | IFS=$as_save_IFS | |
4872 | test -z "$as_dir" && as_dir=. | |
4873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4875 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4877 | break 2 | |
4878 | fi | |
4879 | done | |
4880 | done | |
4881 | IFS=$as_save_IFS | |
4882 | ||
4883 | fi | |
4884 | fi | |
4885 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4886 | if test -n "$ac_ct_RANLIB"; then | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4888 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4889 | else | |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4891 | $as_echo "no" >&6; } | |
4892 | fi | |
4893 | ||
4894 | if test "x$ac_ct_RANLIB" = x; then | |
4895 | RANLIB=":" | |
4896 | else | |
4897 | case $cross_compiling:$ac_tool_warned in | |
4898 | yes:) | |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4901 | ac_tool_warned=yes ;; | |
4902 | esac | |
4903 | RANLIB=$ac_ct_RANLIB | |
4904 | fi | |
4905 | else | |
4906 | RANLIB="$ac_cv_prog_RANLIB" | |
4907 | fi | |
4908 | ||
4909 | test -z "$RANLIB" && RANLIB=: | |
4910 | ||
4911 | ||
4912 | ||
4913 | ||
4914 | ||
4915 | ||
4916 | # Determine commands to create old-style static archives. | |
4917 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
4918 | old_postinstall_cmds='chmod 644 $oldlib' | |
4919 | old_postuninstall_cmds= | |
4920 | ||
4921 | if test -n "$RANLIB"; then | |
4922 | case $host_os in | |
4923 | openbsd*) | |
4924 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
4925 | ;; | |
4926 | *) | |
4927 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
4928 | ;; | |
4929 | esac | |
4930 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4931 | fi | |
4932 | ||
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | ||
4944 | ||
4945 | ||
4946 | ||
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | # If no C compiler was specified, use CC. | |
4967 | LTCC=${LTCC-"$CC"} | |
4968 | ||
4969 | # If no C compiler flags were specified, use CFLAGS. | |
4970 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4971 | ||
4972 | # Allow CC to be a program name with arguments. | |
4973 | compiler=$CC | |
4974 | ||
4975 | ||
4976 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
4978 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
4979 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
4980 | $as_echo_n "(cached) " >&6 | |
4981 | else | |
4982 | ||
4983 | # These are sane defaults that work on at least a few old systems. | |
4984 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4985 | ||
4986 | # Character class describing NM global symbol codes. | |
4987 | symcode='[BCDEGRST]' | |
4988 | ||
4989 | # Regexp to match symbols that can be accessed directly from C. | |
4990 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4991 | ||
4992 | # Define system-specific variables. | |
4993 | case $host_os in | |
4994 | aix*) | |
4995 | symcode='[BCDT]' | |
4996 | ;; | |
4997 | cygwin* | mingw* | pw32* | cegcc*) | |
4998 | symcode='[ABCDGISTW]' | |
4999 | ;; | |
5000 | hpux*) | |
5001 | if test "$host_cpu" = ia64; then | |
5002 | symcode='[ABCDEGRST]' | |
5003 | fi | |
5004 | ;; | |
5005 | irix* | nonstopux*) | |
5006 | symcode='[BCDEGRST]' | |
5007 | ;; | |
5008 | osf*) | |
5009 | symcode='[BCDEGQRST]' | |
5010 | ;; | |
5011 | solaris*) | |
5012 | symcode='[BDRT]' | |
5013 | ;; | |
5014 | sco3.2v5*) | |
5015 | symcode='[DT]' | |
5016 | ;; | |
5017 | sysv4.2uw2*) | |
5018 | symcode='[DT]' | |
5019 | ;; | |
5020 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5021 | symcode='[ABDT]' | |
5022 | ;; | |
5023 | sysv4) | |
5024 | symcode='[DFNSTU]' | |
5025 | ;; | |
5026 | esac | |
5027 | ||
5028 | # If we're using GNU nm, then use its standard symbol codes. | |
5029 | case `$NM -V 2>&1` in | |
5030 | *GNU* | *'with BFD'*) | |
5031 | symcode='[ABCDGIRSTW]' ;; | |
5032 | esac | |
5033 | ||
5034 | # Transform an extracted symbol line into a proper C declaration. | |
5035 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5036 | # so use this general approach. | |
5037 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5038 | ||
5039 | # Transform an extracted symbol line into symbol name and symbol address | |
5040 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5041 | 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'" | |
5042 | ||
5043 | # Handle CRLF in mingw tool chain | |
5044 | opt_cr= | |
5045 | case $build_os in | |
5046 | mingw*) | |
5047 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5048 | ;; | |
5049 | esac | |
5050 | ||
5051 | # Try without a prefix underscore, then with it. | |
5052 | for ac_symprfx in "" "_"; do | |
5053 | ||
5054 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5055 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5056 | ||
5057 | # Write the raw and C identifiers. | |
5058 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5059 | # Fake it for dumpbin and say T for any non-static function | |
5060 | # and D for any global variable. | |
5061 | # Also find C++ and __fastcall symbols from MSVC++, | |
5062 | # which start with @ or ?. | |
5063 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5064 | " {last_section=section; section=\$ 3};"\ | |
5065 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5066 | " \$ 0!~/External *\|/{next};"\ | |
5067 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5068 | " {if(hide[section]) next};"\ | |
5069 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5070 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5071 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5072 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5073 | " ' prfx=^$ac_symprfx" | |
5074 | else | |
5075 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5076 | fi | |
5077 | ||
5078 | # Check to see that the pipe works correctly. | |
5079 | pipe_works=no | |
5080 | ||
5081 | rm -f conftest* | |
5082 | cat > conftest.$ac_ext <<_LT_EOF | |
5083 | #ifdef __cplusplus | |
5084 | extern "C" { | |
5085 | #endif | |
5086 | char nm_test_var; | |
5087 | void nm_test_func(void); | |
5088 | void nm_test_func(void){} | |
5089 | #ifdef __cplusplus | |
5090 | } | |
5091 | #endif | |
5092 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5093 | _LT_EOF | |
5094 | ||
5095 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5096 | (eval $ac_compile) 2>&5 | |
5097 | ac_status=$? | |
5098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5099 | test $ac_status = 0; }; then | |
5100 | # Now try to grab the symbols. | |
5101 | nlist=conftest.nm | |
5102 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5103 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5104 | ac_status=$? | |
5105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5106 | test $ac_status = 0; } && test -s "$nlist"; then | |
5107 | # Try sorting and uniquifying the output. | |
5108 | if sort "$nlist" | uniq > "$nlist"T; then | |
5109 | mv -f "$nlist"T "$nlist" | |
5110 | else | |
5111 | rm -f "$nlist"T | |
5112 | fi | |
5113 | ||
5114 | # Make sure that we snagged all the symbols we need. | |
5115 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5116 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5117 | cat <<_LT_EOF > conftest.$ac_ext | |
5118 | #ifdef __cplusplus | |
5119 | extern "C" { | |
5120 | #endif | |
5121 | ||
5122 | _LT_EOF | |
5123 | # Now generate the symbol file. | |
5124 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5125 | ||
5126 | cat <<_LT_EOF >> conftest.$ac_ext | |
5127 | ||
5128 | /* The mapping between symbol names and symbols. */ | |
5129 | const struct { | |
5130 | const char *name; | |
5131 | void *address; | |
5132 | } | |
5133 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5134 | { | |
5135 | { "@PROGRAM@", (void *) 0 }, | |
5136 | _LT_EOF | |
5137 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5138 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5139 | {0, (void *) 0} | |
5140 | }; | |
5141 | ||
5142 | /* This works around a problem in FreeBSD linker */ | |
5143 | #ifdef FREEBSD_WORKAROUND | |
5144 | static const void *lt_preloaded_setup() { | |
5145 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5146 | } | |
5147 | #endif | |
5148 | ||
5149 | #ifdef __cplusplus | |
5150 | } | |
5151 | #endif | |
5152 | _LT_EOF | |
5153 | # Now try linking the two files. | |
5154 | mv conftest.$ac_objext conftstm.$ac_objext | |
5155 | lt_save_LIBS="$LIBS" | |
5156 | lt_save_CFLAGS="$CFLAGS" | |
5157 | LIBS="conftstm.$ac_objext" | |
5158 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5159 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5160 | (eval $ac_link) 2>&5 | |
5161 | ac_status=$? | |
5162 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5163 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5164 | pipe_works=yes | |
5165 | fi | |
5166 | LIBS="$lt_save_LIBS" | |
5167 | CFLAGS="$lt_save_CFLAGS" | |
5168 | else | |
5169 | echo "cannot find nm_test_func in $nlist" >&5 | |
5170 | fi | |
5171 | else | |
5172 | echo "cannot find nm_test_var in $nlist" >&5 | |
5173 | fi | |
5174 | else | |
5175 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5176 | fi | |
5177 | else | |
5178 | echo "$progname: failed program was:" >&5 | |
5179 | cat conftest.$ac_ext >&5 | |
5180 | fi | |
5181 | rm -rf conftest* conftst* | |
5182 | ||
5183 | # Do not use the global_symbol_pipe unless it works. | |
5184 | if test "$pipe_works" = yes; then | |
5185 | break | |
5186 | else | |
5187 | lt_cv_sys_global_symbol_pipe= | |
5188 | fi | |
5189 | done | |
5190 | ||
5191 | fi | |
5192 | ||
5193 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5194 | lt_cv_sys_global_symbol_to_cdecl= | |
5195 | fi | |
5196 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5198 | $as_echo "failed" >&6; } | |
5199 | else | |
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5201 | $as_echo "ok" >&6; } | |
5202 | fi | |
5203 | ||
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | ||
5210 | ||
5211 | ||
5212 | ||
5213 | ||
5214 | ||
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | # Check whether --enable-libtool-lock was given. | |
5227 | if test "${enable_libtool_lock+set}" = set; then : | |
5228 | enableval=$enable_libtool_lock; | |
5229 | fi | |
5230 | ||
5231 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5232 | ||
5233 | # Some flags need to be propagated to the compiler or linker for good | |
5234 | # libtool support. | |
5235 | case $host in | |
5236 | ia64-*-hpux*) | |
5237 | # Find out which ABI we are using. | |
5238 | echo 'int i;' > conftest.$ac_ext | |
5239 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5240 | (eval $ac_compile) 2>&5 | |
5241 | ac_status=$? | |
5242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5243 | test $ac_status = 0; }; then | |
5244 | case `/usr/bin/file conftest.$ac_objext` in | |
5245 | *ELF-32*) | |
5246 | HPUX_IA64_MODE="32" | |
5247 | ;; | |
5248 | *ELF-64*) | |
5249 | HPUX_IA64_MODE="64" | |
5250 | ;; | |
5251 | esac | |
5252 | fi | |
5253 | rm -rf conftest* | |
5254 | ;; | |
5255 | *-*-irix6*) | |
5256 | # Find out which ABI we are using. | |
5257 | echo '#line 5257 "configure"' > conftest.$ac_ext | |
5258 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5259 | (eval $ac_compile) 2>&5 | |
5260 | ac_status=$? | |
5261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5262 | test $ac_status = 0; }; then | |
5263 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5264 | case `/usr/bin/file conftest.$ac_objext` in | |
5265 | *32-bit*) | |
5266 | LD="${LD-ld} -melf32bsmip" | |
5267 | ;; | |
5268 | *N32*) | |
5269 | LD="${LD-ld} -melf32bmipn32" | |
5270 | ;; | |
5271 | *64-bit*) | |
5272 | LD="${LD-ld} -melf64bmip" | |
5273 | ;; | |
5274 | esac | |
5275 | else | |
5276 | case `/usr/bin/file conftest.$ac_objext` in | |
5277 | *32-bit*) | |
5278 | LD="${LD-ld} -32" | |
5279 | ;; | |
5280 | *N32*) | |
5281 | LD="${LD-ld} -n32" | |
5282 | ;; | |
5283 | *64-bit*) | |
5284 | LD="${LD-ld} -64" | |
5285 | ;; | |
5286 | esac | |
5287 | fi | |
5288 | fi | |
5289 | rm -rf conftest* | |
5290 | ;; | |
5291 | ||
5292 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5293 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5294 | # Find out which ABI we are using. | |
5295 | echo 'int i;' > conftest.$ac_ext | |
5296 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5297 | (eval $ac_compile) 2>&5 | |
5298 | ac_status=$? | |
5299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5300 | test $ac_status = 0; }; then | |
5301 | case `/usr/bin/file conftest.o` in | |
5302 | *32-bit*) | |
5303 | case $host in | |
5304 | x86_64-*kfreebsd*-gnu) | |
5305 | LD="${LD-ld} -m elf_i386_fbsd" | |
5306 | ;; | |
5307 | x86_64-*linux*) | |
5308 | LD="${LD-ld} -m elf_i386" | |
5309 | ;; | |
5310 | ppc64-*linux*|powerpc64-*linux*) | |
5311 | LD="${LD-ld} -m elf32ppclinux" | |
5312 | ;; | |
5313 | s390x-*linux*) | |
5314 | LD="${LD-ld} -m elf_s390" | |
5315 | ;; | |
5316 | sparc64-*linux*) | |
5317 | LD="${LD-ld} -m elf32_sparc" | |
5318 | ;; | |
5319 | esac | |
5320 | ;; | |
5321 | *64-bit*) | |
5322 | case $host in | |
5323 | x86_64-*kfreebsd*-gnu) | |
5324 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5325 | ;; | |
5326 | x86_64-*linux*) | |
5327 | LD="${LD-ld} -m elf_x86_64" | |
5328 | ;; | |
5329 | ppc*-*linux*|powerpc*-*linux*) | |
5330 | LD="${LD-ld} -m elf64ppc" | |
5331 | ;; | |
5332 | s390*-*linux*|s390*-*tpf*) | |
5333 | LD="${LD-ld} -m elf64_s390" | |
5334 | ;; | |
5335 | sparc*-*linux*) | |
5336 | LD="${LD-ld} -m elf64_sparc" | |
5337 | ;; | |
5338 | esac | |
5339 | ;; | |
5340 | esac | |
5341 | fi | |
5342 | rm -rf conftest* | |
5343 | ;; | |
5344 | ||
5345 | *-*-sco3.2v5*) | |
5346 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5347 | SAVE_CFLAGS="$CFLAGS" | |
5348 | CFLAGS="$CFLAGS -belf" | |
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5350 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5351 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5352 | $as_echo_n "(cached) " >&6 | |
5353 | else | |
5354 | ac_ext=c | |
5355 | ac_cpp='$CPP $CPPFLAGS' | |
5356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5359 | ||
5360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5361 | /* end confdefs.h. */ | |
5362 | ||
5363 | int | |
5364 | main () | |
5365 | { | |
5366 | ||
5367 | ; | |
5368 | return 0; | |
5369 | } | |
5370 | _ACEOF | |
5371 | if ac_fn_c_try_link "$LINENO"; then : | |
5372 | lt_cv_cc_needs_belf=yes | |
5373 | else | |
5374 | lt_cv_cc_needs_belf=no | |
5375 | fi | |
5376 | rm -f core conftest.err conftest.$ac_objext \ | |
5377 | conftest$ac_exeext conftest.$ac_ext | |
5378 | ac_ext=c | |
5379 | ac_cpp='$CPP $CPPFLAGS' | |
5380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5383 | ||
5384 | fi | |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5386 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5387 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5388 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5389 | CFLAGS="$SAVE_CFLAGS" | |
5390 | fi | |
5391 | ;; | |
5392 | sparc*-*solaris*) | |
5393 | # Find out which ABI we are using. | |
5394 | echo 'int i;' > conftest.$ac_ext | |
5395 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5396 | (eval $ac_compile) 2>&5 | |
5397 | ac_status=$? | |
5398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5399 | test $ac_status = 0; }; then | |
5400 | case `/usr/bin/file conftest.o` in | |
5401 | *64-bit*) | |
5402 | case $lt_cv_prog_gnu_ld in | |
5403 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5404 | *) | |
5405 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5406 | LD="${LD-ld} -64" | |
5407 | fi | |
5408 | ;; | |
5409 | esac | |
5410 | ;; | |
5411 | esac | |
5412 | fi | |
5413 | rm -rf conftest* | |
5414 | ;; | |
5415 | esac | |
5416 | ||
5417 | need_locks="$enable_libtool_lock" | |
5418 | ||
5419 | ||
5420 | case $host_os in | |
5421 | rhapsody* | darwin*) | |
5422 | if test -n "$ac_tool_prefix"; then | |
5423 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5424 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5426 | $as_echo_n "checking for $ac_word... " >&6; } | |
5427 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5428 | $as_echo_n "(cached) " >&6 | |
5429 | else | |
5430 | if test -n "$DSYMUTIL"; then | |
5431 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5432 | else | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
5438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5440 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5441 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5442 | break 2 | |
5443 | fi | |
5444 | done | |
5445 | done | |
5446 | IFS=$as_save_IFS | |
5447 | ||
5448 | fi | |
5449 | fi | |
5450 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5451 | if test -n "$DSYMUTIL"; then | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5453 | $as_echo "$DSYMUTIL" >&6; } | |
5454 | else | |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5456 | $as_echo "no" >&6; } | |
5457 | fi | |
5458 | ||
5459 | ||
5460 | fi | |
5461 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5462 | ac_ct_DSYMUTIL=$DSYMUTIL | |
5463 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
5464 | set dummy dsymutil; ac_word=$2 | |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5466 | $as_echo_n "checking for $ac_word... " >&6; } | |
5467 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5468 | $as_echo_n "(cached) " >&6 | |
5469 | else | |
5470 | if test -n "$ac_ct_DSYMUTIL"; then | |
5471 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5472 | else | |
5473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5474 | for as_dir in $PATH | |
5475 | do | |
5476 | IFS=$as_save_IFS | |
5477 | test -z "$as_dir" && as_dir=. | |
5478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5480 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5482 | break 2 | |
5483 | fi | |
5484 | done | |
5485 | done | |
5486 | IFS=$as_save_IFS | |
5487 | ||
5488 | fi | |
5489 | fi | |
5490 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5491 | if test -n "$ac_ct_DSYMUTIL"; then | |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5493 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5494 | else | |
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5496 | $as_echo "no" >&6; } | |
5497 | fi | |
5498 | ||
5499 | if test "x$ac_ct_DSYMUTIL" = x; then | |
5500 | DSYMUTIL=":" | |
5501 | else | |
5502 | case $cross_compiling:$ac_tool_warned in | |
5503 | yes:) | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5505 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5506 | ac_tool_warned=yes ;; | |
5507 | esac | |
5508 | DSYMUTIL=$ac_ct_DSYMUTIL | |
5509 | fi | |
5510 | else | |
5511 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5512 | fi | |
5513 | ||
5514 | if test -n "$ac_tool_prefix"; then | |
5515 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5516 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5518 | $as_echo_n "checking for $ac_word... " >&6; } | |
5519 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5520 | $as_echo_n "(cached) " >&6 | |
5521 | else | |
5522 | if test -n "$NMEDIT"; then | |
5523 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5524 | else | |
5525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5526 | for as_dir in $PATH | |
5527 | do | |
5528 | IFS=$as_save_IFS | |
5529 | test -z "$as_dir" && as_dir=. | |
5530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5532 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5534 | break 2 | |
5535 | fi | |
5536 | done | |
5537 | done | |
5538 | IFS=$as_save_IFS | |
5539 | ||
5540 | fi | |
5541 | fi | |
5542 | NMEDIT=$ac_cv_prog_NMEDIT | |
5543 | if test -n "$NMEDIT"; then | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5545 | $as_echo "$NMEDIT" >&6; } | |
5546 | else | |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5548 | $as_echo "no" >&6; } | |
5549 | fi | |
5550 | ||
5551 | ||
5552 | fi | |
5553 | if test -z "$ac_cv_prog_NMEDIT"; then | |
5554 | ac_ct_NMEDIT=$NMEDIT | |
5555 | # Extract the first word of "nmedit", so it can be a program name with args. | |
5556 | set dummy nmedit; ac_word=$2 | |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5558 | $as_echo_n "checking for $ac_word... " >&6; } | |
5559 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5560 | $as_echo_n "(cached) " >&6 | |
5561 | else | |
5562 | if test -n "$ac_ct_NMEDIT"; then | |
5563 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5564 | else | |
5565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5566 | for as_dir in $PATH | |
5567 | do | |
5568 | IFS=$as_save_IFS | |
5569 | test -z "$as_dir" && as_dir=. | |
5570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5572 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5574 | break 2 | |
5575 | fi | |
5576 | done | |
5577 | done | |
5578 | IFS=$as_save_IFS | |
5579 | ||
5580 | fi | |
5581 | fi | |
5582 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5583 | if test -n "$ac_ct_NMEDIT"; then | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5585 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
5586 | else | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5588 | $as_echo "no" >&6; } | |
5589 | fi | |
5590 | ||
5591 | if test "x$ac_ct_NMEDIT" = x; then | |
5592 | NMEDIT=":" | |
5593 | else | |
5594 | case $cross_compiling:$ac_tool_warned in | |
5595 | yes:) | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5597 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5598 | ac_tool_warned=yes ;; | |
5599 | esac | |
5600 | NMEDIT=$ac_ct_NMEDIT | |
5601 | fi | |
5602 | else | |
5603 | NMEDIT="$ac_cv_prog_NMEDIT" | |
5604 | fi | |
5605 | ||
5606 | if test -n "$ac_tool_prefix"; then | |
5607 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5608 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5610 | $as_echo_n "checking for $ac_word... " >&6; } | |
5611 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5612 | $as_echo_n "(cached) " >&6 | |
5613 | else | |
5614 | if test -n "$LIPO"; then | |
5615 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5616 | else | |
5617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5618 | for as_dir in $PATH | |
5619 | do | |
5620 | IFS=$as_save_IFS | |
5621 | test -z "$as_dir" && as_dir=. | |
5622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5624 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5625 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5626 | break 2 | |
5627 | fi | |
5628 | done | |
5629 | done | |
5630 | IFS=$as_save_IFS | |
5631 | ||
5632 | fi | |
5633 | fi | |
5634 | LIPO=$ac_cv_prog_LIPO | |
5635 | if test -n "$LIPO"; then | |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5637 | $as_echo "$LIPO" >&6; } | |
5638 | else | |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5640 | $as_echo "no" >&6; } | |
5641 | fi | |
5642 | ||
5643 | ||
5644 | fi | |
5645 | if test -z "$ac_cv_prog_LIPO"; then | |
5646 | ac_ct_LIPO=$LIPO | |
5647 | # Extract the first word of "lipo", so it can be a program name with args. | |
5648 | set dummy lipo; ac_word=$2 | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5650 | $as_echo_n "checking for $ac_word... " >&6; } | |
5651 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5652 | $as_echo_n "(cached) " >&6 | |
5653 | else | |
5654 | if test -n "$ac_ct_LIPO"; then | |
5655 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5656 | else | |
5657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5658 | for as_dir in $PATH | |
5659 | do | |
5660 | IFS=$as_save_IFS | |
5661 | test -z "$as_dir" && as_dir=. | |
5662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5664 | ac_cv_prog_ac_ct_LIPO="lipo" | |
5665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5666 | break 2 | |
5667 | fi | |
5668 | done | |
5669 | done | |
5670 | IFS=$as_save_IFS | |
5671 | ||
5672 | fi | |
5673 | fi | |
5674 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
5675 | if test -n "$ac_ct_LIPO"; then | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
5677 | $as_echo "$ac_ct_LIPO" >&6; } | |
5678 | else | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5680 | $as_echo "no" >&6; } | |
5681 | fi | |
5682 | ||
5683 | if test "x$ac_ct_LIPO" = x; then | |
5684 | LIPO=":" | |
5685 | else | |
5686 | case $cross_compiling:$ac_tool_warned in | |
5687 | yes:) | |
5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5689 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5690 | ac_tool_warned=yes ;; | |
5691 | esac | |
5692 | LIPO=$ac_ct_LIPO | |
5693 | fi | |
5694 | else | |
5695 | LIPO="$ac_cv_prog_LIPO" | |
5696 | fi | |
5697 | ||
5698 | if test -n "$ac_tool_prefix"; then | |
5699 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
5700 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5702 | $as_echo_n "checking for $ac_word... " >&6; } | |
5703 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
5704 | $as_echo_n "(cached) " >&6 | |
5705 | else | |
5706 | if test -n "$OTOOL"; then | |
5707 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
5708 | else | |
5709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5710 | for as_dir in $PATH | |
5711 | do | |
5712 | IFS=$as_save_IFS | |
5713 | test -z "$as_dir" && as_dir=. | |
5714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5716 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
5717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5718 | break 2 | |
5719 | fi | |
5720 | done | |
5721 | done | |
5722 | IFS=$as_save_IFS | |
5723 | ||
5724 | fi | |
5725 | fi | |
5726 | OTOOL=$ac_cv_prog_OTOOL | |
5727 | if test -n "$OTOOL"; then | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
5729 | $as_echo "$OTOOL" >&6; } | |
5730 | else | |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5732 | $as_echo "no" >&6; } | |
5733 | fi | |
5734 | ||
5735 | ||
5736 | fi | |
5737 | if test -z "$ac_cv_prog_OTOOL"; then | |
5738 | ac_ct_OTOOL=$OTOOL | |
5739 | # Extract the first word of "otool", so it can be a program name with args. | |
5740 | set dummy otool; ac_word=$2 | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5742 | $as_echo_n "checking for $ac_word... " >&6; } | |
5743 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
5744 | $as_echo_n "(cached) " >&6 | |
5745 | else | |
5746 | if test -n "$ac_ct_OTOOL"; then | |
5747 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
5748 | else | |
5749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5750 | for as_dir in $PATH | |
5751 | do | |
5752 | IFS=$as_save_IFS | |
5753 | test -z "$as_dir" && as_dir=. | |
5754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5756 | ac_cv_prog_ac_ct_OTOOL="otool" | |
5757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5758 | break 2 | |
5759 | fi | |
5760 | done | |
5761 | done | |
5762 | IFS=$as_save_IFS | |
5763 | ||
5764 | fi | |
5765 | fi | |
5766 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
5767 | if test -n "$ac_ct_OTOOL"; then | |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
5769 | $as_echo "$ac_ct_OTOOL" >&6; } | |
5770 | else | |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5772 | $as_echo "no" >&6; } | |
5773 | fi | |
5774 | ||
5775 | if test "x$ac_ct_OTOOL" = x; then | |
5776 | OTOOL=":" | |
5777 | else | |
5778 | case $cross_compiling:$ac_tool_warned in | |
5779 | yes:) | |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5781 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5782 | ac_tool_warned=yes ;; | |
5783 | esac | |
5784 | OTOOL=$ac_ct_OTOOL | |
5785 | fi | |
5786 | else | |
5787 | OTOOL="$ac_cv_prog_OTOOL" | |
5788 | fi | |
5789 | ||
5790 | if test -n "$ac_tool_prefix"; then | |
5791 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
5792 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5794 | $as_echo_n "checking for $ac_word... " >&6; } | |
5795 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
5796 | $as_echo_n "(cached) " >&6 | |
5797 | else | |
5798 | if test -n "$OTOOL64"; then | |
5799 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
5800 | else | |
5801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5802 | for as_dir in $PATH | |
5803 | do | |
5804 | IFS=$as_save_IFS | |
5805 | test -z "$as_dir" && as_dir=. | |
5806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5808 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
5809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5810 | break 2 | |
5811 | fi | |
5812 | done | |
5813 | done | |
5814 | IFS=$as_save_IFS | |
5815 | ||
5816 | fi | |
5817 | fi | |
5818 | OTOOL64=$ac_cv_prog_OTOOL64 | |
5819 | if test -n "$OTOOL64"; then | |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
5821 | $as_echo "$OTOOL64" >&6; } | |
5822 | else | |
5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5824 | $as_echo "no" >&6; } | |
5825 | fi | |
5826 | ||
5827 | ||
5828 | fi | |
5829 | if test -z "$ac_cv_prog_OTOOL64"; then | |
5830 | ac_ct_OTOOL64=$OTOOL64 | |
5831 | # Extract the first word of "otool64", so it can be a program name with args. | |
5832 | set dummy otool64; ac_word=$2 | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5834 | $as_echo_n "checking for $ac_word... " >&6; } | |
5835 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
5836 | $as_echo_n "(cached) " >&6 | |
5837 | else | |
5838 | if test -n "$ac_ct_OTOOL64"; then | |
5839 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
5840 | else | |
5841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5842 | for as_dir in $PATH | |
5843 | do | |
5844 | IFS=$as_save_IFS | |
5845 | test -z "$as_dir" && as_dir=. | |
5846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5848 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
5849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5850 | break 2 | |
5851 | fi | |
5852 | done | |
5853 | done | |
5854 | IFS=$as_save_IFS | |
5855 | ||
5856 | fi | |
5857 | fi | |
5858 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
5859 | if test -n "$ac_ct_OTOOL64"; then | |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
5861 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
5862 | else | |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5864 | $as_echo "no" >&6; } | |
5865 | fi | |
5866 | ||
5867 | if test "x$ac_ct_OTOOL64" = x; then | |
5868 | OTOOL64=":" | |
5869 | else | |
5870 | case $cross_compiling:$ac_tool_warned in | |
5871 | yes:) | |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5873 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5874 | ac_tool_warned=yes ;; | |
5875 | esac | |
5876 | OTOOL64=$ac_ct_OTOOL64 | |
5877 | fi | |
5878 | else | |
5879 | OTOOL64="$ac_cv_prog_OTOOL64" | |
5880 | fi | |
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
5909 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
5910 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
5911 | $as_echo_n "(cached) " >&6 | |
5912 | else | |
5913 | lt_cv_apple_cc_single_mod=no | |
5914 | if test -z "${LT_MULTI_MODULE}"; then | |
5915 | # By default we will add the -single_module flag. You can override | |
5916 | # by either setting the environment variable LT_MULTI_MODULE | |
5917 | # non-empty at configure time, or by adding -multi_module to the | |
5918 | # link flags. | |
5919 | rm -rf libconftest.dylib* | |
5920 | echo "int foo(void){return 1;}" > conftest.c | |
5921 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5922 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
5923 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
5924 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
5925 | _lt_result=$? | |
5926 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
5927 | lt_cv_apple_cc_single_mod=yes | |
5928 | else | |
5929 | cat conftest.err >&5 | |
5930 | fi | |
5931 | rm -rf libconftest.dylib* | |
5932 | rm -f conftest.* | |
5933 | fi | |
5934 | fi | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
5936 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
5938 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
5939 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
5940 | $as_echo_n "(cached) " >&6 | |
5941 | else | |
5942 | lt_cv_ld_exported_symbols_list=no | |
5943 | save_LDFLAGS=$LDFLAGS | |
5944 | echo "_main" > conftest.sym | |
5945 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
5946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5947 | /* end confdefs.h. */ | |
5948 | ||
5949 | int | |
5950 | main () | |
5951 | { | |
5952 | ||
5953 | ; | |
5954 | return 0; | |
5955 | } | |
5956 | _ACEOF | |
5957 | if ac_fn_c_try_link "$LINENO"; then : | |
5958 | lt_cv_ld_exported_symbols_list=yes | |
5959 | else | |
5960 | lt_cv_ld_exported_symbols_list=no | |
5961 | fi | |
5962 | rm -f core conftest.err conftest.$ac_objext \ | |
5963 | conftest$ac_exeext conftest.$ac_ext | |
5964 | LDFLAGS="$save_LDFLAGS" | |
5965 | ||
5966 | fi | |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
5968 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
5969 | case $host_os in | |
5970 | rhapsody* | darwin1.[012]) | |
5971 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
5972 | darwin1.*) | |
5973 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5974 | darwin*) # darwin 5.x on | |
5975 | # if running on 10.5 or later, the deployment target defaults | |
5976 | # to the OS version, if on x86, and 10.4, the deployment | |
5977 | # target defaults to 10.4. Don't you love it? | |
5978 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
5979 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
5980 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5981 | 10.[012]*) | |
5982 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
5983 | 10.*) | |
5984 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
5985 | esac | |
5986 | ;; | |
5987 | esac | |
5988 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
5989 | _lt_dar_single_mod='$single_module' | |
5990 | fi | |
5991 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
5992 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
5993 | else | |
5994 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
5995 | fi | |
5996 | if test "$DSYMUTIL" != ":"; then | |
5997 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
5998 | else | |
5999 | _lt_dsymutil= | |
6000 | fi | |
6001 | ;; | |
6002 | esac | |
6003 | ||
6004 | ac_ext=c | |
6005 | ac_cpp='$CPP $CPPFLAGS' | |
6006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6010 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6011 | # On Suns, sometimes $CPP names a directory. | |
6012 | if test -n "$CPP" && test -d "$CPP"; then | |
6013 | CPP= | |
6014 | fi | |
6015 | if test -z "$CPP"; then | |
6016 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
6017 | $as_echo_n "(cached) " >&6 | |
6018 | else | |
6019 | # Double quotes because CPP needs to be expanded | |
6020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6021 | do | |
6022 | ac_preproc_ok=false | |
6023 | for ac_c_preproc_warn_flag in '' yes | |
6024 | do | |
6025 | # Use a header file that comes with gcc, so configuring glibc | |
6026 | # with a fresh cross-compiler works. | |
6027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6028 | # <limits.h> exists even on freestanding compilers. | |
6029 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6030 | # not just through cpp. "Syntax error" is here to catch this case. | |
6031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6032 | /* end confdefs.h. */ | |
6033 | #ifdef __STDC__ | |
6034 | # include <limits.h> | |
6035 | #else | |
6036 | # include <assert.h> | |
6037 | #endif | |
6038 | Syntax error | |
6039 | _ACEOF | |
6040 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6041 | ||
6042 | else | |
6043 | # Broken: fails on valid input. | |
6044 | continue | |
6045 | fi | |
6046 | rm -f conftest.err conftest.$ac_ext | |
6047 | ||
6048 | # OK, works on sane cases. Now check whether nonexistent headers | |
6049 | # can be detected and how. | |
6050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6051 | /* end confdefs.h. */ | |
6052 | #include <ac_nonexistent.h> | |
6053 | _ACEOF | |
6054 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6055 | # Broken: success on invalid input. | |
6056 | continue | |
6057 | else | |
6058 | # Passes both tests. | |
6059 | ac_preproc_ok=: | |
6060 | break | |
6061 | fi | |
6062 | rm -f conftest.err conftest.$ac_ext | |
6063 | ||
6064 | done | |
6065 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6066 | rm -f conftest.err conftest.$ac_ext | |
6067 | if $ac_preproc_ok; then : | |
6068 | break | |
6069 | fi | |
6070 | ||
6071 | done | |
6072 | ac_cv_prog_CPP=$CPP | |
6073 | ||
6074 | fi | |
6075 | CPP=$ac_cv_prog_CPP | |
6076 | else | |
6077 | ac_cv_prog_CPP=$CPP | |
6078 | fi | |
6079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6080 | $as_echo "$CPP" >&6; } | |
6081 | ac_preproc_ok=false | |
6082 | for ac_c_preproc_warn_flag in '' yes | |
6083 | do | |
6084 | # Use a header file that comes with gcc, so configuring glibc | |
6085 | # with a fresh cross-compiler works. | |
6086 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6087 | # <limits.h> exists even on freestanding compilers. | |
6088 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6089 | # not just through cpp. "Syntax error" is here to catch this case. | |
6090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6091 | /* end confdefs.h. */ | |
6092 | #ifdef __STDC__ | |
6093 | # include <limits.h> | |
6094 | #else | |
6095 | # include <assert.h> | |
6096 | #endif | |
6097 | Syntax error | |
6098 | _ACEOF | |
6099 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6100 | ||
6101 | else | |
6102 | # Broken: fails on valid input. | |
6103 | continue | |
6104 | fi | |
6105 | rm -f conftest.err conftest.$ac_ext | |
6106 | ||
6107 | # OK, works on sane cases. Now check whether nonexistent headers | |
6108 | # can be detected and how. | |
6109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6110 | /* end confdefs.h. */ | |
6111 | #include <ac_nonexistent.h> | |
6112 | _ACEOF | |
6113 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6114 | # Broken: success on invalid input. | |
6115 | continue | |
6116 | else | |
6117 | # Passes both tests. | |
6118 | ac_preproc_ok=: | |
6119 | break | |
6120 | fi | |
6121 | rm -f conftest.err conftest.$ac_ext | |
6122 | ||
6123 | done | |
6124 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6125 | rm -f conftest.err conftest.$ac_ext | |
6126 | if $ac_preproc_ok; then : | |
6127 | ||
6128 | else | |
6129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6131 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6132 | See \`config.log' for more details." "$LINENO" 5; } | |
6133 | fi | |
6134 | ||
6135 | ac_ext=c | |
6136 | ac_cpp='$CPP $CPPFLAGS' | |
6137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6140 | ||
6141 | ||
6142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6143 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
6144 | if test "${ac_cv_header_stdc+set}" = set; then : | |
6145 | $as_echo_n "(cached) " >&6 | |
6146 | else | |
6147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6148 | /* end confdefs.h. */ | |
6149 | #include <stdlib.h> | |
6150 | #include <stdarg.h> | |
6151 | #include <string.h> | |
6152 | #include <float.h> | |
6153 | ||
6154 | int | |
6155 | main () | |
6156 | { | |
6157 | ||
6158 | ; | |
6159 | return 0; | |
6160 | } | |
6161 | _ACEOF | |
6162 | if ac_fn_c_try_compile "$LINENO"; then : | |
6163 | ac_cv_header_stdc=yes | |
6164 | else | |
6165 | ac_cv_header_stdc=no | |
6166 | fi | |
6167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6168 | ||
6169 | if test $ac_cv_header_stdc = yes; then | |
6170 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6172 | /* end confdefs.h. */ | |
6173 | #include <string.h> | |
6174 | ||
6175 | _ACEOF | |
6176 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6177 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6178 | ||
6179 | else | |
6180 | ac_cv_header_stdc=no | |
6181 | fi | |
6182 | rm -f conftest* | |
6183 | ||
6184 | fi | |
6185 | ||
6186 | if test $ac_cv_header_stdc = yes; then | |
6187 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6189 | /* end confdefs.h. */ | |
6190 | #include <stdlib.h> | |
6191 | ||
6192 | _ACEOF | |
6193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6194 | $EGREP "free" >/dev/null 2>&1; then : | |
6195 | ||
6196 | else | |
6197 | ac_cv_header_stdc=no | |
6198 | fi | |
6199 | rm -f conftest* | |
6200 | ||
6201 | fi | |
6202 | ||
6203 | if test $ac_cv_header_stdc = yes; then | |
6204 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6205 | if test "$cross_compiling" = yes; then : | |
6206 | : | |
6207 | else | |
6208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6209 | /* end confdefs.h. */ | |
6210 | #include <ctype.h> | |
6211 | #include <stdlib.h> | |
6212 | #if ((' ' & 0x0FF) == 0x020) | |
6213 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6214 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6215 | #else | |
6216 | # define ISLOWER(c) \ | |
6217 | (('a' <= (c) && (c) <= 'i') \ | |
6218 | || ('j' <= (c) && (c) <= 'r') \ | |
6219 | || ('s' <= (c) && (c) <= 'z')) | |
6220 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6221 | #endif | |
6222 | ||
6223 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6224 | int | |
6225 | main () | |
6226 | { | |
6227 | int i; | |
6228 | for (i = 0; i < 256; i++) | |
6229 | if (XOR (islower (i), ISLOWER (i)) | |
6230 | || toupper (i) != TOUPPER (i)) | |
6231 | return 2; | |
6232 | return 0; | |
6233 | } | |
6234 | _ACEOF | |
6235 | if ac_fn_c_try_run "$LINENO"; then : | |
6236 | ||
6237 | else | |
6238 | ac_cv_header_stdc=no | |
6239 | fi | |
6240 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6241 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6242 | fi | |
6243 | ||
6244 | fi | |
6245 | fi | |
6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6247 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6248 | if test $ac_cv_header_stdc = yes; then | |
6249 | ||
6250 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6251 | ||
6252 | fi | |
6253 | ||
6254 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6255 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6256 | inttypes.h stdint.h unistd.h | |
6257 | do : | |
6258 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6259 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6260 | " | |
6261 | eval as_val=\$$as_ac_Header | |
6262 | if test "x$as_val" = x""yes; then : | |
6263 | cat >>confdefs.h <<_ACEOF | |
6264 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6265 | _ACEOF | |
6266 | ||
6267 | fi | |
6268 | ||
6269 | done | |
6270 | ||
6271 | ||
6272 | for ac_header in dlfcn.h | |
6273 | do : | |
6274 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6275 | " | |
6276 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6277 | cat >>confdefs.h <<_ACEOF | |
6278 | #define HAVE_DLFCN_H 1 | |
6279 | _ACEOF | |
6280 | ||
6281 | fi | |
6282 | ||
6283 | done | |
6284 | ||
6285 | ||
6286 | ||
6287 | # Set options | |
6288 | ||
6289 | ||
6290 | ||
6291 | enable_dlopen=no | |
6292 | ||
6293 | ||
6294 | enable_win32_dll=no | |
6295 | ||
6296 | ||
6297 | # Check whether --enable-shared was given. | |
6298 | if test "${enable_shared+set}" = set; then : | |
6299 | enableval=$enable_shared; p=${PACKAGE-default} | |
6300 | case $enableval in | |
6301 | yes) enable_shared=yes ;; | |
6302 | no) enable_shared=no ;; | |
6303 | *) | |
6304 | enable_shared=no | |
6305 | # Look at the argument we got. We use all the common list separators. | |
6306 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6307 | for pkg in $enableval; do | |
6308 | IFS="$lt_save_ifs" | |
6309 | if test "X$pkg" = "X$p"; then | |
6310 | enable_shared=yes | |
6311 | fi | |
6312 | done | |
6313 | IFS="$lt_save_ifs" | |
6314 | ;; | |
6315 | esac | |
6316 | else | |
6317 | enable_shared=yes | |
6318 | fi | |
6319 | ||
6320 | ||
6321 | ||
6322 | ||
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | # Check whether --enable-static was given. | |
6329 | if test "${enable_static+set}" = set; then : | |
6330 | enableval=$enable_static; p=${PACKAGE-default} | |
6331 | case $enableval in | |
6332 | yes) enable_static=yes ;; | |
6333 | no) enable_static=no ;; | |
6334 | *) | |
6335 | enable_static=no | |
6336 | # Look at the argument we got. We use all the common list separators. | |
6337 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6338 | for pkg in $enableval; do | |
6339 | IFS="$lt_save_ifs" | |
6340 | if test "X$pkg" = "X$p"; then | |
6341 | enable_static=yes | |
6342 | fi | |
6343 | done | |
6344 | IFS="$lt_save_ifs" | |
6345 | ;; | |
6346 | esac | |
6347 | else | |
6348 | enable_static=yes | |
6349 | fi | |
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
6357 | ||
6358 | ||
6359 | ||
6360 | # Check whether --with-pic was given. | |
6361 | if test "${with_pic+set}" = set; then : | |
6362 | withval=$with_pic; pic_mode="$withval" | |
6363 | else | |
6364 | pic_mode=default | |
6365 | fi | |
6366 | ||
6367 | ||
6368 | test -z "$pic_mode" && pic_mode=default | |
6369 | ||
6370 | ||
6371 | ||
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | # Check whether --enable-fast-install was given. | |
6377 | if test "${enable_fast_install+set}" = set; then : | |
6378 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6379 | case $enableval in | |
6380 | yes) enable_fast_install=yes ;; | |
6381 | no) enable_fast_install=no ;; | |
6382 | *) | |
6383 | enable_fast_install=no | |
6384 | # Look at the argument we got. We use all the common list separators. | |
6385 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6386 | for pkg in $enableval; do | |
6387 | IFS="$lt_save_ifs" | |
6388 | if test "X$pkg" = "X$p"; then | |
6389 | enable_fast_install=yes | |
6390 | fi | |
6391 | done | |
6392 | IFS="$lt_save_ifs" | |
6393 | ;; | |
6394 | esac | |
6395 | else | |
6396 | enable_fast_install=yes | |
6397 | fi | |
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | # This can be used to rebuild libtool when needed | |
6410 | LIBTOOL_DEPS="$ltmain" | |
6411 | ||
6412 | # Always use our own libtool. | |
6413 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | ||
6422 | ||
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | ||
6429 | ||
6430 | ||
6431 | ||
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | test -z "$LN_S" && LN_S="ln -s" | |
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | if test -n "${ZSH_VERSION+set}" ; then | |
6455 | setopt NO_GLOB_SUBST | |
6456 | fi | |
6457 | ||
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6459 | $as_echo_n "checking for objdir... " >&6; } | |
6460 | if test "${lt_cv_objdir+set}" = set; then : | |
6461 | $as_echo_n "(cached) " >&6 | |
6462 | else | |
6463 | rm -f .libs 2>/dev/null | |
6464 | mkdir .libs 2>/dev/null | |
6465 | if test -d .libs; then | |
6466 | lt_cv_objdir=.libs | |
6467 | else | |
6468 | # MS-DOS does not allow filenames that begin with a dot. | |
6469 | lt_cv_objdir=_libs | |
6470 | fi | |
6471 | rmdir .libs 2>/dev/null | |
6472 | fi | |
6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6474 | $as_echo "$lt_cv_objdir" >&6; } | |
6475 | objdir=$lt_cv_objdir | |
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | cat >>confdefs.h <<_ACEOF | |
6482 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6483 | _ACEOF | |
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | case $host_os in | |
6502 | aix3*) | |
6503 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6504 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6505 | # vanish in a puff of smoke. | |
6506 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6507 | COLLECT_NAMES= | |
6508 | export COLLECT_NAMES | |
6509 | fi | |
6510 | ;; | |
6511 | esac | |
6512 | ||
6513 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6514 | # metacharacters that are still active within double-quoted strings. | |
6515 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6516 | ||
6517 | # Same as above, but do not quote variable references. | |
6518 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6519 | ||
6520 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6521 | # double_quote_subst'ed string. | |
6522 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6523 | ||
6524 | # Sed substitution to delay expansion of an escaped single quote. | |
6525 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6526 | ||
6527 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6528 | no_glob_subst='s/\*/\\\*/g' | |
6529 | ||
6530 | # Global variables: | |
6531 | ofile=libtool | |
6532 | can_build_shared=yes | |
6533 | ||
6534 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6535 | # which needs '.lib'). | |
6536 | libext=a | |
6537 | ||
6538 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6539 | ||
6540 | old_CC="$CC" | |
6541 | old_CFLAGS="$CFLAGS" | |
6542 | ||
6543 | # Set sane defaults for various variables | |
6544 | test -z "$CC" && CC=cc | |
6545 | test -z "$LTCC" && LTCC=$CC | |
6546 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6547 | test -z "$LD" && LD=ld | |
6548 | test -z "$ac_objext" && ac_objext=o | |
6549 | ||
6550 | for cc_temp in $compiler""; do | |
6551 | case $cc_temp in | |
6552 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6553 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6554 | \-*) ;; | |
6555 | *) break;; | |
6556 | esac | |
6557 | done | |
6558 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6559 | ||
6560 | ||
6561 | # Only perform the check for file, if the check method requires it | |
6562 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6563 | case $deplibs_check_method in | |
6564 | file_magic*) | |
6565 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6567 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6568 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6569 | $as_echo_n "(cached) " >&6 | |
6570 | else | |
6571 | case $MAGIC_CMD in | |
6572 | [\\/*] | ?:[\\/]*) | |
6573 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6574 | ;; | |
6575 | *) | |
6576 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6577 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6578 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6579 | for ac_dir in $ac_dummy; do | |
6580 | IFS="$lt_save_ifs" | |
6581 | test -z "$ac_dir" && ac_dir=. | |
6582 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6583 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6584 | if test -n "$file_magic_test_file"; then | |
6585 | case $deplibs_check_method in | |
6586 | "file_magic "*) | |
6587 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6588 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6589 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6590 | $EGREP "$file_magic_regex" > /dev/null; then | |
6591 | : | |
6592 | else | |
6593 | cat <<_LT_EOF 1>&2 | |
6594 | ||
6595 | *** Warning: the command libtool uses to detect shared libraries, | |
6596 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6597 | *** The result is that libtool may fail to recognize shared libraries | |
6598 | *** as such. This will affect the creation of libtool libraries that | |
6599 | *** depend on shared libraries, but programs linked with such libtool | |
6600 | *** libraries will work regardless of this problem. Nevertheless, you | |
6601 | *** may want to report the problem to your system manager and/or to | |
6602 | *** bug-libtool@gnu.org | |
6603 | ||
6604 | _LT_EOF | |
6605 | fi ;; | |
6606 | esac | |
6607 | fi | |
6608 | break | |
6609 | fi | |
6610 | done | |
6611 | IFS="$lt_save_ifs" | |
6612 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6613 | ;; | |
6614 | esac | |
6615 | fi | |
6616 | ||
6617 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6618 | if test -n "$MAGIC_CMD"; then | |
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6620 | $as_echo "$MAGIC_CMD" >&6; } | |
6621 | else | |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6623 | $as_echo "no" >&6; } | |
6624 | fi | |
6625 | ||
6626 | ||
6627 | ||
6628 | ||
6629 | ||
6630 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6631 | if test -n "$ac_tool_prefix"; then | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6633 | $as_echo_n "checking for file... " >&6; } | |
6634 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6635 | $as_echo_n "(cached) " >&6 | |
6636 | else | |
6637 | case $MAGIC_CMD in | |
6638 | [\\/*] | ?:[\\/]*) | |
6639 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6640 | ;; | |
6641 | *) | |
6642 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6643 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6644 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6645 | for ac_dir in $ac_dummy; do | |
6646 | IFS="$lt_save_ifs" | |
6647 | test -z "$ac_dir" && ac_dir=. | |
6648 | if test -f $ac_dir/file; then | |
6649 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6650 | if test -n "$file_magic_test_file"; then | |
6651 | case $deplibs_check_method in | |
6652 | "file_magic "*) | |
6653 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6654 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6655 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6656 | $EGREP "$file_magic_regex" > /dev/null; then | |
6657 | : | |
6658 | else | |
6659 | cat <<_LT_EOF 1>&2 | |
6660 | ||
6661 | *** Warning: the command libtool uses to detect shared libraries, | |
6662 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6663 | *** The result is that libtool may fail to recognize shared libraries | |
6664 | *** as such. This will affect the creation of libtool libraries that | |
6665 | *** depend on shared libraries, but programs linked with such libtool | |
6666 | *** libraries will work regardless of this problem. Nevertheless, you | |
6667 | *** may want to report the problem to your system manager and/or to | |
6668 | *** bug-libtool@gnu.org | |
6669 | ||
6670 | _LT_EOF | |
6671 | fi ;; | |
6672 | esac | |
6673 | fi | |
6674 | break | |
6675 | fi | |
6676 | done | |
6677 | IFS="$lt_save_ifs" | |
6678 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6679 | ;; | |
6680 | esac | |
6681 | fi | |
6682 | ||
6683 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6684 | if test -n "$MAGIC_CMD"; then | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6686 | $as_echo "$MAGIC_CMD" >&6; } | |
6687 | else | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6689 | $as_echo "no" >&6; } | |
6690 | fi | |
6691 | ||
6692 | ||
6693 | else | |
6694 | MAGIC_CMD=: | |
6695 | fi | |
6696 | fi | |
6697 | ||
6698 | fi | |
6699 | ;; | |
6700 | esac | |
6701 | ||
6702 | # Use C for the default configuration in the libtool script | |
6703 | ||
6704 | lt_save_CC="$CC" | |
6705 | ac_ext=c | |
6706 | ac_cpp='$CPP $CPPFLAGS' | |
6707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6710 | ||
6711 | ||
6712 | # Source file extension for C test sources. | |
6713 | ac_ext=c | |
6714 | ||
6715 | # Object file extension for compiled C test sources. | |
6716 | objext=o | |
6717 | objext=$objext | |
6718 | ||
6719 | # Code to be used in simple compile tests | |
6720 | lt_simple_compile_test_code="int some_variable = 0;" | |
6721 | ||
6722 | # Code to be used in simple link tests | |
6723 | lt_simple_link_test_code='int main(){return(0);}' | |
6724 | ||
6725 | ||
6726 | ||
6727 | ||
6728 | ||
6729 | ||
6730 | ||
6731 | # If no C compiler was specified, use CC. | |
6732 | LTCC=${LTCC-"$CC"} | |
6733 | ||
6734 | # If no C compiler flags were specified, use CFLAGS. | |
6735 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6736 | ||
6737 | # Allow CC to be a program name with arguments. | |
6738 | compiler=$CC | |
6739 | ||
6740 | # Save the default compiler, since it gets overwritten when the other | |
6741 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6742 | compiler_DEFAULT=$CC | |
6743 | ||
6744 | # save warnings/boilerplate of simple test code | |
6745 | ac_outfile=conftest.$ac_objext | |
6746 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6747 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6748 | _lt_compiler_boilerplate=`cat conftest.err` | |
6749 | $RM conftest* | |
6750 | ||
6751 | ac_outfile=conftest.$ac_objext | |
6752 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6753 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6754 | _lt_linker_boilerplate=`cat conftest.err` | |
6755 | $RM -r conftest* | |
6756 | ||
6757 | ||
6758 | if test -n "$compiler"; then | |
6759 | ||
6760 | lt_prog_compiler_no_builtin_flag= | |
6761 | ||
6762 | if test "$GCC" = yes; then | |
6763 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6764 | ||
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6766 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
6767 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
6768 | $as_echo_n "(cached) " >&6 | |
6769 | else | |
6770 | lt_cv_prog_compiler_rtti_exceptions=no | |
6771 | ac_outfile=conftest.$ac_objext | |
6772 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6773 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6774 | # Insert the option either (1) after the last *FLAGS variable, or | |
6775 | # (2) before a word containing "conftest.", or (3) at the end. | |
6776 | # Note that $ac_compile itself does not contain backslashes and begins | |
6777 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6778 | # The option is referenced via a variable to avoid confusing sed. | |
6779 | lt_compile=`echo "$ac_compile" | $SED \ | |
6780 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6781 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6782 | -e 's:$: $lt_compiler_flag:'` | |
6783 | (eval echo "\"\$as_me:6783: $lt_compile\"" >&5) | |
6784 | (eval "$lt_compile" 2>conftest.err) | |
6785 | ac_status=$? | |
6786 | cat conftest.err >&5 | |
6787 | echo "$as_me:6787: \$? = $ac_status" >&5 | |
6788 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
6789 | # The compiler can only warn and ignore the option if not recognized | |
6790 | # So say no if there are warnings other than the usual output. | |
6791 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6792 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6793 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6794 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6795 | fi | |
6796 | fi | |
6797 | $RM conftest* | |
6798 | ||
6799 | fi | |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6801 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
6802 | ||
6803 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6804 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6805 | else | |
6806 | : | |
6807 | fi | |
6808 | ||
6809 | fi | |
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | lt_prog_compiler_wl= | |
6817 | lt_prog_compiler_pic= | |
6818 | lt_prog_compiler_static= | |
6819 | ||
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
6821 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
6822 | ||
6823 | if test "$GCC" = yes; then | |
6824 | lt_prog_compiler_wl='-Wl,' | |
6825 | lt_prog_compiler_static='-static' | |
6826 | ||
6827 | case $host_os in | |
6828 | aix*) | |
6829 | # All AIX code is PIC. | |
6830 | if test "$host_cpu" = ia64; then | |
6831 | # AIX 5 now supports IA64 processor | |
6832 | lt_prog_compiler_static='-Bstatic' | |
6833 | fi | |
6834 | ;; | |
6835 | ||
6836 | amigaos*) | |
6837 | case $host_cpu in | |
6838 | powerpc) | |
6839 | # see comment about AmigaOS4 .so support | |
6840 | lt_prog_compiler_pic='-fPIC' | |
6841 | ;; | |
6842 | m68k) | |
6843 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6844 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6845 | # like `-m68040'. | |
6846 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6847 | ;; | |
6848 | esac | |
6849 | ;; | |
6850 | ||
6851 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6852 | # PIC is the default for these OSes. | |
6853 | ;; | |
6854 | ||
6855 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6856 | # This hack is so that the source file can tell whether it is being | |
6857 | # built for inclusion in a dll (and should export symbols for example). | |
6858 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6859 | # (--disable-auto-import) libraries | |
6860 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6861 | ;; | |
6862 | ||
6863 | darwin* | rhapsody*) | |
6864 | # PIC is the default on this platform | |
6865 | # Common symbols not allowed in MH_DYLIB files | |
6866 | lt_prog_compiler_pic='-fno-common' | |
6867 | ;; | |
6868 | ||
6869 | hpux*) | |
6870 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
6871 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
6872 | # sets the default TLS model and affects inlining. | |
6873 | case $host_cpu in | |
6874 | hppa*64*) | |
6875 | # +Z the default | |
6876 | ;; | |
6877 | *) | |
6878 | lt_prog_compiler_pic='-fPIC' | |
6879 | ;; | |
6880 | esac | |
6881 | ;; | |
6882 | ||
6883 | interix[3-9]*) | |
6884 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6885 | # Instead, we relocate shared libraries at runtime. | |
6886 | ;; | |
6887 | ||
6888 | msdosdjgpp*) | |
6889 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6890 | # on systems that don't support them. | |
6891 | lt_prog_compiler_can_build_shared=no | |
6892 | enable_shared=no | |
6893 | ;; | |
6894 | ||
6895 | *nto* | *qnx*) | |
6896 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6897 | # it will coredump. | |
6898 | lt_prog_compiler_pic='-fPIC -shared' | |
6899 | ;; | |
6900 | ||
6901 | sysv4*MP*) | |
6902 | if test -d /usr/nec; then | |
6903 | lt_prog_compiler_pic=-Kconform_pic | |
6904 | fi | |
6905 | ;; | |
6906 | ||
6907 | *) | |
6908 | lt_prog_compiler_pic='-fPIC' | |
6909 | ;; | |
6910 | esac | |
6911 | else | |
6912 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6913 | case $host_os in | |
6914 | aix*) | |
6915 | lt_prog_compiler_wl='-Wl,' | |
6916 | if test "$host_cpu" = ia64; then | |
6917 | # AIX 5 now supports IA64 processor | |
6918 | lt_prog_compiler_static='-Bstatic' | |
6919 | else | |
6920 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6921 | fi | |
6922 | ;; | |
6923 | ||
6924 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
6925 | # This hack is so that the source file can tell whether it is being | |
6926 | # built for inclusion in a dll (and should export symbols for example). | |
6927 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6928 | ;; | |
6929 | ||
6930 | hpux9* | hpux10* | hpux11*) | |
6931 | lt_prog_compiler_wl='-Wl,' | |
6932 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6933 | # not for PA HP-UX. | |
6934 | case $host_cpu in | |
6935 | hppa*64*|ia64*) | |
6936 | # +Z the default | |
6937 | ;; | |
6938 | *) | |
6939 | lt_prog_compiler_pic='+Z' | |
6940 | ;; | |
6941 | esac | |
6942 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6943 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6944 | ;; | |
6945 | ||
6946 | irix5* | irix6* | nonstopux*) | |
6947 | lt_prog_compiler_wl='-Wl,' | |
6948 | # PIC (with -KPIC) is the default. | |
6949 | lt_prog_compiler_static='-non_shared' | |
6950 | ;; | |
6951 | ||
6952 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6953 | case $cc_basename in | |
6954 | # old Intel for x86_64 which still supported -KPIC. | |
6955 | ecc*) | |
6956 | lt_prog_compiler_wl='-Wl,' | |
6957 | lt_prog_compiler_pic='-KPIC' | |
6958 | lt_prog_compiler_static='-static' | |
6959 | ;; | |
6960 | # icc used to be incompatible with GCC. | |
6961 | # ICC 10 doesn't accept -KPIC any more. | |
6962 | icc* | ifort*) | |
6963 | lt_prog_compiler_wl='-Wl,' | |
6964 | lt_prog_compiler_pic='-fPIC' | |
6965 | lt_prog_compiler_static='-static' | |
6966 | ;; | |
6967 | # Lahey Fortran 8.1. | |
6968 | lf95*) | |
6969 | lt_prog_compiler_wl='-Wl,' | |
6970 | lt_prog_compiler_pic='--shared' | |
6971 | lt_prog_compiler_static='--static' | |
6972 | ;; | |
6973 | pgcc* | pgf77* | pgf90* | pgf95*) | |
6974 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
6975 | # which looks to be a dead project) | |
6976 | lt_prog_compiler_wl='-Wl,' | |
6977 | lt_prog_compiler_pic='-fpic' | |
6978 | lt_prog_compiler_static='-Bstatic' | |
6979 | ;; | |
6980 | ccc*) | |
6981 | lt_prog_compiler_wl='-Wl,' | |
6982 | # All Alpha code is PIC. | |
6983 | lt_prog_compiler_static='-non_shared' | |
6984 | ;; | |
6985 | xl*) | |
6986 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
6987 | lt_prog_compiler_wl='-Wl,' | |
6988 | lt_prog_compiler_pic='-qpic' | |
6989 | lt_prog_compiler_static='-qstaticlink' | |
6990 | ;; | |
6991 | *) | |
6992 | case `$CC -V 2>&1 | sed 5q` in | |
6993 | *Sun\ C*) | |
6994 | # Sun C 5.9 | |
6995 | lt_prog_compiler_pic='-KPIC' | |
6996 | lt_prog_compiler_static='-Bstatic' | |
6997 | lt_prog_compiler_wl='-Wl,' | |
6998 | ;; | |
6999 | *Sun\ F*) | |
7000 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7001 | lt_prog_compiler_pic='-KPIC' | |
7002 | lt_prog_compiler_static='-Bstatic' | |
7003 | lt_prog_compiler_wl='' | |
7004 | ;; | |
7005 | esac | |
7006 | ;; | |
7007 | esac | |
7008 | ;; | |
7009 | ||
7010 | newsos6) | |
7011 | lt_prog_compiler_pic='-KPIC' | |
7012 | lt_prog_compiler_static='-Bstatic' | |
7013 | ;; | |
7014 | ||
7015 | *nto* | *qnx*) | |
7016 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7017 | # it will coredump. | |
7018 | lt_prog_compiler_pic='-fPIC -shared' | |
7019 | ;; | |
7020 | ||
7021 | osf3* | osf4* | osf5*) | |
7022 | lt_prog_compiler_wl='-Wl,' | |
7023 | # All OSF/1 code is PIC. | |
7024 | lt_prog_compiler_static='-non_shared' | |
7025 | ;; | |
7026 | ||
7027 | rdos*) | |
7028 | lt_prog_compiler_static='-non_shared' | |
7029 | ;; | |
7030 | ||
7031 | solaris*) | |
7032 | lt_prog_compiler_pic='-KPIC' | |
7033 | lt_prog_compiler_static='-Bstatic' | |
7034 | case $cc_basename in | |
7035 | f77* | f90* | f95*) | |
7036 | lt_prog_compiler_wl='-Qoption ld ';; | |
7037 | *) | |
7038 | lt_prog_compiler_wl='-Wl,';; | |
7039 | esac | |
7040 | ;; | |
7041 | ||
7042 | sunos4*) | |
7043 | lt_prog_compiler_wl='-Qoption ld ' | |
7044 | lt_prog_compiler_pic='-PIC' | |
7045 | lt_prog_compiler_static='-Bstatic' | |
7046 | ;; | |
7047 | ||
7048 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7049 | lt_prog_compiler_wl='-Wl,' | |
7050 | lt_prog_compiler_pic='-KPIC' | |
7051 | lt_prog_compiler_static='-Bstatic' | |
7052 | ;; | |
7053 | ||
7054 | sysv4*MP*) | |
7055 | if test -d /usr/nec ;then | |
7056 | lt_prog_compiler_pic='-Kconform_pic' | |
7057 | lt_prog_compiler_static='-Bstatic' | |
7058 | fi | |
7059 | ;; | |
7060 | ||
7061 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7062 | lt_prog_compiler_wl='-Wl,' | |
7063 | lt_prog_compiler_pic='-KPIC' | |
7064 | lt_prog_compiler_static='-Bstatic' | |
7065 | ;; | |
7066 | ||
7067 | unicos*) | |
7068 | lt_prog_compiler_wl='-Wl,' | |
7069 | lt_prog_compiler_can_build_shared=no | |
7070 | ;; | |
7071 | ||
7072 | uts4*) | |
7073 | lt_prog_compiler_pic='-pic' | |
7074 | lt_prog_compiler_static='-Bstatic' | |
7075 | ;; | |
7076 | ||
7077 | *) | |
7078 | lt_prog_compiler_can_build_shared=no | |
7079 | ;; | |
7080 | esac | |
7081 | fi | |
7082 | ||
7083 | case $host_os in | |
7084 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7085 | *djgpp*) | |
7086 | lt_prog_compiler_pic= | |
7087 | ;; | |
7088 | *) | |
7089 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7090 | ;; | |
7091 | esac | |
7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7093 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7094 | ||
7095 | ||
7096 | ||
7097 | ||
7098 | ||
7099 | ||
7100 | # | |
7101 | # Check to make sure the PIC flag actually works. | |
7102 | # | |
7103 | if test -n "$lt_prog_compiler_pic"; then | |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7105 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7106 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7107 | $as_echo_n "(cached) " >&6 | |
7108 | else | |
7109 | lt_cv_prog_compiler_pic_works=no | |
7110 | ac_outfile=conftest.$ac_objext | |
7111 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7112 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7113 | # Insert the option either (1) after the last *FLAGS variable, or | |
7114 | # (2) before a word containing "conftest.", or (3) at the end. | |
7115 | # Note that $ac_compile itself does not contain backslashes and begins | |
7116 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7117 | # The option is referenced via a variable to avoid confusing sed. | |
7118 | lt_compile=`echo "$ac_compile" | $SED \ | |
7119 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7120 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7121 | -e 's:$: $lt_compiler_flag:'` | |
7122 | (eval echo "\"\$as_me:7122: $lt_compile\"" >&5) | |
7123 | (eval "$lt_compile" 2>conftest.err) | |
7124 | ac_status=$? | |
7125 | cat conftest.err >&5 | |
7126 | echo "$as_me:7126: \$? = $ac_status" >&5 | |
7127 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
7128 | # The compiler can only warn and ignore the option if not recognized | |
7129 | # So say no if there are warnings other than the usual output. | |
7130 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7131 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7132 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7133 | lt_cv_prog_compiler_pic_works=yes | |
7134 | fi | |
7135 | fi | |
7136 | $RM conftest* | |
7137 | ||
7138 | fi | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7140 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7141 | ||
7142 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7143 | case $lt_prog_compiler_pic in | |
7144 | "" | " "*) ;; | |
7145 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7146 | esac | |
7147 | else | |
7148 | lt_prog_compiler_pic= | |
7149 | lt_prog_compiler_can_build_shared=no | |
7150 | fi | |
7151 | ||
7152 | fi | |
7153 | ||
7154 | ||
7155 | ||
7156 | ||
7157 | ||
7158 | ||
7159 | # | |
7160 | # Check to make sure the static flag actually works. | |
7161 | # | |
7162 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7164 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7165 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7166 | $as_echo_n "(cached) " >&6 | |
7167 | else | |
7168 | lt_cv_prog_compiler_static_works=no | |
7169 | save_LDFLAGS="$LDFLAGS" | |
7170 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7171 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7172 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7173 | # The linker can only warn and ignore the option if not recognized | |
7174 | # So say no if there are warnings | |
7175 | if test -s conftest.err; then | |
7176 | # Append any errors to the config.log. | |
7177 | cat conftest.err 1>&5 | |
7178 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7179 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7180 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7181 | lt_cv_prog_compiler_static_works=yes | |
7182 | fi | |
7183 | else | |
7184 | lt_cv_prog_compiler_static_works=yes | |
7185 | fi | |
7186 | fi | |
7187 | $RM -r conftest* | |
7188 | LDFLAGS="$save_LDFLAGS" | |
7189 | ||
7190 | fi | |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7192 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7193 | ||
7194 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7195 | : | |
7196 | else | |
7197 | lt_prog_compiler_static= | |
7198 | fi | |
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | ||
7205 | ||
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7207 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7208 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7209 | $as_echo_n "(cached) " >&6 | |
7210 | else | |
7211 | lt_cv_prog_compiler_c_o=no | |
7212 | $RM -r conftest 2>/dev/null | |
7213 | mkdir conftest | |
7214 | cd conftest | |
7215 | mkdir out | |
7216 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7217 | ||
7218 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7219 | # Insert the option either (1) after the last *FLAGS variable, or | |
7220 | # (2) before a word containing "conftest.", or (3) at the end. | |
7221 | # Note that $ac_compile itself does not contain backslashes and begins | |
7222 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7223 | lt_compile=`echo "$ac_compile" | $SED \ | |
7224 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7225 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7226 | -e 's:$: $lt_compiler_flag:'` | |
7227 | (eval echo "\"\$as_me:7227: $lt_compile\"" >&5) | |
7228 | (eval "$lt_compile" 2>out/conftest.err) | |
7229 | ac_status=$? | |
7230 | cat out/conftest.err >&5 | |
7231 | echo "$as_me:7231: \$? = $ac_status" >&5 | |
7232 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7233 | then | |
7234 | # The compiler can only warn and ignore the option if not recognized | |
7235 | # So say no if there are warnings | |
7236 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7237 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7238 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7239 | lt_cv_prog_compiler_c_o=yes | |
7240 | fi | |
7241 | fi | |
7242 | chmod u+w . 2>&5 | |
7243 | $RM conftest* | |
7244 | # SGI C++ compiler will create directory out/ii_files/ for | |
7245 | # template instantiation | |
7246 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7247 | $RM out/* && rmdir out | |
7248 | cd .. | |
7249 | $RM -r conftest | |
7250 | $RM conftest* | |
7251 | ||
7252 | fi | |
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7254 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | ||
7260 | ||
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7262 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7263 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7264 | $as_echo_n "(cached) " >&6 | |
7265 | else | |
7266 | lt_cv_prog_compiler_c_o=no | |
7267 | $RM -r conftest 2>/dev/null | |
7268 | mkdir conftest | |
7269 | cd conftest | |
7270 | mkdir out | |
7271 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7272 | ||
7273 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7274 | # Insert the option either (1) after the last *FLAGS variable, or | |
7275 | # (2) before a word containing "conftest.", or (3) at the end. | |
7276 | # Note that $ac_compile itself does not contain backslashes and begins | |
7277 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7278 | lt_compile=`echo "$ac_compile" | $SED \ | |
7279 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7280 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7281 | -e 's:$: $lt_compiler_flag:'` | |
7282 | (eval echo "\"\$as_me:7282: $lt_compile\"" >&5) | |
7283 | (eval "$lt_compile" 2>out/conftest.err) | |
7284 | ac_status=$? | |
7285 | cat out/conftest.err >&5 | |
7286 | echo "$as_me:7286: \$? = $ac_status" >&5 | |
7287 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7288 | then | |
7289 | # The compiler can only warn and ignore the option if not recognized | |
7290 | # So say no if there are warnings | |
7291 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7292 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7293 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7294 | lt_cv_prog_compiler_c_o=yes | |
7295 | fi | |
7296 | fi | |
7297 | chmod u+w . 2>&5 | |
7298 | $RM conftest* | |
7299 | # SGI C++ compiler will create directory out/ii_files/ for | |
7300 | # template instantiation | |
7301 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7302 | $RM out/* && rmdir out | |
7303 | cd .. | |
7304 | $RM -r conftest | |
7305 | $RM conftest* | |
7306 | ||
7307 | fi | |
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7309 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7310 | ||
7311 | ||
7312 | ||
7313 | ||
7314 | hard_links="nottested" | |
7315 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7316 | # do not overwrite the value of need_locks provided by the user | |
7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7318 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7319 | hard_links=yes | |
7320 | $RM conftest* | |
7321 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7322 | touch conftest.a | |
7323 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7324 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7326 | $as_echo "$hard_links" >&6; } | |
7327 | if test "$hard_links" = no; then | |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7329 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7330 | need_locks=warn | |
7331 | fi | |
7332 | else | |
7333 | need_locks=no | |
7334 | fi | |
7335 | ||
7336 | ||
7337 | ||
7338 | ||
7339 | ||
7340 | ||
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7342 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7343 | ||
7344 | runpath_var= | |
7345 | allow_undefined_flag= | |
7346 | always_export_symbols=no | |
7347 | archive_cmds= | |
7348 | archive_expsym_cmds= | |
7349 | compiler_needs_object=no | |
7350 | enable_shared_with_static_runtimes=no | |
7351 | export_dynamic_flag_spec= | |
7352 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7353 | hardcode_automatic=no | |
7354 | hardcode_direct=no | |
7355 | hardcode_direct_absolute=no | |
7356 | hardcode_libdir_flag_spec= | |
7357 | hardcode_libdir_flag_spec_ld= | |
7358 | hardcode_libdir_separator= | |
7359 | hardcode_minus_L=no | |
7360 | hardcode_shlibpath_var=unsupported | |
7361 | inherit_rpath=no | |
7362 | link_all_deplibs=unknown | |
7363 | module_cmds= | |
7364 | module_expsym_cmds= | |
7365 | old_archive_from_new_cmds= | |
7366 | old_archive_from_expsyms_cmds= | |
7367 | thread_safe_flag_spec= | |
7368 | whole_archive_flag_spec= | |
7369 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7370 | # included in the symbol list | |
7371 | include_expsyms= | |
7372 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7373 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7374 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7375 | # as well as any symbol that contains `d'. | |
7376 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7377 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7378 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7379 | # the symbol is explicitly referenced. Since portable code cannot | |
7380 | # rely on this symbol name, it's probably fine to never include it in | |
7381 | # preloaded symbol tables. | |
7382 | # Exclude shared library initialization/finalization symbols. | |
7383 | extract_expsyms_cmds= | |
7384 | ||
7385 | case $host_os in | |
7386 | cygwin* | mingw* | pw32* | cegcc*) | |
7387 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7388 | # When not using gcc, we currently assume that we are using | |
7389 | # Microsoft Visual C++. | |
7390 | if test "$GCC" != yes; then | |
7391 | with_gnu_ld=no | |
7392 | fi | |
7393 | ;; | |
7394 | interix*) | |
7395 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7396 | with_gnu_ld=yes | |
7397 | ;; | |
7398 | openbsd*) | |
7399 | with_gnu_ld=no | |
7400 | ;; | |
7401 | linux* | k*bsd*-gnu) | |
7402 | link_all_deplibs=no | |
7403 | ;; | |
7404 | esac | |
7405 | ||
7406 | ld_shlibs=yes | |
7407 | if test "$with_gnu_ld" = yes; then | |
7408 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7409 | wlarc='${wl}' | |
7410 | ||
7411 | # Set some defaults for GNU ld with shared library support. These | |
7412 | # are reset later if shared libraries are not supported. Putting them | |
7413 | # here allows them to be overridden if necessary. | |
7414 | runpath_var=LD_RUN_PATH | |
7415 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7416 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7417 | # ancient GNU ld didn't support --whole-archive et. al. | |
7418 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7419 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7420 | else | |
7421 | whole_archive_flag_spec= | |
7422 | fi | |
7423 | supports_anon_versioning=no | |
7424 | case `$LD -v 2>&1` in | |
7425 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
7426 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7427 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7428 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7429 | *\ 2.11.*) ;; # other 2.11 versions | |
7430 | *) supports_anon_versioning=yes ;; | |
7431 | esac | |
7432 | ||
7433 | # See if GNU ld supports shared libraries. | |
7434 | case $host_os in | |
7435 | aix[3-9]*) | |
7436 | # On AIX/PPC, the GNU linker is very broken | |
7437 | if test "$host_cpu" != ia64; then | |
7438 | ld_shlibs=no | |
7439 | cat <<_LT_EOF 1>&2 | |
7440 | ||
7441 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7442 | *** to be unable to reliably create shared libraries on AIX. | |
7443 | *** Therefore, libtool is disabling shared libraries support. If you | |
7444 | *** really care for shared libraries, you may want to modify your PATH | |
7445 | *** so that a non-GNU linker is found, and then restart. | |
7446 | ||
7447 | _LT_EOF | |
7448 | fi | |
7449 | ;; | |
7450 | ||
7451 | amigaos*) | |
7452 | case $host_cpu in | |
7453 | powerpc) | |
7454 | # see comment about AmigaOS4 .so support | |
7455 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7456 | archive_expsym_cmds='' | |
7457 | ;; | |
7458 | m68k) | |
7459 | 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)' | |
7460 | hardcode_libdir_flag_spec='-L$libdir' | |
7461 | hardcode_minus_L=yes | |
7462 | ;; | |
7463 | esac | |
7464 | ;; | |
7465 | ||
7466 | beos*) | |
7467 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7468 | allow_undefined_flag=unsupported | |
7469 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7470 | # support --undefined. This deserves some investigation. FIXME | |
7471 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7472 | else | |
7473 | ld_shlibs=no | |
7474 | fi | |
7475 | ;; | |
7476 | ||
7477 | cygwin* | mingw* | pw32* | cegcc*) | |
7478 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7479 | # as there is no search path for DLLs. | |
7480 | hardcode_libdir_flag_spec='-L$libdir' | |
7481 | allow_undefined_flag=unsupported | |
7482 | always_export_symbols=no | |
7483 | enable_shared_with_static_runtimes=yes | |
7484 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7485 | ||
7486 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7487 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7488 | # If the export-symbols file already is a .def file (1st line | |
7489 | # is EXPORTS), use it as is; otherwise, prepend... | |
7490 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7491 | cp $export_symbols $output_objdir/$soname.def; | |
7492 | else | |
7493 | echo EXPORTS > $output_objdir/$soname.def; | |
7494 | cat $export_symbols >> $output_objdir/$soname.def; | |
7495 | fi~ | |
7496 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7497 | else | |
7498 | ld_shlibs=no | |
7499 | fi | |
7500 | ;; | |
7501 | ||
7502 | interix[3-9]*) | |
7503 | hardcode_direct=no | |
7504 | hardcode_shlibpath_var=no | |
7505 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7506 | export_dynamic_flag_spec='${wl}-E' | |
7507 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7508 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7509 | # default) and relocated if they conflict, which is a slow very memory | |
7510 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7511 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7512 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7513 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7514 | 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' | |
7515 | ;; | |
7516 | ||
7517 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7518 | tmp_diet=no | |
7519 | if test "$host_os" = linux-dietlibc; then | |
7520 | case $cc_basename in | |
7521 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7522 | esac | |
7523 | fi | |
7524 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7525 | && test "$tmp_diet" = no | |
7526 | then | |
7527 | tmp_addflag= | |
7528 | tmp_sharedflag='-shared' | |
7529 | case $cc_basename,$host_cpu in | |
7530 | pgcc*) # Portland Group C compiler | |
7531 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7532 | tmp_addflag=' $pic_flag' | |
7533 | ;; | |
7534 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7535 | 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' | |
7536 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7537 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7538 | tmp_addflag=' -i_dynamic' ;; | |
7539 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7540 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7541 | ifc* | ifort*) # Intel Fortran compiler | |
7542 | tmp_addflag=' -nofor_main' ;; | |
7543 | lf95*) # Lahey Fortran 8.1 | |
7544 | whole_archive_flag_spec= | |
7545 | tmp_sharedflag='--shared' ;; | |
7546 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7547 | tmp_sharedflag='-qmkshrobj' | |
7548 | tmp_addflag= ;; | |
7549 | esac | |
7550 | case `$CC -V 2>&1 | sed 5q` in | |
7551 | *Sun\ C*) # Sun C 5.9 | |
7552 | 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' | |
7553 | compiler_needs_object=yes | |
7554 | tmp_sharedflag='-G' ;; | |
7555 | *Sun\ F*) # Sun Fortran 8.3 | |
7556 | tmp_sharedflag='-G' ;; | |
7557 | esac | |
7558 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7559 | ||
7560 | if test "x$supports_anon_versioning" = xyes; then | |
7561 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7562 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7563 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7564 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7565 | fi | |
7566 | ||
7567 | case $cc_basename in | |
7568 | xlf*) | |
7569 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7570 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7571 | hardcode_libdir_flag_spec= | |
7572 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7573 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7574 | if test "x$supports_anon_versioning" = xyes; then | |
7575 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7576 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7577 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7578 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7579 | fi | |
7580 | ;; | |
7581 | esac | |
7582 | else | |
7583 | ld_shlibs=no | |
7584 | fi | |
7585 | ;; | |
7586 | ||
7587 | netbsd* | netbsdelf*-gnu) | |
7588 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7589 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7590 | wlarc= | |
7591 | else | |
7592 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7593 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7594 | fi | |
7595 | ;; | |
7596 | ||
7597 | solaris*) | |
7598 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7599 | ld_shlibs=no | |
7600 | cat <<_LT_EOF 1>&2 | |
7601 | ||
7602 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7603 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7604 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7605 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7606 | *** your PATH or compiler configuration so that the native linker is | |
7607 | *** used, and then restart. | |
7608 | ||
7609 | _LT_EOF | |
7610 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7611 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7612 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7613 | else | |
7614 | ld_shlibs=no | |
7615 | fi | |
7616 | ;; | |
7617 | ||
7618 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7619 | case `$LD -v 2>&1` in | |
7620 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7621 | ld_shlibs=no | |
7622 | cat <<_LT_EOF 1>&2 | |
7623 | ||
7624 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7625 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7626 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7627 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7628 | *** your PATH or compiler configuration so that the native linker is | |
7629 | *** used, and then restart. | |
7630 | ||
7631 | _LT_EOF | |
7632 | ;; | |
7633 | *) | |
7634 | # For security reasons, it is highly recommended that you always | |
7635 | # use absolute paths for naming shared libraries, and exclude the | |
7636 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7637 | # requires that you compile everything twice, which is a pain. | |
7638 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7639 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7640 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7641 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7642 | else | |
7643 | ld_shlibs=no | |
7644 | fi | |
7645 | ;; | |
7646 | esac | |
7647 | ;; | |
7648 | ||
7649 | sunos4*) | |
7650 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7651 | wlarc= | |
7652 | hardcode_direct=yes | |
7653 | hardcode_shlibpath_var=no | |
7654 | ;; | |
7655 | ||
7656 | *) | |
7657 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7658 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7659 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7660 | else | |
7661 | ld_shlibs=no | |
7662 | fi | |
7663 | ;; | |
7664 | esac | |
7665 | ||
7666 | if test "$ld_shlibs" = no; then | |
7667 | runpath_var= | |
7668 | hardcode_libdir_flag_spec= | |
7669 | export_dynamic_flag_spec= | |
7670 | whole_archive_flag_spec= | |
7671 | fi | |
7672 | else | |
7673 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7674 | case $host_os in | |
7675 | aix3*) | |
7676 | allow_undefined_flag=unsupported | |
7677 | always_export_symbols=yes | |
7678 | 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' | |
7679 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7680 | # are no directories specified by -L. | |
7681 | hardcode_minus_L=yes | |
7682 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7683 | # Neither direct hardcoding nor static linking is supported with a | |
7684 | # broken collect2. | |
7685 | hardcode_direct=unsupported | |
7686 | fi | |
7687 | ;; | |
7688 | ||
7689 | aix[4-9]*) | |
7690 | if test "$host_cpu" = ia64; then | |
7691 | # On IA64, the linker does run time linking by default, so we don't | |
7692 | # have to do anything special. | |
7693 | aix_use_runtimelinking=no | |
7694 | exp_sym_flag='-Bexport' | |
7695 | no_entry_flag="" | |
7696 | else | |
7697 | # If we're using GNU nm, then we don't want the "-C" option. | |
7698 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7699 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7700 | 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' | |
7701 | else | |
7702 | 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' | |
7703 | fi | |
7704 | aix_use_runtimelinking=no | |
7705 | ||
7706 | # Test if we are trying to use run time linking or normal | |
7707 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7708 | # need to do runtime linking. | |
7709 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
7710 | for ld_flag in $LDFLAGS; do | |
7711 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7712 | aix_use_runtimelinking=yes | |
7713 | break | |
7714 | fi | |
7715 | done | |
7716 | ;; | |
7717 | esac | |
7718 | ||
7719 | exp_sym_flag='-bexport' | |
7720 | no_entry_flag='-bnoentry' | |
7721 | fi | |
7722 | ||
7723 | # When large executables or shared objects are built, AIX ld can | |
7724 | # have problems creating the table of contents. If linking a library | |
7725 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7726 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7727 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7728 | ||
7729 | archive_cmds='' | |
7730 | hardcode_direct=yes | |
7731 | hardcode_direct_absolute=yes | |
7732 | hardcode_libdir_separator=':' | |
7733 | link_all_deplibs=yes | |
7734 | file_list_spec='${wl}-f,' | |
7735 | ||
7736 | if test "$GCC" = yes; then | |
7737 | case $host_os in aix4.[012]|aix4.[012].*) | |
7738 | # We only want to do this on AIX 4.2 and lower, the check | |
7739 | # below for broken collect2 doesn't work under 4.3+ | |
7740 | collect2name=`${CC} -print-prog-name=collect2` | |
7741 | if test -f "$collect2name" && | |
7742 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7743 | then | |
7744 | # We have reworked collect2 | |
7745 | : | |
7746 | else | |
7747 | # We have old collect2 | |
7748 | hardcode_direct=unsupported | |
7749 | # It fails to find uninstalled libraries when the uninstalled | |
7750 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7751 | # to unsupported forces relinking | |
7752 | hardcode_minus_L=yes | |
7753 | hardcode_libdir_flag_spec='-L$libdir' | |
7754 | hardcode_libdir_separator= | |
7755 | fi | |
7756 | ;; | |
7757 | esac | |
7758 | shared_flag='-shared' | |
7759 | if test "$aix_use_runtimelinking" = yes; then | |
7760 | shared_flag="$shared_flag "'${wl}-G' | |
7761 | fi | |
7762 | link_all_deplibs=no | |
7763 | else | |
7764 | # not using gcc | |
7765 | if test "$host_cpu" = ia64; then | |
7766 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7767 | # chokes on -Wl,-G. The following line is correct: | |
7768 | shared_flag='-G' | |
7769 | else | |
7770 | if test "$aix_use_runtimelinking" = yes; then | |
7771 | shared_flag='${wl}-G' | |
7772 | else | |
7773 | shared_flag='${wl}-bM:SRE' | |
7774 | fi | |
7775 | fi | |
7776 | fi | |
7777 | ||
7778 | export_dynamic_flag_spec='${wl}-bexpall' | |
7779 | # It seems that -bexpall does not export symbols beginning with | |
7780 | # underscore (_), so it is better to generate a list of symbols to export. | |
7781 | always_export_symbols=yes | |
7782 | if test "$aix_use_runtimelinking" = yes; then | |
7783 | # Warning - without using the other runtime loading flags (-brtl), | |
7784 | # -berok will link without error, but may produce a broken library. | |
7785 | allow_undefined_flag='-berok' | |
7786 | # Determine the default libpath from the value encoded in an | |
7787 | # empty executable. | |
7788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7789 | /* end confdefs.h. */ | |
7790 | ||
7791 | int | |
7792 | main () | |
7793 | { | |
7794 | ||
7795 | ; | |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | if ac_fn_c_try_link "$LINENO"; then : | |
7800 | ||
7801 | lt_aix_libpath_sed=' | |
7802 | /Import File Strings/,/^$/ { | |
7803 | /^0/ { | |
7804 | s/^0 *\(.*\)$/\1/ | |
7805 | p | |
7806 | } | |
7807 | }' | |
7808 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7809 | # Check for a 64-bit object if we didn't find anything. | |
7810 | if test -z "$aix_libpath"; then | |
7811 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7812 | fi | |
7813 | fi | |
7814 | rm -f core conftest.err conftest.$ac_objext \ | |
7815 | conftest$ac_exeext conftest.$ac_ext | |
7816 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7817 | ||
7818 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7819 | 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" | |
7820 | else | |
7821 | if test "$host_cpu" = ia64; then | |
7822 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7823 | allow_undefined_flag="-z nodefs" | |
7824 | 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" | |
7825 | else | |
7826 | # Determine the default libpath from the value encoded in an | |
7827 | # empty executable. | |
7828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7829 | /* end confdefs.h. */ | |
7830 | ||
7831 | int | |
7832 | main () | |
7833 | { | |
7834 | ||
7835 | ; | |
7836 | return 0; | |
7837 | } | |
7838 | _ACEOF | |
7839 | if ac_fn_c_try_link "$LINENO"; then : | |
7840 | ||
7841 | lt_aix_libpath_sed=' | |
7842 | /Import File Strings/,/^$/ { | |
7843 | /^0/ { | |
7844 | s/^0 *\(.*\)$/\1/ | |
7845 | p | |
7846 | } | |
7847 | }' | |
7848 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7849 | # Check for a 64-bit object if we didn't find anything. | |
7850 | if test -z "$aix_libpath"; then | |
7851 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7852 | fi | |
7853 | fi | |
7854 | rm -f core conftest.err conftest.$ac_objext \ | |
7855 | conftest$ac_exeext conftest.$ac_ext | |
7856 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7857 | ||
7858 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7859 | # Warning - without using the other run time loading flags, | |
7860 | # -berok will link without error, but may produce a broken library. | |
7861 | no_undefined_flag=' ${wl}-bernotok' | |
7862 | allow_undefined_flag=' ${wl}-berok' | |
7863 | # Exported symbols can be pulled into shared objects from archives | |
7864 | whole_archive_flag_spec='$convenience' | |
7865 | archive_cmds_need_lc=yes | |
7866 | # This is similar to how AIX traditionally builds its shared libraries. | |
7867 | 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' | |
7868 | fi | |
7869 | fi | |
7870 | ;; | |
7871 | ||
7872 | amigaos*) | |
7873 | case $host_cpu in | |
7874 | powerpc) | |
7875 | # see comment about AmigaOS4 .so support | |
7876 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7877 | archive_expsym_cmds='' | |
7878 | ;; | |
7879 | m68k) | |
7880 | 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)' | |
7881 | hardcode_libdir_flag_spec='-L$libdir' | |
7882 | hardcode_minus_L=yes | |
7883 | ;; | |
7884 | esac | |
7885 | ;; | |
7886 | ||
7887 | bsdi[45]*) | |
7888 | export_dynamic_flag_spec=-rdynamic | |
7889 | ;; | |
7890 | ||
7891 | cygwin* | mingw* | pw32* | cegcc*) | |
7892 | # When not using gcc, we currently assume that we are using | |
7893 | # Microsoft Visual C++. | |
7894 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7895 | # no search path for DLLs. | |
7896 | hardcode_libdir_flag_spec=' ' | |
7897 | allow_undefined_flag=unsupported | |
7898 | # Tell ltmain to make .lib files, not .a files. | |
7899 | libext=lib | |
7900 | # Tell ltmain to make .dll files, not .so files. | |
7901 | shrext_cmds=".dll" | |
7902 | # FIXME: Setting linknames here is a bad hack. | |
7903 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7904 | # The linker will automatically build a .lib file if we build a DLL. | |
7905 | old_archive_from_new_cmds='true' | |
7906 | # FIXME: Should let the user specify the lib program. | |
7907 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7908 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7909 | enable_shared_with_static_runtimes=yes | |
7910 | ;; | |
7911 | ||
7912 | darwin* | rhapsody*) | |
7913 | ||
7914 | ||
7915 | archive_cmds_need_lc=no | |
7916 | hardcode_direct=no | |
7917 | hardcode_automatic=yes | |
7918 | hardcode_shlibpath_var=unsupported | |
7919 | whole_archive_flag_spec='' | |
7920 | link_all_deplibs=yes | |
7921 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
7922 | case $cc_basename in | |
7923 | ifort*) _lt_dar_can_shared=yes ;; | |
7924 | *) _lt_dar_can_shared=$GCC ;; | |
7925 | esac | |
7926 | if test "$_lt_dar_can_shared" = "yes"; then | |
7927 | output_verbose_link_cmd=echo | |
7928 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
7929 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
7930 | 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}" | |
7931 | 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}" | |
7932 | ||
7933 | else | |
7934 | ld_shlibs=no | |
7935 | fi | |
7936 | ||
7937 | ;; | |
7938 | ||
7939 | dgux*) | |
7940 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7941 | hardcode_libdir_flag_spec='-L$libdir' | |
7942 | hardcode_shlibpath_var=no | |
7943 | ;; | |
7944 | ||
7945 | freebsd1*) | |
7946 | ld_shlibs=no | |
7947 | ;; | |
7948 | ||
7949 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7950 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7951 | # does not break anything, and helps significantly (at the cost of a little | |
7952 | # extra space). | |
7953 | freebsd2.2*) | |
7954 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7955 | hardcode_libdir_flag_spec='-R$libdir' | |
7956 | hardcode_direct=yes | |
7957 | hardcode_shlibpath_var=no | |
7958 | ;; | |
7959 | ||
7960 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7961 | freebsd2*) | |
7962 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7963 | hardcode_direct=yes | |
7964 | hardcode_minus_L=yes | |
7965 | hardcode_shlibpath_var=no | |
7966 | ;; | |
7967 | ||
7968 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
7969 | freebsd* | dragonfly*) | |
7970 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
7971 | hardcode_libdir_flag_spec='-R$libdir' | |
7972 | hardcode_direct=yes | |
7973 | hardcode_shlibpath_var=no | |
7974 | ;; | |
7975 | ||
7976 | hpux9*) | |
7977 | if test "$GCC" = yes; then | |
7978 | 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' | |
7979 | else | |
7980 | 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' | |
7981 | fi | |
7982 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7983 | hardcode_libdir_separator=: | |
7984 | hardcode_direct=yes | |
7985 | ||
7986 | # hardcode_minus_L: Not really in the search PATH, | |
7987 | # but as the default location of the library. | |
7988 | hardcode_minus_L=yes | |
7989 | export_dynamic_flag_spec='${wl}-E' | |
7990 | ;; | |
7991 | ||
7992 | hpux10*) | |
7993 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7994 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7995 | else | |
7996 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7997 | fi | |
7998 | if test "$with_gnu_ld" = no; then | |
7999 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8000 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8001 | hardcode_libdir_separator=: | |
8002 | hardcode_direct=yes | |
8003 | hardcode_direct_absolute=yes | |
8004 | export_dynamic_flag_spec='${wl}-E' | |
8005 | # hardcode_minus_L: Not really in the search PATH, | |
8006 | # but as the default location of the library. | |
8007 | hardcode_minus_L=yes | |
8008 | fi | |
8009 | ;; | |
8010 | ||
8011 | hpux11*) | |
8012 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8013 | case $host_cpu in | |
8014 | hppa*64*) | |
8015 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8016 | ;; | |
8017 | ia64*) | |
8018 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8019 | ;; | |
8020 | *) | |
8021 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8022 | ;; | |
8023 | esac | |
8024 | else | |
8025 | case $host_cpu in | |
8026 | hppa*64*) | |
8027 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8028 | ;; | |
8029 | ia64*) | |
8030 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8031 | ;; | |
8032 | *) | |
8033 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8034 | ;; | |
8035 | esac | |
8036 | fi | |
8037 | if test "$with_gnu_ld" = no; then | |
8038 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8039 | hardcode_libdir_separator=: | |
8040 | ||
8041 | case $host_cpu in | |
8042 | hppa*64*|ia64*) | |
8043 | hardcode_direct=no | |
8044 | hardcode_shlibpath_var=no | |
8045 | ;; | |
8046 | *) | |
8047 | hardcode_direct=yes | |
8048 | hardcode_direct_absolute=yes | |
8049 | export_dynamic_flag_spec='${wl}-E' | |
8050 | ||
8051 | # hardcode_minus_L: Not really in the search PATH, | |
8052 | # but as the default location of the library. | |
8053 | hardcode_minus_L=yes | |
8054 | ;; | |
8055 | esac | |
8056 | fi | |
8057 | ;; | |
8058 | ||
8059 | irix5* | irix6* | nonstopux*) | |
8060 | if test "$GCC" = yes; then | |
8061 | 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' | |
8062 | # Try to use the -exported_symbol ld option, if it does not | |
8063 | # work, assume that -exports_file does not work either and | |
8064 | # implicitly export all symbols. | |
8065 | save_LDFLAGS="$LDFLAGS" | |
8066 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8068 | /* end confdefs.h. */ | |
8069 | int foo(void) {} | |
8070 | _ACEOF | |
8071 | if ac_fn_c_try_link "$LINENO"; then : | |
8072 | 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' | |
8073 | ||
8074 | fi | |
8075 | rm -f core conftest.err conftest.$ac_objext \ | |
8076 | conftest$ac_exeext conftest.$ac_ext | |
8077 | LDFLAGS="$save_LDFLAGS" | |
8078 | else | |
8079 | 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' | |
8080 | 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' | |
8081 | fi | |
8082 | archive_cmds_need_lc='no' | |
8083 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8084 | hardcode_libdir_separator=: | |
8085 | inherit_rpath=yes | |
8086 | link_all_deplibs=yes | |
8087 | ;; | |
8088 | ||
8089 | netbsd* | netbsdelf*-gnu) | |
8090 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8091 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8092 | else | |
8093 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8094 | fi | |
8095 | hardcode_libdir_flag_spec='-R$libdir' | |
8096 | hardcode_direct=yes | |
8097 | hardcode_shlibpath_var=no | |
8098 | ;; | |
8099 | ||
8100 | newsos6) | |
8101 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8102 | hardcode_direct=yes | |
8103 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8104 | hardcode_libdir_separator=: | |
8105 | hardcode_shlibpath_var=no | |
8106 | ;; | |
8107 | ||
8108 | *nto* | *qnx*) | |
8109 | ;; | |
8110 | ||
8111 | openbsd*) | |
8112 | if test -f /usr/libexec/ld.so; then | |
8113 | hardcode_direct=yes | |
8114 | hardcode_shlibpath_var=no | |
8115 | hardcode_direct_absolute=yes | |
8116 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8117 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8118 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8119 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8120 | export_dynamic_flag_spec='${wl}-E' | |
8121 | else | |
8122 | case $host_os in | |
8123 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8124 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8125 | hardcode_libdir_flag_spec='-R$libdir' | |
8126 | ;; | |
8127 | *) | |
8128 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8129 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8130 | ;; | |
8131 | esac | |
8132 | fi | |
8133 | else | |
8134 | ld_shlibs=no | |
8135 | fi | |
8136 | ;; | |
8137 | ||
8138 | os2*) | |
8139 | hardcode_libdir_flag_spec='-L$libdir' | |
8140 | hardcode_minus_L=yes | |
8141 | allow_undefined_flag=unsupported | |
8142 | 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' | |
8143 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8144 | ;; | |
8145 | ||
8146 | osf3*) | |
8147 | if test "$GCC" = yes; then | |
8148 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8149 | 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' | |
8150 | else | |
8151 | allow_undefined_flag=' -expect_unresolved \*' | |
8152 | 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' | |
8153 | fi | |
8154 | archive_cmds_need_lc='no' | |
8155 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8156 | hardcode_libdir_separator=: | |
8157 | ;; | |
8158 | ||
8159 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8160 | if test "$GCC" = yes; then | |
8161 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8162 | 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' | |
8163 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8164 | else | |
8165 | allow_undefined_flag=' -expect_unresolved \*' | |
8166 | 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' | |
8167 | 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~ | |
8168 | $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' | |
8169 | ||
8170 | # Both c and cxx compiler support -rpath directly | |
8171 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8172 | fi | |
8173 | archive_cmds_need_lc='no' | |
8174 | hardcode_libdir_separator=: | |
8175 | ;; | |
8176 | ||
8177 | solaris*) | |
8178 | no_undefined_flag=' -z defs' | |
8179 | if test "$GCC" = yes; then | |
8180 | wlarc='${wl}' | |
8181 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8182 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8183 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8184 | else | |
8185 | case `$CC -V 2>&1` in | |
8186 | *"Compilers 5.0"*) | |
8187 | wlarc='' | |
8188 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8189 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8190 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8191 | ;; | |
8192 | *) | |
8193 | wlarc='${wl}' | |
8194 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8195 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8196 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8197 | ;; | |
8198 | esac | |
8199 | fi | |
8200 | hardcode_libdir_flag_spec='-R$libdir' | |
8201 | hardcode_shlibpath_var=no | |
8202 | case $host_os in | |
8203 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8204 | *) | |
8205 | # The compiler driver will combine and reorder linker options, | |
8206 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8207 | # but is careful enough not to reorder. | |
8208 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8209 | if test "$GCC" = yes; then | |
8210 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8211 | else | |
8212 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8213 | fi | |
8214 | ;; | |
8215 | esac | |
8216 | link_all_deplibs=yes | |
8217 | ;; | |
8218 | ||
8219 | sunos4*) | |
8220 | if test "x$host_vendor" = xsequent; then | |
8221 | # Use $CC to link under sequent, because it throws in some extra .o | |
8222 | # files that make .init and .fini sections work. | |
8223 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8224 | else | |
8225 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8226 | fi | |
8227 | hardcode_libdir_flag_spec='-L$libdir' | |
8228 | hardcode_direct=yes | |
8229 | hardcode_minus_L=yes | |
8230 | hardcode_shlibpath_var=no | |
8231 | ;; | |
8232 | ||
8233 | sysv4) | |
8234 | case $host_vendor in | |
8235 | sni) | |
8236 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8237 | hardcode_direct=yes # is this really true??? | |
8238 | ;; | |
8239 | siemens) | |
8240 | ## LD is ld it makes a PLAMLIB | |
8241 | ## CC just makes a GrossModule. | |
8242 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8243 | reload_cmds='$CC -r -o $output$reload_objs' | |
8244 | hardcode_direct=no | |
8245 | ;; | |
8246 | motorola) | |
8247 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8248 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8249 | ;; | |
8250 | esac | |
8251 | runpath_var='LD_RUN_PATH' | |
8252 | hardcode_shlibpath_var=no | |
8253 | ;; | |
8254 | ||
8255 | sysv4.3*) | |
8256 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8257 | hardcode_shlibpath_var=no | |
8258 | export_dynamic_flag_spec='-Bexport' | |
8259 | ;; | |
8260 | ||
8261 | sysv4*MP*) | |
8262 | if test -d /usr/nec; then | |
8263 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8264 | hardcode_shlibpath_var=no | |
8265 | runpath_var=LD_RUN_PATH | |
8266 | hardcode_runpath_var=yes | |
8267 | ld_shlibs=yes | |
8268 | fi | |
8269 | ;; | |
8270 | ||
8271 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8272 | no_undefined_flag='${wl}-z,text' | |
8273 | archive_cmds_need_lc=no | |
8274 | hardcode_shlibpath_var=no | |
8275 | runpath_var='LD_RUN_PATH' | |
8276 | ||
8277 | if test "$GCC" = yes; then | |
8278 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8279 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8280 | else | |
8281 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8282 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8283 | fi | |
8284 | ;; | |
8285 | ||
8286 | sysv5* | sco3.2v5* | sco5v6*) | |
8287 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8288 | # link with -lc, and that would cause any symbols used from libc to | |
8289 | # always be unresolved, which means just about no library would | |
8290 | # ever link correctly. If we're not using GNU ld we use -z text | |
8291 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8292 | # as -z defs. | |
8293 | no_undefined_flag='${wl}-z,text' | |
8294 | allow_undefined_flag='${wl}-z,nodefs' | |
8295 | archive_cmds_need_lc=no | |
8296 | hardcode_shlibpath_var=no | |
8297 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8298 | hardcode_libdir_separator=':' | |
8299 | link_all_deplibs=yes | |
8300 | export_dynamic_flag_spec='${wl}-Bexport' | |
8301 | runpath_var='LD_RUN_PATH' | |
8302 | ||
8303 | if test "$GCC" = yes; then | |
8304 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8305 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8306 | else | |
8307 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8308 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8309 | fi | |
8310 | ;; | |
8311 | ||
8312 | uts4*) | |
8313 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8314 | hardcode_libdir_flag_spec='-L$libdir' | |
8315 | hardcode_shlibpath_var=no | |
8316 | ;; | |
8317 | ||
8318 | *) | |
8319 | ld_shlibs=no | |
8320 | ;; | |
8321 | esac | |
8322 | ||
8323 | if test x$host_vendor = xsni; then | |
8324 | case $host in | |
8325 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8326 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8327 | ;; | |
8328 | esac | |
8329 | fi | |
8330 | fi | |
8331 | ||
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8333 | $as_echo "$ld_shlibs" >&6; } | |
8334 | test "$ld_shlibs" = no && can_build_shared=no | |
8335 | ||
8336 | with_gnu_ld=$with_gnu_ld | |
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | ||
8342 | ||
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | # | |
8353 | # Do we need to explicitly link libc? | |
8354 | # | |
8355 | case "x$archive_cmds_need_lc" in | |
8356 | x|xyes) | |
8357 | # Assume -lc should be added | |
8358 | archive_cmds_need_lc=yes | |
8359 | ||
8360 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8361 | case $archive_cmds in | |
8362 | *'~'*) | |
8363 | # FIXME: we may have to deal with multi-command sequences. | |
8364 | ;; | |
8365 | '$CC '*) | |
8366 | # Test whether the compiler implicitly links with -lc since on some | |
8367 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8368 | # to ld, don't add -lc before -lgcc. | |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8370 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8371 | $RM conftest* | |
8372 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8373 | ||
8374 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8375 | (eval $ac_compile) 2>&5 | |
8376 | ac_status=$? | |
8377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8378 | test $ac_status = 0; } 2>conftest.err; then | |
8379 | soname=conftest | |
8380 | lib=conftest | |
8381 | libobjs=conftest.$ac_objext | |
8382 | deplibs= | |
8383 | wl=$lt_prog_compiler_wl | |
8384 | pic_flag=$lt_prog_compiler_pic | |
8385 | compiler_flags=-v | |
8386 | linker_flags=-v | |
8387 | verstring= | |
8388 | output_objdir=. | |
8389 | libname=conftest | |
8390 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8391 | allow_undefined_flag= | |
8392 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8393 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8394 | ac_status=$? | |
8395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8396 | test $ac_status = 0; } | |
8397 | then | |
8398 | archive_cmds_need_lc=no | |
8399 | else | |
8400 | archive_cmds_need_lc=yes | |
8401 | fi | |
8402 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8403 | else | |
8404 | cat conftest.err 1>&5 | |
8405 | fi | |
8406 | $RM conftest* | |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8408 | $as_echo "$archive_cmds_need_lc" >&6; } | |
8409 | ;; | |
8410 | esac | |
8411 | fi | |
8412 | ;; | |
8413 | esac | |
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | ||
8449 | ||
8450 | ||
8451 | ||
8452 | ||
8453 | ||
8454 | ||
8455 | ||
8456 | ||
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
8463 | ||
8464 | ||
8465 | ||
8466 | ||
8467 | ||
8468 | ||
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | ||
8510 | ||
8511 | ||
8512 | ||
8513 | ||
8514 | ||
8515 | ||
8516 | ||
8517 | ||
8518 | ||
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | ||
8543 | ||
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
8549 | ||
8550 | ||
8551 | ||
8552 | ||
8553 | ||
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8572 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8573 | ||
8574 | if test "$GCC" = yes; then | |
8575 | case $host_os in | |
8576 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8577 | *) lt_awk_arg="/^libraries:/" ;; | |
8578 | esac | |
8579 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8580 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8581 | # if the path contains ";" then we assume it to be the separator | |
8582 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8583 | # assumed that no part of a normal pathname contains ";" but that should | |
8584 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8585 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8586 | else | |
8587 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8588 | fi | |
8589 | # Ok, now we have the path, separated by spaces, we can step through it | |
8590 | # and add multilib dir if necessary. | |
8591 | lt_tmp_lt_search_path_spec= | |
8592 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8593 | for lt_sys_path in $lt_search_path_spec; do | |
8594 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8595 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8596 | else | |
8597 | test -d "$lt_sys_path" && \ | |
8598 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8599 | fi | |
8600 | done | |
8601 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8602 | BEGIN {RS=" "; FS="/|\n";} { | |
8603 | lt_foo=""; | |
8604 | lt_count=0; | |
8605 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8606 | if ($lt_i != "" && $lt_i != ".") { | |
8607 | if ($lt_i == "..") { | |
8608 | lt_count++; | |
8609 | } else { | |
8610 | if (lt_count == 0) { | |
8611 | lt_foo="/" $lt_i lt_foo; | |
8612 | } else { | |
8613 | lt_count--; | |
8614 | } | |
8615 | } | |
8616 | } | |
8617 | } | |
8618 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8619 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8620 | }'` | |
8621 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8622 | else | |
8623 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8624 | fi | |
8625 | library_names_spec= | |
8626 | libname_spec='lib$name' | |
8627 | soname_spec= | |
8628 | shrext_cmds=".so" | |
8629 | postinstall_cmds= | |
8630 | postuninstall_cmds= | |
8631 | finish_cmds= | |
8632 | finish_eval= | |
8633 | shlibpath_var= | |
8634 | shlibpath_overrides_runpath=unknown | |
8635 | version_type=none | |
8636 | dynamic_linker="$host_os ld.so" | |
8637 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8638 | need_lib_prefix=unknown | |
8639 | hardcode_into_libs=no | |
8640 | ||
8641 | # when you set need_version to no, make sure it does not cause -set_version | |
8642 | # flags to be left without arguments | |
8643 | need_version=unknown | |
8644 | ||
8645 | case $host_os in | |
8646 | aix3*) | |
8647 | version_type=linux | |
8648 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8649 | shlibpath_var=LIBPATH | |
8650 | ||
8651 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8652 | soname_spec='${libname}${release}${shared_ext}$major' | |
8653 | ;; | |
8654 | ||
8655 | aix[4-9]*) | |
8656 | version_type=linux | |
8657 | need_lib_prefix=no | |
8658 | need_version=no | |
8659 | hardcode_into_libs=yes | |
8660 | if test "$host_cpu" = ia64; then | |
8661 | # AIX 5 supports IA64 | |
8662 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8663 | shlibpath_var=LD_LIBRARY_PATH | |
8664 | else | |
8665 | # With GCC up to 2.95.x, collect2 would create an import file | |
8666 | # for dependence libraries. The import file would start with | |
8667 | # the line `#! .'. This would cause the generated library to | |
8668 | # depend on `.', always an invalid library. This was fixed in | |
8669 | # development snapshots of GCC prior to 3.0. | |
8670 | case $host_os in | |
8671 | aix4 | aix4.[01] | aix4.[01].*) | |
8672 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8673 | echo ' yes ' | |
8674 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8675 | : | |
8676 | else | |
8677 | can_build_shared=no | |
8678 | fi | |
8679 | ;; | |
8680 | esac | |
8681 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8682 | # soname into executable. Probably we can add versioning support to | |
8683 | # collect2, so additional links can be useful in future. | |
8684 | if test "$aix_use_runtimelinking" = yes; then | |
8685 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8686 | # instead of lib<name>.a to let people know that these are not | |
8687 | # typical AIX shared libraries. | |
8688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8689 | else | |
8690 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8691 | # and later when we are not doing run time linking. | |
8692 | library_names_spec='${libname}${release}.a $libname.a' | |
8693 | soname_spec='${libname}${release}${shared_ext}$major' | |
8694 | fi | |
8695 | shlibpath_var=LIBPATH | |
8696 | fi | |
8697 | ;; | |
8698 | ||
8699 | amigaos*) | |
8700 | case $host_cpu in | |
8701 | powerpc) | |
8702 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
8703 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
8704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8705 | ;; | |
8706 | m68k) | |
8707 | library_names_spec='$libname.ixlibrary $libname.a' | |
8708 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8709 | 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' | |
8710 | ;; | |
8711 | esac | |
8712 | ;; | |
8713 | ||
8714 | beos*) | |
8715 | library_names_spec='${libname}${shared_ext}' | |
8716 | dynamic_linker="$host_os ld.so" | |
8717 | shlibpath_var=LIBRARY_PATH | |
8718 | ;; | |
8719 | ||
8720 | bsdi[45]*) | |
8721 | version_type=linux | |
8722 | need_version=no | |
8723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8724 | soname_spec='${libname}${release}${shared_ext}$major' | |
8725 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8726 | shlibpath_var=LD_LIBRARY_PATH | |
8727 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8728 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8729 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8730 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8731 | # libtool to hard-code these into programs | |
8732 | ;; | |
8733 | ||
8734 | cygwin* | mingw* | pw32* | cegcc*) | |
8735 | version_type=windows | |
8736 | shrext_cmds=".dll" | |
8737 | need_version=no | |
8738 | need_lib_prefix=no | |
8739 | ||
8740 | case $GCC,$host_os in | |
8741 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
8742 | library_names_spec='$libname.dll.a' | |
8743 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8744 | postinstall_cmds='base_file=`basename \${file}`~ | |
8745 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8746 | dldir=$destdir/`dirname \$dlpath`~ | |
8747 | test -d \$dldir || mkdir -p \$dldir~ | |
8748 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8749 | chmod a+x \$dldir/$dlname~ | |
8750 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8751 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8752 | fi' | |
8753 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8754 | dlpath=$dir/\$dldll~ | |
8755 | $RM \$dlpath' | |
8756 | shlibpath_overrides_runpath=yes | |
8757 | ||
8758 | case $host_os in | |
8759 | cygwin*) | |
8760 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8761 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8762 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8763 | ;; | |
8764 | mingw* | cegcc*) | |
8765 | # MinGW DLLs use traditional 'lib' prefix | |
8766 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8767 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8768 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8769 | # It is most probably a Windows format PATH printed by | |
8770 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8771 | # path with ; separators, and with drive letters. We can handle the | |
8772 | # drive letters (cygwin fileutils understands them), so leave them, | |
8773 | # especially as we might pass files found there to a mingw objdump, | |
8774 | # which wouldn't understand a cygwinified path. Ahh. | |
8775 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8776 | else | |
8777 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8778 | fi | |
8779 | ;; | |
8780 | pw32*) | |
8781 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8782 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8783 | ;; | |
8784 | esac | |
8785 | ;; | |
8786 | ||
8787 | *) | |
8788 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8789 | ;; | |
8790 | esac | |
8791 | dynamic_linker='Win32 ld.exe' | |
8792 | # FIXME: first we should search . and the directory the executable is in | |
8793 | shlibpath_var=PATH | |
8794 | ;; | |
8795 | ||
8796 | darwin* | rhapsody*) | |
8797 | dynamic_linker="$host_os dyld" | |
8798 | version_type=darwin | |
8799 | need_lib_prefix=no | |
8800 | need_version=no | |
8801 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8802 | soname_spec='${libname}${release}${major}$shared_ext' | |
8803 | shlibpath_overrides_runpath=yes | |
8804 | shlibpath_var=DYLD_LIBRARY_PATH | |
8805 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8806 | ||
8807 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8808 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8809 | ;; | |
8810 | ||
8811 | dgux*) | |
8812 | version_type=linux | |
8813 | need_lib_prefix=no | |
8814 | need_version=no | |
8815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8816 | soname_spec='${libname}${release}${shared_ext}$major' | |
8817 | shlibpath_var=LD_LIBRARY_PATH | |
8818 | ;; | |
8819 | ||
8820 | freebsd1*) | |
8821 | dynamic_linker=no | |
8822 | ;; | |
8823 | ||
8824 | freebsd* | dragonfly*) | |
8825 | # DragonFly does not have aout. When/if they implement a new | |
8826 | # versioning mechanism, adjust this. | |
8827 | if test -x /usr/bin/objformat; then | |
8828 | objformat=`/usr/bin/objformat` | |
8829 | else | |
8830 | case $host_os in | |
8831 | freebsd[123]*) objformat=aout ;; | |
8832 | *) objformat=elf ;; | |
8833 | esac | |
8834 | fi | |
8835 | version_type=freebsd-$objformat | |
8836 | case $version_type in | |
8837 | freebsd-elf*) | |
8838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8839 | need_version=no | |
8840 | need_lib_prefix=no | |
8841 | ;; | |
8842 | freebsd-*) | |
8843 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8844 | need_version=yes | |
8845 | ;; | |
8846 | esac | |
8847 | shlibpath_var=LD_LIBRARY_PATH | |
8848 | case $host_os in | |
8849 | freebsd2*) | |
8850 | shlibpath_overrides_runpath=yes | |
8851 | ;; | |
8852 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8853 | shlibpath_overrides_runpath=yes | |
8854 | hardcode_into_libs=yes | |
8855 | ;; | |
8856 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8857 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8858 | shlibpath_overrides_runpath=no | |
8859 | hardcode_into_libs=yes | |
8860 | ;; | |
8861 | *) # from 4.6 on, and DragonFly | |
8862 | shlibpath_overrides_runpath=yes | |
8863 | hardcode_into_libs=yes | |
8864 | ;; | |
8865 | esac | |
8866 | ;; | |
8867 | ||
8868 | gnu*) | |
8869 | version_type=linux | |
8870 | need_lib_prefix=no | |
8871 | need_version=no | |
8872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8873 | soname_spec='${libname}${release}${shared_ext}$major' | |
8874 | shlibpath_var=LD_LIBRARY_PATH | |
8875 | hardcode_into_libs=yes | |
8876 | ;; | |
8877 | ||
8878 | hpux9* | hpux10* | hpux11*) | |
8879 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8880 | # link against other versions. | |
8881 | version_type=sunos | |
8882 | need_lib_prefix=no | |
8883 | need_version=no | |
8884 | case $host_cpu in | |
8885 | ia64*) | |
8886 | shrext_cmds='.so' | |
8887 | hardcode_into_libs=yes | |
8888 | dynamic_linker="$host_os dld.so" | |
8889 | shlibpath_var=LD_LIBRARY_PATH | |
8890 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8892 | soname_spec='${libname}${release}${shared_ext}$major' | |
8893 | if test "X$HPUX_IA64_MODE" = X32; then | |
8894 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8895 | else | |
8896 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8897 | fi | |
8898 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8899 | ;; | |
8900 | hppa*64*) | |
8901 | shrext_cmds='.sl' | |
8902 | hardcode_into_libs=yes | |
8903 | dynamic_linker="$host_os dld.sl" | |
8904 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8905 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8907 | soname_spec='${libname}${release}${shared_ext}$major' | |
8908 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8909 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8910 | ;; | |
8911 | *) | |
8912 | shrext_cmds='.sl' | |
8913 | dynamic_linker="$host_os dld.sl" | |
8914 | shlibpath_var=SHLIB_PATH | |
8915 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8916 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8917 | soname_spec='${libname}${release}${shared_ext}$major' | |
8918 | ;; | |
8919 | esac | |
8920 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8921 | postinstall_cmds='chmod 555 $lib' | |
8922 | ;; | |
8923 | ||
8924 | interix[3-9]*) | |
8925 | version_type=linux | |
8926 | need_lib_prefix=no | |
8927 | need_version=no | |
8928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8929 | soname_spec='${libname}${release}${shared_ext}$major' | |
8930 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8931 | shlibpath_var=LD_LIBRARY_PATH | |
8932 | shlibpath_overrides_runpath=no | |
8933 | hardcode_into_libs=yes | |
8934 | ;; | |
8935 | ||
8936 | irix5* | irix6* | nonstopux*) | |
8937 | case $host_os in | |
8938 | nonstopux*) version_type=nonstopux ;; | |
8939 | *) | |
8940 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8941 | version_type=linux | |
8942 | else | |
8943 | version_type=irix | |
8944 | fi ;; | |
8945 | esac | |
8946 | need_lib_prefix=no | |
8947 | need_version=no | |
8948 | soname_spec='${libname}${release}${shared_ext}$major' | |
8949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8950 | case $host_os in | |
8951 | irix5* | nonstopux*) | |
8952 | libsuff= shlibsuff= | |
8953 | ;; | |
8954 | *) | |
8955 | case $LD in # libtool.m4 will add one of these switches to LD | |
8956 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8957 | libsuff= shlibsuff= libmagic=32-bit;; | |
8958 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8959 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8960 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8961 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8962 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8963 | esac | |
8964 | ;; | |
8965 | esac | |
8966 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8967 | shlibpath_overrides_runpath=no | |
8968 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8969 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8970 | hardcode_into_libs=yes | |
8971 | ;; | |
8972 | ||
8973 | # No shared lib support for Linux oldld, aout, or coff. | |
8974 | linux*oldld* | linux*aout* | linux*coff*) | |
8975 | dynamic_linker=no | |
8976 | ;; | |
8977 | ||
8978 | # This must be Linux ELF. | |
8979 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8980 | version_type=linux | |
8981 | need_lib_prefix=no | |
8982 | need_version=no | |
8983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8984 | soname_spec='${libname}${release}${shared_ext}$major' | |
8985 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8986 | shlibpath_var=LD_LIBRARY_PATH | |
8987 | shlibpath_overrides_runpath=no | |
8988 | # Some binutils ld are patched to set DT_RUNPATH | |
8989 | save_LDFLAGS=$LDFLAGS | |
8990 | save_libdir=$libdir | |
8991 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
8992 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
8993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8994 | /* end confdefs.h. */ | |
8995 | ||
8996 | int | |
8997 | main () | |
8998 | { | |
8999 | ||
9000 | ; | |
9001 | return 0; | |
9002 | } | |
9003 | _ACEOF | |
9004 | if ac_fn_c_try_link "$LINENO"; then : | |
9005 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9006 | shlibpath_overrides_runpath=yes | |
9007 | fi | |
9008 | fi | |
9009 | rm -f core conftest.err conftest.$ac_objext \ | |
9010 | conftest$ac_exeext conftest.$ac_ext | |
9011 | LDFLAGS=$save_LDFLAGS | |
9012 | libdir=$save_libdir | |
9013 | ||
9014 | # This implies no fast_install, which is unacceptable. | |
9015 | # Some rework will be needed to allow for fast_install | |
9016 | # before this can be enabled. | |
9017 | hardcode_into_libs=yes | |
9018 | ||
9019 | # Append ld.so.conf contents to the search path | |
9020 | if test -f /etc/ld.so.conf; then | |
9021 | 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' ' '` | |
9022 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9023 | fi | |
9024 | ||
9025 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9026 | # powerpc, because MkLinux only supported shared libraries with the | |
9027 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9028 | # most powerpc-linux boxes support dynamic linking these days and | |
9029 | # people can always --disable-shared, the test was removed, and we | |
9030 | # assume the GNU/Linux dynamic linker is in use. | |
9031 | dynamic_linker='GNU/Linux ld.so' | |
9032 | ;; | |
9033 | ||
9034 | netbsdelf*-gnu) | |
9035 | version_type=linux | |
9036 | need_lib_prefix=no | |
9037 | need_version=no | |
9038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9039 | soname_spec='${libname}${release}${shared_ext}$major' | |
9040 | shlibpath_var=LD_LIBRARY_PATH | |
9041 | shlibpath_overrides_runpath=no | |
9042 | hardcode_into_libs=yes | |
9043 | dynamic_linker='NetBSD ld.elf_so' | |
9044 | ;; | |
9045 | ||
9046 | netbsd*) | |
9047 | version_type=sunos | |
9048 | need_lib_prefix=no | |
9049 | need_version=no | |
9050 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9052 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9053 | dynamic_linker='NetBSD (a.out) ld.so' | |
9054 | else | |
9055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9056 | soname_spec='${libname}${release}${shared_ext}$major' | |
9057 | dynamic_linker='NetBSD ld.elf_so' | |
9058 | fi | |
9059 | shlibpath_var=LD_LIBRARY_PATH | |
9060 | shlibpath_overrides_runpath=yes | |
9061 | hardcode_into_libs=yes | |
9062 | ;; | |
9063 | ||
9064 | newsos6) | |
9065 | version_type=linux | |
9066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9067 | shlibpath_var=LD_LIBRARY_PATH | |
9068 | shlibpath_overrides_runpath=yes | |
9069 | ;; | |
9070 | ||
9071 | *nto* | *qnx*) | |
9072 | version_type=qnx | |
9073 | need_lib_prefix=no | |
9074 | need_version=no | |
9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9076 | soname_spec='${libname}${release}${shared_ext}$major' | |
9077 | shlibpath_var=LD_LIBRARY_PATH | |
9078 | shlibpath_overrides_runpath=no | |
9079 | hardcode_into_libs=yes | |
9080 | dynamic_linker='ldqnx.so' | |
9081 | ;; | |
9082 | ||
9083 | openbsd*) | |
9084 | version_type=sunos | |
9085 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9086 | need_lib_prefix=no | |
9087 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9088 | case $host_os in | |
9089 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9090 | *) need_version=no ;; | |
9091 | esac | |
9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9093 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9094 | shlibpath_var=LD_LIBRARY_PATH | |
9095 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9096 | case $host_os in | |
9097 | openbsd2.[89] | openbsd2.[89].*) | |
9098 | shlibpath_overrides_runpath=no | |
9099 | ;; | |
9100 | *) | |
9101 | shlibpath_overrides_runpath=yes | |
9102 | ;; | |
9103 | esac | |
9104 | else | |
9105 | shlibpath_overrides_runpath=yes | |
9106 | fi | |
9107 | ;; | |
9108 | ||
9109 | os2*) | |
9110 | libname_spec='$name' | |
9111 | shrext_cmds=".dll" | |
9112 | need_lib_prefix=no | |
9113 | library_names_spec='$libname${shared_ext} $libname.a' | |
9114 | dynamic_linker='OS/2 ld.exe' | |
9115 | shlibpath_var=LIBPATH | |
9116 | ;; | |
9117 | ||
9118 | osf3* | osf4* | osf5*) | |
9119 | version_type=osf | |
9120 | need_lib_prefix=no | |
9121 | need_version=no | |
9122 | soname_spec='${libname}${release}${shared_ext}$major' | |
9123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9124 | shlibpath_var=LD_LIBRARY_PATH | |
9125 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9126 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9127 | ;; | |
9128 | ||
9129 | rdos*) | |
9130 | dynamic_linker=no | |
9131 | ;; | |
9132 | ||
9133 | solaris*) | |
9134 | version_type=linux | |
9135 | need_lib_prefix=no | |
9136 | need_version=no | |
9137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9138 | soname_spec='${libname}${release}${shared_ext}$major' | |
9139 | shlibpath_var=LD_LIBRARY_PATH | |
9140 | shlibpath_overrides_runpath=yes | |
9141 | hardcode_into_libs=yes | |
9142 | # ldd complains unless libraries are executable | |
9143 | postinstall_cmds='chmod +x $lib' | |
9144 | ;; | |
9145 | ||
9146 | sunos4*) | |
9147 | version_type=sunos | |
9148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9149 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9150 | shlibpath_var=LD_LIBRARY_PATH | |
9151 | shlibpath_overrides_runpath=yes | |
9152 | if test "$with_gnu_ld" = yes; then | |
9153 | need_lib_prefix=no | |
9154 | fi | |
9155 | need_version=yes | |
9156 | ;; | |
9157 | ||
9158 | sysv4 | sysv4.3*) | |
9159 | version_type=linux | |
9160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9161 | soname_spec='${libname}${release}${shared_ext}$major' | |
9162 | shlibpath_var=LD_LIBRARY_PATH | |
9163 | case $host_vendor in | |
9164 | sni) | |
9165 | shlibpath_overrides_runpath=no | |
9166 | need_lib_prefix=no | |
9167 | runpath_var=LD_RUN_PATH | |
9168 | ;; | |
9169 | siemens) | |
9170 | need_lib_prefix=no | |
9171 | ;; | |
9172 | motorola) | |
9173 | need_lib_prefix=no | |
9174 | need_version=no | |
9175 | shlibpath_overrides_runpath=no | |
9176 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9177 | ;; | |
9178 | esac | |
9179 | ;; | |
9180 | ||
9181 | sysv4*MP*) | |
9182 | if test -d /usr/nec ;then | |
9183 | version_type=linux | |
9184 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9185 | soname_spec='$libname${shared_ext}.$major' | |
9186 | shlibpath_var=LD_LIBRARY_PATH | |
9187 | fi | |
9188 | ;; | |
9189 | ||
9190 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9191 | version_type=freebsd-elf | |
9192 | need_lib_prefix=no | |
9193 | need_version=no | |
9194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9195 | soname_spec='${libname}${release}${shared_ext}$major' | |
9196 | shlibpath_var=LD_LIBRARY_PATH | |
9197 | shlibpath_overrides_runpath=yes | |
9198 | hardcode_into_libs=yes | |
9199 | if test "$with_gnu_ld" = yes; then | |
9200 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9201 | else | |
9202 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9203 | case $host_os in | |
9204 | sco3.2v5*) | |
9205 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9206 | ;; | |
9207 | esac | |
9208 | fi | |
9209 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9210 | ;; | |
9211 | ||
9212 | tpf*) | |
9213 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9214 | version_type=linux | |
9215 | need_lib_prefix=no | |
9216 | need_version=no | |
9217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9218 | shlibpath_var=LD_LIBRARY_PATH | |
9219 | shlibpath_overrides_runpath=no | |
9220 | hardcode_into_libs=yes | |
9221 | ;; | |
9222 | ||
9223 | uts4*) | |
9224 | version_type=linux | |
9225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9226 | soname_spec='${libname}${release}${shared_ext}$major' | |
9227 | shlibpath_var=LD_LIBRARY_PATH | |
9228 | ;; | |
9229 | ||
9230 | *) | |
9231 | dynamic_linker=no | |
9232 | ;; | |
9233 | esac | |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9235 | $as_echo "$dynamic_linker" >&6; } | |
9236 | test "$dynamic_linker" = no && can_build_shared=no | |
9237 | ||
9238 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9239 | if test "$GCC" = yes; then | |
9240 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9241 | fi | |
9242 | ||
9243 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9244 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9245 | fi | |
9246 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9247 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9248 | fi | |
9249 | ||
9250 | ||
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | ||
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | ||
9264 | ||
9265 | ||
9266 | ||
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | ||
9284 | ||
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9337 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9338 | hardcode_action= | |
9339 | if test -n "$hardcode_libdir_flag_spec" || | |
9340 | test -n "$runpath_var" || | |
9341 | test "X$hardcode_automatic" = "Xyes" ; then | |
9342 | ||
9343 | # We can hardcode non-existent directories. | |
9344 | if test "$hardcode_direct" != no && | |
9345 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9346 | # have to relink, otherwise we might link with an installed library | |
9347 | # when we should be linking with a yet-to-be-installed one | |
9348 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9349 | test "$hardcode_minus_L" != no; then | |
9350 | # Linking always hardcodes the temporary library directory. | |
9351 | hardcode_action=relink | |
9352 | else | |
9353 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9354 | hardcode_action=immediate | |
9355 | fi | |
9356 | else | |
9357 | # We cannot hardcode anything, or else we can only hardcode existing | |
9358 | # directories. | |
9359 | hardcode_action=unsupported | |
9360 | fi | |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9362 | $as_echo "$hardcode_action" >&6; } | |
9363 | ||
9364 | if test "$hardcode_action" = relink || | |
9365 | test "$inherit_rpath" = yes; then | |
9366 | # Fast installation is not supported | |
9367 | enable_fast_install=no | |
9368 | elif test "$shlibpath_overrides_runpath" = yes || | |
9369 | test "$enable_shared" = no; then | |
9370 | # Fast installation is not necessary | |
9371 | enable_fast_install=needless | |
9372 | fi | |
9373 | ||
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
9379 | if test "x$enable_dlopen" != xyes; then | |
9380 | enable_dlopen=unknown | |
9381 | enable_dlopen_self=unknown | |
9382 | enable_dlopen_self_static=unknown | |
9383 | else | |
9384 | lt_cv_dlopen=no | |
9385 | lt_cv_dlopen_libs= | |
9386 | ||
9387 | case $host_os in | |
9388 | beos*) | |
9389 | lt_cv_dlopen="load_add_on" | |
9390 | lt_cv_dlopen_libs= | |
9391 | lt_cv_dlopen_self=yes | |
9392 | ;; | |
9393 | ||
9394 | mingw* | pw32* | cegcc*) | |
9395 | lt_cv_dlopen="LoadLibrary" | |
9396 | lt_cv_dlopen_libs= | |
9397 | ;; | |
9398 | ||
9399 | cygwin*) | |
9400 | lt_cv_dlopen="dlopen" | |
9401 | lt_cv_dlopen_libs= | |
9402 | ;; | |
9403 | ||
9404 | darwin*) | |
9405 | # if libdl is installed we need to link against it | |
9406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9407 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9408 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9409 | $as_echo_n "(cached) " >&6 | |
9410 | else | |
9411 | ac_check_lib_save_LIBS=$LIBS | |
9412 | LIBS="-ldl $LIBS" | |
9413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9414 | /* end confdefs.h. */ | |
9415 | ||
9416 | /* Override any GCC internal prototype to avoid an error. | |
9417 | Use char because int might match the return type of a GCC | |
9418 | builtin and then its argument prototype would still apply. */ | |
9419 | #ifdef __cplusplus | |
9420 | extern "C" | |
9421 | #endif | |
9422 | char dlopen (); | |
9423 | int | |
9424 | main () | |
9425 | { | |
9426 | return dlopen (); | |
9427 | ; | |
9428 | return 0; | |
9429 | } | |
9430 | _ACEOF | |
9431 | if ac_fn_c_try_link "$LINENO"; then : | |
9432 | ac_cv_lib_dl_dlopen=yes | |
9433 | else | |
9434 | ac_cv_lib_dl_dlopen=no | |
9435 | fi | |
9436 | rm -f core conftest.err conftest.$ac_objext \ | |
9437 | conftest$ac_exeext conftest.$ac_ext | |
9438 | LIBS=$ac_check_lib_save_LIBS | |
9439 | fi | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9441 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9442 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9443 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9444 | else | |
9445 | ||
9446 | lt_cv_dlopen="dyld" | |
9447 | lt_cv_dlopen_libs= | |
9448 | lt_cv_dlopen_self=yes | |
9449 | ||
9450 | fi | |
9451 | ||
9452 | ;; | |
9453 | ||
9454 | *) | |
9455 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9456 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9457 | lt_cv_dlopen="shl_load" | |
9458 | else | |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9460 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9461 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9462 | $as_echo_n "(cached) " >&6 | |
9463 | else | |
9464 | ac_check_lib_save_LIBS=$LIBS | |
9465 | LIBS="-ldld $LIBS" | |
9466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9467 | /* end confdefs.h. */ | |
9468 | ||
9469 | /* Override any GCC internal prototype to avoid an error. | |
9470 | Use char because int might match the return type of a GCC | |
9471 | builtin and then its argument prototype would still apply. */ | |
9472 | #ifdef __cplusplus | |
9473 | extern "C" | |
9474 | #endif | |
9475 | char shl_load (); | |
9476 | int | |
9477 | main () | |
9478 | { | |
9479 | return shl_load (); | |
9480 | ; | |
9481 | return 0; | |
9482 | } | |
9483 | _ACEOF | |
9484 | if ac_fn_c_try_link "$LINENO"; then : | |
9485 | ac_cv_lib_dld_shl_load=yes | |
9486 | else | |
9487 | ac_cv_lib_dld_shl_load=no | |
9488 | fi | |
9489 | rm -f core conftest.err conftest.$ac_objext \ | |
9490 | conftest$ac_exeext conftest.$ac_ext | |
9491 | LIBS=$ac_check_lib_save_LIBS | |
9492 | fi | |
9493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9494 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9495 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9496 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9497 | else | |
9498 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9499 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9500 | lt_cv_dlopen="dlopen" | |
9501 | else | |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9503 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9504 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9505 | $as_echo_n "(cached) " >&6 | |
9506 | else | |
9507 | ac_check_lib_save_LIBS=$LIBS | |
9508 | LIBS="-ldl $LIBS" | |
9509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9510 | /* end confdefs.h. */ | |
9511 | ||
9512 | /* Override any GCC internal prototype to avoid an error. | |
9513 | Use char because int might match the return type of a GCC | |
9514 | builtin and then its argument prototype would still apply. */ | |
9515 | #ifdef __cplusplus | |
9516 | extern "C" | |
9517 | #endif | |
9518 | char dlopen (); | |
9519 | int | |
9520 | main () | |
9521 | { | |
9522 | return dlopen (); | |
9523 | ; | |
9524 | return 0; | |
9525 | } | |
9526 | _ACEOF | |
9527 | if ac_fn_c_try_link "$LINENO"; then : | |
9528 | ac_cv_lib_dl_dlopen=yes | |
9529 | else | |
9530 | ac_cv_lib_dl_dlopen=no | |
9531 | fi | |
9532 | rm -f core conftest.err conftest.$ac_objext \ | |
9533 | conftest$ac_exeext conftest.$ac_ext | |
9534 | LIBS=$ac_check_lib_save_LIBS | |
9535 | fi | |
9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9537 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9538 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9539 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9540 | else | |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9542 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9543 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9544 | $as_echo_n "(cached) " >&6 | |
9545 | else | |
9546 | ac_check_lib_save_LIBS=$LIBS | |
9547 | LIBS="-lsvld $LIBS" | |
9548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9549 | /* end confdefs.h. */ | |
9550 | ||
9551 | /* Override any GCC internal prototype to avoid an error. | |
9552 | Use char because int might match the return type of a GCC | |
9553 | builtin and then its argument prototype would still apply. */ | |
9554 | #ifdef __cplusplus | |
9555 | extern "C" | |
9556 | #endif | |
9557 | char dlopen (); | |
9558 | int | |
9559 | main () | |
9560 | { | |
9561 | return dlopen (); | |
9562 | ; | |
9563 | return 0; | |
9564 | } | |
9565 | _ACEOF | |
9566 | if ac_fn_c_try_link "$LINENO"; then : | |
9567 | ac_cv_lib_svld_dlopen=yes | |
9568 | else | |
9569 | ac_cv_lib_svld_dlopen=no | |
9570 | fi | |
9571 | rm -f core conftest.err conftest.$ac_objext \ | |
9572 | conftest$ac_exeext conftest.$ac_ext | |
9573 | LIBS=$ac_check_lib_save_LIBS | |
9574 | fi | |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9576 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9577 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9578 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9579 | else | |
9580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9581 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9582 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9583 | $as_echo_n "(cached) " >&6 | |
9584 | else | |
9585 | ac_check_lib_save_LIBS=$LIBS | |
9586 | LIBS="-ldld $LIBS" | |
9587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9588 | /* end confdefs.h. */ | |
9589 | ||
9590 | /* Override any GCC internal prototype to avoid an error. | |
9591 | Use char because int might match the return type of a GCC | |
9592 | builtin and then its argument prototype would still apply. */ | |
9593 | #ifdef __cplusplus | |
9594 | extern "C" | |
9595 | #endif | |
9596 | char dld_link (); | |
9597 | int | |
9598 | main () | |
9599 | { | |
9600 | return dld_link (); | |
9601 | ; | |
9602 | return 0; | |
9603 | } | |
9604 | _ACEOF | |
9605 | if ac_fn_c_try_link "$LINENO"; then : | |
9606 | ac_cv_lib_dld_dld_link=yes | |
9607 | else | |
9608 | ac_cv_lib_dld_dld_link=no | |
9609 | fi | |
9610 | rm -f core conftest.err conftest.$ac_objext \ | |
9611 | conftest$ac_exeext conftest.$ac_ext | |
9612 | LIBS=$ac_check_lib_save_LIBS | |
9613 | fi | |
9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9615 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9616 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9617 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9618 | fi | |
9619 | ||
9620 | ||
9621 | fi | |
9622 | ||
9623 | ||
9624 | fi | |
9625 | ||
9626 | ||
9627 | fi | |
9628 | ||
9629 | ||
9630 | fi | |
9631 | ||
9632 | ||
9633 | fi | |
9634 | ||
9635 | ;; | |
9636 | esac | |
9637 | ||
9638 | if test "x$lt_cv_dlopen" != xno; then | |
9639 | enable_dlopen=yes | |
9640 | else | |
9641 | enable_dlopen=no | |
9642 | fi | |
9643 | ||
9644 | case $lt_cv_dlopen in | |
9645 | dlopen) | |
9646 | save_CPPFLAGS="$CPPFLAGS" | |
9647 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9648 | ||
9649 | save_LDFLAGS="$LDFLAGS" | |
9650 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9651 | ||
9652 | save_LIBS="$LIBS" | |
9653 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9654 | ||
9655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9656 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9657 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
9658 | $as_echo_n "(cached) " >&6 | |
9659 | else | |
9660 | if test "$cross_compiling" = yes; then : | |
9661 | lt_cv_dlopen_self=cross | |
9662 | else | |
9663 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9664 | lt_status=$lt_dlunknown | |
9665 | cat > conftest.$ac_ext <<_LT_EOF | |
9666 | #line 9666 "configure" | |
9667 | #include "confdefs.h" | |
9668 | ||
9669 | #if HAVE_DLFCN_H | |
9670 | #include <dlfcn.h> | |
9671 | #endif | |
9672 | ||
9673 | #include <stdio.h> | |
9674 | ||
9675 | #ifdef RTLD_GLOBAL | |
9676 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9677 | #else | |
9678 | # ifdef DL_GLOBAL | |
9679 | # define LT_DLGLOBAL DL_GLOBAL | |
9680 | # else | |
9681 | # define LT_DLGLOBAL 0 | |
9682 | # endif | |
9683 | #endif | |
9684 | ||
9685 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9686 | find out it does not work in some platform. */ | |
9687 | #ifndef LT_DLLAZY_OR_NOW | |
9688 | # ifdef RTLD_LAZY | |
9689 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9690 | # else | |
9691 | # ifdef DL_LAZY | |
9692 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9693 | # else | |
9694 | # ifdef RTLD_NOW | |
9695 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9696 | # else | |
9697 | # ifdef DL_NOW | |
9698 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9699 | # else | |
9700 | # define LT_DLLAZY_OR_NOW 0 | |
9701 | # endif | |
9702 | # endif | |
9703 | # endif | |
9704 | # endif | |
9705 | #endif | |
9706 | ||
9707 | void fnord() { int i=42;} | |
9708 | int main () | |
9709 | { | |
9710 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9711 | int status = $lt_dlunknown; | |
9712 | ||
9713 | if (self) | |
9714 | { | |
9715 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9716 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9717 | /* dlclose (self); */ | |
9718 | } | |
9719 | else | |
9720 | puts (dlerror ()); | |
9721 | ||
9722 | return status; | |
9723 | } | |
9724 | _LT_EOF | |
9725 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9726 | (eval $ac_link) 2>&5 | |
9727 | ac_status=$? | |
9728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9729 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9730 | (./conftest; exit; ) >&5 2>/dev/null | |
9731 | lt_status=$? | |
9732 | case x$lt_status in | |
9733 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9734 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
9735 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
9736 | esac | |
9737 | else : | |
9738 | # compilation failed | |
9739 | lt_cv_dlopen_self=no | |
9740 | fi | |
9741 | fi | |
9742 | rm -fr conftest* | |
9743 | ||
9744 | ||
9745 | fi | |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
9747 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
9748 | ||
9749 | if test "x$lt_cv_dlopen_self" = xyes; then | |
9750 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
9752 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
9753 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
9754 | $as_echo_n "(cached) " >&6 | |
9755 | else | |
9756 | if test "$cross_compiling" = yes; then : | |
9757 | lt_cv_dlopen_self_static=cross | |
9758 | else | |
9759 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9760 | lt_status=$lt_dlunknown | |
9761 | cat > conftest.$ac_ext <<_LT_EOF | |
9762 | #line 9762 "configure" | |
9763 | #include "confdefs.h" | |
9764 | ||
9765 | #if HAVE_DLFCN_H | |
9766 | #include <dlfcn.h> | |
9767 | #endif | |
9768 | ||
9769 | #include <stdio.h> | |
9770 | ||
9771 | #ifdef RTLD_GLOBAL | |
9772 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9773 | #else | |
9774 | # ifdef DL_GLOBAL | |
9775 | # define LT_DLGLOBAL DL_GLOBAL | |
9776 | # else | |
9777 | # define LT_DLGLOBAL 0 | |
9778 | # endif | |
9779 | #endif | |
9780 | ||
9781 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9782 | find out it does not work in some platform. */ | |
9783 | #ifndef LT_DLLAZY_OR_NOW | |
9784 | # ifdef RTLD_LAZY | |
9785 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9786 | # else | |
9787 | # ifdef DL_LAZY | |
9788 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9789 | # else | |
9790 | # ifdef RTLD_NOW | |
9791 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9792 | # else | |
9793 | # ifdef DL_NOW | |
9794 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9795 | # else | |
9796 | # define LT_DLLAZY_OR_NOW 0 | |
9797 | # endif | |
9798 | # endif | |
9799 | # endif | |
9800 | # endif | |
9801 | #endif | |
9802 | ||
9803 | void fnord() { int i=42;} | |
9804 | int main () | |
9805 | { | |
9806 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9807 | int status = $lt_dlunknown; | |
9808 | ||
9809 | if (self) | |
9810 | { | |
9811 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9812 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9813 | /* dlclose (self); */ | |
9814 | } | |
9815 | else | |
9816 | puts (dlerror ()); | |
9817 | ||
9818 | return status; | |
9819 | } | |
9820 | _LT_EOF | |
9821 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
9822 | (eval $ac_link) 2>&5 | |
9823 | ac_status=$? | |
9824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9825 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
9826 | (./conftest; exit; ) >&5 2>/dev/null | |
9827 | lt_status=$? | |
9828 | case x$lt_status in | |
9829 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9830 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
9831 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
9832 | esac | |
9833 | else : | |
9834 | # compilation failed | |
9835 | lt_cv_dlopen_self_static=no | |
9836 | fi | |
9837 | fi | |
9838 | rm -fr conftest* | |
9839 | ||
9840 | ||
9841 | fi | |
9842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
9843 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
9844 | fi | |
9845 | ||
9846 | CPPFLAGS="$save_CPPFLAGS" | |
9847 | LDFLAGS="$save_LDFLAGS" | |
9848 | LIBS="$save_LIBS" | |
9849 | ;; | |
9850 | esac | |
9851 | ||
9852 | case $lt_cv_dlopen_self in | |
9853 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9854 | *) enable_dlopen_self=unknown ;; | |
9855 | esac | |
9856 | ||
9857 | case $lt_cv_dlopen_self_static in | |
9858 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9859 | *) enable_dlopen_self_static=unknown ;; | |
9860 | esac | |
9861 | fi | |
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | striplib= | |
9880 | old_striplib= | |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
9882 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
9883 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
9884 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9885 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9887 | $as_echo "yes" >&6; } | |
9888 | else | |
9889 | # FIXME - insert some real tests, host_os isn't really good enough | |
9890 | case $host_os in | |
9891 | darwin*) | |
9892 | if test -n "$STRIP" ; then | |
9893 | striplib="$STRIP -x" | |
9894 | old_striplib="$STRIP -S" | |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9896 | $as_echo "yes" >&6; } | |
9897 | else | |
9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9899 | $as_echo "no" >&6; } | |
9900 | fi | |
9901 | ;; | |
9902 | *) | |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9904 | $as_echo "no" >&6; } | |
9905 | ;; | |
9906 | esac | |
9907 | fi | |
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | # Report which library types will actually be built | |
9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
9922 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
9923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
9924 | $as_echo "$can_build_shared" >&6; } | |
9925 | ||
9926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
9927 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
9928 | test "$can_build_shared" = "no" && enable_shared=no | |
9929 | ||
9930 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9931 | # are all built from PIC. | |
9932 | case $host_os in | |
9933 | aix3*) | |
9934 | test "$enable_shared" = yes && enable_static=no | |
9935 | if test -n "$RANLIB"; then | |
9936 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9937 | postinstall_cmds='$RANLIB $lib' | |
9938 | fi | |
9939 | ;; | |
9940 | ||
9941 | aix[4-9]*) | |
9942 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9943 | test "$enable_shared" = yes && enable_static=no | |
9944 | fi | |
9945 | ;; | |
9946 | esac | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
9948 | $as_echo "$enable_shared" >&6; } | |
9949 | ||
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
9951 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
9952 | # Make sure either enable_shared or enable_static is yes. | |
9953 | test "$enable_shared" = yes || enable_static=yes | |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
9955 | $as_echo "$enable_static" >&6; } | |
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | fi | |
9961 | ac_ext=c | |
9962 | ac_cpp='$CPP $CPPFLAGS' | |
9963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9966 | ||
9967 | CC="$lt_save_CC" | |
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ac_config_commands="$ac_config_commands libtool" | |
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | # Only expand once: | |
9987 | ||
9988 | ||
9989 | for ac_prog in 'bison -y' byacc | |
9990 | do | |
9991 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9992 | set dummy $ac_prog; ac_word=$2 | |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9994 | $as_echo_n "checking for $ac_word... " >&6; } | |
9995 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
9996 | $as_echo_n "(cached) " >&6 | |
9997 | else | |
9998 | if test -n "$YACC"; then | |
9999 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10000 | else | |
10001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10002 | for as_dir in $PATH | |
10003 | do | |
10004 | IFS=$as_save_IFS | |
10005 | test -z "$as_dir" && as_dir=. | |
10006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10008 | ac_cv_prog_YACC="$ac_prog" | |
10009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10010 | break 2 | |
10011 | fi | |
10012 | done | |
10013 | done | |
10014 | IFS=$as_save_IFS | |
10015 | ||
10016 | fi | |
10017 | fi | |
10018 | YACC=$ac_cv_prog_YACC | |
10019 | if test -n "$YACC"; then | |
10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
10021 | $as_echo "$YACC" >&6; } | |
10022 | else | |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10024 | $as_echo "no" >&6; } | |
10025 | fi | |
10026 | ||
10027 | ||
10028 | test -n "$YACC" && break | |
10029 | done | |
10030 | test -n "$YACC" || YACC="yacc" | |
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5 | |
10037 | $as_echo_n "checking if bison is the parser generator... " >&6; } | |
10038 | if test "${ax_cv_prog_bison+set}" = set; then : | |
10039 | $as_echo_n "(cached) " >&6 | |
10040 | else | |
10041 | ||
10042 | if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then : | |
10043 | ||
10044 | ax_cv_prog_bison=yes | |
10045 | ||
10046 | else | |
10047 | ||
10048 | ax_cv_prog_bison=no | |
10049 | ||
10050 | fi | |
10051 | ||
10052 | fi | |
10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5 | |
10054 | $as_echo "$ax_cv_prog_bison" >&6; } | |
10055 | if test "$ax_cv_prog_bison" = yes; then : | |
10056 | ||
10057 | : | |
10058 | ||
10059 | BISON=`echo $YACC | $SED -e 's/ -y//'` | |
10060 | BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'` | |
10061 | ||
10062 | ||
10063 | else | |
10064 | ||
10065 | : | |
10066 | as_fn_error "You need bison 2.4 or greater" "$LINENO" 5 | |
10067 | ||
10068 | fi | |
10069 | ||
10070 | for ac_prog in gawk mawk nawk awk | |
10071 | do | |
10072 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10073 | set dummy $ac_prog; ac_word=$2 | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10075 | $as_echo_n "checking for $ac_word... " >&6; } | |
10076 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
10077 | $as_echo_n "(cached) " >&6 | |
10078 | else | |
10079 | if test -n "$AWK"; then | |
10080 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
10081 | else | |
10082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10083 | for as_dir in $PATH | |
10084 | do | |
10085 | IFS=$as_save_IFS | |
10086 | test -z "$as_dir" && as_dir=. | |
10087 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10089 | ac_cv_prog_AWK="$ac_prog" | |
10090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10091 | break 2 | |
10092 | fi | |
10093 | done | |
10094 | done | |
10095 | IFS=$as_save_IFS | |
10096 | ||
10097 | fi | |
10098 | fi | |
10099 | AWK=$ac_cv_prog_AWK | |
10100 | if test -n "$AWK"; then | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
10102 | $as_echo "$AWK" >&6; } | |
10103 | else | |
10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10105 | $as_echo "no" >&6; } | |
10106 | fi | |
10107 | ||
10108 | ||
10109 | test -n "$AWK" && break | |
10110 | done | |
10111 | ||
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5 | |
10113 | $as_echo_n "checking if bison is >= 2.4... " >&6; } | |
10114 | as_arg_v1=$BISON_VERSION | |
10115 | as_arg_v2=2.4 | |
10116 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10117 | case $? in #( | |
10118 | 1) : | |
10119 | ||
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10121 | $as_echo "no" >&6; } | |
10122 | as_fn_error "You need bison 2.4 or greater" "$LINENO" 5 | |
10123 | ;; #( | |
10124 | 0) : | |
10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10126 | $as_echo "yes" >&6; } ;; #( | |
10127 | 2) : | |
10128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10129 | $as_echo "yes" >&6; } ;; #( | |
10130 | *) : | |
10131 | ;; | |
10132 | esac | |
10133 | ||
10134 | # expand $ac_aux_dir to an absolute path | |
10135 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
10136 | ||
10137 | if test x"${MISSING+set}" != xset; then | |
10138 | case $am_aux_dir in | |
10139 | *\ * | *\ *) | |
10140 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
10141 | *) | |
10142 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
10143 | esac | |
10144 | fi | |
10145 | # Use eval to expand $SHELL | |
10146 | if eval "$MISSING --run true"; then | |
10147 | am_missing_run="$MISSING --run " | |
10148 | else | |
10149 | am_missing_run= | |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
10151 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
10152 | fi | |
10153 | ||
10154 | for ac_prog in flex lex | |
10155 | do | |
10156 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10157 | set dummy $ac_prog; ac_word=$2 | |
10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10159 | $as_echo_n "checking for $ac_word... " >&6; } | |
10160 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
10161 | $as_echo_n "(cached) " >&6 | |
10162 | else | |
10163 | if test -n "$LEX"; then | |
10164 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10165 | else | |
10166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10167 | for as_dir in $PATH | |
10168 | do | |
10169 | IFS=$as_save_IFS | |
10170 | test -z "$as_dir" && as_dir=. | |
10171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10173 | ac_cv_prog_LEX="$ac_prog" | |
10174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10175 | break 2 | |
10176 | fi | |
10177 | done | |
10178 | done | |
10179 | IFS=$as_save_IFS | |
10180 | ||
10181 | fi | |
10182 | fi | |
10183 | LEX=$ac_cv_prog_LEX | |
10184 | if test -n "$LEX"; then | |
10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
10186 | $as_echo "$LEX" >&6; } | |
10187 | else | |
10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10189 | $as_echo "no" >&6; } | |
10190 | fi | |
10191 | ||
10192 | ||
10193 | test -n "$LEX" && break | |
10194 | done | |
10195 | test -n "$LEX" || LEX=":" | |
10196 | ||
10197 | if test "x$LEX" != "x:"; then | |
10198 | cat >conftest.l <<_ACEOF | |
10199 | %% | |
10200 | a { ECHO; } | |
10201 | b { REJECT; } | |
10202 | c { yymore (); } | |
10203 | d { yyless (1); } | |
10204 | e { yyless (input () != 0); } | |
10205 | f { unput (yytext[0]); } | |
10206 | . { BEGIN INITIAL; } | |
10207 | %% | |
10208 | #ifdef YYTEXT_POINTER | |
10209 | extern char *yytext; | |
10210 | #endif | |
10211 | int | |
10212 | main (void) | |
10213 | { | |
10214 | return ! yylex () + ! yywrap (); | |
10215 | } | |
10216 | _ACEOF | |
10217 | { { ac_try="$LEX conftest.l" | |
10218 | case "(($ac_try" in | |
10219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10220 | *) ac_try_echo=$ac_try;; | |
10221 | esac | |
10222 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10223 | $as_echo "$ac_try_echo"; } >&5 | |
10224 | (eval "$LEX conftest.l") 2>&5 | |
10225 | ac_status=$? | |
10226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10227 | test $ac_status = 0; } | |
10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
10229 | $as_echo_n "checking lex output file root... " >&6; } | |
10230 | if test "${ac_cv_prog_lex_root+set}" = set; then : | |
10231 | $as_echo_n "(cached) " >&6 | |
10232 | else | |
10233 | ||
10234 | if test -f lex.yy.c; then | |
10235 | ac_cv_prog_lex_root=lex.yy | |
10236 | elif test -f lexyy.c; then | |
10237 | ac_cv_prog_lex_root=lexyy | |
10238 | else | |
10239 | as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 | |
10240 | fi | |
10241 | fi | |
10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
10243 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
10244 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10245 | ||
10246 | if test -z "${LEXLIB+set}"; then | |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
10248 | $as_echo_n "checking lex library... " >&6; } | |
10249 | if test "${ac_cv_lib_lex+set}" = set; then : | |
10250 | $as_echo_n "(cached) " >&6 | |
10251 | else | |
10252 | ||
10253 | ac_save_LIBS=$LIBS | |
10254 | ac_cv_lib_lex='none needed' | |
10255 | for ac_lib in '' -lfl -ll; do | |
10256 | LIBS="$ac_lib $ac_save_LIBS" | |
10257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10258 | /* end confdefs.h. */ | |
10259 | `cat $LEX_OUTPUT_ROOT.c` | |
10260 | _ACEOF | |
10261 | if ac_fn_c_try_link "$LINENO"; then : | |
10262 | ac_cv_lib_lex=$ac_lib | |
10263 | fi | |
10264 | rm -f core conftest.err conftest.$ac_objext \ | |
10265 | conftest$ac_exeext conftest.$ac_ext | |
10266 | test "$ac_cv_lib_lex" != 'none needed' && break | |
10267 | done | |
10268 | LIBS=$ac_save_LIBS | |
10269 | ||
10270 | fi | |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
10272 | $as_echo "$ac_cv_lib_lex" >&6; } | |
10273 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
10274 | fi | |
10275 | ||
10276 | ||
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
10278 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
10279 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : | |
10280 | $as_echo_n "(cached) " >&6 | |
10281 | else | |
10282 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
10283 | # default is implementation-dependent. Figure out which it is, since | |
10284 | # not all implementations provide the %pointer and %array declarations. | |
10285 | ac_cv_prog_lex_yytext_pointer=no | |
10286 | ac_save_LIBS=$LIBS | |
10287 | LIBS="$LEXLIB $ac_save_LIBS" | |
10288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10289 | /* end confdefs.h. */ | |
10290 | #define YYTEXT_POINTER 1 | |
10291 | `cat $LEX_OUTPUT_ROOT.c` | |
10292 | _ACEOF | |
10293 | if ac_fn_c_try_link "$LINENO"; then : | |
10294 | ac_cv_prog_lex_yytext_pointer=yes | |
10295 | fi | |
10296 | rm -f core conftest.err conftest.$ac_objext \ | |
10297 | conftest$ac_exeext conftest.$ac_ext | |
10298 | LIBS=$ac_save_LIBS | |
10299 | ||
10300 | fi | |
10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
10302 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
10303 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
10304 | ||
10305 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
10306 | ||
10307 | fi | |
10308 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
10309 | ||
10310 | fi | |
10311 | if test "$LEX" = :; then | |
10312 | LEX=${am_missing_run}flex | |
10313 | fi | |
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5 | |
10319 | $as_echo_n "checking if flex is the lexer generator... " >&6; } | |
10320 | if test "${ax_cv_prog_flex+set}" = set; then : | |
10321 | $as_echo_n "(cached) " >&6 | |
10322 | else | |
10323 | ||
10324 | if test "`echo \"$LEX\" | $SED 's,^.*\(flex\).*$,\1,'`" = "flex"; then : | |
10325 | ||
10326 | ax_cv_prog_flex=yes | |
10327 | ||
10328 | else | |
10329 | ||
10330 | ax_cv_prog_flex=no | |
10331 | ||
10332 | fi | |
10333 | ||
10334 | fi | |
10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5 | |
10336 | $as_echo "$ax_cv_prog_flex" >&6; } | |
10337 | if test "$ax_cv_prog_flex" = yes; then : | |
10338 | ||
10339 | : | |
10340 | ||
10341 | FLEX=$LEX | |
10342 | FLEX_VERSION=`$FLEX --version | $SED -e 's/^.* \(.*\)$/\1/p;d'` | |
10343 | ||
10344 | ||
10345 | else | |
10346 | ||
10347 | : | |
10348 | ||
10349 | as_fn_error "You need flex 2.5.35 or greater" "$LINENO" 5 | |
10350 | ||
10351 | ||
10352 | fi | |
10353 | ||
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is >= 2.5.35" >&5 | |
10355 | $as_echo_n "checking if flex is >= 2.5.35... " >&6; } | |
10356 | as_arg_v1=$FLEX_VERSION | |
10357 | as_arg_v2=2.5.35 | |
10358 | awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null | |
10359 | case $? in #( | |
10360 | 1) : | |
10361 | ||
10362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10363 | $as_echo "no" >&6; } | |
10364 | as_fn_error "You need flex 2.5.35 or greater" "$LINENO" 5 | |
10365 | ;; #( | |
10366 | 0) : | |
10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10368 | $as_echo "yes" >&6; } ;; #( | |
10369 | 2) : | |
10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10371 | $as_echo "yes" >&6; } ;; #( | |
10372 | *) : | |
10373 | ;; | |
10374 | esac | |
10375 | ||
10376 | for ac_prog in bash | |
10377 | do | |
10378 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10379 | set dummy $ac_prog; ac_word=$2 | |
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10381 | $as_echo_n "checking for $ac_word... " >&6; } | |
10382 | if test "${ac_cv_prog__BASH+set}" = set; then : | |
10383 | $as_echo_n "(cached) " >&6 | |
10384 | else | |
10385 | if test -n "$_BASH"; then | |
10386 | ac_cv_prog__BASH="$_BASH" # Let the user override the test. | |
10387 | else | |
10388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10389 | for as_dir in $PATH | |
10390 | do | |
10391 | IFS=$as_save_IFS | |
10392 | test -z "$as_dir" && as_dir=. | |
10393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10395 | ac_cv_prog__BASH="$ac_prog" | |
10396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10397 | break 2 | |
10398 | fi | |
10399 | done | |
10400 | done | |
10401 | IFS=$as_save_IFS | |
10402 | ||
10403 | fi | |
10404 | fi | |
10405 | _BASH=$ac_cv_prog__BASH | |
10406 | if test -n "$_BASH"; then | |
10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5 | |
10408 | $as_echo "$_BASH" >&6; } | |
10409 | else | |
10410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10411 | $as_echo "no" >&6; } | |
10412 | fi | |
10413 | ||
10414 | ||
10415 | test -n "$_BASH" && break | |
10416 | done | |
10417 | ||
10418 | for ac_prog in gperf | |
10419 | do | |
10420 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10421 | set dummy $ac_prog; ac_word=$2 | |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10423 | $as_echo_n "checking for $ac_word... " >&6; } | |
10424 | if test "${ac_cv_prog_GPERF+set}" = set; then : | |
10425 | $as_echo_n "(cached) " >&6 | |
10426 | else | |
10427 | if test -n "$GPERF"; then | |
10428 | ac_cv_prog_GPERF="$GPERF" # Let the user override the test. | |
10429 | else | |
10430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10431 | for as_dir in $PATH | |
10432 | do | |
10433 | IFS=$as_save_IFS | |
10434 | test -z "$as_dir" && as_dir=. | |
10435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10437 | ac_cv_prog_GPERF="$ac_prog" | |
10438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10439 | break 2 | |
10440 | fi | |
10441 | done | |
10442 | done | |
10443 | IFS=$as_save_IFS | |
10444 | ||
10445 | fi | |
10446 | fi | |
10447 | GPERF=$ac_cv_prog_GPERF | |
10448 | if test -n "$GPERF"; then | |
10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5 | |
10450 | $as_echo "$GPERF" >&6; } | |
10451 | else | |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10453 | $as_echo "no" >&6; } | |
10454 | fi | |
10455 | ||
10456 | ||
10457 | test -n "$GPERF" && break | |
10458 | done | |
10459 | ||
10460 | ||
10461 | apr_found="no" | |
10462 | ||
10463 | if test "$target_os" = "os2-emx"; then | |
10464 | # Scripts don't pass test -x on OS/2 | |
10465 | TEST_X="test -f" | |
10466 | else | |
10467 | TEST_X="test -x" | |
10468 | fi | |
10469 | ||
10470 | acceptable_majors="1" | |
10471 | ||
10472 | apr_temp_acceptable_apr_config="" | |
10473 | for apr_temp_major in $acceptable_majors | |
10474 | do | |
10475 | case $apr_temp_major in | |
10476 | 0) | |
10477 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" | |
10478 | ;; | |
10479 | *) | |
10480 | apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" | |
10481 | ;; | |
10482 | esac | |
10483 | done | |
10484 | ||
10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 | |
10486 | $as_echo_n "checking for APR... " >&6; } | |
10487 | ||
10488 | # Check whether --with-apr was given. | |
10489 | if test "${with_apr+set}" = set; then : | |
10490 | withval=$with_apr; | |
10491 | if test "$withval" = "no" || test "$withval" = "yes"; then | |
10492 | as_fn_error "--with-apr requires a directory or file to be provided" "$LINENO" 5 | |
10493 | fi | |
10494 | ||
10495 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
10496 | do | |
10497 | for lookdir in "$withval/bin" "$withval" | |
10498 | do | |
10499 | if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then | |
10500 | apr_config="$lookdir/$apr_temp_apr_config_file" | |
10501 | ||
10502 | apr_found="yes" | |
10503 | break 2 | |
10504 | fi | |
10505 | done | |
10506 | done | |
10507 | ||
10508 | if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then | |
10509 | apr_config="$withval" | |
10510 | apr_found="yes" | |
10511 | fi | |
10512 | ||
10513 | if test "$apr_found" != "yes"; then | |
10514 | 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 | |
10515 | fi | |
10516 | ||
10517 | else | |
10518 | ||
10519 | if test -n "1" && test "1" = "1"; then | |
10520 | for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config | |
10521 | do | |
10522 | if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then | |
10523 | apr_config="$apr_temp_apr_config_file" | |
10524 | ||
10525 | apr_found="yes" | |
10526 | break | |
10527 | else | |
10528 | for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do | |
10529 | if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then | |
10530 | apr_config="$lookdir/bin/$apr_temp_apr_config_file" | |
10531 | ||
10532 | apr_found="yes" | |
10533 | break 2 | |
10534 | fi | |
10535 | done | |
10536 | fi | |
10537 | done | |
10538 | fi | |
10539 | if test "$apr_found" = "no" && test -d ""; then | |
10540 | apr_temp_abs_srcdir="`cd && pwd`" | |
10541 | apr_found="reconfig" | |
10542 | apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" | |
10543 | case $apr_bundled_major in | |
10544 | "") | |
10545 | as_fn_error "failed to find major version of bundled APR" "$LINENO" 5 | |
10546 | ;; | |
10547 | 0) | |
10548 | apr_temp_apr_config_file="apr-config" | |
10549 | ;; | |
10550 | *) | |
10551 | apr_temp_apr_config_file="apr-$apr_bundled_major-config" | |
10552 | ;; | |
10553 | esac | |
10554 | if test -n ""; then | |
10555 | apr_config="/$apr_temp_apr_config_file" | |
10556 | else | |
10557 | apr_config="/$apr_temp_apr_config_file" | |
10558 | fi | |
10559 | fi | |
10560 | ||
10561 | fi | |
10562 | ||
10563 | ||
10564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 | |
10565 | $as_echo "$apr_found" >&6; } | |
10566 | ||
10567 | case $apr_found in #( | |
10568 | yes) : | |
10569 | ||
10570 | ||
10571 | for element in `$apr_config --includes`; do | |
10572 | haveit= | |
10573 | for x in $CPPFLAGS; do | |
10574 | ||
10575 | acl_save_prefix="$prefix" | |
10576 | prefix="$acl_final_prefix" | |
10577 | acl_save_exec_prefix="$exec_prefix" | |
10578 | exec_prefix="$acl_final_exec_prefix" | |
10579 | eval x=\"$x\" | |
10580 | exec_prefix="$acl_save_exec_prefix" | |
10581 | prefix="$acl_save_prefix" | |
10582 | ||
10583 | if test "X$x" = "X$element"; then | |
10584 | haveit=yes | |
10585 | break | |
10586 | fi | |
10587 | done | |
10588 | if test -z "$haveit"; then | |
10589 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10590 | fi | |
10591 | done | |
10592 | ||
10593 | APR=`$apr_config --link-ld` | |
10594 | ||
10595 | ;; #( | |
10596 | *) : | |
10597 | as_fn_error "You need apr" "$LINENO" 5 ;; | |
10598 | esac | |
10599 | ||
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5 | |
10601 | $as_echo_n "checking for a readline compatible library... " >&6; } | |
10602 | if test "${vl_cv_lib_readline+set}" = set; then : | |
10603 | $as_echo_n "(cached) " >&6 | |
10604 | else | |
10605 | ||
10606 | ORIG_LIBS="$LIBS" | |
10607 | for readline_lib in readline edit editline; do | |
10608 | for termcap_lib in "" termcap curses ncurses; do | |
10609 | if test -z "$termcap_lib"; then | |
10610 | TRY_LIB="-l$readline_lib" | |
10611 | else | |
10612 | TRY_LIB="-l$readline_lib -l$termcap_lib" | |
10613 | fi | |
10614 | LIBS="$ORIG_LIBS $TRY_LIB" | |
10615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10616 | /* end confdefs.h. */ | |
10617 | ||
10618 | /* Override any GCC internal prototype to avoid an error. | |
10619 | Use char because int might match the return type of a GCC | |
10620 | builtin and then its argument prototype would still apply. */ | |
10621 | #ifdef __cplusplus | |
10622 | extern "C" | |
10623 | #endif | |
10624 | char readline (); | |
10625 | int | |
10626 | main () | |
10627 | { | |
10628 | return readline (); | |
10629 | ; | |
10630 | return 0; | |
10631 | } | |
10632 | _ACEOF | |
10633 | if ac_fn_c_try_link "$LINENO"; then : | |
10634 | vl_cv_lib_readline="$TRY_LIB" | |
10635 | fi | |
10636 | rm -f core conftest.err conftest.$ac_objext \ | |
10637 | conftest$ac_exeext conftest.$ac_ext | |
10638 | if test -n "$vl_cv_lib_readline"; then | |
10639 | break | |
10640 | fi | |
10641 | done | |
10642 | if test -n "$vl_cv_lib_readline"; then | |
10643 | break | |
10644 | fi | |
10645 | done | |
10646 | if test -z "$vl_cv_lib_readline"; then | |
10647 | vl_cv_lib_readline="no" | |
10648 | LIBS="$ORIG_LIBS" | |
10649 | fi | |
10650 | ||
10651 | fi | |
10652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5 | |
10653 | $as_echo "$vl_cv_lib_readline" >&6; } | |
10654 | ||
10655 | if test "$vl_cv_lib_readline" != "no"; then | |
10656 | ||
10657 | $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h | |
10658 | ||
10659 | for ac_header in readline.h readline/readline.h | |
10660 | do : | |
10661 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10662 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10663 | eval as_val=\$$as_ac_Header | |
10664 | if test "x$as_val" = x""yes; then : | |
10665 | cat >>confdefs.h <<_ACEOF | |
10666 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10667 | _ACEOF | |
10668 | ||
10669 | fi | |
10670 | ||
10671 | done | |
10672 | ||
10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5 | |
10674 | $as_echo_n "checking whether readline supports history... " >&6; } | |
10675 | if test "${vl_cv_lib_readline_history+set}" = set; then : | |
10676 | $as_echo_n "(cached) " >&6 | |
10677 | else | |
10678 | ||
10679 | vl_cv_lib_readline_history="no" | |
10680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10681 | /* end confdefs.h. */ | |
10682 | ||
10683 | /* Override any GCC internal prototype to avoid an error. | |
10684 | Use char because int might match the return type of a GCC | |
10685 | builtin and then its argument prototype would still apply. */ | |
10686 | #ifdef __cplusplus | |
10687 | extern "C" | |
10688 | #endif | |
10689 | char add_history (); | |
10690 | int | |
10691 | main () | |
10692 | { | |
10693 | return add_history (); | |
10694 | ; | |
10695 | return 0; | |
10696 | } | |
10697 | _ACEOF | |
10698 | if ac_fn_c_try_link "$LINENO"; then : | |
10699 | vl_cv_lib_readline_history="yes" | |
10700 | fi | |
10701 | rm -f core conftest.err conftest.$ac_objext \ | |
10702 | conftest$ac_exeext conftest.$ac_ext | |
10703 | ||
10704 | fi | |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5 | |
10706 | $as_echo "$vl_cv_lib_readline_history" >&6; } | |
10707 | if test "$vl_cv_lib_readline_history" = "yes"; then | |
10708 | ||
10709 | $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h | |
10710 | ||
10711 | for ac_header in history.h readline/history.h | |
10712 | do : | |
10713 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10714 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10715 | eval as_val=\$$as_ac_Header | |
10716 | if test "x$as_val" = x""yes; then : | |
10717 | cat >>confdefs.h <<_ACEOF | |
10718 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10719 | _ACEOF | |
10720 | ||
10721 | fi | |
10722 | ||
10723 | done | |
10724 | ||
10725 | fi | |
10726 | fi | |
10727 | ||
10728 | ac_ext=cpp | |
10729 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10733 | if test -z "$CXX"; then | |
10734 | if test -n "$CCC"; then | |
10735 | CXX=$CCC | |
10736 | else | |
10737 | if test -n "$ac_tool_prefix"; then | |
10738 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10739 | do | |
10740 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10741 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10743 | $as_echo_n "checking for $ac_word... " >&6; } | |
10744 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
10745 | $as_echo_n "(cached) " >&6 | |
10746 | else | |
10747 | if test -n "$CXX"; then | |
10748 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10749 | else | |
10750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10751 | for as_dir in $PATH | |
10752 | do | |
10753 | IFS=$as_save_IFS | |
10754 | test -z "$as_dir" && as_dir=. | |
10755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10757 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10759 | break 2 | |
10760 | fi | |
10761 | done | |
10762 | done | |
10763 | IFS=$as_save_IFS | |
10764 | ||
10765 | fi | |
10766 | fi | |
10767 | CXX=$ac_cv_prog_CXX | |
10768 | if test -n "$CXX"; then | |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
10770 | $as_echo "$CXX" >&6; } | |
10771 | else | |
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10773 | $as_echo "no" >&6; } | |
10774 | fi | |
10775 | ||
10776 | ||
10777 | test -n "$CXX" && break | |
10778 | done | |
10779 | fi | |
10780 | if test -z "$CXX"; then | |
10781 | ac_ct_CXX=$CXX | |
10782 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10783 | do | |
10784 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10785 | set dummy $ac_prog; ac_word=$2 | |
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10787 | $as_echo_n "checking for $ac_word... " >&6; } | |
10788 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
10789 | $as_echo_n "(cached) " >&6 | |
10790 | else | |
10791 | if test -n "$ac_ct_CXX"; then | |
10792 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10793 | else | |
10794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10795 | for as_dir in $PATH | |
10796 | do | |
10797 | IFS=$as_save_IFS | |
10798 | test -z "$as_dir" && as_dir=. | |
10799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10801 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10803 | break 2 | |
10804 | fi | |
10805 | done | |
10806 | done | |
10807 | IFS=$as_save_IFS | |
10808 | ||
10809 | fi | |
10810 | fi | |
10811 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10812 | if test -n "$ac_ct_CXX"; then | |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
10814 | $as_echo "$ac_ct_CXX" >&6; } | |
10815 | else | |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10817 | $as_echo "no" >&6; } | |
10818 | fi | |
10819 | ||
10820 | ||
10821 | test -n "$ac_ct_CXX" && break | |
10822 | done | |
10823 | ||
10824 | if test "x$ac_ct_CXX" = x; then | |
10825 | CXX="g++" | |
10826 | else | |
10827 | case $cross_compiling:$ac_tool_warned in | |
10828 | yes:) | |
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10830 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10831 | ac_tool_warned=yes ;; | |
10832 | esac | |
10833 | CXX=$ac_ct_CXX | |
10834 | fi | |
10835 | fi | |
10836 | ||
10837 | fi | |
10838 | fi | |
10839 | # Provide some information about the compiler. | |
10840 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
10841 | set X $ac_compile | |
10842 | ac_compiler=$2 | |
10843 | for ac_option in --version -v -V -qversion; do | |
10844 | { { ac_try="$ac_compiler $ac_option >&5" | |
10845 | case "(($ac_try" in | |
10846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10847 | *) ac_try_echo=$ac_try;; | |
10848 | esac | |
10849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
10850 | $as_echo "$ac_try_echo"; } >&5 | |
10851 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
10852 | ac_status=$? | |
10853 | if test -s conftest.err; then | |
10854 | sed '10a\ | |
10855 | ... rest of stderr output deleted ... | |
10856 | 10q' conftest.err >conftest.er1 | |
10857 | cat conftest.er1 >&5 | |
10858 | fi | |
10859 | rm -f conftest.er1 conftest.err | |
10860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10861 | test $ac_status = 0; } | |
10862 | done | |
10863 | ||
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
10865 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
10866 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
10867 | $as_echo_n "(cached) " >&6 | |
10868 | else | |
10869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10870 | /* end confdefs.h. */ | |
10871 | ||
10872 | int | |
10873 | main () | |
10874 | { | |
10875 | #ifndef __GNUC__ | |
10876 | choke me | |
10877 | #endif | |
10878 | ||
10879 | ; | |
10880 | return 0; | |
10881 | } | |
10882 | _ACEOF | |
10883 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10884 | ac_compiler_gnu=yes | |
10885 | else | |
10886 | ac_compiler_gnu=no | |
10887 | fi | |
10888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10889 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10890 | ||
10891 | fi | |
10892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10893 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
10894 | if test $ac_compiler_gnu = yes; then | |
10895 | GXX=yes | |
10896 | else | |
10897 | GXX= | |
10898 | fi | |
10899 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10900 | ac_save_CXXFLAGS=$CXXFLAGS | |
10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
10902 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
10903 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
10904 | $as_echo_n "(cached) " >&6 | |
10905 | else | |
10906 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
10907 | ac_cxx_werror_flag=yes | |
10908 | ac_cv_prog_cxx_g=no | |
10909 | CXXFLAGS="-g" | |
10910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10911 | /* end confdefs.h. */ | |
10912 | ||
10913 | int | |
10914 | main () | |
10915 | { | |
10916 | ||
10917 | ; | |
10918 | return 0; | |
10919 | } | |
10920 | _ACEOF | |
10921 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10922 | ac_cv_prog_cxx_g=yes | |
10923 | else | |
10924 | CXXFLAGS="" | |
10925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10926 | /* end confdefs.h. */ | |
10927 | ||
10928 | int | |
10929 | main () | |
10930 | { | |
10931 | ||
10932 | ; | |
10933 | return 0; | |
10934 | } | |
10935 | _ACEOF | |
10936 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10937 | ||
10938 | else | |
10939 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10940 | CXXFLAGS="-g" | |
10941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10942 | /* end confdefs.h. */ | |
10943 | ||
10944 | int | |
10945 | main () | |
10946 | { | |
10947 | ||
10948 | ; | |
10949 | return 0; | |
10950 | } | |
10951 | _ACEOF | |
10952 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
10953 | ac_cv_prog_cxx_g=yes | |
10954 | fi | |
10955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10956 | fi | |
10957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10958 | fi | |
10959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10960 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
10961 | fi | |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
10963 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
10964 | if test "$ac_test_CXXFLAGS" = set; then | |
10965 | CXXFLAGS=$ac_save_CXXFLAGS | |
10966 | elif test $ac_cv_prog_cxx_g = yes; then | |
10967 | if test "$GXX" = yes; then | |
10968 | CXXFLAGS="-g -O2" | |
10969 | else | |
10970 | CXXFLAGS="-g" | |
10971 | fi | |
10972 | else | |
10973 | if test "$GXX" = yes; then | |
10974 | CXXFLAGS="-O2" | |
10975 | else | |
10976 | CXXFLAGS= | |
10977 | fi | |
10978 | fi | |
10979 | ac_ext=c | |
10980 | ac_cpp='$CPP $CPPFLAGS' | |
10981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10984 | ||
10985 | ||
10986 | ac_ext=cpp | |
10987 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10988 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10989 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10990 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10991 | if test -z "$CXX"; then | |
10992 | if test -n "$CCC"; then | |
10993 | CXX=$CCC | |
10994 | else | |
10995 | if test -n "$ac_tool_prefix"; then | |
10996 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
10997 | do | |
10998 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10999 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11001 | $as_echo_n "checking for $ac_word... " >&6; } | |
11002 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
11003 | $as_echo_n "(cached) " >&6 | |
11004 | else | |
11005 | if test -n "$CXX"; then | |
11006 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11007 | else | |
11008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11009 | for as_dir in $PATH | |
11010 | do | |
11011 | IFS=$as_save_IFS | |
11012 | test -z "$as_dir" && as_dir=. | |
11013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11014 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11015 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11017 | break 2 | |
11018 | fi | |
11019 | done | |
11020 | done | |
11021 | IFS=$as_save_IFS | |
11022 | ||
11023 | fi | |
11024 | fi | |
11025 | CXX=$ac_cv_prog_CXX | |
11026 | if test -n "$CXX"; then | |
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
11028 | $as_echo "$CXX" >&6; } | |
11029 | else | |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11031 | $as_echo "no" >&6; } | |
11032 | fi | |
11033 | ||
11034 | ||
11035 | test -n "$CXX" && break | |
11036 | done | |
11037 | fi | |
11038 | if test -z "$CXX"; then | |
11039 | ac_ct_CXX=$CXX | |
11040 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
11041 | do | |
11042 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11043 | set dummy $ac_prog; ac_word=$2 | |
11044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11045 | $as_echo_n "checking for $ac_word... " >&6; } | |
11046 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
11047 | $as_echo_n "(cached) " >&6 | |
11048 | else | |
11049 | if test -n "$ac_ct_CXX"; then | |
11050 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11051 | else | |
11052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11053 | for as_dir in $PATH | |
11054 | do | |
11055 | IFS=$as_save_IFS | |
11056 | test -z "$as_dir" && as_dir=. | |
11057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11059 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11061 | break 2 | |
11062 | fi | |
11063 | done | |
11064 | done | |
11065 | IFS=$as_save_IFS | |
11066 | ||
11067 | fi | |
11068 | fi | |
11069 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11070 | if test -n "$ac_ct_CXX"; then | |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
11072 | $as_echo "$ac_ct_CXX" >&6; } | |
11073 | else | |
11074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11075 | $as_echo "no" >&6; } | |
11076 | fi | |
11077 | ||
11078 | ||
11079 | test -n "$ac_ct_CXX" && break | |
11080 | done | |
11081 | ||
11082 | if test "x$ac_ct_CXX" = x; then | |
11083 | CXX="g++" | |
11084 | else | |
11085 | case $cross_compiling:$ac_tool_warned in | |
11086 | yes:) | |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11088 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11089 | ac_tool_warned=yes ;; | |
11090 | esac | |
11091 | CXX=$ac_ct_CXX | |
11092 | fi | |
11093 | fi | |
11094 | ||
11095 | fi | |
11096 | fi | |
11097 | # Provide some information about the compiler. | |
11098 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
11099 | set X $ac_compile | |
11100 | ac_compiler=$2 | |
11101 | for ac_option in --version -v -V -qversion; do | |
11102 | { { ac_try="$ac_compiler $ac_option >&5" | |
11103 | case "(($ac_try" in | |
11104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11105 | *) ac_try_echo=$ac_try;; | |
11106 | esac | |
11107 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
11108 | $as_echo "$ac_try_echo"; } >&5 | |
11109 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
11110 | ac_status=$? | |
11111 | if test -s conftest.err; then | |
11112 | sed '10a\ | |
11113 | ... rest of stderr output deleted ... | |
11114 | 10q' conftest.err >conftest.er1 | |
11115 | cat conftest.er1 >&5 | |
11116 | fi | |
11117 | rm -f conftest.er1 conftest.err | |
11118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11119 | test $ac_status = 0; } | |
11120 | done | |
11121 | ||
11122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
11123 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
11124 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
11125 | $as_echo_n "(cached) " >&6 | |
11126 | else | |
11127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11128 | /* end confdefs.h. */ | |
11129 | ||
11130 | int | |
11131 | main () | |
11132 | { | |
11133 | #ifndef __GNUC__ | |
11134 | choke me | |
11135 | #endif | |
11136 | ||
11137 | ; | |
11138 | return 0; | |
11139 | } | |
11140 | _ACEOF | |
11141 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11142 | ac_compiler_gnu=yes | |
11143 | else | |
11144 | ac_compiler_gnu=no | |
11145 | fi | |
11146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11147 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11148 | ||
11149 | fi | |
11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11151 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
11152 | if test $ac_compiler_gnu = yes; then | |
11153 | GXX=yes | |
11154 | else | |
11155 | GXX= | |
11156 | fi | |
11157 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11158 | ac_save_CXXFLAGS=$CXXFLAGS | |
11159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
11160 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
11161 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
11162 | $as_echo_n "(cached) " >&6 | |
11163 | else | |
11164 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
11165 | ac_cxx_werror_flag=yes | |
11166 | ac_cv_prog_cxx_g=no | |
11167 | CXXFLAGS="-g" | |
11168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11169 | /* end confdefs.h. */ | |
11170 | ||
11171 | int | |
11172 | main () | |
11173 | { | |
11174 | ||
11175 | ; | |
11176 | return 0; | |
11177 | } | |
11178 | _ACEOF | |
11179 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11180 | ac_cv_prog_cxx_g=yes | |
11181 | else | |
11182 | CXXFLAGS="" | |
11183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11184 | /* end confdefs.h. */ | |
11185 | ||
11186 | int | |
11187 | main () | |
11188 | { | |
11189 | ||
11190 | ; | |
11191 | return 0; | |
11192 | } | |
11193 | _ACEOF | |
11194 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11195 | ||
11196 | else | |
11197 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11198 | CXXFLAGS="-g" | |
11199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11200 | /* end confdefs.h. */ | |
11201 | ||
11202 | int | |
11203 | main () | |
11204 | { | |
11205 | ||
11206 | ; | |
11207 | return 0; | |
11208 | } | |
11209 | _ACEOF | |
11210 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
11211 | ac_cv_prog_cxx_g=yes | |
11212 | fi | |
11213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11214 | fi | |
11215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11216 | fi | |
11217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11218 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
11219 | fi | |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
11221 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
11222 | if test "$ac_test_CXXFLAGS" = set; then | |
11223 | CXXFLAGS=$ac_save_CXXFLAGS | |
11224 | elif test $ac_cv_prog_cxx_g = yes; then | |
11225 | if test "$GXX" = yes; then | |
11226 | CXXFLAGS="-g -O2" | |
11227 | else | |
11228 | CXXFLAGS="-g" | |
11229 | fi | |
11230 | else | |
11231 | if test "$GXX" = yes; then | |
11232 | CXXFLAGS="-O2" | |
11233 | else | |
11234 | CXXFLAGS= | |
11235 | fi | |
11236 | fi | |
11237 | ac_ext=c | |
11238 | ac_cpp='$CPP $CPPFLAGS' | |
11239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11242 | ||
11243 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
11244 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
11245 | (test "X$CXX" != "Xg++"))) ; then | |
11246 | ac_ext=cpp | |
11247 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11248 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11249 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11250 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
11252 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
11253 | if test -z "$CXXCPP"; then | |
11254 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
11255 | $as_echo_n "(cached) " >&6 | |
11256 | else | |
11257 | # Double quotes because CXXCPP needs to be expanded | |
11258 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
11259 | do | |
11260 | ac_preproc_ok=false | |
11261 | for ac_cxx_preproc_warn_flag in '' yes | |
11262 | do | |
11263 | # Use a header file that comes with gcc, so configuring glibc | |
11264 | # with a fresh cross-compiler works. | |
11265 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11266 | # <limits.h> exists even on freestanding compilers. | |
11267 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11268 | # not just through cpp. "Syntax error" is here to catch this case. | |
11269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11270 | /* end confdefs.h. */ | |
11271 | #ifdef __STDC__ | |
11272 | # include <limits.h> | |
11273 | #else | |
11274 | # include <assert.h> | |
11275 | #endif | |
11276 | Syntax error | |
11277 | _ACEOF | |
11278 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11279 | ||
11280 | else | |
11281 | # Broken: fails on valid input. | |
11282 | continue | |
11283 | fi | |
11284 | rm -f conftest.err conftest.$ac_ext | |
11285 | ||
11286 | # OK, works on sane cases. Now check whether nonexistent headers | |
11287 | # can be detected and how. | |
11288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11289 | /* end confdefs.h. */ | |
11290 | #include <ac_nonexistent.h> | |
11291 | _ACEOF | |
11292 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11293 | # Broken: success on invalid input. | |
11294 | continue | |
11295 | else | |
11296 | # Passes both tests. | |
11297 | ac_preproc_ok=: | |
11298 | break | |
11299 | fi | |
11300 | rm -f conftest.err conftest.$ac_ext | |
11301 | ||
11302 | done | |
11303 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11304 | rm -f conftest.err conftest.$ac_ext | |
11305 | if $ac_preproc_ok; then : | |
11306 | break | |
11307 | fi | |
11308 | ||
11309 | done | |
11310 | ac_cv_prog_CXXCPP=$CXXCPP | |
11311 | ||
11312 | fi | |
11313 | CXXCPP=$ac_cv_prog_CXXCPP | |
11314 | else | |
11315 | ac_cv_prog_CXXCPP=$CXXCPP | |
11316 | fi | |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
11318 | $as_echo "$CXXCPP" >&6; } | |
11319 | ac_preproc_ok=false | |
11320 | for ac_cxx_preproc_warn_flag in '' yes | |
11321 | do | |
11322 | # Use a header file that comes with gcc, so configuring glibc | |
11323 | # with a fresh cross-compiler works. | |
11324 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11325 | # <limits.h> exists even on freestanding compilers. | |
11326 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11327 | # not just through cpp. "Syntax error" is here to catch this case. | |
11328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11329 | /* end confdefs.h. */ | |
11330 | #ifdef __STDC__ | |
11331 | # include <limits.h> | |
11332 | #else | |
11333 | # include <assert.h> | |
11334 | #endif | |
11335 | Syntax error | |
11336 | _ACEOF | |
11337 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11338 | ||
11339 | else | |
11340 | # Broken: fails on valid input. | |
11341 | continue | |
11342 | fi | |
11343 | rm -f conftest.err conftest.$ac_ext | |
11344 | ||
11345 | # OK, works on sane cases. Now check whether nonexistent headers | |
11346 | # can be detected and how. | |
11347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11348 | /* end confdefs.h. */ | |
11349 | #include <ac_nonexistent.h> | |
11350 | _ACEOF | |
11351 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
11352 | # Broken: success on invalid input. | |
11353 | continue | |
11354 | else | |
11355 | # Passes both tests. | |
11356 | ac_preproc_ok=: | |
11357 | break | |
11358 | fi | |
11359 | rm -f conftest.err conftest.$ac_ext | |
11360 | ||
11361 | done | |
11362 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11363 | rm -f conftest.err conftest.$ac_ext | |
11364 | if $ac_preproc_ok; then : | |
11365 | ||
11366 | else | |
11367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11369 | _lt_caught_CXX_error=yes; } | |
11370 | fi | |
11371 | ||
11372 | ac_ext=c | |
11373 | ac_cpp='$CPP $CPPFLAGS' | |
11374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11377 | ||
11378 | else | |
11379 | _lt_caught_CXX_error=yes | |
11380 | fi | |
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ac_ext=cpp | |
11386 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11390 | ||
11391 | archive_cmds_need_lc_CXX=no | |
11392 | allow_undefined_flag_CXX= | |
11393 | always_export_symbols_CXX=no | |
11394 | archive_expsym_cmds_CXX= | |
11395 | compiler_needs_object_CXX=no | |
11396 | export_dynamic_flag_spec_CXX= | |
11397 | hardcode_direct_CXX=no | |
11398 | hardcode_direct_absolute_CXX=no | |
11399 | hardcode_libdir_flag_spec_CXX= | |
11400 | hardcode_libdir_flag_spec_ld_CXX= | |
11401 | hardcode_libdir_separator_CXX= | |
11402 | hardcode_minus_L_CXX=no | |
11403 | hardcode_shlibpath_var_CXX=unsupported | |
11404 | hardcode_automatic_CXX=no | |
11405 | inherit_rpath_CXX=no | |
11406 | module_cmds_CXX= | |
11407 | module_expsym_cmds_CXX= | |
11408 | link_all_deplibs_CXX=unknown | |
11409 | old_archive_cmds_CXX=$old_archive_cmds | |
11410 | no_undefined_flag_CXX= | |
11411 | whole_archive_flag_spec_CXX= | |
11412 | enable_shared_with_static_runtimes_CXX=no | |
11413 | ||
11414 | # Source file extension for C++ test sources. | |
11415 | ac_ext=cpp | |
11416 | ||
11417 | # Object file extension for compiled C++ test sources. | |
11418 | objext=o | |
11419 | objext_CXX=$objext | |
11420 | ||
11421 | # No sense in running all these tests if we already determined that | |
11422 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11423 | # are currently assumed to apply to all compilers on this platform, | |
11424 | # and will be corrupted by setting them based on a non-working compiler. | |
11425 | if test "$_lt_caught_CXX_error" != yes; then | |
11426 | # Code to be used in simple compile tests | |
11427 | lt_simple_compile_test_code="int some_variable = 0;" | |
11428 | ||
11429 | # Code to be used in simple link tests | |
11430 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
11431 | ||
11432 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | # If no C compiler was specified, use CC. | |
11440 | LTCC=${LTCC-"$CC"} | |
11441 | ||
11442 | # If no C compiler flags were specified, use CFLAGS. | |
11443 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
11444 | ||
11445 | # Allow CC to be a program name with arguments. | |
11446 | compiler=$CC | |
11447 | ||
11448 | ||
11449 | # save warnings/boilerplate of simple test code | |
11450 | ac_outfile=conftest.$ac_objext | |
11451 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
11452 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11453 | _lt_compiler_boilerplate=`cat conftest.err` | |
11454 | $RM conftest* | |
11455 | ||
11456 | ac_outfile=conftest.$ac_objext | |
11457 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
11458 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
11459 | _lt_linker_boilerplate=`cat conftest.err` | |
11460 | $RM -r conftest* | |
11461 | ||
11462 | ||
11463 | # Allow CC to be a program name with arguments. | |
11464 | lt_save_CC=$CC | |
11465 | lt_save_LD=$LD | |
11466 | lt_save_GCC=$GCC | |
11467 | GCC=$GXX | |
11468 | lt_save_with_gnu_ld=$with_gnu_ld | |
11469 | lt_save_path_LD=$lt_cv_path_LD | |
11470 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
11471 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
11472 | else | |
11473 | $as_unset lt_cv_prog_gnu_ld | |
11474 | fi | |
11475 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
11476 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
11477 | else | |
11478 | $as_unset lt_cv_path_LD | |
11479 | fi | |
11480 | test -z "${LDCXX+set}" || LD=$LDCXX | |
11481 | CC=${CXX-"c++"} | |
11482 | compiler=$CC | |
11483 | compiler_CXX=$CC | |
11484 | for cc_temp in $compiler""; do | |
11485 | case $cc_temp in | |
11486 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
11487 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
11488 | \-*) ;; | |
11489 | *) break;; | |
11490 | esac | |
11491 | done | |
11492 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
11493 | ||
11494 | ||
11495 | if test -n "$compiler"; then | |
11496 | # We don't want -fno-exception when compiling C++ code, so set the | |
11497 | # no_builtin_flag separately | |
11498 | if test "$GXX" = yes; then | |
11499 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
11500 | else | |
11501 | lt_prog_compiler_no_builtin_flag_CXX= | |
11502 | fi | |
11503 | ||
11504 | if test "$GXX" = yes; then | |
11505 | # Set up default GNU C++ configuration | |
11506 | ||
11507 | ||
11508 | ||
11509 | # Check whether --with-gnu-ld was given. | |
11510 | if test "${with_gnu_ld+set}" = set; then : | |
11511 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
11512 | else | |
11513 | with_gnu_ld=no | |
11514 | fi | |
11515 | ||
11516 | ac_prog=ld | |
11517 | if test "$GCC" = yes; then | |
11518 | # Check if gcc -print-prog-name=ld gives a path. | |
11519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
11520 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
11521 | case $host in | |
11522 | *-*-mingw*) | |
11523 | # gcc leaves a trailing carriage return which upsets mingw | |
11524 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
11525 | *) | |
11526 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
11527 | esac | |
11528 | case $ac_prog in | |
11529 | # Accept absolute paths. | |
11530 | [\\/]* | ?:[\\/]*) | |
11531 | re_direlt='/[^/][^/]*/\.\./' | |
11532 | # Canonicalize the pathname of ld | |
11533 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
11534 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
11535 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
11536 | done | |
11537 | test -z "$LD" && LD="$ac_prog" | |
11538 | ;; | |
11539 | "") | |
11540 | # If it fails, then pretend we aren't using GCC. | |
11541 | ac_prog=ld | |
11542 | ;; | |
11543 | *) | |
11544 | # If it is relative, then search for the first ld in PATH. | |
11545 | with_gnu_ld=unknown | |
11546 | ;; | |
11547 | esac | |
11548 | elif test "$with_gnu_ld" = yes; then | |
11549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
11550 | $as_echo_n "checking for GNU ld... " >&6; } | |
11551 | else | |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
11553 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
11554 | fi | |
11555 | if test "${lt_cv_path_LD+set}" = set; then : | |
11556 | $as_echo_n "(cached) " >&6 | |
11557 | else | |
11558 | if test -z "$LD"; then | |
11559 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
11560 | for ac_dir in $PATH; do | |
11561 | IFS="$lt_save_ifs" | |
11562 | test -z "$ac_dir" && ac_dir=. | |
11563 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
11564 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
11565 | # Check to see if the program is GNU ld. I'd rather use --version, | |
11566 | # but apparently some variants of GNU ld only accept -v. | |
11567 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
11568 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
11569 | *GNU* | *'with BFD'*) | |
11570 | test "$with_gnu_ld" != no && break | |
11571 | ;; | |
11572 | *) | |
11573 | test "$with_gnu_ld" != yes && break | |
11574 | ;; | |
11575 | esac | |
11576 | fi | |
11577 | done | |
11578 | IFS="$lt_save_ifs" | |
11579 | else | |
11580 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
11581 | fi | |
11582 | fi | |
11583 | ||
11584 | LD="$lt_cv_path_LD" | |
11585 | if test -n "$LD"; then | |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
11587 | $as_echo "$LD" >&6; } | |
11588 | else | |
11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11590 | $as_echo "no" >&6; } | |
11591 | fi | |
11592 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
11594 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
11595 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
11596 | $as_echo_n "(cached) " >&6 | |
11597 | else | |
11598 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
11599 | case `$LD -v 2>&1 </dev/null` in | |
11600 | *GNU* | *'with BFD'*) | |
11601 | lt_cv_prog_gnu_ld=yes | |
11602 | ;; | |
11603 | *) | |
11604 | lt_cv_prog_gnu_ld=no | |
11605 | ;; | |
11606 | esac | |
11607 | fi | |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
11609 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
11610 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
11619 | # archiving commands below assume that GNU ld is being used. | |
11620 | if test "$with_gnu_ld" = yes; then | |
11621 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11622 | 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' | |
11623 | ||
11624 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11625 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11626 | ||
11627 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11628 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
11629 | # investigate it a little bit more. (MM) | |
11630 | wlarc='${wl}' | |
11631 | ||
11632 | # ancient GNU ld didn't support --whole-archive et. al. | |
11633 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
11634 | $GREP 'no-whole-archive' > /dev/null; then | |
11635 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11636 | else | |
11637 | whole_archive_flag_spec_CXX= | |
11638 | fi | |
11639 | else | |
11640 | with_gnu_ld=no | |
11641 | wlarc= | |
11642 | ||
11643 | # A generic and very simple default shared library creation | |
11644 | # command for GNU C++ for the case where it uses the native | |
11645 | # linker, instead of GNU ld. If possible, this setting should | |
11646 | # overridden to take advantage of the native linker features on | |
11647 | # the platform it is being used on. | |
11648 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11649 | fi | |
11650 | ||
11651 | # Commands to make compiler produce verbose output that lists | |
11652 | # what "hidden" libraries, object files and flags are used when | |
11653 | # linking a shared library. | |
11654 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
11655 | ||
11656 | else | |
11657 | GXX=no | |
11658 | with_gnu_ld=no | |
11659 | wlarc= | |
11660 | fi | |
11661 | ||
11662 | # PORTME: fill in a description of your system's C++ link characteristics | |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
11664 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
11665 | ld_shlibs_CXX=yes | |
11666 | case $host_os in | |
11667 | aix3*) | |
11668 | # FIXME: insert proper C++ library support | |
11669 | ld_shlibs_CXX=no | |
11670 | ;; | |
11671 | aix[4-9]*) | |
11672 | if test "$host_cpu" = ia64; then | |
11673 | # On IA64, the linker does run time linking by default, so we don't | |
11674 | # have to do anything special. | |
11675 | aix_use_runtimelinking=no | |
11676 | exp_sym_flag='-Bexport' | |
11677 | no_entry_flag="" | |
11678 | else | |
11679 | aix_use_runtimelinking=no | |
11680 | ||
11681 | # Test if we are trying to use run time linking or normal | |
11682 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11683 | # need to do runtime linking. | |
11684 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
11685 | for ld_flag in $LDFLAGS; do | |
11686 | case $ld_flag in | |
11687 | *-brtl*) | |
11688 | aix_use_runtimelinking=yes | |
11689 | break | |
11690 | ;; | |
11691 | esac | |
11692 | done | |
11693 | ;; | |
11694 | esac | |
11695 | ||
11696 | exp_sym_flag='-bexport' | |
11697 | no_entry_flag='-bnoentry' | |
11698 | fi | |
11699 | ||
11700 | # When large executables or shared objects are built, AIX ld can | |
11701 | # have problems creating the table of contents. If linking a library | |
11702 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11703 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11704 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11705 | ||
11706 | archive_cmds_CXX='' | |
11707 | hardcode_direct_CXX=yes | |
11708 | hardcode_direct_absolute_CXX=yes | |
11709 | hardcode_libdir_separator_CXX=':' | |
11710 | link_all_deplibs_CXX=yes | |
11711 | file_list_spec_CXX='${wl}-f,' | |
11712 | ||
11713 | if test "$GXX" = yes; then | |
11714 | case $host_os in aix4.[012]|aix4.[012].*) | |
11715 | # We only want to do this on AIX 4.2 and lower, the check | |
11716 | # below for broken collect2 doesn't work under 4.3+ | |
11717 | collect2name=`${CC} -print-prog-name=collect2` | |
11718 | if test -f "$collect2name" && | |
11719 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
11720 | then | |
11721 | # We have reworked collect2 | |
11722 | : | |
11723 | else | |
11724 | # We have old collect2 | |
11725 | hardcode_direct_CXX=unsupported | |
11726 | # It fails to find uninstalled libraries when the uninstalled | |
11727 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11728 | # to unsupported forces relinking | |
11729 | hardcode_minus_L_CXX=yes | |
11730 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11731 | hardcode_libdir_separator_CXX= | |
11732 | fi | |
11733 | esac | |
11734 | shared_flag='-shared' | |
11735 | if test "$aix_use_runtimelinking" = yes; then | |
11736 | shared_flag="$shared_flag "'${wl}-G' | |
11737 | fi | |
11738 | else | |
11739 | # not using gcc | |
11740 | if test "$host_cpu" = ia64; then | |
11741 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11742 | # chokes on -Wl,-G. The following line is correct: | |
11743 | shared_flag='-G' | |
11744 | else | |
11745 | if test "$aix_use_runtimelinking" = yes; then | |
11746 | shared_flag='${wl}-G' | |
11747 | else | |
11748 | shared_flag='${wl}-bM:SRE' | |
11749 | fi | |
11750 | fi | |
11751 | fi | |
11752 | ||
11753 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
11754 | # It seems that -bexpall does not export symbols beginning with | |
11755 | # underscore (_), so it is better to generate a list of symbols to | |
11756 | # export. | |
11757 | always_export_symbols_CXX=yes | |
11758 | if test "$aix_use_runtimelinking" = yes; then | |
11759 | # Warning - without using the other runtime loading flags (-brtl), | |
11760 | # -berok will link without error, but may produce a broken library. | |
11761 | allow_undefined_flag_CXX='-berok' | |
11762 | # Determine the default libpath from the value encoded in an empty | |
11763 | # executable. | |
11764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11765 | /* end confdefs.h. */ | |
11766 | ||
11767 | int | |
11768 | main () | |
11769 | { | |
11770 | ||
11771 | ; | |
11772 | return 0; | |
11773 | } | |
11774 | _ACEOF | |
11775 | if ac_fn_cxx_try_link "$LINENO"; then : | |
11776 | ||
11777 | lt_aix_libpath_sed=' | |
11778 | /Import File Strings/,/^$/ { | |
11779 | /^0/ { | |
11780 | s/^0 *\(.*\)$/\1/ | |
11781 | p | |
11782 | } | |
11783 | }' | |
11784 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11785 | # Check for a 64-bit object if we didn't find anything. | |
11786 | if test -z "$aix_libpath"; then | |
11787 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11788 | fi | |
11789 | fi | |
11790 | rm -f core conftest.err conftest.$ac_objext \ | |
11791 | conftest$ac_exeext conftest.$ac_ext | |
11792 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11793 | ||
11794 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11795 | ||
11796 | 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" | |
11797 | else | |
11798 | if test "$host_cpu" = ia64; then | |
11799 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11800 | allow_undefined_flag_CXX="-z nodefs" | |
11801 | 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" | |
11802 | else | |
11803 | # Determine the default libpath from the value encoded in an | |
11804 | # empty executable. | |
11805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11806 | /* end confdefs.h. */ | |
11807 | ||
11808 | int | |
11809 | main () | |
11810 | { | |
11811 | ||
11812 | ; | |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | if ac_fn_cxx_try_link "$LINENO"; then : | |
11817 | ||
11818 | lt_aix_libpath_sed=' | |
11819 | /Import File Strings/,/^$/ { | |
11820 | /^0/ { | |
11821 | s/^0 *\(.*\)$/\1/ | |
11822 | p | |
11823 | } | |
11824 | }' | |
11825 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11826 | # Check for a 64-bit object if we didn't find anything. | |
11827 | if test -z "$aix_libpath"; then | |
11828 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11829 | fi | |
11830 | fi | |
11831 | rm -f core conftest.err conftest.$ac_objext \ | |
11832 | conftest$ac_exeext conftest.$ac_ext | |
11833 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11834 | ||
11835 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11836 | # Warning - without using the other run time loading flags, | |
11837 | # -berok will link without error, but may produce a broken library. | |
11838 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
11839 | allow_undefined_flag_CXX=' ${wl}-berok' | |
11840 | # Exported symbols can be pulled into shared objects from archives | |
11841 | whole_archive_flag_spec_CXX='$convenience' | |
11842 | archive_cmds_need_lc_CXX=yes | |
11843 | # This is similar to how AIX traditionally builds its shared | |
11844 | # libraries. | |
11845 | 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' | |
11846 | fi | |
11847 | fi | |
11848 | ;; | |
11849 | ||
11850 | beos*) | |
11851 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
11852 | allow_undefined_flag_CXX=unsupported | |
11853 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11854 | # support --undefined. This deserves some investigation. FIXME | |
11855 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11856 | else | |
11857 | ld_shlibs_CXX=no | |
11858 | fi | |
11859 | ;; | |
11860 | ||
11861 | chorus*) | |
11862 | case $cc_basename in | |
11863 | *) | |
11864 | # FIXME: insert proper C++ library support | |
11865 | ld_shlibs_CXX=no | |
11866 | ;; | |
11867 | esac | |
11868 | ;; | |
11869 | ||
11870 | cygwin* | mingw* | pw32* | cegcc*) | |
11871 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11872 | # as there is no search path for DLLs. | |
11873 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11874 | allow_undefined_flag_CXX=unsupported | |
11875 | always_export_symbols_CXX=no | |
11876 | enable_shared_with_static_runtimes_CXX=yes | |
11877 | ||
11878 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
11879 | 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' | |
11880 | # If the export-symbols file already is a .def file (1st line | |
11881 | # is EXPORTS), use it as is; otherwise, prepend... | |
11882 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11883 | cp $export_symbols $output_objdir/$soname.def; | |
11884 | else | |
11885 | echo EXPORTS > $output_objdir/$soname.def; | |
11886 | cat $export_symbols >> $output_objdir/$soname.def; | |
11887 | fi~ | |
11888 | $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' | |
11889 | else | |
11890 | ld_shlibs_CXX=no | |
11891 | fi | |
11892 | ;; | |
11893 | darwin* | rhapsody*) | |
11894 | ||
11895 | ||
11896 | archive_cmds_need_lc_CXX=no | |
11897 | hardcode_direct_CXX=no | |
11898 | hardcode_automatic_CXX=yes | |
11899 | hardcode_shlibpath_var_CXX=unsupported | |
11900 | whole_archive_flag_spec_CXX='' | |
11901 | link_all_deplibs_CXX=yes | |
11902 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
11903 | case $cc_basename in | |
11904 | ifort*) _lt_dar_can_shared=yes ;; | |
11905 | *) _lt_dar_can_shared=$GCC ;; | |
11906 | esac | |
11907 | if test "$_lt_dar_can_shared" = "yes"; then | |
11908 | output_verbose_link_cmd=echo | |
11909 | 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}" | |
11910 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11911 | 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}" | |
11912 | 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}" | |
11913 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
11914 | 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}" | |
11915 | 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}" | |
11916 | fi | |
11917 | ||
11918 | else | |
11919 | ld_shlibs_CXX=no | |
11920 | fi | |
11921 | ||
11922 | ;; | |
11923 | ||
11924 | dgux*) | |
11925 | case $cc_basename in | |
11926 | ec++*) | |
11927 | # FIXME: insert proper C++ library support | |
11928 | ld_shlibs_CXX=no | |
11929 | ;; | |
11930 | ghcx*) | |
11931 | # Green Hills C++ Compiler | |
11932 | # FIXME: insert proper C++ library support | |
11933 | ld_shlibs_CXX=no | |
11934 | ;; | |
11935 | *) | |
11936 | # FIXME: insert proper C++ library support | |
11937 | ld_shlibs_CXX=no | |
11938 | ;; | |
11939 | esac | |
11940 | ;; | |
11941 | ||
11942 | freebsd[12]*) | |
11943 | # C++ shared libraries reported to be fairly broken before | |
11944 | # switch to ELF | |
11945 | ld_shlibs_CXX=no | |
11946 | ;; | |
11947 | ||
11948 | freebsd-elf*) | |
11949 | archive_cmds_need_lc_CXX=no | |
11950 | ;; | |
11951 | ||
11952 | freebsd* | dragonfly*) | |
11953 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11954 | # conventions | |
11955 | ld_shlibs_CXX=yes | |
11956 | ;; | |
11957 | ||
11958 | gnu*) | |
11959 | ;; | |
11960 | ||
11961 | hpux9*) | |
11962 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11963 | hardcode_libdir_separator_CXX=: | |
11964 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11965 | hardcode_direct_CXX=yes | |
11966 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11967 | # but as the default | |
11968 | # location of the library. | |
11969 | ||
11970 | case $cc_basename in | |
11971 | CC*) | |
11972 | # FIXME: insert proper C++ library support | |
11973 | ld_shlibs_CXX=no | |
11974 | ;; | |
11975 | aCC*) | |
11976 | 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' | |
11977 | # Commands to make compiler produce verbose output that lists | |
11978 | # what "hidden" libraries, object files and flags are used when | |
11979 | # linking a shared library. | |
11980 | # | |
11981 | # There doesn't appear to be a way to prevent this compiler from | |
11982 | # explicitly linking system object files so we need to strip them | |
11983 | # from the output so that they don't get included in the library | |
11984 | # dependencies. | |
11985 | 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' | |
11986 | ;; | |
11987 | *) | |
11988 | if test "$GXX" = yes; then | |
11989 | 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' | |
11990 | else | |
11991 | # FIXME: insert proper C++ library support | |
11992 | ld_shlibs_CXX=no | |
11993 | fi | |
11994 | ;; | |
11995 | esac | |
11996 | ;; | |
11997 | ||
11998 | hpux10*|hpux11*) | |
11999 | if test $with_gnu_ld = no; then | |
12000 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12001 | hardcode_libdir_separator_CXX=: | |
12002 | ||
12003 | case $host_cpu in | |
12004 | hppa*64*|ia64*) | |
12005 | ;; | |
12006 | *) | |
12007 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12008 | ;; | |
12009 | esac | |
12010 | fi | |
12011 | case $host_cpu in | |
12012 | hppa*64*|ia64*) | |
12013 | hardcode_direct_CXX=no | |
12014 | hardcode_shlibpath_var_CXX=no | |
12015 | ;; | |
12016 | *) | |
12017 | hardcode_direct_CXX=yes | |
12018 | hardcode_direct_absolute_CXX=yes | |
12019 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12020 | # but as the default | |
12021 | # location of the library. | |
12022 | ;; | |
12023 | esac | |
12024 | ||
12025 | case $cc_basename in | |
12026 | CC*) | |
12027 | # FIXME: insert proper C++ library support | |
12028 | ld_shlibs_CXX=no | |
12029 | ;; | |
12030 | aCC*) | |
12031 | case $host_cpu in | |
12032 | hppa*64*) | |
12033 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12034 | ;; | |
12035 | ia64*) | |
12036 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12037 | ;; | |
12038 | *) | |
12039 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12040 | ;; | |
12041 | esac | |
12042 | # Commands to make compiler produce verbose output that lists | |
12043 | # what "hidden" libraries, object files and flags are used when | |
12044 | # linking a shared library. | |
12045 | # | |
12046 | # There doesn't appear to be a way to prevent this compiler from | |
12047 | # explicitly linking system object files so we need to strip them | |
12048 | # from the output so that they don't get included in the library | |
12049 | # dependencies. | |
12050 | 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' | |
12051 | ;; | |
12052 | *) | |
12053 | if test "$GXX" = yes; then | |
12054 | if test $with_gnu_ld = no; then | |
12055 | case $host_cpu in | |
12056 | hppa*64*) | |
12057 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12058 | ;; | |
12059 | ia64*) | |
12060 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12061 | ;; | |
12062 | *) | |
12063 | 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' | |
12064 | ;; | |
12065 | esac | |
12066 | fi | |
12067 | else | |
12068 | # FIXME: insert proper C++ library support | |
12069 | ld_shlibs_CXX=no | |
12070 | fi | |
12071 | ;; | |
12072 | esac | |
12073 | ;; | |
12074 | ||
12075 | interix[3-9]*) | |
12076 | hardcode_direct_CXX=no | |
12077 | hardcode_shlibpath_var_CXX=no | |
12078 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12079 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12080 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12081 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12082 | # default) and relocated if they conflict, which is a slow very memory | |
12083 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12084 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12085 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12086 | 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' | |
12087 | 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' | |
12088 | ;; | |
12089 | irix5* | irix6*) | |
12090 | case $cc_basename in | |
12091 | CC*) | |
12092 | # SGI C++ | |
12093 | 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' | |
12094 | ||
12095 | # Archives containing C++ object files must be created using | |
12096 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12097 | # necessary to make sure instantiated templates are included | |
12098 | # in the archive. | |
12099 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12100 | ;; | |
12101 | *) | |
12102 | if test "$GXX" = yes; then | |
12103 | if test "$with_gnu_ld" = no; then | |
12104 | 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' | |
12105 | else | |
12106 | 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' | |
12107 | fi | |
12108 | fi | |
12109 | link_all_deplibs_CXX=yes | |
12110 | ;; | |
12111 | esac | |
12112 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12113 | hardcode_libdir_separator_CXX=: | |
12114 | inherit_rpath_CXX=yes | |
12115 | ;; | |
12116 | ||
12117 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12118 | case $cc_basename in | |
12119 | KCC*) | |
12120 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12121 | ||
12122 | # KCC will only create a shared library if the output file | |
12123 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12124 | # to its proper name (with version) after linking. | |
12125 | 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' | |
12126 | 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' | |
12127 | # Commands to make compiler produce verbose output that lists | |
12128 | # what "hidden" libraries, object files and flags are used when | |
12129 | # linking a shared library. | |
12130 | # | |
12131 | # There doesn't appear to be a way to prevent this compiler from | |
12132 | # explicitly linking system object files so we need to strip them | |
12133 | # from the output so that they don't get included in the library | |
12134 | # dependencies. | |
12135 | 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' | |
12136 | ||
12137 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12138 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12139 | ||
12140 | # Archives containing C++ object files must be created using | |
12141 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12142 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12143 | ;; | |
12144 | icpc* | ecpc* ) | |
12145 | # Intel C++ | |
12146 | with_gnu_ld=yes | |
12147 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12148 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12149 | # earlier do not add the objects themselves. | |
12150 | case `$CC -V 2>&1` in | |
12151 | *"Version 7."*) | |
12152 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12153 | 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' | |
12154 | ;; | |
12155 | *) # Version 8.0 or newer | |
12156 | tmp_idyn= | |
12157 | case $host_cpu in | |
12158 | ia64*) tmp_idyn=' -i_dynamic';; | |
12159 | esac | |
12160 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12161 | 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' | |
12162 | ;; | |
12163 | esac | |
12164 | archive_cmds_need_lc_CXX=no | |
12165 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12166 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12167 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12168 | ;; | |
12169 | pgCC* | pgcpp*) | |
12170 | # Portland Group C++ compiler | |
12171 | case `$CC -V` in | |
12172 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
12173 | prelink_cmds_CXX='tpldir=Template.dir~ | |
12174 | rm -rf $tpldir~ | |
12175 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12176 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12177 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12178 | rm -rf $tpldir~ | |
12179 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12180 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12181 | $RANLIB $oldlib' | |
12182 | archive_cmds_CXX='tpldir=Template.dir~ | |
12183 | rm -rf $tpldir~ | |
12184 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12185 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12186 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12187 | rm -rf $tpldir~ | |
12188 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12189 | $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' | |
12190 | ;; | |
12191 | *) # Version 6 will use weak symbols | |
12192 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12193 | 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' | |
12194 | ;; | |
12195 | esac | |
12196 | ||
12197 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12198 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12199 | 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' | |
12200 | ;; | |
12201 | cxx*) | |
12202 | # Compaq C++ | |
12203 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12204 | 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' | |
12205 | ||
12206 | runpath_var=LD_RUN_PATH | |
12207 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12208 | hardcode_libdir_separator_CXX=: | |
12209 | ||
12210 | # Commands to make compiler produce verbose output that lists | |
12211 | # what "hidden" libraries, object files and flags are used when | |
12212 | # linking a shared library. | |
12213 | # | |
12214 | # There doesn't appear to be a way to prevent this compiler from | |
12215 | # explicitly linking system object files so we need to strip them | |
12216 | # from the output so that they don't get included in the library | |
12217 | # dependencies. | |
12218 | 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' | |
12219 | ;; | |
12220 | xl*) | |
12221 | # IBM XL 8.0 on PPC, with GNU ld | |
12222 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12223 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12224 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12225 | if test "x$supports_anon_versioning" = xyes; then | |
12226 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12227 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12228 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12229 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12230 | fi | |
12231 | ;; | |
12232 | *) | |
12233 | case `$CC -V 2>&1 | sed 5q` in | |
12234 | *Sun\ C*) | |
12235 | # Sun C++ 5.9 | |
12236 | no_undefined_flag_CXX=' -zdefs' | |
12237 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12238 | 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' | |
12239 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12240 | 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' | |
12241 | compiler_needs_object_CXX=yes | |
12242 | ||
12243 | # Not sure whether something based on | |
12244 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12245 | # would be better. | |
12246 | output_verbose_link_cmd='echo' | |
12247 | ||
12248 | # Archives containing C++ object files must be created using | |
12249 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12250 | # necessary to make sure instantiated templates are included | |
12251 | # in the archive. | |
12252 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12253 | ;; | |
12254 | esac | |
12255 | ;; | |
12256 | esac | |
12257 | ;; | |
12258 | ||
12259 | lynxos*) | |
12260 | # FIXME: insert proper C++ library support | |
12261 | ld_shlibs_CXX=no | |
12262 | ;; | |
12263 | ||
12264 | m88k*) | |
12265 | # FIXME: insert proper C++ library support | |
12266 | ld_shlibs_CXX=no | |
12267 | ;; | |
12268 | ||
12269 | mvs*) | |
12270 | case $cc_basename in | |
12271 | cxx*) | |
12272 | # FIXME: insert proper C++ library support | |
12273 | ld_shlibs_CXX=no | |
12274 | ;; | |
12275 | *) | |
12276 | # FIXME: insert proper C++ library support | |
12277 | ld_shlibs_CXX=no | |
12278 | ;; | |
12279 | esac | |
12280 | ;; | |
12281 | ||
12282 | netbsd*) | |
12283 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12284 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12285 | wlarc= | |
12286 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12287 | hardcode_direct_CXX=yes | |
12288 | hardcode_shlibpath_var_CXX=no | |
12289 | fi | |
12290 | # Workaround some broken pre-1.5 toolchains | |
12291 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
12292 | ;; | |
12293 | ||
12294 | *nto* | *qnx*) | |
12295 | ld_shlibs_CXX=yes | |
12296 | ;; | |
12297 | ||
12298 | openbsd2*) | |
12299 | # C++ shared libraries are fairly broken | |
12300 | ld_shlibs_CXX=no | |
12301 | ;; | |
12302 | ||
12303 | openbsd*) | |
12304 | if test -f /usr/libexec/ld.so; then | |
12305 | hardcode_direct_CXX=yes | |
12306 | hardcode_shlibpath_var_CXX=no | |
12307 | hardcode_direct_absolute_CXX=yes | |
12308 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12309 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12310 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12311 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12312 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12313 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12314 | fi | |
12315 | output_verbose_link_cmd=echo | |
12316 | else | |
12317 | ld_shlibs_CXX=no | |
12318 | fi | |
12319 | ;; | |
12320 | ||
12321 | osf3* | osf4* | osf5*) | |
12322 | case $cc_basename in | |
12323 | KCC*) | |
12324 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12325 | ||
12326 | # KCC will only create a shared library if the output file | |
12327 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12328 | # to its proper name (with version) after linking. | |
12329 | 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' | |
12330 | ||
12331 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12332 | hardcode_libdir_separator_CXX=: | |
12333 | ||
12334 | # Archives containing C++ object files must be created using | |
12335 | # the KAI C++ compiler. | |
12336 | case $host in | |
12337 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12338 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12339 | esac | |
12340 | ;; | |
12341 | RCC*) | |
12342 | # Rational C++ 2.4.1 | |
12343 | # FIXME: insert proper C++ library support | |
12344 | ld_shlibs_CXX=no | |
12345 | ;; | |
12346 | cxx*) | |
12347 | case $host in | |
12348 | osf3*) | |
12349 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12350 | 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' | |
12351 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12352 | ;; | |
12353 | *) | |
12354 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12355 | 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' | |
12356 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12357 | echo "-hidden">> $lib.exp~ | |
12358 | $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~ | |
12359 | $RM $lib.exp' | |
12360 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12361 | ;; | |
12362 | esac | |
12363 | ||
12364 | hardcode_libdir_separator_CXX=: | |
12365 | ||
12366 | # Commands to make compiler produce verbose output that lists | |
12367 | # what "hidden" libraries, object files and flags are used when | |
12368 | # linking a shared library. | |
12369 | # | |
12370 | # There doesn't appear to be a way to prevent this compiler from | |
12371 | # explicitly linking system object files so we need to strip them | |
12372 | # from the output so that they don't get included in the library | |
12373 | # dependencies. | |
12374 | 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' | |
12375 | ;; | |
12376 | *) | |
12377 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12378 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12379 | case $host in | |
12380 | osf3*) | |
12381 | 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' | |
12382 | ;; | |
12383 | *) | |
12384 | 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' | |
12385 | ;; | |
12386 | esac | |
12387 | ||
12388 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12389 | hardcode_libdir_separator_CXX=: | |
12390 | ||
12391 | # Commands to make compiler produce verbose output that lists | |
12392 | # what "hidden" libraries, object files and flags are used when | |
12393 | # linking a shared library. | |
12394 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12395 | ||
12396 | else | |
12397 | # FIXME: insert proper C++ library support | |
12398 | ld_shlibs_CXX=no | |
12399 | fi | |
12400 | ;; | |
12401 | esac | |
12402 | ;; | |
12403 | ||
12404 | psos*) | |
12405 | # FIXME: insert proper C++ library support | |
12406 | ld_shlibs_CXX=no | |
12407 | ;; | |
12408 | ||
12409 | sunos4*) | |
12410 | case $cc_basename in | |
12411 | CC*) | |
12412 | # Sun C++ 4.x | |
12413 | # FIXME: insert proper C++ library support | |
12414 | ld_shlibs_CXX=no | |
12415 | ;; | |
12416 | lcc*) | |
12417 | # Lucid | |
12418 | # FIXME: insert proper C++ library support | |
12419 | ld_shlibs_CXX=no | |
12420 | ;; | |
12421 | *) | |
12422 | # FIXME: insert proper C++ library support | |
12423 | ld_shlibs_CXX=no | |
12424 | ;; | |
12425 | esac | |
12426 | ;; | |
12427 | ||
12428 | solaris*) | |
12429 | case $cc_basename in | |
12430 | CC*) | |
12431 | # Sun C++ 4.2, 5.x and Centerline C++ | |
12432 | archive_cmds_need_lc_CXX=yes | |
12433 | no_undefined_flag_CXX=' -zdefs' | |
12434 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12435 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12436 | $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' | |
12437 | ||
12438 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12439 | hardcode_shlibpath_var_CXX=no | |
12440 | case $host_os in | |
12441 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12442 | *) | |
12443 | # The compiler driver will combine and reorder linker options, | |
12444 | # but understands `-z linker_flag'. | |
12445 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
12446 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
12447 | ;; | |
12448 | esac | |
12449 | link_all_deplibs_CXX=yes | |
12450 | ||
12451 | output_verbose_link_cmd='echo' | |
12452 | ||
12453 | # Archives containing C++ object files must be created using | |
12454 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12455 | # necessary to make sure instantiated templates are included | |
12456 | # in the archive. | |
12457 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12458 | ;; | |
12459 | gcx*) | |
12460 | # Green Hills C++ Compiler | |
12461 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12462 | ||
12463 | # The C++ compiler must be used to create the archive. | |
12464 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
12465 | ;; | |
12466 | *) | |
12467 | # GNU C++ compiler with Solaris linker | |
12468 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
12469 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
12470 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
12471 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12472 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12473 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12474 | ||
12475 | # Commands to make compiler produce verbose output that lists | |
12476 | # what "hidden" libraries, object files and flags are used when | |
12477 | # linking a shared library. | |
12478 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12479 | else | |
12480 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
12481 | # platform. | |
12482 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
12483 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
12484 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
12485 | ||
12486 | # Commands to make compiler produce verbose output that lists | |
12487 | # what "hidden" libraries, object files and flags are used when | |
12488 | # linking a shared library. | |
12489 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12490 | fi | |
12491 | ||
12492 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
12493 | case $host_os in | |
12494 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
12495 | *) | |
12496 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
12497 | ;; | |
12498 | esac | |
12499 | fi | |
12500 | ;; | |
12501 | esac | |
12502 | ;; | |
12503 | ||
12504 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
12505 | no_undefined_flag_CXX='${wl}-z,text' | |
12506 | archive_cmds_need_lc_CXX=no | |
12507 | hardcode_shlibpath_var_CXX=no | |
12508 | runpath_var='LD_RUN_PATH' | |
12509 | ||
12510 | case $cc_basename in | |
12511 | CC*) | |
12512 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12513 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12514 | ;; | |
12515 | *) | |
12516 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12517 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12518 | ;; | |
12519 | esac | |
12520 | ;; | |
12521 | ||
12522 | sysv5* | sco3.2v5* | sco5v6*) | |
12523 | # Note: We can NOT use -z defs as we might desire, because we do not | |
12524 | # link with -lc, and that would cause any symbols used from libc to | |
12525 | # always be unresolved, which means just about no library would | |
12526 | # ever link correctly. If we're not using GNU ld we use -z text | |
12527 | # though, which does catch some bad symbols but isn't as heavy-handed | |
12528 | # as -z defs. | |
12529 | no_undefined_flag_CXX='${wl}-z,text' | |
12530 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
12531 | archive_cmds_need_lc_CXX=no | |
12532 | hardcode_shlibpath_var_CXX=no | |
12533 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
12534 | hardcode_libdir_separator_CXX=':' | |
12535 | link_all_deplibs_CXX=yes | |
12536 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
12537 | runpath_var='LD_RUN_PATH' | |
12538 | ||
12539 | case $cc_basename in | |
12540 | CC*) | |
12541 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12542 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12543 | ;; | |
12544 | *) | |
12545 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12546 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12547 | ;; | |
12548 | esac | |
12549 | ;; | |
12550 | ||
12551 | tandem*) | |
12552 | case $cc_basename in | |
12553 | NCC*) | |
12554 | # NonStop-UX NCC 3.20 | |
12555 | # FIXME: insert proper C++ library support | |
12556 | ld_shlibs_CXX=no | |
12557 | ;; | |
12558 | *) | |
12559 | # FIXME: insert proper C++ library support | |
12560 | ld_shlibs_CXX=no | |
12561 | ;; | |
12562 | esac | |
12563 | ;; | |
12564 | ||
12565 | vxworks*) | |
12566 | # FIXME: insert proper C++ library support | |
12567 | ld_shlibs_CXX=no | |
12568 | ;; | |
12569 | ||
12570 | *) | |
12571 | # FIXME: insert proper C++ library support | |
12572 | ld_shlibs_CXX=no | |
12573 | ;; | |
12574 | esac | |
12575 | ||
12576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
12577 | $as_echo "$ld_shlibs_CXX" >&6; } | |
12578 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12579 | ||
12580 | GCC_CXX="$GXX" | |
12581 | LD_CXX="$LD" | |
12582 | ||
12583 | ## CAVEAT EMPTOR: | |
12584 | ## There is no encapsulation within the following macros, do not change | |
12585 | ## the running order or otherwise move them around unless you know exactly | |
12586 | ## what you are doing... | |
12587 | # Dependencies to place before and after the object being linked: | |
12588 | predep_objects_CXX= | |
12589 | postdep_objects_CXX= | |
12590 | predeps_CXX= | |
12591 | postdeps_CXX= | |
12592 | compiler_lib_search_path_CXX= | |
12593 | ||
12594 | cat > conftest.$ac_ext <<_LT_EOF | |
12595 | class Foo | |
12596 | { | |
12597 | public: | |
12598 | Foo (void) { a = 0; } | |
12599 | private: | |
12600 | int a; | |
12601 | }; | |
12602 | _LT_EOF | |
12603 | ||
12604 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12605 | (eval $ac_compile) 2>&5 | |
12606 | ac_status=$? | |
12607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12608 | test $ac_status = 0; }; then | |
12609 | # Parse the compiler output and extract the necessary | |
12610 | # objects, libraries and library flags. | |
12611 | ||
12612 | # Sentinel used to keep track of whether or not we are before | |
12613 | # the conftest object file. | |
12614 | pre_test_object_deps_done=no | |
12615 | ||
12616 | for p in `eval "$output_verbose_link_cmd"`; do | |
12617 | case $p in | |
12618 | ||
12619 | -L* | -R* | -l*) | |
12620 | # Some compilers place space between "-{L,R}" and the path. | |
12621 | # Remove the space. | |
12622 | if test $p = "-L" || | |
12623 | test $p = "-R"; then | |
12624 | prev=$p | |
12625 | continue | |
12626 | else | |
12627 | prev= | |
12628 | fi | |
12629 | ||
12630 | if test "$pre_test_object_deps_done" = no; then | |
12631 | case $p in | |
12632 | -L* | -R*) | |
12633 | # Internal compiler library paths should come after those | |
12634 | # provided the user. The postdeps already come after the | |
12635 | # user supplied libs so there is no need to process them. | |
12636 | if test -z "$compiler_lib_search_path_CXX"; then | |
12637 | compiler_lib_search_path_CXX="${prev}${p}" | |
12638 | else | |
12639 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12640 | fi | |
12641 | ;; | |
12642 | # The "-l" case would never come before the object being | |
12643 | # linked, so don't bother handling this case. | |
12644 | esac | |
12645 | else | |
12646 | if test -z "$postdeps_CXX"; then | |
12647 | postdeps_CXX="${prev}${p}" | |
12648 | else | |
12649 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12650 | fi | |
12651 | fi | |
12652 | ;; | |
12653 | ||
12654 | *.$objext) | |
12655 | # This assumes that the test object file only shows up | |
12656 | # once in the compiler output. | |
12657 | if test "$p" = "conftest.$objext"; then | |
12658 | pre_test_object_deps_done=yes | |
12659 | continue | |
12660 | fi | |
12661 | ||
12662 | if test "$pre_test_object_deps_done" = no; then | |
12663 | if test -z "$predep_objects_CXX"; then | |
12664 | predep_objects_CXX="$p" | |
12665 | else | |
12666 | predep_objects_CXX="$predep_objects_CXX $p" | |
12667 | fi | |
12668 | else | |
12669 | if test -z "$postdep_objects_CXX"; then | |
12670 | postdep_objects_CXX="$p" | |
12671 | else | |
12672 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
12673 | fi | |
12674 | fi | |
12675 | ;; | |
12676 | ||
12677 | *) ;; # Ignore the rest. | |
12678 | ||
12679 | esac | |
12680 | done | |
12681 | ||
12682 | # Clean up. | |
12683 | rm -f a.out a.exe | |
12684 | else | |
12685 | echo "libtool.m4: error: problem compiling CXX test program" | |
12686 | fi | |
12687 | ||
12688 | $RM -f confest.$objext | |
12689 | ||
12690 | # PORTME: override above test on systems where it is broken | |
12691 | case $host_os in | |
12692 | interix[3-9]*) | |
12693 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12694 | # hack all around it, let's just trust "g++" to DTRT. | |
12695 | predep_objects_CXX= | |
12696 | postdep_objects_CXX= | |
12697 | postdeps_CXX= | |
12698 | ;; | |
12699 | ||
12700 | linux*) | |
12701 | case `$CC -V 2>&1 | sed 5q` in | |
12702 | *Sun\ C*) | |
12703 | # Sun C++ 5.9 | |
12704 | ||
12705 | # The more standards-conforming stlport4 library is | |
12706 | # incompatible with the Cstd library. Avoid specifying | |
12707 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12708 | # -library=stlport4 depends on it. | |
12709 | case " $CXX $CXXFLAGS " in | |
12710 | *" -library=stlport4 "*) | |
12711 | solaris_use_stlport4=yes | |
12712 | ;; | |
12713 | esac | |
12714 | ||
12715 | if test "$solaris_use_stlport4" != yes; then | |
12716 | postdeps_CXX='-library=Cstd -library=Crun' | |
12717 | fi | |
12718 | ;; | |
12719 | esac | |
12720 | ;; | |
12721 | ||
12722 | solaris*) | |
12723 | case $cc_basename in | |
12724 | CC*) | |
12725 | # The more standards-conforming stlport4 library is | |
12726 | # incompatible with the Cstd library. Avoid specifying | |
12727 | # it if it's in CXXFLAGS. Ignore libCrun as | |
12728 | # -library=stlport4 depends on it. | |
12729 | case " $CXX $CXXFLAGS " in | |
12730 | *" -library=stlport4 "*) | |
12731 | solaris_use_stlport4=yes | |
12732 | ;; | |
12733 | esac | |
12734 | ||
12735 | # Adding this requires a known-good setup of shared libraries for | |
12736 | # Sun compiler versions before 5.6, else PIC objects from an old | |
12737 | # archive will be linked into the output, leading to subtle bugs. | |
12738 | if test "$solaris_use_stlport4" != yes; then | |
12739 | postdeps_CXX='-library=Cstd -library=Crun' | |
12740 | fi | |
12741 | ;; | |
12742 | esac | |
12743 | ;; | |
12744 | esac | |
12745 | ||
12746 | ||
12747 | case " $postdeps_CXX " in | |
12748 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12749 | esac | |
12750 | compiler_lib_search_dirs_CXX= | |
12751 | if test -n "${compiler_lib_search_path_CXX}"; then | |
12752 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
12753 | fi | |
12754 | ||
12755 | ||
12756 | ||
12757 | ||
12758 | ||
12759 | ||
12760 | ||
12761 | ||
12762 | ||
12763 | ||
12764 | ||
12765 | ||
12766 | ||
12767 | ||
12768 | ||
12769 | ||
12770 | ||
12771 | ||
12772 | ||
12773 | ||
12774 | ||
12775 | ||
12776 | ||
12777 | ||
12778 | ||
12779 | ||
12780 | ||
12781 | ||
12782 | ||
12783 | ||
12784 | ||
12785 | lt_prog_compiler_wl_CXX= | |
12786 | lt_prog_compiler_pic_CXX= | |
12787 | lt_prog_compiler_static_CXX= | |
12788 | ||
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12790 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12791 | ||
12792 | # C++ specific cases for pic, static, wl, etc. | |
12793 | if test "$GXX" = yes; then | |
12794 | lt_prog_compiler_wl_CXX='-Wl,' | |
12795 | lt_prog_compiler_static_CXX='-static' | |
12796 | ||
12797 | case $host_os in | |
12798 | aix*) | |
12799 | # All AIX code is PIC. | |
12800 | if test "$host_cpu" = ia64; then | |
12801 | # AIX 5 now supports IA64 processor | |
12802 | lt_prog_compiler_static_CXX='-Bstatic' | |
12803 | fi | |
12804 | ;; | |
12805 | ||
12806 | amigaos*) | |
12807 | case $host_cpu in | |
12808 | powerpc) | |
12809 | # see comment about AmigaOS4 .so support | |
12810 | lt_prog_compiler_pic_CXX='-fPIC' | |
12811 | ;; | |
12812 | m68k) | |
12813 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12814 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12815 | # like `-m68040'. | |
12816 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12817 | ;; | |
12818 | esac | |
12819 | ;; | |
12820 | ||
12821 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12822 | # PIC is the default for these OSes. | |
12823 | ;; | |
12824 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
12825 | # This hack is so that the source file can tell whether it is being | |
12826 | # built for inclusion in a dll (and should export symbols for example). | |
12827 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12828 | # (--disable-auto-import) libraries | |
12829 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12830 | ;; | |
12831 | darwin* | rhapsody*) | |
12832 | # PIC is the default on this platform | |
12833 | # Common symbols not allowed in MH_DYLIB files | |
12834 | lt_prog_compiler_pic_CXX='-fno-common' | |
12835 | ;; | |
12836 | *djgpp*) | |
12837 | # DJGPP does not support shared libraries at all | |
12838 | lt_prog_compiler_pic_CXX= | |
12839 | ;; | |
12840 | interix[3-9]*) | |
12841 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12842 | # Instead, we relocate shared libraries at runtime. | |
12843 | ;; | |
12844 | sysv4*MP*) | |
12845 | if test -d /usr/nec; then | |
12846 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
12847 | fi | |
12848 | ;; | |
12849 | hpux*) | |
12850 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12851 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12852 | # sets the default TLS model and affects inlining. | |
12853 | case $host_cpu in | |
12854 | hppa*64*) | |
12855 | ;; | |
12856 | *) | |
12857 | lt_prog_compiler_pic_CXX='-fPIC' | |
12858 | ;; | |
12859 | esac | |
12860 | ;; | |
12861 | *qnx* | *nto*) | |
12862 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12863 | # it will coredump. | |
12864 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
12865 | ;; | |
12866 | *) | |
12867 | lt_prog_compiler_pic_CXX='-fPIC' | |
12868 | ;; | |
12869 | esac | |
12870 | else | |
12871 | case $host_os in | |
12872 | aix[4-9]*) | |
12873 | # All AIX code is PIC. | |
12874 | if test "$host_cpu" = ia64; then | |
12875 | # AIX 5 now supports IA64 processor | |
12876 | lt_prog_compiler_static_CXX='-Bstatic' | |
12877 | else | |
12878 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12879 | fi | |
12880 | ;; | |
12881 | chorus*) | |
12882 | case $cc_basename in | |
12883 | cxch68*) | |
12884 | # Green Hills C++ Compiler | |
12885 | # _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" | |
12886 | ;; | |
12887 | esac | |
12888 | ;; | |
12889 | dgux*) | |
12890 | case $cc_basename in | |
12891 | ec++*) | |
12892 | lt_prog_compiler_pic_CXX='-KPIC' | |
12893 | ;; | |
12894 | ghcx*) | |
12895 | # Green Hills C++ Compiler | |
12896 | lt_prog_compiler_pic_CXX='-pic' | |
12897 | ;; | |
12898 | *) | |
12899 | ;; | |
12900 | esac | |
12901 | ;; | |
12902 | freebsd* | dragonfly*) | |
12903 | # FreeBSD uses GNU C++ | |
12904 | ;; | |
12905 | hpux9* | hpux10* | hpux11*) | |
12906 | case $cc_basename in | |
12907 | CC*) | |
12908 | lt_prog_compiler_wl_CXX='-Wl,' | |
12909 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12910 | if test "$host_cpu" != ia64; then | |
12911 | lt_prog_compiler_pic_CXX='+Z' | |
12912 | fi | |
12913 | ;; | |
12914 | aCC*) | |
12915 | lt_prog_compiler_wl_CXX='-Wl,' | |
12916 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12917 | case $host_cpu in | |
12918 | hppa*64*|ia64*) | |
12919 | # +Z the default | |
12920 | ;; | |
12921 | *) | |
12922 | lt_prog_compiler_pic_CXX='+Z' | |
12923 | ;; | |
12924 | esac | |
12925 | ;; | |
12926 | *) | |
12927 | ;; | |
12928 | esac | |
12929 | ;; | |
12930 | interix*) | |
12931 | # This is c89, which is MS Visual C++ (no shared libs) | |
12932 | # Anyone wants to do a port? | |
12933 | ;; | |
12934 | irix5* | irix6* | nonstopux*) | |
12935 | case $cc_basename in | |
12936 | CC*) | |
12937 | lt_prog_compiler_wl_CXX='-Wl,' | |
12938 | lt_prog_compiler_static_CXX='-non_shared' | |
12939 | # CC pic flag -KPIC is the default. | |
12940 | ;; | |
12941 | *) | |
12942 | ;; | |
12943 | esac | |
12944 | ;; | |
12945 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12946 | case $cc_basename in | |
12947 | KCC*) | |
12948 | # KAI C++ Compiler | |
12949 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12950 | lt_prog_compiler_pic_CXX='-fPIC' | |
12951 | ;; | |
12952 | ecpc* ) | |
12953 | # old Intel C++ for x86_64 which still supported -KPIC. | |
12954 | lt_prog_compiler_wl_CXX='-Wl,' | |
12955 | lt_prog_compiler_pic_CXX='-KPIC' | |
12956 | lt_prog_compiler_static_CXX='-static' | |
12957 | ;; | |
12958 | icpc* ) | |
12959 | # Intel C++, used to be incompatible with GCC. | |
12960 | # ICC 10 doesn't accept -KPIC any more. | |
12961 | lt_prog_compiler_wl_CXX='-Wl,' | |
12962 | lt_prog_compiler_pic_CXX='-fPIC' | |
12963 | lt_prog_compiler_static_CXX='-static' | |
12964 | ;; | |
12965 | pgCC* | pgcpp*) | |
12966 | # Portland Group C++ compiler | |
12967 | lt_prog_compiler_wl_CXX='-Wl,' | |
12968 | lt_prog_compiler_pic_CXX='-fpic' | |
12969 | lt_prog_compiler_static_CXX='-Bstatic' | |
12970 | ;; | |
12971 | cxx*) | |
12972 | # Compaq C++ | |
12973 | # Make sure the PIC flag is empty. It appears that all Alpha | |
12974 | # Linux and Compaq Tru64 Unix objects are PIC. | |
12975 | lt_prog_compiler_pic_CXX= | |
12976 | lt_prog_compiler_static_CXX='-non_shared' | |
12977 | ;; | |
12978 | xlc* | xlC*) | |
12979 | # IBM XL 8.0 on PPC | |
12980 | lt_prog_compiler_wl_CXX='-Wl,' | |
12981 | lt_prog_compiler_pic_CXX='-qpic' | |
12982 | lt_prog_compiler_static_CXX='-qstaticlink' | |
12983 | ;; | |
12984 | *) | |
12985 | case `$CC -V 2>&1 | sed 5q` in | |
12986 | *Sun\ C*) | |
12987 | # Sun C++ 5.9 | |
12988 | lt_prog_compiler_pic_CXX='-KPIC' | |
12989 | lt_prog_compiler_static_CXX='-Bstatic' | |
12990 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12991 | ;; | |
12992 | esac | |
12993 | ;; | |
12994 | esac | |
12995 | ;; | |
12996 | lynxos*) | |
12997 | ;; | |
12998 | m88k*) | |
12999 | ;; | |
13000 | mvs*) | |
13001 | case $cc_basename in | |
13002 | cxx*) | |
13003 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13004 | ;; | |
13005 | *) | |
13006 | ;; | |
13007 | esac | |
13008 | ;; | |
13009 | netbsd* | netbsdelf*-gnu) | |
13010 | ;; | |
13011 | *qnx* | *nto*) | |
13012 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13013 | # it will coredump. | |
13014 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13015 | ;; | |
13016 | osf3* | osf4* | osf5*) | |
13017 | case $cc_basename in | |
13018 | KCC*) | |
13019 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13020 | ;; | |
13021 | RCC*) | |
13022 | # Rational C++ 2.4.1 | |
13023 | lt_prog_compiler_pic_CXX='-pic' | |
13024 | ;; | |
13025 | cxx*) | |
13026 | # Digital/Compaq C++ | |
13027 | lt_prog_compiler_wl_CXX='-Wl,' | |
13028 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13029 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13030 | lt_prog_compiler_pic_CXX= | |
13031 | lt_prog_compiler_static_CXX='-non_shared' | |
13032 | ;; | |
13033 | *) | |
13034 | ;; | |
13035 | esac | |
13036 | ;; | |
13037 | psos*) | |
13038 | ;; | |
13039 | solaris*) | |
13040 | case $cc_basename in | |
13041 | CC*) | |
13042 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13043 | lt_prog_compiler_pic_CXX='-KPIC' | |
13044 | lt_prog_compiler_static_CXX='-Bstatic' | |
13045 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13046 | ;; | |
13047 | gcx*) | |
13048 | # Green Hills C++ Compiler | |
13049 | lt_prog_compiler_pic_CXX='-PIC' | |
13050 | ;; | |
13051 | *) | |
13052 | ;; | |
13053 | esac | |
13054 | ;; | |
13055 | sunos4*) | |
13056 | case $cc_basename in | |
13057 | CC*) | |
13058 | # Sun C++ 4.x | |
13059 | lt_prog_compiler_pic_CXX='-pic' | |
13060 | lt_prog_compiler_static_CXX='-Bstatic' | |
13061 | ;; | |
13062 | lcc*) | |
13063 | # Lucid | |
13064 | lt_prog_compiler_pic_CXX='-pic' | |
13065 | ;; | |
13066 | *) | |
13067 | ;; | |
13068 | esac | |
13069 | ;; | |
13070 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13071 | case $cc_basename in | |
13072 | CC*) | |
13073 | lt_prog_compiler_wl_CXX='-Wl,' | |
13074 | lt_prog_compiler_pic_CXX='-KPIC' | |
13075 | lt_prog_compiler_static_CXX='-Bstatic' | |
13076 | ;; | |
13077 | esac | |
13078 | ;; | |
13079 | tandem*) | |
13080 | case $cc_basename in | |
13081 | NCC*) | |
13082 | # NonStop-UX NCC 3.20 | |
13083 | lt_prog_compiler_pic_CXX='-KPIC' | |
13084 | ;; | |
13085 | *) | |
13086 | ;; | |
13087 | esac | |
13088 | ;; | |
13089 | vxworks*) | |
13090 | ;; | |
13091 | *) | |
13092 | lt_prog_compiler_can_build_shared_CXX=no | |
13093 | ;; | |
13094 | esac | |
13095 | fi | |
13096 | ||
13097 | case $host_os in | |
13098 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13099 | *djgpp*) | |
13100 | lt_prog_compiler_pic_CXX= | |
13101 | ;; | |
13102 | *) | |
13103 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13104 | ;; | |
13105 | esac | |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
13107 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
13108 | ||
13109 | ||
13110 | ||
13111 | # | |
13112 | # Check to make sure the PIC flag actually works. | |
13113 | # | |
13114 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13116 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
13117 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
13118 | $as_echo_n "(cached) " >&6 | |
13119 | else | |
13120 | lt_cv_prog_compiler_pic_works_CXX=no | |
13121 | ac_outfile=conftest.$ac_objext | |
13122 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13123 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13124 | # Insert the option either (1) after the last *FLAGS variable, or | |
13125 | # (2) before a word containing "conftest.", or (3) at the end. | |
13126 | # Note that $ac_compile itself does not contain backslashes and begins | |
13127 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13128 | # The option is referenced via a variable to avoid confusing sed. | |
13129 | lt_compile=`echo "$ac_compile" | $SED \ | |
13130 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13131 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13132 | -e 's:$: $lt_compiler_flag:'` | |
13133 | (eval echo "\"\$as_me:13133: $lt_compile\"" >&5) | |
13134 | (eval "$lt_compile" 2>conftest.err) | |
13135 | ac_status=$? | |
13136 | cat conftest.err >&5 | |
13137 | echo "$as_me:13137: \$? = $ac_status" >&5 | |
13138 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
13139 | # The compiler can only warn and ignore the option if not recognized | |
13140 | # So say no if there are warnings other than the usual output. | |
13141 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13142 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13143 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
13144 | lt_cv_prog_compiler_pic_works_CXX=yes | |
13145 | fi | |
13146 | fi | |
13147 | $RM conftest* | |
13148 | ||
13149 | fi | |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
13151 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
13152 | ||
13153 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
13154 | case $lt_prog_compiler_pic_CXX in | |
13155 | "" | " "*) ;; | |
13156 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13157 | esac | |
13158 | else | |
13159 | lt_prog_compiler_pic_CXX= | |
13160 | lt_prog_compiler_can_build_shared_CXX=no | |
13161 | fi | |
13162 | ||
13163 | fi | |
13164 | ||
13165 | ||
13166 | ||
13167 | # | |
13168 | # Check to make sure the static flag actually works. | |
13169 | # | |
13170 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13172 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
13173 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
13174 | $as_echo_n "(cached) " >&6 | |
13175 | else | |
13176 | lt_cv_prog_compiler_static_works_CXX=no | |
13177 | save_LDFLAGS="$LDFLAGS" | |
13178 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13179 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13180 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13181 | # The linker can only warn and ignore the option if not recognized | |
13182 | # So say no if there are warnings | |
13183 | if test -s conftest.err; then | |
13184 | # Append any errors to the config.log. | |
13185 | cat conftest.err 1>&5 | |
13186 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13187 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13188 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13189 | lt_cv_prog_compiler_static_works_CXX=yes | |
13190 | fi | |
13191 | else | |
13192 | lt_cv_prog_compiler_static_works_CXX=yes | |
13193 | fi | |
13194 | fi | |
13195 | $RM -r conftest* | |
13196 | LDFLAGS="$save_LDFLAGS" | |
13197 | ||
13198 | fi | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
13200 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
13201 | ||
13202 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
13203 | : | |
13204 | else | |
13205 | lt_prog_compiler_static_CXX= | |
13206 | fi | |
13207 | ||
13208 | ||
13209 | ||
13210 | ||
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13212 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13213 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13214 | $as_echo_n "(cached) " >&6 | |
13215 | else | |
13216 | lt_cv_prog_compiler_c_o_CXX=no | |
13217 | $RM -r conftest 2>/dev/null | |
13218 | mkdir conftest | |
13219 | cd conftest | |
13220 | mkdir out | |
13221 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13222 | ||
13223 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13224 | # Insert the option either (1) after the last *FLAGS variable, or | |
13225 | # (2) before a word containing "conftest.", or (3) at the end. | |
13226 | # Note that $ac_compile itself does not contain backslashes and begins | |
13227 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13228 | lt_compile=`echo "$ac_compile" | $SED \ | |
13229 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13230 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13231 | -e 's:$: $lt_compiler_flag:'` | |
13232 | (eval echo "\"\$as_me:13232: $lt_compile\"" >&5) | |
13233 | (eval "$lt_compile" 2>out/conftest.err) | |
13234 | ac_status=$? | |
13235 | cat out/conftest.err >&5 | |
13236 | echo "$as_me:13236: \$? = $ac_status" >&5 | |
13237 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13238 | then | |
13239 | # The compiler can only warn and ignore the option if not recognized | |
13240 | # So say no if there are warnings | |
13241 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13242 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13243 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13244 | lt_cv_prog_compiler_c_o_CXX=yes | |
13245 | fi | |
13246 | fi | |
13247 | chmod u+w . 2>&5 | |
13248 | $RM conftest* | |
13249 | # SGI C++ compiler will create directory out/ii_files/ for | |
13250 | # template instantiation | |
13251 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13252 | $RM out/* && rmdir out | |
13253 | cd .. | |
13254 | $RM -r conftest | |
13255 | $RM conftest* | |
13256 | ||
13257 | fi | |
13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13259 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13260 | ||
13261 | ||
13262 | ||
13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13264 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
13265 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
13266 | $as_echo_n "(cached) " >&6 | |
13267 | else | |
13268 | lt_cv_prog_compiler_c_o_CXX=no | |
13269 | $RM -r conftest 2>/dev/null | |
13270 | mkdir conftest | |
13271 | cd conftest | |
13272 | mkdir out | |
13273 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13274 | ||
13275 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13276 | # Insert the option either (1) after the last *FLAGS variable, or | |
13277 | # (2) before a word containing "conftest.", or (3) at the end. | |
13278 | # Note that $ac_compile itself does not contain backslashes and begins | |
13279 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13280 | lt_compile=`echo "$ac_compile" | $SED \ | |
13281 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13282 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13283 | -e 's:$: $lt_compiler_flag:'` | |
13284 | (eval echo "\"\$as_me:13284: $lt_compile\"" >&5) | |
13285 | (eval "$lt_compile" 2>out/conftest.err) | |
13286 | ac_status=$? | |
13287 | cat out/conftest.err >&5 | |
13288 | echo "$as_me:13288: \$? = $ac_status" >&5 | |
13289 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
13290 | then | |
13291 | # The compiler can only warn and ignore the option if not recognized | |
13292 | # So say no if there are warnings | |
13293 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13294 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13295 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13296 | lt_cv_prog_compiler_c_o_CXX=yes | |
13297 | fi | |
13298 | fi | |
13299 | chmod u+w . 2>&5 | |
13300 | $RM conftest* | |
13301 | # SGI C++ compiler will create directory out/ii_files/ for | |
13302 | # template instantiation | |
13303 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13304 | $RM out/* && rmdir out | |
13305 | cd .. | |
13306 | $RM -r conftest | |
13307 | $RM conftest* | |
13308 | ||
13309 | fi | |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13311 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
13312 | ||
13313 | ||
13314 | ||
13315 | ||
13316 | hard_links="nottested" | |
13317 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13318 | # do not overwrite the value of need_locks provided by the user | |
13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
13320 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
13321 | hard_links=yes | |
13322 | $RM conftest* | |
13323 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13324 | touch conftest.a | |
13325 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13326 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
13328 | $as_echo "$hard_links" >&6; } | |
13329 | if test "$hard_links" = no; then | |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13331 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13332 | need_locks=warn | |
13333 | fi | |
13334 | else | |
13335 | need_locks=no | |
13336 | fi | |
13337 | ||
13338 | ||
13339 | ||
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13341 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13342 | ||
13343 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13344 | case $host_os in | |
13345 | aix[4-9]*) | |
13346 | # If we're using GNU nm, then we don't want the "-C" option. | |
13347 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13348 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13349 | 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' | |
13350 | else | |
13351 | 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' | |
13352 | fi | |
13353 | ;; | |
13354 | pw32*) | |
13355 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13356 | ;; | |
13357 | cygwin* | mingw* | cegcc*) | |
13358 | 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' | |
13359 | ;; | |
13360 | linux* | k*bsd*-gnu) | |
13361 | link_all_deplibs_CXX=no | |
13362 | ;; | |
13363 | *) | |
13364 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13365 | ;; | |
13366 | esac | |
13367 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
13368 | ||
13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13370 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13371 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13372 | ||
13373 | with_gnu_ld_CXX=$with_gnu_ld | |
13374 | ||
13375 | ||
13376 | ||
13377 | ||
13378 | ||
13379 | ||
13380 | # | |
13381 | # Do we need to explicitly link libc? | |
13382 | # | |
13383 | case "x$archive_cmds_need_lc_CXX" in | |
13384 | x|xyes) | |
13385 | # Assume -lc should be added | |
13386 | archive_cmds_need_lc_CXX=yes | |
13387 | ||
13388 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13389 | case $archive_cmds_CXX in | |
13390 | *'~'*) | |
13391 | # FIXME: we may have to deal with multi-command sequences. | |
13392 | ;; | |
13393 | '$CC '*) | |
13394 | # Test whether the compiler implicitly links with -lc since on some | |
13395 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13396 | # to ld, don't add -lc before -lgcc. | |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13398 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
13399 | $RM conftest* | |
13400 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13401 | ||
13402 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13403 | (eval $ac_compile) 2>&5 | |
13404 | ac_status=$? | |
13405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13406 | test $ac_status = 0; } 2>conftest.err; then | |
13407 | soname=conftest | |
13408 | lib=conftest | |
13409 | libobjs=conftest.$ac_objext | |
13410 | deplibs= | |
13411 | wl=$lt_prog_compiler_wl_CXX | |
13412 | pic_flag=$lt_prog_compiler_pic_CXX | |
13413 | compiler_flags=-v | |
13414 | linker_flags=-v | |
13415 | verstring= | |
13416 | output_objdir=. | |
13417 | libname=conftest | |
13418 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
13419 | allow_undefined_flag_CXX= | |
13420 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13421 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13422 | ac_status=$? | |
13423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13424 | test $ac_status = 0; } | |
13425 | then | |
13426 | archive_cmds_need_lc_CXX=no | |
13427 | else | |
13428 | archive_cmds_need_lc_CXX=yes | |
13429 | fi | |
13430 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
13431 | else | |
13432 | cat conftest.err 1>&5 | |
13433 | fi | |
13434 | $RM conftest* | |
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
13436 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
13437 | ;; | |
13438 | esac | |
13439 | fi | |
13440 | ;; | |
13441 | esac | |
13442 | ||
13443 | ||
13444 | ||
13445 | ||
13446 | ||
13447 | ||
13448 | ||
13449 | ||
13450 | ||
13451 | ||
13452 | ||
13453 | ||
13454 | ||
13455 | ||
13456 | ||
13457 | ||
13458 | ||
13459 | ||
13460 | ||
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | ||
13468 | ||
13469 | ||
13470 | ||
13471 | ||
13472 | ||
13473 | ||
13474 | ||
13475 | ||
13476 | ||
13477 | ||
13478 | ||
13479 | ||
13480 | ||
13481 | ||
13482 | ||
13483 | ||
13484 | ||
13485 | ||
13486 | ||
13487 | ||
13488 | ||
13489 | ||
13490 | ||
13491 | ||
13492 | ||
13493 | ||
13494 | ||
13495 | ||
13496 | ||
13497 | ||
13498 | ||
13499 | ||
13500 | ||
13501 | ||
13502 | ||
13503 | ||
13504 | ||
13505 | ||
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
13507 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
13508 | ||
13509 | library_names_spec= | |
13510 | libname_spec='lib$name' | |
13511 | soname_spec= | |
13512 | shrext_cmds=".so" | |
13513 | postinstall_cmds= | |
13514 | postuninstall_cmds= | |
13515 | finish_cmds= | |
13516 | finish_eval= | |
13517 | shlibpath_var= | |
13518 | shlibpath_overrides_runpath=unknown | |
13519 | version_type=none | |
13520 | dynamic_linker="$host_os ld.so" | |
13521 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
13522 | need_lib_prefix=unknown | |
13523 | hardcode_into_libs=no | |
13524 | ||
13525 | # when you set need_version to no, make sure it does not cause -set_version | |
13526 | # flags to be left without arguments | |
13527 | need_version=unknown | |
13528 | ||
13529 | case $host_os in | |
13530 | aix3*) | |
13531 | version_type=linux | |
13532 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
13533 | shlibpath_var=LIBPATH | |
13534 | ||
13535 | # AIX 3 has no versioning support, so we append a major version to the name. | |
13536 | soname_spec='${libname}${release}${shared_ext}$major' | |
13537 | ;; | |
13538 | ||
13539 | aix[4-9]*) | |
13540 | version_type=linux | |
13541 | need_lib_prefix=no | |
13542 | need_version=no | |
13543 | hardcode_into_libs=yes | |
13544 | if test "$host_cpu" = ia64; then | |
13545 | # AIX 5 supports IA64 | |
13546 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
13547 | shlibpath_var=LD_LIBRARY_PATH | |
13548 | else | |
13549 | # With GCC up to 2.95.x, collect2 would create an import file | |
13550 | # for dependence libraries. The import file would start with | |
13551 | # the line `#! .'. This would cause the generated library to | |
13552 | # depend on `.', always an invalid library. This was fixed in | |
13553 | # development snapshots of GCC prior to 3.0. | |
13554 | case $host_os in | |
13555 | aix4 | aix4.[01] | aix4.[01].*) | |
13556 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
13557 | echo ' yes ' | |
13558 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
13559 | : | |
13560 | else | |
13561 | can_build_shared=no | |
13562 | fi | |
13563 | ;; | |
13564 | esac | |
13565 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
13566 | # soname into executable. Probably we can add versioning support to | |
13567 | # collect2, so additional links can be useful in future. | |
13568 | if test "$aix_use_runtimelinking" = yes; then | |
13569 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
13570 | # instead of lib<name>.a to let people know that these are not | |
13571 | # typical AIX shared libraries. | |
13572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13573 | else | |
13574 | # We preserve .a as extension for shared libraries through AIX4.2 | |
13575 | # and later when we are not doing run time linking. | |
13576 | library_names_spec='${libname}${release}.a $libname.a' | |
13577 | soname_spec='${libname}${release}${shared_ext}$major' | |
13578 | fi | |
13579 | shlibpath_var=LIBPATH | |
13580 | fi | |
13581 | ;; | |
13582 | ||
13583 | amigaos*) | |
13584 | case $host_cpu in | |
13585 | powerpc) | |
13586 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
13587 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
13588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13589 | ;; | |
13590 | m68k) | |
13591 | library_names_spec='$libname.ixlibrary $libname.a' | |
13592 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
13593 | 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' | |
13594 | ;; | |
13595 | esac | |
13596 | ;; | |
13597 | ||
13598 | beos*) | |
13599 | library_names_spec='${libname}${shared_ext}' | |
13600 | dynamic_linker="$host_os ld.so" | |
13601 | shlibpath_var=LIBRARY_PATH | |
13602 | ;; | |
13603 | ||
13604 | bsdi[45]*) | |
13605 | version_type=linux | |
13606 | need_version=no | |
13607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13608 | soname_spec='${libname}${release}${shared_ext}$major' | |
13609 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
13610 | shlibpath_var=LD_LIBRARY_PATH | |
13611 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
13612 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
13613 | # the default ld.so.conf also contains /usr/contrib/lib and | |
13614 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
13615 | # libtool to hard-code these into programs | |
13616 | ;; | |
13617 | ||
13618 | cygwin* | mingw* | pw32* | cegcc*) | |
13619 | version_type=windows | |
13620 | shrext_cmds=".dll" | |
13621 | need_version=no | |
13622 | need_lib_prefix=no | |
13623 | ||
13624 | case $GCC,$host_os in | |
13625 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
13626 | library_names_spec='$libname.dll.a' | |
13627 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
13628 | postinstall_cmds='base_file=`basename \${file}`~ | |
13629 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
13630 | dldir=$destdir/`dirname \$dlpath`~ | |
13631 | test -d \$dldir || mkdir -p \$dldir~ | |
13632 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
13633 | chmod a+x \$dldir/$dlname~ | |
13634 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
13635 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
13636 | fi' | |
13637 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
13638 | dlpath=$dir/\$dldll~ | |
13639 | $RM \$dlpath' | |
13640 | shlibpath_overrides_runpath=yes | |
13641 | ||
13642 | case $host_os in | |
13643 | cygwin*) | |
13644 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
13645 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13646 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
13647 | ;; | |
13648 | mingw* | cegcc*) | |
13649 | # MinGW DLLs use traditional 'lib' prefix | |
13650 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13651 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
13652 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
13653 | # It is most probably a Windows format PATH printed by | |
13654 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
13655 | # path with ; separators, and with drive letters. We can handle the | |
13656 | # drive letters (cygwin fileutils understands them), so leave them, | |
13657 | # especially as we might pass files found there to a mingw objdump, | |
13658 | # which wouldn't understand a cygwinified path. Ahh. | |
13659 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
13660 | else | |
13661 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
13662 | fi | |
13663 | ;; | |
13664 | pw32*) | |
13665 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
13666 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
13667 | ;; | |
13668 | esac | |
13669 | ;; | |
13670 | ||
13671 | *) | |
13672 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
13673 | ;; | |
13674 | esac | |
13675 | dynamic_linker='Win32 ld.exe' | |
13676 | # FIXME: first we should search . and the directory the executable is in | |
13677 | shlibpath_var=PATH | |
13678 | ;; | |
13679 | ||
13680 | darwin* | rhapsody*) | |
13681 | dynamic_linker="$host_os dyld" | |
13682 | version_type=darwin | |
13683 | need_lib_prefix=no | |
13684 | need_version=no | |
13685 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
13686 | soname_spec='${libname}${release}${major}$shared_ext' | |
13687 | shlibpath_overrides_runpath=yes | |
13688 | shlibpath_var=DYLD_LIBRARY_PATH | |
13689 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
13690 | ||
13691 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
13692 | ;; | |
13693 | ||
13694 | dgux*) | |
13695 | version_type=linux | |
13696 | need_lib_prefix=no | |
13697 | need_version=no | |
13698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
13699 | soname_spec='${libname}${release}${shared_ext}$major' | |
13700 | shlibpath_var=LD_LIBRARY_PATH | |
13701 | ;; | |
13702 | ||
13703 | freebsd1*) | |
13704 | dynamic_linker=no | |
13705 | ;; | |
13706 | ||
13707 | freebsd* | dragonfly*) | |
13708 | # DragonFly does not have aout. When/if they implement a new | |
13709 | # versioning mechanism, adjust this. | |
13710 | if test -x /usr/bin/objformat; then | |
13711 | objformat=`/usr/bin/objformat` | |
13712 | else | |
13713 | case $host_os in | |
13714 | freebsd[123]*) objformat=aout ;; | |
13715 | *) objformat=elf ;; | |
13716 | esac | |
13717 | fi | |
13718 | version_type=freebsd-$objformat | |
13719 | case $version_type in | |
13720 | freebsd-elf*) | |
13721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13722 | need_version=no | |
13723 | need_lib_prefix=no | |
13724 | ;; | |
13725 | freebsd-*) | |
13726 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
13727 | need_version=yes | |
13728 | ;; | |
13729 | esac | |
13730 | shlibpath_var=LD_LIBRARY_PATH | |
13731 | case $host_os in | |
13732 | freebsd2*) | |
13733 | shlibpath_overrides_runpath=yes | |
13734 | ;; | |
13735 | freebsd3.[01]* | freebsdelf3.[01]*) | |
13736 | shlibpath_overrides_runpath=yes | |
13737 | hardcode_into_libs=yes | |
13738 | ;; | |
13739 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
13740 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
13741 | shlibpath_overrides_runpath=no | |
13742 | hardcode_into_libs=yes | |
13743 | ;; | |
13744 | *) # from 4.6 on, and DragonFly | |
13745 | shlibpath_overrides_runpath=yes | |
13746 | hardcode_into_libs=yes | |
13747 | ;; | |
13748 | esac | |
13749 | ;; | |
13750 | ||
13751 | gnu*) | |
13752 | version_type=linux | |
13753 | need_lib_prefix=no | |
13754 | need_version=no | |
13755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
13756 | soname_spec='${libname}${release}${shared_ext}$major' | |
13757 | shlibpath_var=LD_LIBRARY_PATH | |
13758 | hardcode_into_libs=yes | |
13759 | ;; | |
13760 | ||
13761 | hpux9* | hpux10* | hpux11*) | |
13762 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
13763 | # link against other versions. | |
13764 | version_type=sunos | |
13765 | need_lib_prefix=no | |
13766 | need_version=no | |
13767 | case $host_cpu in | |
13768 | ia64*) | |
13769 | shrext_cmds='.so' | |
13770 | hardcode_into_libs=yes | |
13771 | dynamic_linker="$host_os dld.so" | |
13772 | shlibpath_var=LD_LIBRARY_PATH | |
13773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13775 | soname_spec='${libname}${release}${shared_ext}$major' | |
13776 | if test "X$HPUX_IA64_MODE" = X32; then | |
13777 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
13778 | else | |
13779 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
13780 | fi | |
13781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13782 | ;; | |
13783 | hppa*64*) | |
13784 | shrext_cmds='.sl' | |
13785 | hardcode_into_libs=yes | |
13786 | dynamic_linker="$host_os dld.sl" | |
13787 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
13788 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
13789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13790 | soname_spec='${libname}${release}${shared_ext}$major' | |
13791 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
13792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
13793 | ;; | |
13794 | *) | |
13795 | shrext_cmds='.sl' | |
13796 | dynamic_linker="$host_os dld.sl" | |
13797 | shlibpath_var=SHLIB_PATH | |
13798 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
13799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13800 | soname_spec='${libname}${release}${shared_ext}$major' | |
13801 | ;; | |
13802 | esac | |
13803 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
13804 | postinstall_cmds='chmod 555 $lib' | |
13805 | ;; | |
13806 | ||
13807 | interix[3-9]*) | |
13808 | version_type=linux | |
13809 | need_lib_prefix=no | |
13810 | need_version=no | |
13811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13812 | soname_spec='${libname}${release}${shared_ext}$major' | |
13813 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
13814 | shlibpath_var=LD_LIBRARY_PATH | |
13815 | shlibpath_overrides_runpath=no | |
13816 | hardcode_into_libs=yes | |
13817 | ;; | |
13818 | ||
13819 | irix5* | irix6* | nonstopux*) | |
13820 | case $host_os in | |
13821 | nonstopux*) version_type=nonstopux ;; | |
13822 | *) | |
13823 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
13824 | version_type=linux | |
13825 | else | |
13826 | version_type=irix | |
13827 | fi ;; | |
13828 | esac | |
13829 | need_lib_prefix=no | |
13830 | need_version=no | |
13831 | soname_spec='${libname}${release}${shared_ext}$major' | |
13832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13833 | case $host_os in | |
13834 | irix5* | nonstopux*) | |
13835 | libsuff= shlibsuff= | |
13836 | ;; | |
13837 | *) | |
13838 | case $LD in # libtool.m4 will add one of these switches to LD | |
13839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
13840 | libsuff= shlibsuff= libmagic=32-bit;; | |
13841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
13842 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
13843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
13844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
13845 | *) libsuff= shlibsuff= libmagic=never-match;; | |
13846 | esac | |
13847 | ;; | |
13848 | esac | |
13849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
13850 | shlibpath_overrides_runpath=no | |
13851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13853 | hardcode_into_libs=yes | |
13854 | ;; | |
13855 | ||
13856 | # No shared lib support for Linux oldld, aout, or coff. | |
13857 | linux*oldld* | linux*aout* | linux*coff*) | |
13858 | dynamic_linker=no | |
13859 | ;; | |
13860 | ||
13861 | # This must be Linux ELF. | |
13862 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13863 | version_type=linux | |
13864 | need_lib_prefix=no | |
13865 | need_version=no | |
13866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13867 | soname_spec='${libname}${release}${shared_ext}$major' | |
13868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13869 | shlibpath_var=LD_LIBRARY_PATH | |
13870 | shlibpath_overrides_runpath=no | |
13871 | # Some binutils ld are patched to set DT_RUNPATH | |
13872 | save_LDFLAGS=$LDFLAGS | |
13873 | save_libdir=$libdir | |
13874 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
13875 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
13876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13877 | /* end confdefs.h. */ | |
13878 | ||
13879 | int | |
13880 | main () | |
13881 | { | |
13882 | ||
13883 | ; | |
13884 | return 0; | |
13885 | } | |
13886 | _ACEOF | |
13887 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13888 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
13889 | shlibpath_overrides_runpath=yes | |
13890 | fi | |
13891 | fi | |
13892 | rm -f core conftest.err conftest.$ac_objext \ | |
13893 | conftest$ac_exeext conftest.$ac_ext | |
13894 | LDFLAGS=$save_LDFLAGS | |
13895 | libdir=$save_libdir | |
13896 | ||
13897 | # This implies no fast_install, which is unacceptable. | |
13898 | # Some rework will be needed to allow for fast_install | |
13899 | # before this can be enabled. | |
13900 | hardcode_into_libs=yes | |
13901 | ||
13902 | # Append ld.so.conf contents to the search path | |
13903 | if test -f /etc/ld.so.conf; then | |
13904 | 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' ' '` | |
13905 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13906 | fi | |
13907 | ||
13908 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13909 | # powerpc, because MkLinux only supported shared libraries with the | |
13910 | # GNU dynamic linker. Since this was broken with cross compilers, | |
13911 | # most powerpc-linux boxes support dynamic linking these days and | |
13912 | # people can always --disable-shared, the test was removed, and we | |
13913 | # assume the GNU/Linux dynamic linker is in use. | |
13914 | dynamic_linker='GNU/Linux ld.so' | |
13915 | ;; | |
13916 | ||
13917 | netbsdelf*-gnu) | |
13918 | version_type=linux | |
13919 | need_lib_prefix=no | |
13920 | need_version=no | |
13921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13922 | soname_spec='${libname}${release}${shared_ext}$major' | |
13923 | shlibpath_var=LD_LIBRARY_PATH | |
13924 | shlibpath_overrides_runpath=no | |
13925 | hardcode_into_libs=yes | |
13926 | dynamic_linker='NetBSD ld.elf_so' | |
13927 | ;; | |
13928 | ||
13929 | netbsd*) | |
13930 | version_type=sunos | |
13931 | need_lib_prefix=no | |
13932 | need_version=no | |
13933 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13936 | dynamic_linker='NetBSD (a.out) ld.so' | |
13937 | else | |
13938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13939 | soname_spec='${libname}${release}${shared_ext}$major' | |
13940 | dynamic_linker='NetBSD ld.elf_so' | |
13941 | fi | |
13942 | shlibpath_var=LD_LIBRARY_PATH | |
13943 | shlibpath_overrides_runpath=yes | |
13944 | hardcode_into_libs=yes | |
13945 | ;; | |
13946 | ||
13947 | newsos6) | |
13948 | version_type=linux | |
13949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13950 | shlibpath_var=LD_LIBRARY_PATH | |
13951 | shlibpath_overrides_runpath=yes | |
13952 | ;; | |
13953 | ||
13954 | *nto* | *qnx*) | |
13955 | version_type=qnx | |
13956 | need_lib_prefix=no | |
13957 | need_version=no | |
13958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13959 | soname_spec='${libname}${release}${shared_ext}$major' | |
13960 | shlibpath_var=LD_LIBRARY_PATH | |
13961 | shlibpath_overrides_runpath=no | |
13962 | hardcode_into_libs=yes | |
13963 | dynamic_linker='ldqnx.so' | |
13964 | ;; | |
13965 | ||
13966 | openbsd*) | |
13967 | version_type=sunos | |
13968 | sys_lib_dlsearch_path_spec="/usr/lib" | |
13969 | need_lib_prefix=no | |
13970 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13971 | case $host_os in | |
13972 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13973 | *) need_version=no ;; | |
13974 | esac | |
13975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13976 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13977 | shlibpath_var=LD_LIBRARY_PATH | |
13978 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13979 | case $host_os in | |
13980 | openbsd2.[89] | openbsd2.[89].*) | |
13981 | shlibpath_overrides_runpath=no | |
13982 | ;; | |
13983 | *) | |
13984 | shlibpath_overrides_runpath=yes | |
13985 | ;; | |
13986 | esac | |
13987 | else | |
13988 | shlibpath_overrides_runpath=yes | |
13989 | fi | |
13990 | ;; | |
13991 | ||
13992 | os2*) | |
13993 | libname_spec='$name' | |
13994 | shrext_cmds=".dll" | |
13995 | need_lib_prefix=no | |
13996 | library_names_spec='$libname${shared_ext} $libname.a' | |
13997 | dynamic_linker='OS/2 ld.exe' | |
13998 | shlibpath_var=LIBPATH | |
13999 | ;; | |
14000 | ||
14001 | osf3* | osf4* | osf5*) | |
14002 | version_type=osf | |
14003 | need_lib_prefix=no | |
14004 | need_version=no | |
14005 | soname_spec='${libname}${release}${shared_ext}$major' | |
14006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14007 | shlibpath_var=LD_LIBRARY_PATH | |
14008 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14009 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14010 | ;; | |
14011 | ||
14012 | rdos*) | |
14013 | dynamic_linker=no | |
14014 | ;; | |
14015 | ||
14016 | solaris*) | |
14017 | version_type=linux | |
14018 | need_lib_prefix=no | |
14019 | need_version=no | |
14020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14021 | soname_spec='${libname}${release}${shared_ext}$major' | |
14022 | shlibpath_var=LD_LIBRARY_PATH | |
14023 | shlibpath_overrides_runpath=yes | |
14024 | hardcode_into_libs=yes | |
14025 | # ldd complains unless libraries are executable | |
14026 | postinstall_cmds='chmod +x $lib' | |
14027 | ;; | |
14028 | ||
14029 | sunos4*) | |
14030 | version_type=sunos | |
14031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14032 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14033 | shlibpath_var=LD_LIBRARY_PATH | |
14034 | shlibpath_overrides_runpath=yes | |
14035 | if test "$with_gnu_ld" = yes; then | |
14036 | need_lib_prefix=no | |
14037 | fi | |
14038 | need_version=yes | |
14039 | ;; | |
14040 | ||
14041 | sysv4 | sysv4.3*) | |
14042 | version_type=linux | |
14043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14044 | soname_spec='${libname}${release}${shared_ext}$major' | |
14045 | shlibpath_var=LD_LIBRARY_PATH | |
14046 | case $host_vendor in | |
14047 | sni) | |
14048 | shlibpath_overrides_runpath=no | |
14049 | need_lib_prefix=no | |
14050 | runpath_var=LD_RUN_PATH | |
14051 | ;; | |
14052 | siemens) | |
14053 | need_lib_prefix=no | |
14054 | ;; | |
14055 | motorola) | |
14056 | need_lib_prefix=no | |
14057 | need_version=no | |
14058 | shlibpath_overrides_runpath=no | |
14059 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14060 | ;; | |
14061 | esac | |
14062 | ;; | |
14063 | ||
14064 | sysv4*MP*) | |
14065 | if test -d /usr/nec ;then | |
14066 | version_type=linux | |
14067 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14068 | soname_spec='$libname${shared_ext}.$major' | |
14069 | shlibpath_var=LD_LIBRARY_PATH | |
14070 | fi | |
14071 | ;; | |
14072 | ||
14073 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14074 | version_type=freebsd-elf | |
14075 | need_lib_prefix=no | |
14076 | need_version=no | |
14077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14078 | soname_spec='${libname}${release}${shared_ext}$major' | |
14079 | shlibpath_var=LD_LIBRARY_PATH | |
14080 | shlibpath_overrides_runpath=yes | |
14081 | hardcode_into_libs=yes | |
14082 | if test "$with_gnu_ld" = yes; then | |
14083 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14084 | else | |
14085 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14086 | case $host_os in | |
14087 | sco3.2v5*) | |
14088 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14089 | ;; | |
14090 | esac | |
14091 | fi | |
14092 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14093 | ;; | |
14094 | ||
14095 | tpf*) | |
14096 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14097 | version_type=linux | |
14098 | need_lib_prefix=no | |
14099 | need_version=no | |
14100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14101 | shlibpath_var=LD_LIBRARY_PATH | |
14102 | shlibpath_overrides_runpath=no | |
14103 | hardcode_into_libs=yes | |
14104 | ;; | |
14105 | ||
14106 | uts4*) | |
14107 | version_type=linux | |
14108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14109 | soname_spec='${libname}${release}${shared_ext}$major' | |
14110 | shlibpath_var=LD_LIBRARY_PATH | |
14111 | ;; | |
14112 | ||
14113 | *) | |
14114 | dynamic_linker=no | |
14115 | ;; | |
14116 | esac | |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
14118 | $as_echo "$dynamic_linker" >&6; } | |
14119 | test "$dynamic_linker" = no && can_build_shared=no | |
14120 | ||
14121 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14122 | if test "$GCC" = yes; then | |
14123 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
14124 | fi | |
14125 | ||
14126 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
14127 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14128 | fi | |
14129 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14130 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14131 | fi | |
14132 | ||
14133 | ||
14134 | ||
14135 | ||
14136 | ||
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | ||
14142 | ||
14143 | ||
14144 | ||
14145 | ||
14146 | ||
14147 | ||
14148 | ||
14149 | ||
14150 | ||
14151 | ||
14152 | ||
14153 | ||
14154 | ||
14155 | ||
14156 | ||
14157 | ||
14158 | ||
14159 | ||
14160 | ||
14161 | ||
14162 | ||
14163 | ||
14164 | ||
14165 | ||
14166 | ||
14167 | ||
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
14169 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
14170 | hardcode_action_CXX= | |
14171 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14172 | test -n "$runpath_var_CXX" || | |
14173 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14174 | ||
14175 | # We can hardcode non-existent directories. | |
14176 | if test "$hardcode_direct_CXX" != no && | |
14177 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14178 | # have to relink, otherwise we might link with an installed library | |
14179 | # when we should be linking with a yet-to-be-installed one | |
14180 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14181 | test "$hardcode_minus_L_CXX" != no; then | |
14182 | # Linking always hardcodes the temporary library directory. | |
14183 | hardcode_action_CXX=relink | |
14184 | else | |
14185 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14186 | hardcode_action_CXX=immediate | |
14187 | fi | |
14188 | else | |
14189 | # We cannot hardcode anything, or else we can only hardcode existing | |
14190 | # directories. | |
14191 | hardcode_action_CXX=unsupported | |
14192 | fi | |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
14194 | $as_echo "$hardcode_action_CXX" >&6; } | |
14195 | ||
14196 | if test "$hardcode_action_CXX" = relink || | |
14197 | test "$inherit_rpath_CXX" = yes; then | |
14198 | # Fast installation is not supported | |
14199 | enable_fast_install=no | |
14200 | elif test "$shlibpath_overrides_runpath" = yes || | |
14201 | test "$enable_shared" = no; then | |
14202 | # Fast installation is not necessary | |
14203 | enable_fast_install=needless | |
14204 | fi | |
14205 | ||
14206 | ||
14207 | ||
14208 | ||
14209 | ||
14210 | ||
14211 | ||
14212 | fi # test -n "$compiler" | |
14213 | ||
14214 | CC=$lt_save_CC | |
14215 | LDCXX=$LD | |
14216 | LD=$lt_save_LD | |
14217 | GCC=$lt_save_GCC | |
14218 | with_gnu_ld=$lt_save_with_gnu_ld | |
14219 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14220 | lt_cv_path_LD=$lt_save_path_LD | |
14221 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14222 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14223 | fi # test "$_lt_caught_CXX_error" != yes | |
14224 | ||
14225 | ac_ext=c | |
14226 | ac_cpp='$CPP $CPPFLAGS' | |
14227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14230 | ||
14231 | ||
14232 | # Find a good install program. We prefer a C program (faster), | |
14233 | # so one script is as good as another. But avoid the broken or | |
14234 | # incompatible versions: | |
14235 | # SysV /etc/install, /usr/sbin/install | |
14236 | # SunOS /usr/etc/install | |
14237 | # IRIX /sbin/install | |
14238 | # AIX /bin/install | |
14239 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14240 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14241 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14242 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
14243 | # OS/2's system install, which has a completely different semantic | |
14244 | # ./install, which can be erroneously created by make from ./install.sh. | |
14245 | # Reject install programs that cannot install multiple files. | |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
14247 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
14248 | if test -z "$INSTALL"; then | |
14249 | if test "${ac_cv_path_install+set}" = set; then : | |
14250 | $as_echo_n "(cached) " >&6 | |
14251 | else | |
14252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14253 | for as_dir in $PATH | |
14254 | do | |
14255 | IFS=$as_save_IFS | |
14256 | test -z "$as_dir" && as_dir=. | |
14257 | # Account for people who put trailing slashes in PATH elements. | |
14258 | case $as_dir/ in #(( | |
14259 | ./ | .// | /[cC]/* | \ | |
14260 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
14261 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
14262 | /usr/ucb/* ) ;; | |
14263 | *) | |
14264 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14265 | # Don't use installbsd from OSF since it installs stuff as root | |
14266 | # by default. | |
14267 | for ac_prog in ginstall scoinst install; do | |
14268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14269 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
14270 | if test $ac_prog = install && | |
14271 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14272 | # AIX install. It has an incompatible calling convention. | |
14273 | : | |
14274 | elif test $ac_prog = install && | |
14275 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14276 | # program-specific install script used by HP pwplus--don't use. | |
14277 | : | |
14278 | else | |
14279 | rm -rf conftest.one conftest.two conftest.dir | |
14280 | echo one > conftest.one | |
14281 | echo two > conftest.two | |
14282 | mkdir conftest.dir | |
14283 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
14284 | test -s conftest.one && test -s conftest.two && | |
14285 | test -s conftest.dir/conftest.one && | |
14286 | test -s conftest.dir/conftest.two | |
14287 | then | |
14288 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14289 | break 3 | |
14290 | fi | |
14291 | fi | |
14292 | fi | |
14293 | done | |
14294 | done | |
14295 | ;; | |
14296 | esac | |
14297 | ||
14298 | done | |
14299 | IFS=$as_save_IFS | |
14300 | ||
14301 | rm -rf conftest.one conftest.two conftest.dir | |
14302 | ||
14303 | fi | |
14304 | if test "${ac_cv_path_install+set}" = set; then | |
14305 | INSTALL=$ac_cv_path_install | |
14306 | else | |
14307 | # As a last resort, use the slow shell script. Don't cache a | |
14308 | # value for INSTALL within a source directory, because that will | |
14309 | # break other packages using the cache if that directory is | |
14310 | # removed, or if the value is a relative name. | |
14311 | INSTALL=$ac_install_sh | |
14312 | fi | |
14313 | fi | |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
14315 | $as_echo "$INSTALL" >&6; } | |
14316 | ||
14317 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14318 | # It thinks the first close brace ends the variable substitution. | |
14319 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14320 | ||
14321 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14322 | ||
14323 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14324 | ||
14325 | ||
14326 | if test "X$prefix" = "XNONE"; then | |
14327 | acl_final_prefix="$ac_default_prefix" | |
14328 | else | |
14329 | acl_final_prefix="$prefix" | |
14330 | fi | |
14331 | if test "X$exec_prefix" = "XNONE"; then | |
14332 | acl_final_exec_prefix='${prefix}' | |
14333 | else | |
14334 | acl_final_exec_prefix="$exec_prefix" | |
14335 | fi | |
14336 | acl_save_prefix="$prefix" | |
14337 | prefix="$acl_final_prefix" | |
14338 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
14339 | prefix="$acl_save_prefix" | |
14340 | ||
14341 | ||
14342 | # Check whether --with-gnu-ld was given. | |
14343 | if test "${with_gnu_ld+set}" = set; then : | |
14344 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
14345 | else | |
14346 | with_gnu_ld=no | |
14347 | fi | |
14348 | ||
14349 | # Prepare PATH_SEPARATOR. | |
14350 | # The user is always right. | |
14351 | if test "${PATH_SEPARATOR+set}" != set; then | |
14352 | echo "#! /bin/sh" >conf$$.sh | |
14353 | echo "exit 0" >>conf$$.sh | |
14354 | chmod +x conf$$.sh | |
14355 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14356 | PATH_SEPARATOR=';' | |
14357 | else | |
14358 | PATH_SEPARATOR=: | |
14359 | fi | |
14360 | rm -f conf$$.sh | |
14361 | fi | |
14362 | ac_prog=ld | |
14363 | if test "$GCC" = yes; then | |
14364 | # Check if gcc -print-prog-name=ld gives a path. | |
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
14366 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
14367 | case $host in | |
14368 | *-*-mingw*) | |
14369 | # gcc leaves a trailing carriage return which upsets mingw | |
14370 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
14371 | *) | |
14372 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
14373 | esac | |
14374 | case $ac_prog in | |
14375 | # Accept absolute paths. | |
14376 | [\\/]* | [A-Za-z]:[\\/]*) | |
14377 | re_direlt='/[^/][^/]*/\.\./' | |
14378 | # Canonicalize the path of ld | |
14379 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
14380 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
14381 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
14382 | done | |
14383 | test -z "$LD" && LD="$ac_prog" | |
14384 | ;; | |
14385 | "") | |
14386 | # If it fails, then pretend we aren't using GCC. | |
14387 | ac_prog=ld | |
14388 | ;; | |
14389 | *) | |
14390 | # If it is relative, then search for the first ld in PATH. | |
14391 | with_gnu_ld=unknown | |
14392 | ;; | |
14393 | esac | |
14394 | elif test "$with_gnu_ld" = yes; then | |
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
14396 | $as_echo_n "checking for GNU ld... " >&6; } | |
14397 | else | |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
14399 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
14400 | fi | |
14401 | if test "${acl_cv_path_LD+set}" = set; then : | |
14402 | $as_echo_n "(cached) " >&6 | |
14403 | else | |
14404 | if test -z "$LD"; then | |
14405 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
14406 | for ac_dir in $PATH; do | |
14407 | test -z "$ac_dir" && ac_dir=. | |
14408 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
14409 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
14410 | # Check to see if the program is GNU ld. I'd rather use --version, | |
14411 | # but apparently some GNU ld's only accept -v. | |
14412 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
14413 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
14414 | *GNU* | *'with BFD'*) | |
14415 | test "$with_gnu_ld" != no && break ;; | |
14416 | *) | |
14417 | test "$with_gnu_ld" != yes && break ;; | |
14418 | esac | |
14419 | fi | |
14420 | done | |
14421 | IFS="$ac_save_ifs" | |
14422 | else | |
14423 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
14424 | fi | |
14425 | fi | |
14426 | ||
14427 | LD="$acl_cv_path_LD" | |
14428 | if test -n "$LD"; then | |
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14430 | $as_echo "$LD" >&6; } | |
14431 | else | |
14432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14433 | $as_echo "no" >&6; } | |
14434 | fi | |
14435 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
14437 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
14438 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
14439 | $as_echo_n "(cached) " >&6 | |
14440 | else | |
14441 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
14442 | case `$LD -v 2>&1 </dev/null` in | |
14443 | *GNU* | *'with BFD'*) | |
14444 | acl_cv_prog_gnu_ld=yes ;; | |
14445 | *) | |
14446 | acl_cv_prog_gnu_ld=no ;; | |
14447 | esac | |
14448 | fi | |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
14450 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
14451 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
14452 | ||
14453 | ||
14454 | ||
14455 | ||
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
14457 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
14458 | if test "${acl_cv_rpath+set}" = set; then : | |
14459 | $as_echo_n "(cached) " >&6 | |
14460 | else | |
14461 | ||
14462 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
14463 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
14464 | . ./conftest.sh | |
14465 | rm -f ./conftest.sh | |
14466 | acl_cv_rpath=done | |
14467 | ||
14468 | fi | |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
14470 | $as_echo "$acl_cv_rpath" >&6; } | |
14471 | wl="$acl_cv_wl" | |
14472 | acl_libext="$acl_cv_libext" | |
14473 | acl_shlibext="$acl_cv_shlibext" | |
14474 | acl_libname_spec="$acl_cv_libname_spec" | |
14475 | acl_library_names_spec="$acl_cv_library_names_spec" | |
14476 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
14477 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
14478 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
14479 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
14480 | # Check whether --enable-rpath was given. | |
14481 | if test "${enable_rpath+set}" = set; then : | |
14482 | enableval=$enable_rpath; : | |
14483 | else | |
14484 | enable_rpath=yes | |
14485 | fi | |
14486 | ||
14487 | ||
14488 | ||
14489 | acl_libdirstem=lib | |
14490 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
14491 | if test -n "$searchpath"; then | |
14492 | acl_save_IFS="${IFS= }"; IFS=":" | |
14493 | for searchdir in $searchpath; do | |
14494 | if test -d "$searchdir"; then | |
14495 | case "$searchdir" in | |
14496 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
14497 | *) searchdir=`cd "$searchdir" && pwd` | |
14498 | case "$searchdir" in | |
14499 | */lib64 ) acl_libdirstem=lib64 ;; | |
14500 | esac ;; | |
14501 | esac | |
14502 | fi | |
14503 | done | |
14504 | IFS="$acl_save_IFS" | |
14505 | fi | |
14506 | ||
14507 | ||
14508 | ||
14509 | ||
14510 | ||
14511 | ||
14512 | ||
14513 | ||
14514 | ||
14515 | use_additional=yes | |
14516 | ||
14517 | acl_save_prefix="$prefix" | |
14518 | prefix="$acl_final_prefix" | |
14519 | acl_save_exec_prefix="$exec_prefix" | |
14520 | exec_prefix="$acl_final_exec_prefix" | |
14521 | ||
14522 | eval additional_includedir=\"$includedir\" | |
14523 | eval additional_libdir=\"$libdir\" | |
14524 | ||
14525 | exec_prefix="$acl_save_exec_prefix" | |
14526 | prefix="$acl_save_prefix" | |
14527 | ||
14528 | ||
14529 | # Check whether --with-libiconv-prefix was given. | |
14530 | if test "${with_libiconv_prefix+set}" = set; then : | |
14531 | withval=$with_libiconv_prefix; | |
14532 | if test "X$withval" = "Xno"; then | |
14533 | use_additional=no | |
14534 | else | |
14535 | if test "X$withval" = "X"; then | |
14536 | ||
14537 | acl_save_prefix="$prefix" | |
14538 | prefix="$acl_final_prefix" | |
14539 | acl_save_exec_prefix="$exec_prefix" | |
14540 | exec_prefix="$acl_final_exec_prefix" | |
14541 | ||
14542 | eval additional_includedir=\"$includedir\" | |
14543 | eval additional_libdir=\"$libdir\" | |
14544 | ||
14545 | exec_prefix="$acl_save_exec_prefix" | |
14546 | prefix="$acl_save_prefix" | |
14547 | ||
14548 | else | |
14549 | additional_includedir="$withval/include" | |
14550 | additional_libdir="$withval/$acl_libdirstem" | |
14551 | fi | |
14552 | fi | |
14553 | ||
14554 | fi | |
14555 | ||
14556 | LIBICONV= | |
14557 | LTLIBICONV= | |
14558 | INCICONV= | |
14559 | LIBICONV_PREFIX= | |
14560 | rpathdirs= | |
14561 | ltrpathdirs= | |
14562 | names_already_handled= | |
14563 | names_next_round='iconv ' | |
14564 | while test -n "$names_next_round"; do | |
14565 | names_this_round="$names_next_round" | |
14566 | names_next_round= | |
14567 | for name in $names_this_round; do | |
14568 | already_handled= | |
14569 | for n in $names_already_handled; do | |
14570 | if test "$n" = "$name"; then | |
14571 | already_handled=yes | |
14572 | break | |
14573 | fi | |
14574 | done | |
14575 | if test -z "$already_handled"; then | |
14576 | names_already_handled="$names_already_handled $name" | |
14577 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
14578 | eval value=\"\$HAVE_LIB$uppername\" | |
14579 | if test -n "$value"; then | |
14580 | if test "$value" = yes; then | |
14581 | eval value=\"\$LIB$uppername\" | |
14582 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
14583 | eval value=\"\$LTLIB$uppername\" | |
14584 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
14585 | else | |
14586 | : | |
14587 | fi | |
14588 | else | |
14589 | found_dir= | |
14590 | found_la= | |
14591 | found_so= | |
14592 | found_a= | |
14593 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
14594 | if test -n "$acl_shlibext"; then | |
14595 | shrext=".$acl_shlibext" # typically: shrext=.so | |
14596 | else | |
14597 | shrext= | |
14598 | fi | |
14599 | if test $use_additional = yes; then | |
14600 | dir="$additional_libdir" | |
14601 | if test -n "$acl_shlibext"; then | |
14602 | if test -f "$dir/$libname$shrext"; then | |
14603 | found_dir="$dir" | |
14604 | found_so="$dir/$libname$shrext" | |
14605 | else | |
14606 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14607 | ver=`(cd "$dir" && \ | |
14608 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14609 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14610 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14611 | | sed 1q ) 2>/dev/null` | |
14612 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14613 | found_dir="$dir" | |
14614 | found_so="$dir/$libname$shrext.$ver" | |
14615 | fi | |
14616 | else | |
14617 | eval library_names=\"$acl_library_names_spec\" | |
14618 | for f in $library_names; do | |
14619 | if test -f "$dir/$f"; then | |
14620 | found_dir="$dir" | |
14621 | found_so="$dir/$f" | |
14622 | break | |
14623 | fi | |
14624 | done | |
14625 | fi | |
14626 | fi | |
14627 | fi | |
14628 | if test "X$found_dir" = "X"; then | |
14629 | if test -f "$dir/$libname.$acl_libext"; then | |
14630 | found_dir="$dir" | |
14631 | found_a="$dir/$libname.$acl_libext" | |
14632 | fi | |
14633 | fi | |
14634 | if test "X$found_dir" != "X"; then | |
14635 | if test -f "$dir/$libname.la"; then | |
14636 | found_la="$dir/$libname.la" | |
14637 | fi | |
14638 | fi | |
14639 | fi | |
14640 | if test "X$found_dir" = "X"; then | |
14641 | for x in $LDFLAGS $LTLIBICONV; do | |
14642 | ||
14643 | acl_save_prefix="$prefix" | |
14644 | prefix="$acl_final_prefix" | |
14645 | acl_save_exec_prefix="$exec_prefix" | |
14646 | exec_prefix="$acl_final_exec_prefix" | |
14647 | eval x=\"$x\" | |
14648 | exec_prefix="$acl_save_exec_prefix" | |
14649 | prefix="$acl_save_prefix" | |
14650 | ||
14651 | case "$x" in | |
14652 | -L*) | |
14653 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
14654 | if test -n "$acl_shlibext"; then | |
14655 | if test -f "$dir/$libname$shrext"; then | |
14656 | found_dir="$dir" | |
14657 | found_so="$dir/$libname$shrext" | |
14658 | else | |
14659 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
14660 | ver=`(cd "$dir" && \ | |
14661 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
14662 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
14663 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
14664 | | sed 1q ) 2>/dev/null` | |
14665 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
14666 | found_dir="$dir" | |
14667 | found_so="$dir/$libname$shrext.$ver" | |
14668 | fi | |
14669 | else | |
14670 | eval library_names=\"$acl_library_names_spec\" | |
14671 | for f in $library_names; do | |
14672 | if test -f "$dir/$f"; then | |
14673 | found_dir="$dir" | |
14674 | found_so="$dir/$f" | |
14675 | break | |
14676 | fi | |
14677 | done | |
14678 | fi | |
14679 | fi | |
14680 | fi | |
14681 | if test "X$found_dir" = "X"; then | |
14682 | if test -f "$dir/$libname.$acl_libext"; then | |
14683 | found_dir="$dir" | |
14684 | found_a="$dir/$libname.$acl_libext" | |
14685 | fi | |
14686 | fi | |
14687 | if test "X$found_dir" != "X"; then | |
14688 | if test -f "$dir/$libname.la"; then | |
14689 | found_la="$dir/$libname.la" | |
14690 | fi | |
14691 | fi | |
14692 | ;; | |
14693 | esac | |
14694 | if test "X$found_dir" != "X"; then | |
14695 | break | |
14696 | fi | |
14697 | done | |
14698 | fi | |
14699 | if test "X$found_dir" != "X"; then | |
14700 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
14701 | if test "X$found_so" != "X"; then | |
14702 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then | |
14703 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14704 | else | |
14705 | haveit= | |
14706 | for x in $ltrpathdirs; do | |
14707 | if test "X$x" = "X$found_dir"; then | |
14708 | haveit=yes | |
14709 | break | |
14710 | fi | |
14711 | done | |
14712 | if test -z "$haveit"; then | |
14713 | ltrpathdirs="$ltrpathdirs $found_dir" | |
14714 | fi | |
14715 | if test "$acl_hardcode_direct" = yes; then | |
14716 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14717 | else | |
14718 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
14719 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14720 | haveit= | |
14721 | for x in $rpathdirs; do | |
14722 | if test "X$x" = "X$found_dir"; then | |
14723 | haveit=yes | |
14724 | break | |
14725 | fi | |
14726 | done | |
14727 | if test -z "$haveit"; then | |
14728 | rpathdirs="$rpathdirs $found_dir" | |
14729 | fi | |
14730 | else | |
14731 | haveit= | |
14732 | for x in $LDFLAGS $LIBICONV; do | |
14733 | ||
14734 | acl_save_prefix="$prefix" | |
14735 | prefix="$acl_final_prefix" | |
14736 | acl_save_exec_prefix="$exec_prefix" | |
14737 | exec_prefix="$acl_final_exec_prefix" | |
14738 | eval x=\"$x\" | |
14739 | exec_prefix="$acl_save_exec_prefix" | |
14740 | prefix="$acl_save_prefix" | |
14741 | ||
14742 | if test "X$x" = "X-L$found_dir"; then | |
14743 | haveit=yes | |
14744 | break | |
14745 | fi | |
14746 | done | |
14747 | if test -z "$haveit"; then | |
14748 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
14749 | fi | |
14750 | if test "$acl_hardcode_minus_L" != no; then | |
14751 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
14752 | else | |
14753 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14754 | fi | |
14755 | fi | |
14756 | fi | |
14757 | fi | |
14758 | else | |
14759 | if test "X$found_a" != "X"; then | |
14760 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
14761 | else | |
14762 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
14763 | fi | |
14764 | fi | |
14765 | additional_includedir= | |
14766 | case "$found_dir" in | |
14767 | */$acl_libdirstem | */$acl_libdirstem/) | |
14768 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
14769 | LIBICONV_PREFIX="$basedir" | |
14770 | additional_includedir="$basedir/include" | |
14771 | ;; | |
14772 | esac | |
14773 | if test "X$additional_includedir" != "X"; then | |
14774 | if test "X$additional_includedir" != "X/usr/include"; then | |
14775 | haveit= | |
14776 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
14777 | if test -n "$GCC"; then | |
14778 | case $host_os in | |
14779 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
14780 | esac | |
14781 | fi | |
14782 | fi | |
14783 | if test -z "$haveit"; then | |
14784 | for x in $CPPFLAGS $INCICONV; do | |
14785 | ||
14786 | acl_save_prefix="$prefix" | |
14787 | prefix="$acl_final_prefix" | |
14788 | acl_save_exec_prefix="$exec_prefix" | |
14789 | exec_prefix="$acl_final_exec_prefix" | |
14790 | eval x=\"$x\" | |
14791 | exec_prefix="$acl_save_exec_prefix" | |
14792 | prefix="$acl_save_prefix" | |
14793 | ||
14794 | if test "X$x" = "X-I$additional_includedir"; then | |
14795 | haveit=yes | |
14796 | break | |
14797 | fi | |
14798 | done | |
14799 | if test -z "$haveit"; then | |
14800 | if test -d "$additional_includedir"; then | |
14801 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
14802 | fi | |
14803 | fi | |
14804 | fi | |
14805 | fi | |
14806 | fi | |
14807 | if test -n "$found_la"; then | |
14808 | save_libdir="$libdir" | |
14809 | case "$found_la" in | |
14810 | */* | *\\*) . "$found_la" ;; | |
14811 | *) . "./$found_la" ;; | |
14812 | esac | |
14813 | libdir="$save_libdir" | |
14814 | for dep in $dependency_libs; do | |
14815 | case "$dep" in | |
14816 | -L*) | |
14817 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
14818 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then | |
14819 | haveit= | |
14820 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then | |
14821 | if test -n "$GCC"; then | |
14822 | case $host_os in | |
14823 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
14824 | esac | |
14825 | fi | |
14826 | fi | |
14827 | if test -z "$haveit"; then | |
14828 | haveit= | |
14829 | for x in $LDFLAGS $LIBICONV; do | |
14830 | ||
14831 | acl_save_prefix="$prefix" | |
14832 | prefix="$acl_final_prefix" | |
14833 | acl_save_exec_prefix="$exec_prefix" | |
14834 | exec_prefix="$acl_final_exec_prefix" | |
14835 | eval x=\"$x\" | |
14836 | exec_prefix="$acl_save_exec_prefix" | |
14837 | prefix="$acl_save_prefix" | |
14838 | ||
14839 | if test "X$x" = "X-L$additional_libdir"; then | |
14840 | haveit=yes | |
14841 | break | |
14842 | fi | |
14843 | done | |
14844 | if test -z "$haveit"; then | |
14845 | if test -d "$additional_libdir"; then | |
14846 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
14847 | fi | |
14848 | fi | |
14849 | haveit= | |
14850 | for x in $LDFLAGS $LTLIBICONV; do | |
14851 | ||
14852 | acl_save_prefix="$prefix" | |
14853 | prefix="$acl_final_prefix" | |
14854 | acl_save_exec_prefix="$exec_prefix" | |
14855 | exec_prefix="$acl_final_exec_prefix" | |
14856 | eval x=\"$x\" | |
14857 | exec_prefix="$acl_save_exec_prefix" | |
14858 | prefix="$acl_save_prefix" | |
14859 | ||
14860 | if test "X$x" = "X-L$additional_libdir"; then | |
14861 | haveit=yes | |
14862 | break | |
14863 | fi | |
14864 | done | |
14865 | if test -z "$haveit"; then | |
14866 | if test -d "$additional_libdir"; then | |
14867 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
14868 | fi | |
14869 | fi | |
14870 | fi | |
14871 | fi | |
14872 | ;; | |
14873 | -R*) | |
14874 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
14875 | if test "$enable_rpath" != no; then | |
14876 | haveit= | |
14877 | for x in $rpathdirs; do | |
14878 | if test "X$x" = "X$dir"; then | |
14879 | haveit=yes | |
14880 | break | |
14881 | fi | |
14882 | done | |
14883 | if test -z "$haveit"; then | |
14884 | rpathdirs="$rpathdirs $dir" | |
14885 | fi | |
14886 | haveit= | |
14887 | for x in $ltrpathdirs; do | |
14888 | if test "X$x" = "X$dir"; then | |
14889 | haveit=yes | |
14890 | break | |
14891 | fi | |
14892 | done | |
14893 | if test -z "$haveit"; then | |
14894 | ltrpathdirs="$ltrpathdirs $dir" | |
14895 | fi | |
14896 | fi | |
14897 | ;; | |
14898 | -l*) | |
14899 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
14900 | ;; | |
14901 | *.la) | |
14902 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
14903 | ;; | |
14904 | *) | |
14905 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
14906 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
14907 | ;; | |
14908 | esac | |
14909 | done | |
14910 | fi | |
14911 | else | |
14912 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
14913 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
14914 | fi | |
14915 | fi | |
14916 | fi | |
14917 | done | |
14918 | done | |
14919 | if test "X$rpathdirs" != "X"; then | |
14920 | if test -n "$acl_hardcode_libdir_separator"; then | |
14921 | alldirs= | |
14922 | for found_dir in $rpathdirs; do | |
14923 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
14924 | done | |
14925 | acl_save_libdir="$libdir" | |
14926 | libdir="$alldirs" | |
14927 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
14928 | libdir="$acl_save_libdir" | |
14929 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
14930 | else | |
14931 | for found_dir in $rpathdirs; do | |
14932 | acl_save_libdir="$libdir" | |
14933 | libdir="$found_dir" | |
14934 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
14935 | libdir="$acl_save_libdir" | |
14936 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
14937 | done | |
14938 | fi | |
14939 | fi | |
14940 | if test "X$ltrpathdirs" != "X"; then | |
14941 | for found_dir in $ltrpathdirs; do | |
14942 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
14943 | done | |
14944 | fi | |
14945 | ||
14946 | ||
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | ||
14952 | am_save_CPPFLAGS="$CPPFLAGS" | |
14953 | ||
14954 | for element in $INCICONV; do | |
14955 | haveit= | |
14956 | for x in $CPPFLAGS; do | |
14957 | ||
14958 | acl_save_prefix="$prefix" | |
14959 | prefix="$acl_final_prefix" | |
14960 | acl_save_exec_prefix="$exec_prefix" | |
14961 | exec_prefix="$acl_final_exec_prefix" | |
14962 | eval x=\"$x\" | |
14963 | exec_prefix="$acl_save_exec_prefix" | |
14964 | prefix="$acl_save_prefix" | |
14965 | ||
14966 | if test "X$x" = "X$element"; then | |
14967 | haveit=yes | |
14968 | break | |
14969 | fi | |
14970 | done | |
14971 | if test -z "$haveit"; then | |
14972 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
14973 | fi | |
14974 | done | |
14975 | ||
14976 | ||
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
14978 | $as_echo_n "checking for iconv... " >&6; } | |
14979 | if test "${am_cv_func_iconv+set}" = set; then : | |
14980 | $as_echo_n "(cached) " >&6 | |
14981 | else | |
14982 | ||
14983 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
14984 | am_cv_lib_iconv=no | |
14985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14986 | /* end confdefs.h. */ | |
14987 | #include <stdlib.h> | |
14988 | #include <iconv.h> | |
14989 | int | |
14990 | main () | |
14991 | { | |
14992 | iconv_t cd = iconv_open("",""); | |
14993 | iconv(cd,NULL,NULL,NULL,NULL); | |
14994 | iconv_close(cd); | |
14995 | ; | |
14996 | return 0; | |
14997 | } | |
14998 | _ACEOF | |
14999 | if ac_fn_c_try_link "$LINENO"; then : | |
15000 | am_cv_func_iconv=yes | |
15001 | fi | |
15002 | rm -f core conftest.err conftest.$ac_objext \ | |
15003 | conftest$ac_exeext conftest.$ac_ext | |
15004 | if test "$am_cv_func_iconv" != yes; then | |
15005 | am_save_LIBS="$LIBS" | |
15006 | LIBS="$LIBS $LIBICONV" | |
15007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15008 | /* end confdefs.h. */ | |
15009 | #include <stdlib.h> | |
15010 | #include <iconv.h> | |
15011 | int | |
15012 | main () | |
15013 | { | |
15014 | iconv_t cd = iconv_open("",""); | |
15015 | iconv(cd,NULL,NULL,NULL,NULL); | |
15016 | iconv_close(cd); | |
15017 | ; | |
15018 | return 0; | |
15019 | } | |
15020 | _ACEOF | |
15021 | if ac_fn_c_try_link "$LINENO"; then : | |
15022 | am_cv_lib_iconv=yes | |
15023 | am_cv_func_iconv=yes | |
15024 | fi | |
15025 | rm -f core conftest.err conftest.$ac_objext \ | |
15026 | conftest$ac_exeext conftest.$ac_ext | |
15027 | LIBS="$am_save_LIBS" | |
15028 | fi | |
15029 | ||
15030 | fi | |
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
15032 | $as_echo "$am_cv_func_iconv" >&6; } | |
15033 | if test "$am_cv_func_iconv" = yes; then | |
15034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
15035 | $as_echo_n "checking for working iconv... " >&6; } | |
15036 | if test "${am_cv_func_iconv_works+set}" = set; then : | |
15037 | $as_echo_n "(cached) " >&6 | |
15038 | else | |
15039 | ||
15040 | am_save_LIBS="$LIBS" | |
15041 | if test $am_cv_lib_iconv = yes; then | |
15042 | LIBS="$LIBS $LIBICONV" | |
15043 | fi | |
15044 | if test "$cross_compiling" = yes; then : | |
15045 | case "$host_os" in | |
15046 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
15047 | *) am_cv_func_iconv_works="guessing yes" ;; | |
15048 | esac | |
15049 | else | |
15050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15051 | /* end confdefs.h. */ | |
15052 | ||
15053 | #include <iconv.h> | |
15054 | #include <string.h> | |
15055 | int main () | |
15056 | { | |
15057 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
15058 | returns. */ | |
15059 | { | |
15060 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
15061 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
15062 | { | |
15063 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
15064 | char buf[10]; | |
15065 | const char *inptr = input; | |
15066 | size_t inbytesleft = strlen (input); | |
15067 | char *outptr = buf; | |
15068 | size_t outbytesleft = sizeof (buf); | |
15069 | size_t res = iconv (cd_utf8_to_88591, | |
15070 | (char **) &inptr, &inbytesleft, | |
15071 | &outptr, &outbytesleft); | |
15072 | if (res == 0) | |
15073 | return 1; | |
15074 | } | |
15075 | } | |
15076 | #if 0 /* This bug could be worked around by the caller. */ | |
15077 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
15078 | { | |
15079 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
15080 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
15081 | { | |
15082 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
15083 | char buf[50]; | |
15084 | const char *inptr = input; | |
15085 | size_t inbytesleft = strlen (input); | |
15086 | char *outptr = buf; | |
15087 | size_t outbytesleft = sizeof (buf); | |
15088 | size_t res = iconv (cd_88591_to_utf8, | |
15089 | (char **) &inptr, &inbytesleft, | |
15090 | &outptr, &outbytesleft); | |
15091 | if ((int)res > 0) | |
15092 | return 1; | |
15093 | } | |
15094 | } | |
15095 | #endif | |
15096 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
15097 | provided. */ | |
15098 | if (/* Try standardized names. */ | |
15099 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
15100 | /* Try IRIX, OSF/1 names. */ | |
15101 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
15102 | /* Try AIX names. */ | |
15103 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
15104 | /* Try HP-UX names. */ | |
15105 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
15106 | return 1; | |
15107 | return 0; | |
15108 | } | |
15109 | _ACEOF | |
15110 | if ac_fn_c_try_run "$LINENO"; then : | |
15111 | am_cv_func_iconv_works=yes | |
15112 | else | |
15113 | am_cv_func_iconv_works=no | |
15114 | fi | |
15115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15116 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15117 | fi | |
15118 | ||
15119 | LIBS="$am_save_LIBS" | |
15120 | ||
15121 | fi | |
15122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
15123 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
15124 | case "$am_cv_func_iconv_works" in | |
15125 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
15126 | *) am_func_iconv=yes ;; | |
15127 | esac | |
15128 | else | |
15129 | am_func_iconv=no am_cv_lib_iconv=no | |
15130 | fi | |
15131 | if test "$am_func_iconv" = yes; then | |
15132 | ||
15133 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
15134 | ||
15135 | fi | |
15136 | if test "$am_cv_lib_iconv" = yes; then | |
15137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
15138 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
15139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
15140 | $as_echo "$LIBICONV" >&6; } | |
15141 | else | |
15142 | CPPFLAGS="$am_save_CPPFLAGS" | |
15143 | LIBICONV= | |
15144 | LTLIBICONV= | |
15145 | fi | |
15146 | ||
15147 | ||
15148 | ||
15149 | if test "$am_cv_func_iconv" = yes; then | |
15150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
15151 | $as_echo_n "checking for iconv declaration... " >&6; } | |
15152 | if test "${am_cv_proto_iconv+set}" = set; then : | |
15153 | $as_echo_n "(cached) " >&6 | |
15154 | else | |
15155 | ||
15156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15157 | /* end confdefs.h. */ | |
15158 | ||
15159 | #include <stdlib.h> | |
15160 | #include <iconv.h> | |
15161 | extern | |
15162 | #ifdef __cplusplus | |
15163 | "C" | |
15164 | #endif | |
15165 | #if defined(__STDC__) || defined(__cplusplus) | |
15166 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15167 | #else | |
15168 | size_t iconv(); | |
15169 | #endif | |
15170 | ||
15171 | int | |
15172 | main () | |
15173 | { | |
15174 | ||
15175 | ; | |
15176 | return 0; | |
15177 | } | |
15178 | _ACEOF | |
15179 | if ac_fn_c_try_compile "$LINENO"; then : | |
15180 | am_cv_proto_iconv_arg1="" | |
15181 | else | |
15182 | am_cv_proto_iconv_arg1="const" | |
15183 | fi | |
15184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15185 | 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);" | |
15186 | fi | |
15187 | ||
15188 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- | |
15190 | }$am_cv_proto_iconv" >&5 | |
15191 | $as_echo "${ac_t:- | |
15192 | }$am_cv_proto_iconv" >&6; } | |
15193 | ||
15194 | cat >>confdefs.h <<_ACEOF | |
15195 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
15196 | _ACEOF | |
15197 | ||
15198 | fi | |
15199 | ||
15200 | case $am_cv_func_iconv in #( | |
15201 | yes) : | |
15202 | ;; #( | |
15203 | *) : | |
15204 | as_fn_error "You need iconv" "$LINENO" 5 ;; | |
15205 | esac | |
15206 | ||
15207 | ||
15208 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15209 | if test -n "$ac_tool_prefix"; then | |
15210 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15211 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15213 | $as_echo_n "checking for $ac_word... " >&6; } | |
15214 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
15215 | $as_echo_n "(cached) " >&6 | |
15216 | else | |
15217 | case $PKG_CONFIG in | |
15218 | [\\/]* | ?:[\\/]*) | |
15219 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15220 | ;; | |
15221 | *) | |
15222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15223 | for as_dir in $PATH | |
15224 | do | |
15225 | IFS=$as_save_IFS | |
15226 | test -z "$as_dir" && as_dir=. | |
15227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15229 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15231 | break 2 | |
15232 | fi | |
15233 | done | |
15234 | done | |
15235 | IFS=$as_save_IFS | |
15236 | ||
15237 | ;; | |
15238 | esac | |
15239 | fi | |
15240 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15241 | if test -n "$PKG_CONFIG"; then | |
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15243 | $as_echo "$PKG_CONFIG" >&6; } | |
15244 | else | |
15245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15246 | $as_echo "no" >&6; } | |
15247 | fi | |
15248 | ||
15249 | ||
15250 | fi | |
15251 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15252 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15253 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15254 | set dummy pkg-config; ac_word=$2 | |
15255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15256 | $as_echo_n "checking for $ac_word... " >&6; } | |
15257 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
15258 | $as_echo_n "(cached) " >&6 | |
15259 | else | |
15260 | case $ac_pt_PKG_CONFIG in | |
15261 | [\\/]* | ?:[\\/]*) | |
15262 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
15263 | ;; | |
15264 | *) | |
15265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15266 | for as_dir in $PATH | |
15267 | do | |
15268 | IFS=$as_save_IFS | |
15269 | test -z "$as_dir" && as_dir=. | |
15270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15272 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15273 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15274 | break 2 | |
15275 | fi | |
15276 | done | |
15277 | done | |
15278 | IFS=$as_save_IFS | |
15279 | ||
15280 | ;; | |
15281 | esac | |
15282 | fi | |
15283 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
15284 | if test -n "$ac_pt_PKG_CONFIG"; then | |
15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
15286 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
15287 | else | |
15288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15289 | $as_echo "no" >&6; } | |
15290 | fi | |
15291 | ||
15292 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
15293 | PKG_CONFIG="" | |
15294 | else | |
15295 | case $cross_compiling:$ac_tool_warned in | |
15296 | yes:) | |
15297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15299 | ac_tool_warned=yes ;; | |
15300 | esac | |
15301 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
15302 | fi | |
15303 | else | |
15304 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
15305 | fi | |
15306 | ||
15307 | fi | |
15308 | if test -n "$PKG_CONFIG"; then | |
15309 | _pkg_min_version=0.9.0 | |
15310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
15311 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
15312 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15314 | $as_echo "yes" >&6; } | |
15315 | else | |
15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15317 | $as_echo "no" >&6; } | |
15318 | PKG_CONFIG="" | |
15319 | fi | |
15320 | ||
15321 | fi | |
15322 | ||
15323 | pkg_failed=no | |
15324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15325 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15326 | ||
15327 | if test -n "$PKG_CONFIG"; then | |
15328 | if test -n "$WEBKIT_CFLAGS"; then | |
15329 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15330 | else | |
15331 | if test -n "$PKG_CONFIG" && \ | |
15332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15333 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15334 | ac_status=$? | |
15335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15336 | test $ac_status = 0; }; then | |
15337 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null` | |
15338 | else | |
15339 | pkg_failed=yes | |
15340 | fi | |
15341 | fi | |
15342 | else | |
15343 | pkg_failed=untried | |
15344 | fi | |
15345 | if test -n "$PKG_CONFIG"; then | |
15346 | if test -n "$WEBKIT_LIBS"; then | |
15347 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15348 | else | |
15349 | if test -n "$PKG_CONFIG" && \ | |
15350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5 | |
15351 | ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5 | |
15352 | ac_status=$? | |
15353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15354 | test $ac_status = 0; }; then | |
15355 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null` | |
15356 | else | |
15357 | pkg_failed=yes | |
15358 | fi | |
15359 | fi | |
15360 | else | |
15361 | pkg_failed=untried | |
15362 | fi | |
15363 | ||
15364 | ||
15365 | ||
15366 | if test $pkg_failed = yes; then | |
15367 | ||
15368 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15369 | _pkg_short_errors_supported=yes | |
15370 | else | |
15371 | _pkg_short_errors_supported=no | |
15372 | fi | |
15373 | if test $_pkg_short_errors_supported = yes; then | |
15374 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"` | |
15375 | else | |
15376 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"` | |
15377 | fi | |
15378 | # Put the nasty error message in config.log where it belongs | |
15379 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15380 | ||
15381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15382 | $as_echo "no" >&6; } | |
15383 | ||
15384 | ||
15385 | pkg_failed=no | |
15386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15387 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15388 | ||
15389 | if test -n "$PKG_CONFIG"; then | |
15390 | if test -n "$WEBKIT_CFLAGS"; then | |
15391 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15392 | else | |
15393 | if test -n "$PKG_CONFIG" && \ | |
15394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15395 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15396 | ac_status=$? | |
15397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15398 | test $ac_status = 0; }; then | |
15399 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15400 | else | |
15401 | pkg_failed=yes | |
15402 | fi | |
15403 | fi | |
15404 | else | |
15405 | pkg_failed=untried | |
15406 | fi | |
15407 | if test -n "$PKG_CONFIG"; then | |
15408 | if test -n "$WEBKIT_LIBS"; then | |
15409 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15410 | else | |
15411 | if test -n "$PKG_CONFIG" && \ | |
15412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15413 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15414 | ac_status=$? | |
15415 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15416 | test $ac_status = 0; }; then | |
15417 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15418 | else | |
15419 | pkg_failed=yes | |
15420 | fi | |
15421 | fi | |
15422 | else | |
15423 | pkg_failed=untried | |
15424 | fi | |
15425 | ||
15426 | ||
15427 | ||
15428 | if test $pkg_failed = yes; then | |
15429 | ||
15430 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15431 | _pkg_short_errors_supported=yes | |
15432 | else | |
15433 | _pkg_short_errors_supported=no | |
15434 | fi | |
15435 | if test $_pkg_short_errors_supported = yes; then | |
15436 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15437 | else | |
15438 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15439 | fi | |
15440 | # Put the nasty error message in config.log where it belongs | |
15441 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15442 | ||
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15444 | $as_echo "no" >&6; } | |
15445 | WEBKIT=no | |
15446 | elif test $pkg_failed = untried; then | |
15447 | WEBKIT=no | |
15448 | else | |
15449 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15450 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15452 | $as_echo "yes" >&6; } | |
15453 | WEBKIT=yes | |
15454 | fi | |
15455 | ||
15456 | elif test $pkg_failed = untried; then | |
15457 | ||
15458 | ||
15459 | pkg_failed=no | |
15460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 | |
15461 | $as_echo_n "checking for WEBKIT... " >&6; } | |
15462 | ||
15463 | if test -n "$PKG_CONFIG"; then | |
15464 | if test -n "$WEBKIT_CFLAGS"; then | |
15465 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
15466 | else | |
15467 | if test -n "$PKG_CONFIG" && \ | |
15468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15469 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15470 | ac_status=$? | |
15471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15472 | test $ac_status = 0; }; then | |
15473 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null` | |
15474 | else | |
15475 | pkg_failed=yes | |
15476 | fi | |
15477 | fi | |
15478 | else | |
15479 | pkg_failed=untried | |
15480 | fi | |
15481 | if test -n "$PKG_CONFIG"; then | |
15482 | if test -n "$WEBKIT_LIBS"; then | |
15483 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
15484 | else | |
15485 | if test -n "$PKG_CONFIG" && \ | |
15486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5 | |
15487 | ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5 | |
15488 | ac_status=$? | |
15489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15490 | test $ac_status = 0; }; then | |
15491 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null` | |
15492 | else | |
15493 | pkg_failed=yes | |
15494 | fi | |
15495 | fi | |
15496 | else | |
15497 | pkg_failed=untried | |
15498 | fi | |
15499 | ||
15500 | ||
15501 | ||
15502 | if test $pkg_failed = yes; then | |
15503 | ||
15504 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15505 | _pkg_short_errors_supported=yes | |
15506 | else | |
15507 | _pkg_short_errors_supported=no | |
15508 | fi | |
15509 | if test $_pkg_short_errors_supported = yes; then | |
15510 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"` | |
15511 | else | |
15512 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"` | |
15513 | fi | |
15514 | # Put the nasty error message in config.log where it belongs | |
15515 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
15516 | ||
15517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15518 | $as_echo "no" >&6; } | |
15519 | WEBKIT=no | |
15520 | elif test $pkg_failed = untried; then | |
15521 | WEBKIT=no | |
15522 | else | |
15523 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15524 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15526 | $as_echo "yes" >&6; } | |
15527 | WEBKIT=yes | |
15528 | fi | |
15529 | ||
15530 | else | |
15531 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
15532 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
15533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15534 | $as_echo "yes" >&6; } | |
15535 | WEBKIT=yes | |
15536 | fi | |
15537 | case $WEBKIT in #( | |
15538 | yes) : | |
15539 | ||
15540 | ||
15541 | pkg_failed=no | |
15542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 | |
15543 | $as_echo_n "checking for LIBFFI... " >&6; } | |
15544 | ||
15545 | if test -n "$PKG_CONFIG"; then | |
15546 | if test -n "$LIBFFI_CFLAGS"; then | |
15547 | pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" | |
15548 | else | |
15549 | if test -n "$PKG_CONFIG" && \ | |
15550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
15551 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
15552 | ac_status=$? | |
15553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15554 | test $ac_status = 0; }; then | |
15555 | pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` | |
15556 | else | |
15557 | pkg_failed=yes | |
15558 | fi | |
15559 | fi | |
15560 | else | |
15561 | pkg_failed=untried | |
15562 | fi | |
15563 | if test -n "$PKG_CONFIG"; then | |
15564 | if test -n "$LIBFFI_LIBS"; then | |
15565 | pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" | |
15566 | else | |
15567 | if test -n "$PKG_CONFIG" && \ | |
15568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 | |
15569 | ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 | |
15570 | ac_status=$? | |
15571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15572 | test $ac_status = 0; }; then | |
15573 | pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` | |
15574 | else | |
15575 | pkg_failed=yes | |
15576 | fi | |
15577 | fi | |
15578 | else | |
15579 | pkg_failed=untried | |
15580 | fi | |
15581 | ||
15582 | ||
15583 | ||
15584 | if test $pkg_failed = yes; then | |
15585 | ||
15586 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15587 | _pkg_short_errors_supported=yes | |
15588 | else | |
15589 | _pkg_short_errors_supported=no | |
15590 | fi | |
15591 | if test $_pkg_short_errors_supported = yes; then | |
15592 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"` | |
15593 | else | |
15594 | LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"` | |
15595 | fi | |
15596 | # Put the nasty error message in config.log where it belongs | |
15597 | echo "$LIBFFI_PKG_ERRORS" >&5 | |
15598 | ||
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15600 | $as_echo "no" >&6; } | |
15601 | ||
15602 | for ac_header in ffi.h ffi/ffi.h | |
15603 | do : | |
15604 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15605 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15606 | eval as_val=\$$as_ac_Header | |
15607 | if test "x$as_val" = x""yes; then : | |
15608 | cat >>confdefs.h <<_ACEOF | |
15609 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15610 | _ACEOF | |
15611 | break | |
15612 | fi | |
15613 | ||
15614 | done | |
15615 | ||
15616 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
15617 | ||
15618 | as_fn_error "You need libffi" "$LINENO" 5 | |
15619 | ||
15620 | fi | |
15621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
15622 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
15623 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15624 | $as_echo_n "(cached) " >&6 | |
15625 | else | |
15626 | ac_func_search_save_LIBS=$LIBS | |
15627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15628 | /* end confdefs.h. */ | |
15629 | ||
15630 | /* Override any GCC internal prototype to avoid an error. | |
15631 | Use char because int might match the return type of a GCC | |
15632 | builtin and then its argument prototype would still apply. */ | |
15633 | #ifdef __cplusplus | |
15634 | extern "C" | |
15635 | #endif | |
15636 | char ffi_call (); | |
15637 | int | |
15638 | main () | |
15639 | { | |
15640 | return ffi_call (); | |
15641 | ; | |
15642 | return 0; | |
15643 | } | |
15644 | _ACEOF | |
15645 | for ac_lib in '' ffi; do | |
15646 | if test -z "$ac_lib"; then | |
15647 | ac_res="none required" | |
15648 | else | |
15649 | ac_res=-l$ac_lib | |
15650 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15651 | fi | |
15652 | if ac_fn_c_try_link "$LINENO"; then : | |
15653 | ac_cv_search_ffi_call=$ac_res | |
15654 | fi | |
15655 | rm -f core conftest.err conftest.$ac_objext \ | |
15656 | conftest$ac_exeext | |
15657 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15658 | break | |
15659 | fi | |
15660 | done | |
15661 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15662 | ||
15663 | else | |
15664 | ac_cv_search_ffi_call=no | |
15665 | fi | |
15666 | rm conftest.$ac_ext | |
15667 | LIBS=$ac_func_search_save_LIBS | |
15668 | fi | |
15669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
15670 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
15671 | ac_res=$ac_cv_search_ffi_call | |
15672 | if test "$ac_res" != no; then : | |
15673 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15674 | ||
15675 | fi | |
15676 | ||
15677 | case $ac_cv_search_ffi_call in #( | |
15678 | no) : | |
15679 | ||
15680 | as_fn_error "You need libffi" "$LINENO" 5 | |
15681 | ;; #( | |
15682 | *) : | |
15683 | ;; | |
15684 | esac | |
15685 | ||
15686 | elif test $pkg_failed = untried; then | |
15687 | ||
15688 | for ac_header in ffi.h ffi/ffi.h | |
15689 | do : | |
15690 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15691 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15692 | eval as_val=\$$as_ac_Header | |
15693 | if test "x$as_val" = x""yes; then : | |
15694 | cat >>confdefs.h <<_ACEOF | |
15695 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15696 | _ACEOF | |
15697 | break | |
15698 | fi | |
15699 | ||
15700 | done | |
15701 | ||
15702 | if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then : | |
15703 | ||
15704 | as_fn_error "You need libffi" "$LINENO" 5 | |
15705 | ||
15706 | fi | |
15707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5 | |
15708 | $as_echo_n "checking for library containing ffi_call... " >&6; } | |
15709 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15710 | $as_echo_n "(cached) " >&6 | |
15711 | else | |
15712 | ac_func_search_save_LIBS=$LIBS | |
15713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15714 | /* end confdefs.h. */ | |
15715 | ||
15716 | /* Override any GCC internal prototype to avoid an error. | |
15717 | Use char because int might match the return type of a GCC | |
15718 | builtin and then its argument prototype would still apply. */ | |
15719 | #ifdef __cplusplus | |
15720 | extern "C" | |
15721 | #endif | |
15722 | char ffi_call (); | |
15723 | int | |
15724 | main () | |
15725 | { | |
15726 | return ffi_call (); | |
15727 | ; | |
15728 | return 0; | |
15729 | } | |
15730 | _ACEOF | |
15731 | for ac_lib in '' ffi; do | |
15732 | if test -z "$ac_lib"; then | |
15733 | ac_res="none required" | |
15734 | else | |
15735 | ac_res=-l$ac_lib | |
15736 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15737 | fi | |
15738 | if ac_fn_c_try_link "$LINENO"; then : | |
15739 | ac_cv_search_ffi_call=$ac_res | |
15740 | fi | |
15741 | rm -f core conftest.err conftest.$ac_objext \ | |
15742 | conftest$ac_exeext | |
15743 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15744 | break | |
15745 | fi | |
15746 | done | |
15747 | if test "${ac_cv_search_ffi_call+set}" = set; then : | |
15748 | ||
15749 | else | |
15750 | ac_cv_search_ffi_call=no | |
15751 | fi | |
15752 | rm conftest.$ac_ext | |
15753 | LIBS=$ac_func_search_save_LIBS | |
15754 | fi | |
15755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5 | |
15756 | $as_echo "$ac_cv_search_ffi_call" >&6; } | |
15757 | ac_res=$ac_cv_search_ffi_call | |
15758 | if test "$ac_res" != no; then : | |
15759 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15760 | ||
15761 | fi | |
15762 | ||
15763 | case $ac_cv_search_ffi_call in #( | |
15764 | no) : | |
15765 | ||
15766 | as_fn_error "You need libffi" "$LINENO" 5 | |
15767 | ;; #( | |
15768 | *) : | |
15769 | ;; | |
15770 | esac | |
15771 | ||
15772 | else | |
15773 | LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS | |
15774 | LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS | |
15775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15776 | $as_echo "yes" >&6; } | |
15777 | : | |
15778 | fi | |
15779 | ;; #( | |
15780 | *) : | |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5 | |
15782 | $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;; | |
15783 | esac | |
15784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 | |
15785 | $as_echo_n "checking for GNU make... " >&6; } | |
15786 | if test "${_cv_gnu_make_command+set}" = set; then : | |
15787 | $as_echo_n "(cached) " >&6 | |
15788 | else | |
15789 | _cv_gnu_make_command='' ; | |
15790 | for a in "$MAKE" make gmake gnumake ; do | |
15791 | if test -z "$a" ; then continue ; fi ; | |
15792 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
15793 | _cv_gnu_make_command=$a ; | |
15794 | break; | |
15795 | fi | |
15796 | done ; | |
15797 | ||
15798 | fi | |
15799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 | |
15800 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
15801 | if test "x$_cv_gnu_make_command" != "x" ; then | |
15802 | ifGNUmake='' ; | |
15803 | else | |
15804 | ifGNUmake='#' ; | |
15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
15806 | $as_echo "\"Not found\"" >&6; }; | |
15807 | fi | |
15808 | ||
15809 | ||
15810 | if test "x$_cv_gnu_make_command" = x; then : | |
15811 | as_fn_error "You need GNU make" "$LINENO" 5 | |
15812 | fi | |
15813 | # XXX: gnustep | |
15814 | ac_ext=mm | |
15815 | ac_cpp='$OBJCXXCPP $CPPFLAGS' | |
15816 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15817 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15818 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu | |
15819 | if test -n "$ac_tool_prefix"; then | |
15820 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15821 | do | |
15822 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
15823 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15825 | $as_echo_n "checking for $ac_word... " >&6; } | |
15826 | if test "${ac_cv_prog_OBJCXX+set}" = set; then : | |
15827 | $as_echo_n "(cached) " >&6 | |
15828 | else | |
15829 | if test -n "$OBJCXX"; then | |
15830 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. | |
15831 | else | |
15832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15833 | for as_dir in $PATH | |
15834 | do | |
15835 | IFS=$as_save_IFS | |
15836 | test -z "$as_dir" && as_dir=. | |
15837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15839 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" | |
15840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15841 | break 2 | |
15842 | fi | |
15843 | done | |
15844 | done | |
15845 | IFS=$as_save_IFS | |
15846 | ||
15847 | fi | |
15848 | fi | |
15849 | OBJCXX=$ac_cv_prog_OBJCXX | |
15850 | if test -n "$OBJCXX"; then | |
15851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 | |
15852 | $as_echo "$OBJCXX" >&6; } | |
15853 | else | |
15854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15855 | $as_echo "no" >&6; } | |
15856 | fi | |
15857 | ||
15858 | ||
15859 | test -n "$OBJCXX" && break | |
15860 | done | |
15861 | fi | |
15862 | if test -z "$OBJCXX"; then | |
15863 | ac_ct_OBJCXX=$OBJCXX | |
15864 | for ac_prog in g++ objc++ objcxx c++ CXX | |
15865 | do | |
15866 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15867 | set dummy $ac_prog; ac_word=$2 | |
15868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15869 | $as_echo_n "checking for $ac_word... " >&6; } | |
15870 | if test "${ac_cv_prog_ac_ct_OBJCXX+set}" = set; then : | |
15871 | $as_echo_n "(cached) " >&6 | |
15872 | else | |
15873 | if test -n "$ac_ct_OBJCXX"; then | |
15874 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. | |
15875 | else | |
15876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15877 | for as_dir in $PATH | |
15878 | do | |
15879 | IFS=$as_save_IFS | |
15880 | test -z "$as_dir" && as_dir=. | |
15881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15883 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" | |
15884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15885 | break 2 | |
15886 | fi | |
15887 | done | |
15888 | done | |
15889 | IFS=$as_save_IFS | |
15890 | ||
15891 | fi | |
15892 | fi | |
15893 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX | |
15894 | if test -n "$ac_ct_OBJCXX"; then | |
15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 | |
15896 | $as_echo "$ac_ct_OBJCXX" >&6; } | |
15897 | else | |
15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15899 | $as_echo "no" >&6; } | |
15900 | fi | |
15901 | ||
15902 | ||
15903 | test -n "$ac_ct_OBJCXX" && break | |
15904 | done | |
15905 | ||
15906 | if test "x$ac_ct_OBJCXX" = x; then | |
15907 | OBJCXX="g++" | |
15908 | else | |
15909 | case $cross_compiling:$ac_tool_warned in | |
15910 | yes:) | |
15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15912 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15913 | ac_tool_warned=yes ;; | |
15914 | esac | |
15915 | OBJCXX=$ac_ct_OBJCXX | |
15916 | fi | |
15917 | fi | |
15918 | ||
15919 | # Provide some information about the compiler. | |
15920 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 | |
15921 | set X $ac_compile | |
15922 | ac_compiler=$2 | |
15923 | for ac_option in --version -v -V -qversion; do | |
15924 | { { ac_try="$ac_compiler $ac_option >&5" | |
15925 | case "(($ac_try" in | |
15926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15927 | *) ac_try_echo=$ac_try;; | |
15928 | esac | |
15929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
15930 | $as_echo "$ac_try_echo"; } >&5 | |
15931 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
15932 | ac_status=$? | |
15933 | if test -s conftest.err; then | |
15934 | sed '10a\ | |
15935 | ... rest of stderr output deleted ... | |
15936 | 10q' conftest.err >conftest.er1 | |
15937 | cat conftest.er1 >&5 | |
15938 | fi | |
15939 | rm -f conftest.er1 conftest.err | |
15940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15941 | test $ac_status = 0; } | |
15942 | done | |
15943 | ||
15944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 | |
15945 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } | |
15946 | if test "${ac_cv_objcxx_compiler_gnu+set}" = set; then : | |
15947 | $as_echo_n "(cached) " >&6 | |
15948 | else | |
15949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15950 | /* end confdefs.h. */ | |
15951 | ||
15952 | int | |
15953 | main () | |
15954 | { | |
15955 | #ifndef __GNUC__ | |
15956 | choke me | |
15957 | #endif | |
15958 | ||
15959 | ; | |
15960 | return 0; | |
15961 | } | |
15962 | _ACEOF | |
15963 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
15964 | ac_compiler_gnu=yes | |
15965 | else | |
15966 | ac_compiler_gnu=no | |
15967 | fi | |
15968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15969 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu | |
15970 | ||
15971 | fi | |
15972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 | |
15973 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } | |
15974 | if test $ac_compiler_gnu = yes; then | |
15975 | GOBJCXX=yes | |
15976 | else | |
15977 | GOBJCXX= | |
15978 | fi | |
15979 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} | |
15980 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS | |
15981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 | |
15982 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } | |
15983 | if test "${ac_cv_prog_objcxx_g+set}" = set; then : | |
15984 | $as_echo_n "(cached) " >&6 | |
15985 | else | |
15986 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag | |
15987 | ac_objcxx_werror_flag=yes | |
15988 | ac_cv_prog_objcxx_g=no | |
15989 | OBJCXXFLAGS="-g" | |
15990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15991 | /* end confdefs.h. */ | |
15992 | ||
15993 | int | |
15994 | main () | |
15995 | { | |
15996 | ||
15997 | ; | |
15998 | return 0; | |
15999 | } | |
16000 | _ACEOF | |
16001 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16002 | ac_cv_prog_objcxx_g=yes | |
16003 | else | |
16004 | OBJCXXFLAGS="" | |
16005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16006 | /* end confdefs.h. */ | |
16007 | ||
16008 | int | |
16009 | main () | |
16010 | { | |
16011 | ||
16012 | ; | |
16013 | return 0; | |
16014 | } | |
16015 | _ACEOF | |
16016 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16017 | ||
16018 | else | |
16019 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag | |
16020 | OBJCXXFLAGS="-g" | |
16021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16022 | /* end confdefs.h. */ | |
16023 | ||
16024 | int | |
16025 | main () | |
16026 | { | |
16027 | ||
16028 | ; | |
16029 | return 0; | |
16030 | } | |
16031 | _ACEOF | |
16032 | if ac_fn_objcxx_try_compile "$LINENO"; then : | |
16033 | ac_cv_prog_objcxx_g=yes | |
16034 | fi | |
16035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16036 | fi | |
16037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16038 | fi | |
16039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16040 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag | |
16041 | fi | |
16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 | |
16043 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } | |
16044 | if test "$ac_test_OBJCXXFLAGS" = set; then | |
16045 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS | |
16046 | elif test $ac_cv_prog_objcxx_g = yes; then | |
16047 | if test "$GOBJCXX" = yes; then | |
16048 | OBJCXXFLAGS="-g -O2" | |
16049 | else | |
16050 | OBJCXXFLAGS="-g" | |
16051 | fi | |
16052 | else | |
16053 | if test "$GOBJCXX" = yes; then | |
16054 | OBJCXXFLAGS="-O2" | |
16055 | else | |
16056 | OBJCXXFLAGS= | |
16057 | fi | |
16058 | fi | |
16059 | ac_ext=c | |
16060 | ac_cpp='$CPP $CPPFLAGS' | |
16061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16064 | ||
16065 | ac_config_files="$ac_config_files GNUmakefile" | |
16066 | ||
16067 | cat >confcache <<\_ACEOF | |
16068 | # This file is a shell script that caches the results of configure | |
16069 | # tests run on this system so they can be shared between configure | |
16070 | # scripts and configure runs, see configure's option --config-cache. | |
16071 | # It is not useful on other systems. If it contains results you don't | |
16072 | # want to keep, you may remove or edit it. | |
16073 | # | |
16074 | # config.status only pays attention to the cache file if you give it | |
16075 | # the --recheck option to rerun configure. | |
16076 | # | |
16077 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16078 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16079 | # following values. | |
16080 | ||
16081 | _ACEOF | |
16082 | ||
16083 | # The following way of writing the cache mishandles newlines in values, | |
16084 | # but we know of no workaround that is simple, portable, and efficient. | |
16085 | # So, we kill variables containing newlines. | |
16086 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16087 | # and sets the high bit in the cache file unless we assign to the vars. | |
16088 | ( | |
16089 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16090 | eval ac_val=\$$ac_var | |
16091 | case $ac_val in #( | |
16092 | *${as_nl}*) | |
16093 | case $ac_var in #( | |
16094 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16095 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16096 | esac | |
16097 | case $ac_var in #( | |
16098 | _ | IFS | as_nl) ;; #( | |
16099 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16100 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16101 | esac ;; | |
16102 | esac | |
16103 | done | |
16104 | ||
16105 | (set) 2>&1 | | |
16106 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16107 | *${as_nl}ac_space=\ *) | |
16108 | # `set' does not quote correctly, so add quotes: double-quote | |
16109 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16110 | sed -n \ | |
16111 | "s/'/'\\\\''/g; | |
16112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16113 | ;; #( | |
16114 | *) | |
16115 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16116 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16117 | ;; | |
16118 | esac | | |
16119 | sort | |
16120 | ) | | |
16121 | sed ' | |
16122 | /^ac_cv_env_/b end | |
16123 | t clear | |
16124 | :clear | |
16125 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16126 | t end | |
16127 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16128 | :end' >>confcache | |
16129 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16130 | if test -w "$cache_file"; then | |
16131 | test "x$cache_file" != "x/dev/null" && | |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16133 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
16134 | cat confcache >$cache_file | |
16135 | else | |
16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16137 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16138 | fi | |
16139 | fi | |
16140 | rm -f confcache | |
16141 | ||
16142 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16143 | # Let make expand exec_prefix. | |
16144 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16145 | ||
16146 | # Transform confdefs.h into DEFS. | |
16147 | # Protect against shell expansion while executing Makefile rules. | |
16148 | # Protect against Makefile macro expansion. | |
16149 | # | |
16150 | # If the first sed substitution is executed (which looks for macros that | |
16151 | # take arguments), then branch to the quote section. Otherwise, | |
16152 | # look for a macro that doesn't take arguments. | |
16153 | ac_script=' | |
16154 | :mline | |
16155 | /\\$/{ | |
16156 | N | |
16157 | s,\\\n,, | |
16158 | b mline | |
16159 | } | |
16160 | t clear | |
16161 | :clear | |
16162 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
16163 | t quote | |
16164 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
16165 | t quote | |
16166 | b any | |
16167 | :quote | |
16168 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
16169 | s/\[/\\&/g | |
16170 | s/\]/\\&/g | |
16171 | s/\$/$$/g | |
16172 | H | |
16173 | :any | |
16174 | ${ | |
16175 | g | |
16176 | s/^\n// | |
16177 | s/\n/ /g | |
16178 | p | |
16179 | } | |
16180 | ' | |
16181 | DEFS=`sed -n "$ac_script" confdefs.h` | |
16182 | ||
16183 | ||
16184 | ac_libobjs= | |
16185 | ac_ltlibobjs= | |
16186 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16187 | # 1. Remove the extension, and $U if already installed. | |
16188 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16189 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16190 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16191 | # will be set to the directory where LIBOBJS objects are built. | |
16192 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16193 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16194 | done | |
16195 | LIBOBJS=$ac_libobjs | |
16196 | ||
16197 | LTLIBOBJS=$ac_ltlibobjs | |
16198 | ||
16199 | ||
16200 | ||
16201 | : ${CONFIG_STATUS=./config.status} | |
16202 | ac_write_fail=0 | |
16203 | ac_clean_files_save=$ac_clean_files | |
16204 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16206 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16207 | as_write_fail=0 | |
16208 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16209 | #! $SHELL | |
16210 | # Generated by $as_me. | |
16211 | # Run this file to recreate the current configuration. | |
16212 | # Compiler output produced by configure, useful for debugging | |
16213 | # configure, is in config.log if it exists. | |
16214 | ||
16215 | debug=false | |
16216 | ac_cs_recheck=false | |
16217 | ac_cs_silent=false | |
16218 | ||
16219 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16220 | export SHELL | |
16221 | _ASEOF | |
16222 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16223 | ## -------------------- ## | |
16224 | ## M4sh Initialization. ## | |
16225 | ## -------------------- ## | |
16226 | ||
16227 | # Be more Bourne compatible | |
16228 | DUALCASE=1; export DUALCASE # for MKS sh | |
16229 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16230 | emulate sh | |
16231 | NULLCMD=: | |
16232 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16233 | # is contrary to our usage. Disable this feature. | |
16234 | alias -g '${1+"$@"}'='"$@"' | |
16235 | setopt NO_GLOB_SUBST | |
16236 | else | |
16237 | case `(set -o) 2>/dev/null` in #( | |
16238 | *posix*) : | |
16239 | set -o posix ;; #( | |
16240 | *) : | |
16241 | ;; | |
16242 | esac | |
16243 | fi | |
16244 | ||
16245 | ||
16246 | as_nl=' | |
16247 | ' | |
16248 | export as_nl | |
16249 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16250 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16251 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16252 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16253 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16254 | # but without wasting forks for bash or zsh. | |
16255 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16256 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16257 | as_echo='print -r --' | |
16258 | as_echo_n='print -rn --' | |
16259 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16260 | as_echo='printf %s\n' | |
16261 | as_echo_n='printf %s' | |
16262 | else | |
16263 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16264 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16265 | as_echo_n='/usr/ucb/echo -n' | |
16266 | else | |
16267 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16268 | as_echo_n_body='eval | |
16269 | arg=$1; | |
16270 | case $arg in #( | |
16271 | *"$as_nl"*) | |
16272 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16273 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16274 | esac; | |
16275 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16276 | ' | |
16277 | export as_echo_n_body | |
16278 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16279 | fi | |
16280 | export as_echo_body | |
16281 | as_echo='sh -c $as_echo_body as_echo' | |
16282 | fi | |
16283 | ||
16284 | # The user is always right. | |
16285 | if test "${PATH_SEPARATOR+set}" != set; then | |
16286 | PATH_SEPARATOR=: | |
16287 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16288 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16289 | PATH_SEPARATOR=';' | |
16290 | } | |
16291 | fi | |
16292 | ||
16293 | ||
16294 | # IFS | |
16295 | # We need space, tab and new line, in precisely that order. Quoting is | |
16296 | # there to prevent editors from complaining about space-tab. | |
16297 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16298 | # splitting by setting IFS to empty value.) | |
16299 | IFS=" "" $as_nl" | |
16300 | ||
16301 | # Find who we are. Look in the path if we contain no directory separator. | |
16302 | case $0 in #(( | |
16303 | *[\\/]* ) as_myself=$0 ;; | |
16304 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16305 | for as_dir in $PATH | |
16306 | do | |
16307 | IFS=$as_save_IFS | |
16308 | test -z "$as_dir" && as_dir=. | |
16309 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16310 | done | |
16311 | IFS=$as_save_IFS | |
16312 | ||
16313 | ;; | |
16314 | esac | |
16315 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16316 | # in which case we are not to be found in the path. | |
16317 | if test "x$as_myself" = x; then | |
16318 | as_myself=$0 | |
16319 | fi | |
16320 | if test ! -f "$as_myself"; then | |
16321 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16322 | exit 1 | |
16323 | fi | |
16324 | ||
16325 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16326 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16327 | # suppresses any "Segmentation fault" message there. '((' could | |
16328 | # trigger a bug in pdksh 5.2.14. | |
16329 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16330 | do eval test x\${$as_var+set} = xset \ | |
16331 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16332 | done | |
16333 | PS1='$ ' | |
16334 | PS2='> ' | |
16335 | PS4='+ ' | |
16336 | ||
16337 | # NLS nuisances. | |
16338 | LC_ALL=C | |
16339 | export LC_ALL | |
16340 | LANGUAGE=C | |
16341 | export LANGUAGE | |
16342 | ||
16343 | # CDPATH. | |
16344 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16345 | ||
16346 | ||
16347 | # as_fn_error ERROR [LINENO LOG_FD] | |
16348 | # --------------------------------- | |
16349 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16350 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16351 | # script with status $?, using 1 if that was 0. | |
16352 | as_fn_error () | |
16353 | { | |
16354 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
16355 | if test "$3"; then | |
16356 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16357 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
16358 | fi | |
16359 | $as_echo "$as_me: error: $1" >&2 | |
16360 | as_fn_exit $as_status | |
16361 | } # as_fn_error | |
16362 | ||
16363 | ||
16364 | # as_fn_set_status STATUS | |
16365 | # ----------------------- | |
16366 | # Set $? to STATUS, without forking. | |
16367 | as_fn_set_status () | |
16368 | { | |
16369 | return $1 | |
16370 | } # as_fn_set_status | |
16371 | ||
16372 | # as_fn_exit STATUS | |
16373 | # ----------------- | |
16374 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16375 | as_fn_exit () | |
16376 | { | |
16377 | set +e | |
16378 | as_fn_set_status $1 | |
16379 | exit $1 | |
16380 | } # as_fn_exit | |
16381 | ||
16382 | # as_fn_unset VAR | |
16383 | # --------------- | |
16384 | # Portably unset VAR. | |
16385 | as_fn_unset () | |
16386 | { | |
16387 | { eval $1=; unset $1;} | |
16388 | } | |
16389 | as_unset=as_fn_unset | |
16390 | # as_fn_append VAR VALUE | |
16391 | # ---------------------- | |
16392 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16393 | # advantage of any shell optimizations that allow amortized linear growth over | |
16394 | # repeated appends, instead of the typical quadratic growth present in naive | |
16395 | # implementations. | |
16396 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16397 | eval 'as_fn_append () | |
16398 | { | |
16399 | eval $1+=\$2 | |
16400 | }' | |
16401 | else | |
16402 | as_fn_append () | |
16403 | { | |
16404 | eval $1=\$$1\$2 | |
16405 | } | |
16406 | fi # as_fn_append | |
16407 | ||
16408 | # as_fn_arith ARG... | |
16409 | # ------------------ | |
16410 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16411 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16412 | # must be portable across $(()) and expr. | |
16413 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16414 | eval 'as_fn_arith () | |
16415 | { | |
16416 | as_val=$(( $* )) | |
16417 | }' | |
16418 | else | |
16419 | as_fn_arith () | |
16420 | { | |
16421 | as_val=`expr "$@" || test $? -eq 1` | |
16422 | } | |
16423 | fi # as_fn_arith | |
16424 | ||
16425 | ||
16426 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16427 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16428 | as_expr=expr | |
16429 | else | |
16430 | as_expr=false | |
16431 | fi | |
16432 | ||
16433 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16434 | as_basename=basename | |
16435 | else | |
16436 | as_basename=false | |
16437 | fi | |
16438 | ||
16439 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16440 | as_dirname=dirname | |
16441 | else | |
16442 | as_dirname=false | |
16443 | fi | |
16444 | ||
16445 | as_me=`$as_basename -- "$0" || | |
16446 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16447 | X"$0" : 'X\(//\)$' \| \ | |
16448 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16449 | $as_echo X/"$0" | | |
16450 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16451 | s//\1/ | |
16452 | q | |
16453 | } | |
16454 | /^X\/\(\/\/\)$/{ | |
16455 | s//\1/ | |
16456 | q | |
16457 | } | |
16458 | /^X\/\(\/\).*/{ | |
16459 | s//\1/ | |
16460 | q | |
16461 | } | |
16462 | s/.*/./; q'` | |
16463 | ||
16464 | # Avoid depending upon Character Ranges. | |
16465 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16466 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16467 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16468 | as_cr_digits='0123456789' | |
16469 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16470 | ||
16471 | ECHO_C= ECHO_N= ECHO_T= | |
16472 | case `echo -n x` in #((((( | |
16473 | -n*) | |
16474 | case `echo 'xy\c'` in | |
16475 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16476 | xy) ECHO_C='\c';; | |
16477 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16478 | ECHO_T=' ';; | |
16479 | esac;; | |
16480 | *) | |
16481 | ECHO_N='-n';; | |
16482 | esac | |
16483 | ||
16484 | rm -f conf$$ conf$$.exe conf$$.file | |
16485 | if test -d conf$$.dir; then | |
16486 | rm -f conf$$.dir/conf$$.file | |
16487 | else | |
16488 | rm -f conf$$.dir | |
16489 | mkdir conf$$.dir 2>/dev/null | |
16490 | fi | |
16491 | if (echo >conf$$.file) 2>/dev/null; then | |
16492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16493 | as_ln_s='ln -s' | |
16494 | # ... but there are two gotchas: | |
16495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16497 | # In both cases, we have to default to `cp -p'. | |
16498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16499 | as_ln_s='cp -p' | |
16500 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16501 | as_ln_s=ln | |
16502 | else | |
16503 | as_ln_s='cp -p' | |
16504 | fi | |
16505 | else | |
16506 | as_ln_s='cp -p' | |
16507 | fi | |
16508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16509 | rmdir conf$$.dir 2>/dev/null | |
16510 | ||
16511 | ||
16512 | # as_fn_mkdir_p | |
16513 | # ------------- | |
16514 | # Create "$as_dir" as a directory, including parents if necessary. | |
16515 | as_fn_mkdir_p () | |
16516 | { | |
16517 | ||
16518 | case $as_dir in #( | |
16519 | -*) as_dir=./$as_dir;; | |
16520 | esac | |
16521 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16522 | as_dirs= | |
16523 | while :; do | |
16524 | case $as_dir in #( | |
16525 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16526 | *) as_qdir=$as_dir;; | |
16527 | esac | |
16528 | as_dirs="'$as_qdir' $as_dirs" | |
16529 | as_dir=`$as_dirname -- "$as_dir" || | |
16530 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16531 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16532 | X"$as_dir" : 'X\(//\)$' \| \ | |
16533 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16534 | $as_echo X"$as_dir" | | |
16535 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16536 | s//\1/ | |
16537 | q | |
16538 | } | |
16539 | /^X\(\/\/\)[^/].*/{ | |
16540 | s//\1/ | |
16541 | q | |
16542 | } | |
16543 | /^X\(\/\/\)$/{ | |
16544 | s//\1/ | |
16545 | q | |
16546 | } | |
16547 | /^X\(\/\).*/{ | |
16548 | s//\1/ | |
16549 | q | |
16550 | } | |
16551 | s/.*/./; q'` | |
16552 | test -d "$as_dir" && break | |
16553 | done | |
16554 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16555 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
16556 | ||
16557 | ||
16558 | } # as_fn_mkdir_p | |
16559 | if mkdir -p . 2>/dev/null; then | |
16560 | as_mkdir_p='mkdir -p "$as_dir"' | |
16561 | else | |
16562 | test -d ./-p && rmdir ./-p | |
16563 | as_mkdir_p=false | |
16564 | fi | |
16565 | ||
16566 | if test -x / >/dev/null 2>&1; then | |
16567 | as_test_x='test -x' | |
16568 | else | |
16569 | if ls -dL / >/dev/null 2>&1; then | |
16570 | as_ls_L_option=L | |
16571 | else | |
16572 | as_ls_L_option= | |
16573 | fi | |
16574 | as_test_x=' | |
16575 | eval sh -c '\'' | |
16576 | if test -d "$1"; then | |
16577 | test -d "$1/."; | |
16578 | else | |
16579 | case $1 in #( | |
16580 | -*)set "./$1";; | |
16581 | esac; | |
16582 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
16583 | ???[sx]*):;;*)false;;esac;fi | |
16584 | '\'' sh | |
16585 | ' | |
16586 | fi | |
16587 | as_executable_p=$as_test_x | |
16588 | ||
16589 | # Sed expression to map a string onto a valid CPP name. | |
16590 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16591 | ||
16592 | # Sed expression to map a string onto a valid variable name. | |
16593 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16594 | ||
16595 | ||
16596 | exec 6>&1 | |
16597 | ## ----------------------------------- ## | |
16598 | ## Main body of $CONFIG_STATUS script. ## | |
16599 | ## ----------------------------------- ## | |
16600 | _ASEOF | |
16601 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16602 | ||
16603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16604 | # Save the log message, to keep $0 and so on meaningful, and to | |
16605 | # report actual input values of CONFIG_FILES etc. instead of their | |
16606 | # values after options handling. | |
16607 | ac_log=" | |
16608 | This file was extended by Cycript $as_me 0.9, which was | |
16609 | generated by GNU Autoconf 2.65. Invocation command line was | |
16610 | ||
16611 | CONFIG_FILES = $CONFIG_FILES | |
16612 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16613 | CONFIG_LINKS = $CONFIG_LINKS | |
16614 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16615 | $ $0 $@ | |
16616 | ||
16617 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16618 | " | |
16619 | ||
16620 | _ACEOF | |
16621 | ||
16622 | case $ac_config_files in *" | |
16623 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16624 | esac | |
16625 | ||
16626 | ||
16627 | ||
16628 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16629 | # Files that config.status was made for. | |
16630 | config_files="$ac_config_files" | |
16631 | config_commands="$ac_config_commands" | |
16632 | ||
16633 | _ACEOF | |
16634 | ||
16635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16636 | ac_cs_usage="\ | |
16637 | \`$as_me' instantiates files and other configuration actions | |
16638 | from templates according to the current configuration. Unless the files | |
16639 | and actions are specified as TAGs, all are instantiated by default. | |
16640 | ||
16641 | Usage: $0 [OPTION]... [TAG]... | |
16642 | ||
16643 | -h, --help print this help, then exit | |
16644 | -V, --version print version number and configuration settings, then exit | |
16645 | --config print configuration, then exit | |
16646 | -q, --quiet, --silent | |
16647 | do not print progress messages | |
16648 | -d, --debug don't remove temporary files | |
16649 | --recheck update $as_me by reconfiguring in the same conditions | |
16650 | --file=FILE[:TEMPLATE] | |
16651 | instantiate the configuration file FILE | |
16652 | ||
16653 | Configuration files: | |
16654 | $config_files | |
16655 | ||
16656 | Configuration commands: | |
16657 | $config_commands | |
16658 | ||
16659 | Report bugs to <saurik@saurik.com>. | |
16660 | Cycript home page: <http://www.cycript.org/>." | |
16661 | ||
16662 | _ACEOF | |
16663 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16664 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
16665 | ac_cs_version="\\ | |
16666 | Cycript config.status 0.9 | |
16667 | configured by $0, generated by GNU Autoconf 2.65, | |
16668 | with options \\"\$ac_cs_config\\" | |
16669 | ||
16670 | Copyright (C) 2009 Free Software Foundation, Inc. | |
16671 | This config.status script is free software; the Free Software Foundation | |
16672 | gives unlimited permission to copy, distribute and modify it." | |
16673 | ||
16674 | ac_pwd='$ac_pwd' | |
16675 | srcdir='$srcdir' | |
16676 | INSTALL='$INSTALL' | |
16677 | AWK='$AWK' | |
16678 | test -n "\$AWK" || AWK=awk | |
16679 | _ACEOF | |
16680 | ||
16681 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16682 | # The default lists apply if the user does not specify any file. | |
16683 | ac_need_defaults=: | |
16684 | while test $# != 0 | |
16685 | do | |
16686 | case $1 in | |
16687 | --*=*) | |
16688 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16689 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16690 | ac_shift=: | |
16691 | ;; | |
16692 | *) | |
16693 | ac_option=$1 | |
16694 | ac_optarg=$2 | |
16695 | ac_shift=shift | |
16696 | ;; | |
16697 | esac | |
16698 | ||
16699 | case $ac_option in | |
16700 | # Handling of the options. | |
16701 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16702 | ac_cs_recheck=: ;; | |
16703 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16704 | $as_echo "$ac_cs_version"; exit ;; | |
16705 | --config | --confi | --conf | --con | --co | --c ) | |
16706 | $as_echo "$ac_cs_config"; exit ;; | |
16707 | --debug | --debu | --deb | --de | --d | -d ) | |
16708 | debug=: ;; | |
16709 | --file | --fil | --fi | --f ) | |
16710 | $ac_shift | |
16711 | case $ac_optarg in | |
16712 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16713 | esac | |
16714 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16715 | ac_need_defaults=false;; | |
16716 | --he | --h | --help | --hel | -h ) | |
16717 | $as_echo "$ac_cs_usage"; exit ;; | |
16718 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16719 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16720 | ac_cs_silent=: ;; | |
16721 | ||
16722 | # This is an error. | |
16723 | -*) as_fn_error "unrecognized option: \`$1' | |
16724 | Try \`$0 --help' for more information." ;; | |
16725 | ||
16726 | *) as_fn_append ac_config_targets " $1" | |
16727 | ac_need_defaults=false ;; | |
16728 | ||
16729 | esac | |
16730 | shift | |
16731 | done | |
16732 | ||
16733 | ac_configure_extra_args= | |
16734 | ||
16735 | if $ac_cs_silent; then | |
16736 | exec 6>/dev/null | |
16737 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16738 | fi | |
16739 | ||
16740 | _ACEOF | |
16741 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16742 | if \$ac_cs_recheck; then | |
16743 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16744 | shift | |
16745 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16746 | CONFIG_SHELL='$SHELL' | |
16747 | export CONFIG_SHELL | |
16748 | exec "\$@" | |
16749 | fi | |
16750 | ||
16751 | _ACEOF | |
16752 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16753 | exec 5>>config.log | |
16754 | { | |
16755 | echo | |
16756 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16757 | ## Running $as_me. ## | |
16758 | _ASBOX | |
16759 | $as_echo "$ac_log" | |
16760 | } >&5 | |
16761 | ||
16762 | _ACEOF | |
16763 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16764 | # | |
16765 | # INIT-COMMANDS | |
16766 | # | |
16767 | ||
16768 | ||
16769 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16770 | # if CDPATH is set. | |
16771 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16772 | ||
16773 | sed_quote_subst='$sed_quote_subst' | |
16774 | double_quote_subst='$double_quote_subst' | |
16775 | delay_variable_subst='$delay_variable_subst' | |
16776 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
16777 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
16778 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
16779 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16780 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
16781 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
16782 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16783 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
16784 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16785 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16786 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
16787 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16788 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
16789 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
16790 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16791 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16792 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16793 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
16794 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
16795 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
16796 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
16797 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
16798 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
16799 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
16800 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
16801 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
16802 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16803 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16804 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
16805 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
16806 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
16807 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
16808 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16809 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
16810 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
16811 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16812 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16813 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16814 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
16815 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16816 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
16817 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
16818 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
16819 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
16820 | 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"`' | |
16821 | 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"`' | |
16822 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
16823 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
16824 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
16825 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
16826 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16827 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
16828 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
16829 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16830 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
16831 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
16832 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
16833 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
16834 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
16835 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
16836 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
16837 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
16838 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16839 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16840 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
16841 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
16842 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16843 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16844 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
16845 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16846 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16847 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16848 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16849 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16850 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16851 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
16852 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16853 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16854 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16855 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
16856 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
16857 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
16858 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
16859 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
16860 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16861 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
16862 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
16863 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
16864 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
16865 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
16866 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16867 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
16868 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
16869 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16870 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16871 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
16872 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
16873 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
16874 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
16875 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16876 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16877 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
16878 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16879 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16880 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16881 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16882 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16883 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16884 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
16885 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
16886 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16887 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16888 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
16889 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
16890 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
16891 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16892 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
16893 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
16894 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
16895 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
16896 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
16897 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
16898 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
16899 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
16900 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16901 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16902 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16903 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16904 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16905 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16906 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16907 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16908 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16909 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16910 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16911 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16912 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16913 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16914 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16915 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16916 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16917 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16918 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16919 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16920 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16921 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16922 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16923 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16924 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16925 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16926 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16927 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16928 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16929 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16930 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16931 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16932 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16933 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16934 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16935 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16936 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16937 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16938 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16939 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16940 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16941 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16942 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16943 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16944 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16945 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16946 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
16947 | ||
16948 | LTCC='$LTCC' | |
16949 | LTCFLAGS='$LTCFLAGS' | |
16950 | compiler='$compiler_DEFAULT' | |
16951 | ||
16952 | # Quote evaled strings. | |
16953 | for var in SED \ | |
16954 | GREP \ | |
16955 | EGREP \ | |
16956 | FGREP \ | |
16957 | LD \ | |
16958 | NM \ | |
16959 | LN_S \ | |
16960 | lt_SP2NL \ | |
16961 | lt_NL2SP \ | |
16962 | reload_flag \ | |
16963 | OBJDUMP \ | |
16964 | deplibs_check_method \ | |
16965 | file_magic_cmd \ | |
16966 | AR \ | |
16967 | AR_FLAGS \ | |
16968 | STRIP \ | |
16969 | RANLIB \ | |
16970 | CC \ | |
16971 | CFLAGS \ | |
16972 | compiler \ | |
16973 | lt_cv_sys_global_symbol_pipe \ | |
16974 | lt_cv_sys_global_symbol_to_cdecl \ | |
16975 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16976 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16977 | SHELL \ | |
16978 | ECHO \ | |
16979 | lt_prog_compiler_no_builtin_flag \ | |
16980 | lt_prog_compiler_wl \ | |
16981 | lt_prog_compiler_pic \ | |
16982 | lt_prog_compiler_static \ | |
16983 | lt_cv_prog_compiler_c_o \ | |
16984 | need_locks \ | |
16985 | DSYMUTIL \ | |
16986 | NMEDIT \ | |
16987 | LIPO \ | |
16988 | OTOOL \ | |
16989 | OTOOL64 \ | |
16990 | shrext_cmds \ | |
16991 | export_dynamic_flag_spec \ | |
16992 | whole_archive_flag_spec \ | |
16993 | compiler_needs_object \ | |
16994 | with_gnu_ld \ | |
16995 | allow_undefined_flag \ | |
16996 | no_undefined_flag \ | |
16997 | hardcode_libdir_flag_spec \ | |
16998 | hardcode_libdir_flag_spec_ld \ | |
16999 | hardcode_libdir_separator \ | |
17000 | fix_srcfile_path \ | |
17001 | exclude_expsyms \ | |
17002 | include_expsyms \ | |
17003 | file_list_spec \ | |
17004 | variables_saved_for_relink \ | |
17005 | libname_spec \ | |
17006 | library_names_spec \ | |
17007 | soname_spec \ | |
17008 | finish_eval \ | |
17009 | old_striplib \ | |
17010 | striplib \ | |
17011 | compiler_lib_search_dirs \ | |
17012 | predep_objects \ | |
17013 | postdep_objects \ | |
17014 | predeps \ | |
17015 | postdeps \ | |
17016 | compiler_lib_search_path \ | |
17017 | LD_CXX \ | |
17018 | compiler_CXX \ | |
17019 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17020 | lt_prog_compiler_wl_CXX \ | |
17021 | lt_prog_compiler_pic_CXX \ | |
17022 | lt_prog_compiler_static_CXX \ | |
17023 | lt_cv_prog_compiler_c_o_CXX \ | |
17024 | export_dynamic_flag_spec_CXX \ | |
17025 | whole_archive_flag_spec_CXX \ | |
17026 | compiler_needs_object_CXX \ | |
17027 | with_gnu_ld_CXX \ | |
17028 | allow_undefined_flag_CXX \ | |
17029 | no_undefined_flag_CXX \ | |
17030 | hardcode_libdir_flag_spec_CXX \ | |
17031 | hardcode_libdir_flag_spec_ld_CXX \ | |
17032 | hardcode_libdir_separator_CXX \ | |
17033 | fix_srcfile_path_CXX \ | |
17034 | exclude_expsyms_CXX \ | |
17035 | include_expsyms_CXX \ | |
17036 | file_list_spec_CXX \ | |
17037 | compiler_lib_search_dirs_CXX \ | |
17038 | predep_objects_CXX \ | |
17039 | postdep_objects_CXX \ | |
17040 | predeps_CXX \ | |
17041 | postdeps_CXX \ | |
17042 | compiler_lib_search_path_CXX; do | |
17043 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17044 | *[\\\\\\\`\\"\\\$]*) | |
17045 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17046 | ;; | |
17047 | *) | |
17048 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17049 | ;; | |
17050 | esac | |
17051 | done | |
17052 | ||
17053 | # Double-quote double-evaled strings. | |
17054 | for var in reload_cmds \ | |
17055 | old_postinstall_cmds \ | |
17056 | old_postuninstall_cmds \ | |
17057 | old_archive_cmds \ | |
17058 | extract_expsyms_cmds \ | |
17059 | old_archive_from_new_cmds \ | |
17060 | old_archive_from_expsyms_cmds \ | |
17061 | archive_cmds \ | |
17062 | archive_expsym_cmds \ | |
17063 | module_cmds \ | |
17064 | module_expsym_cmds \ | |
17065 | export_symbols_cmds \ | |
17066 | prelink_cmds \ | |
17067 | postinstall_cmds \ | |
17068 | postuninstall_cmds \ | |
17069 | finish_cmds \ | |
17070 | sys_lib_search_path_spec \ | |
17071 | sys_lib_dlsearch_path_spec \ | |
17072 | old_archive_cmds_CXX \ | |
17073 | old_archive_from_new_cmds_CXX \ | |
17074 | old_archive_from_expsyms_cmds_CXX \ | |
17075 | archive_cmds_CXX \ | |
17076 | archive_expsym_cmds_CXX \ | |
17077 | module_cmds_CXX \ | |
17078 | module_expsym_cmds_CXX \ | |
17079 | export_symbols_cmds_CXX \ | |
17080 | prelink_cmds_CXX; do | |
17081 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17082 | *[\\\\\\\`\\"\\\$]*) | |
17083 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17084 | ;; | |
17085 | *) | |
17086 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17087 | ;; | |
17088 | esac | |
17089 | done | |
17090 | ||
17091 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17092 | case \$lt_ECHO in | |
17093 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17094 | ;; | |
17095 | esac | |
17096 | ||
17097 | ac_aux_dir='$ac_aux_dir' | |
17098 | xsi_shell='$xsi_shell' | |
17099 | lt_shell_append='$lt_shell_append' | |
17100 | ||
17101 | # See if we are running on zsh, and set the options which allow our | |
17102 | # commands through without removal of \ escapes INIT. | |
17103 | if test -n "\${ZSH_VERSION+set}" ; then | |
17104 | setopt NO_GLOB_SUBST | |
17105 | fi | |
17106 | ||
17107 | ||
17108 | PACKAGE='$PACKAGE' | |
17109 | VERSION='$VERSION' | |
17110 | TIMESTAMP='$TIMESTAMP' | |
17111 | RM='$RM' | |
17112 | ofile='$ofile' | |
17113 | ||
17114 | ||
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | _ACEOF | |
17120 | ||
17121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17122 | ||
17123 | # Handling of arguments. | |
17124 | for ac_config_target in $ac_config_targets | |
17125 | do | |
17126 | case $ac_config_target in | |
17127 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17128 | "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; | |
17129 | ||
17130 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
17131 | esac | |
17132 | done | |
17133 | ||
17134 | ||
17135 | # If the user did not use the arguments to specify the items to instantiate, | |
17136 | # then the envvar interface is used. Set only those that are not. | |
17137 | # We use the long form for the default assignment because of an extremely | |
17138 | # bizarre bug on SunOS 4.1.3. | |
17139 | if $ac_need_defaults; then | |
17140 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17141 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17142 | fi | |
17143 | ||
17144 | # Have a temporary directory for convenience. Make it in the build tree | |
17145 | # simply because there is no reason against having it here, and in addition, | |
17146 | # creating and moving files from /tmp can sometimes cause problems. | |
17147 | # Hook for its removal unless debugging. | |
17148 | # Note that there is a small window in which the directory will not be cleaned: | |
17149 | # after its creation but before its name has been assigned to `$tmp'. | |
17150 | $debug || | |
17151 | { | |
17152 | tmp= | |
17153 | trap 'exit_status=$? | |
17154 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
17155 | ' 0 | |
17156 | trap 'as_fn_exit 1' 1 2 13 15 | |
17157 | } | |
17158 | # Create a (secure) tmp directory for tmp files. | |
17159 | ||
17160 | { | |
17161 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17162 | test -n "$tmp" && test -d "$tmp" | |
17163 | } || | |
17164 | { | |
17165 | tmp=./conf$$-$RANDOM | |
17166 | (umask 077 && mkdir "$tmp") | |
17167 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
17168 | ||
17169 | # Set up the scripts for CONFIG_FILES section. | |
17170 | # No need to generate them if there are no CONFIG_FILES. | |
17171 | # This happens for instance with `./config.status config.h'. | |
17172 | if test -n "$CONFIG_FILES"; then | |
17173 | ||
17174 | ||
17175 | ac_cr=`echo X | tr X '\015'` | |
17176 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17177 | # But we know of no other shell where ac_cr would be empty at this | |
17178 | # point, so we can use a bashism as a fallback. | |
17179 | if test "x$ac_cr" = x; then | |
17180 | eval ac_cr=\$\'\\r\' | |
17181 | fi | |
17182 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17183 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17184 | ac_cs_awk_cr='\r' | |
17185 | else | |
17186 | ac_cs_awk_cr=$ac_cr | |
17187 | fi | |
17188 | ||
17189 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
17190 | _ACEOF | |
17191 | ||
17192 | ||
17193 | { | |
17194 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17195 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17196 | echo "_ACEOF" | |
17197 | } >conf$$subs.sh || | |
17198 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17199 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
17200 | ac_delim='%!_!# ' | |
17201 | for ac_last_try in false false false false false :; do | |
17202 | . ./conf$$subs.sh || | |
17203 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17204 | ||
17205 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17206 | if test $ac_delim_n = $ac_delim_num; then | |
17207 | break | |
17208 | elif $ac_last_try; then | |
17209 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17210 | else | |
17211 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17212 | fi | |
17213 | done | |
17214 | rm -f conf$$subs.sh | |
17215 | ||
17216 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17217 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
17218 | _ACEOF | |
17219 | sed -n ' | |
17220 | h | |
17221 | s/^/S["/; s/!.*/"]=/ | |
17222 | p | |
17223 | g | |
17224 | s/^[^!]*!// | |
17225 | :repl | |
17226 | t repl | |
17227 | s/'"$ac_delim"'$// | |
17228 | t delim | |
17229 | :nl | |
17230 | h | |
17231 | s/\(.\{148\}\)..*/\1/ | |
17232 | t more1 | |
17233 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17234 | p | |
17235 | n | |
17236 | b repl | |
17237 | :more1 | |
17238 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17239 | p | |
17240 | g | |
17241 | s/.\{148\}// | |
17242 | t nl | |
17243 | :delim | |
17244 | h | |
17245 | s/\(.\{148\}\)..*/\1/ | |
17246 | t more2 | |
17247 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17248 | p | |
17249 | b | |
17250 | :more2 | |
17251 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17252 | p | |
17253 | g | |
17254 | s/.\{148\}// | |
17255 | t delim | |
17256 | ' <conf$$subs.awk | sed ' | |
17257 | /^[^""]/{ | |
17258 | N | |
17259 | s/\n// | |
17260 | } | |
17261 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17262 | rm -f conf$$subs.awk | |
17263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17264 | _ACAWK | |
17265 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
17266 | for (key in S) S_is_set[key] = 1 | |
17267 | FS = "\a" | |
17268 | ||
17269 | } | |
17270 | { | |
17271 | line = $ 0 | |
17272 | nfields = split(line, field, "@") | |
17273 | substed = 0 | |
17274 | len = length(field[1]) | |
17275 | for (i = 2; i < nfields; i++) { | |
17276 | key = field[i] | |
17277 | keylen = length(key) | |
17278 | if (S_is_set[key]) { | |
17279 | value = S[key] | |
17280 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17281 | len += length(value) + length(field[++i]) | |
17282 | substed = 1 | |
17283 | } else | |
17284 | len += 1 + keylen | |
17285 | } | |
17286 | ||
17287 | print line | |
17288 | } | |
17289 | ||
17290 | _ACAWK | |
17291 | _ACEOF | |
17292 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17293 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17294 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17295 | else | |
17296 | cat | |
17297 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
17298 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
17299 | _ACEOF | |
17300 | ||
17301 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
17302 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
17303 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17304 | # (actually we leave an empty line to preserve line numbers). | |
17305 | if test "x$srcdir" = x.; then | |
17306 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
17307 | s/:*\$(srcdir):*/:/ | |
17308 | s/:*\${srcdir}:*/:/ | |
17309 | s/:*@srcdir@:*/:/ | |
17310 | s/^\([^=]*=[ ]*\):*/\1/ | |
17311 | s/:*$// | |
17312 | s/^[^=]*=[ ]*$// | |
17313 | }' | |
17314 | fi | |
17315 | ||
17316 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17317 | fi # test -n "$CONFIG_FILES" | |
17318 | ||
17319 | ||
17320 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
17321 | shift | |
17322 | for ac_tag | |
17323 | do | |
17324 | case $ac_tag in | |
17325 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17326 | esac | |
17327 | case $ac_mode$ac_tag in | |
17328 | :[FHL]*:*);; | |
17329 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
17330 | :[FH]-) ac_tag=-:-;; | |
17331 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17332 | esac | |
17333 | ac_save_IFS=$IFS | |
17334 | IFS=: | |
17335 | set x $ac_tag | |
17336 | IFS=$ac_save_IFS | |
17337 | shift | |
17338 | ac_file=$1 | |
17339 | shift | |
17340 | ||
17341 | case $ac_mode in | |
17342 | :L) ac_source=$1;; | |
17343 | :[FH]) | |
17344 | ac_file_inputs= | |
17345 | for ac_f | |
17346 | do | |
17347 | case $ac_f in | |
17348 | -) ac_f="$tmp/stdin";; | |
17349 | *) # Look for the file first in the build tree, then in the source tree | |
17350 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17351 | # because $ac_f cannot contain `:'. | |
17352 | test -f "$ac_f" || | |
17353 | case $ac_f in | |
17354 | [\\/$]*) false;; | |
17355 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17356 | esac || | |
17357 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
17358 | esac | |
17359 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17360 | as_fn_append ac_file_inputs " '$ac_f'" | |
17361 | done | |
17362 | ||
17363 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17364 | # use $as_me), people would be surprised to read: | |
17365 | # /* config.h. Generated by config.status. */ | |
17366 | configure_input='Generated from '` | |
17367 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17368 | `' by configure.' | |
17369 | if test x"$ac_file" != x-; then | |
17370 | configure_input="$ac_file. $configure_input" | |
17371 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17372 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17373 | fi | |
17374 | # Neutralize special characters interpreted by sed in replacement strings. | |
17375 | case $configure_input in #( | |
17376 | *\&* | *\|* | *\\* ) | |
17377 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17378 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17379 | *) ac_sed_conf_input=$configure_input;; | |
17380 | esac | |
17381 | ||
17382 | case $ac_tag in | |
17383 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
17384 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
17385 | esac | |
17386 | ;; | |
17387 | esac | |
17388 | ||
17389 | ac_dir=`$as_dirname -- "$ac_file" || | |
17390 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17391 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17392 | X"$ac_file" : 'X\(//\)$' \| \ | |
17393 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17394 | $as_echo X"$ac_file" | | |
17395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17396 | s//\1/ | |
17397 | q | |
17398 | } | |
17399 | /^X\(\/\/\)[^/].*/{ | |
17400 | s//\1/ | |
17401 | q | |
17402 | } | |
17403 | /^X\(\/\/\)$/{ | |
17404 | s//\1/ | |
17405 | q | |
17406 | } | |
17407 | /^X\(\/\).*/{ | |
17408 | s//\1/ | |
17409 | q | |
17410 | } | |
17411 | s/.*/./; q'` | |
17412 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17413 | ac_builddir=. | |
17414 | ||
17415 | case "$ac_dir" in | |
17416 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17417 | *) | |
17418 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17419 | # A ".." for each directory in $ac_dir_suffix. | |
17420 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17421 | case $ac_top_builddir_sub in | |
17422 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17423 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17424 | esac ;; | |
17425 | esac | |
17426 | ac_abs_top_builddir=$ac_pwd | |
17427 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17428 | # for backward compatibility: | |
17429 | ac_top_builddir=$ac_top_build_prefix | |
35fa52c0 | 17430 | |
9c60689e DWT |
17431 | case $srcdir in |
17432 | .) # We are building in place. | |
17433 | ac_srcdir=. | |
17434 | ac_top_srcdir=$ac_top_builddir_sub | |
17435 | ac_abs_top_srcdir=$ac_pwd ;; | |
17436 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17437 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17438 | ac_top_srcdir=$srcdir | |
17439 | ac_abs_top_srcdir=$srcdir ;; | |
17440 | *) # Relative name. | |
17441 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17442 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17443 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17444 | esac | |
17445 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
35fa52c0 DWT |
17446 | |
17447 | ||
9c60689e DWT |
17448 | case $ac_mode in |
17449 | :F) | |
17450 | # | |
17451 | # CONFIG_FILE | |
17452 | # | |
35fa52c0 | 17453 | |
9c60689e DWT |
17454 | case $INSTALL in |
17455 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17456 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17457 | esac | |
17458 | _ACEOF | |
35fa52c0 | 17459 | |
9c60689e DWT |
17460 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17461 | # If the template does not know about datarootdir, expand it. | |
17462 | # FIXME: This hack should be removed a few years after 2.60. | |
17463 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17464 | ac_sed_dataroot=' | |
17465 | /datarootdir/ { | |
17466 | p | |
17467 | q | |
17468 | } | |
17469 | /@datadir@/p | |
17470 | /@docdir@/p | |
17471 | /@infodir@/p | |
17472 | /@localedir@/p | |
17473 | /@mandir@/p' | |
17474 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17475 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17476 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17478 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17479 | _ACEOF | |
17480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17481 | ac_datarootdir_hack=' | |
17482 | s&@datadir@&$datadir&g | |
17483 | s&@docdir@&$docdir&g | |
17484 | s&@infodir@&$infodir&g | |
17485 | s&@localedir@&$localedir&g | |
17486 | s&@mandir@&$mandir&g | |
17487 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17488 | esac | |
17489 | _ACEOF | |
35fa52c0 | 17490 | |
9c60689e DWT |
17491 | # Neutralize VPATH when `$srcdir' = `.'. |
17492 | # Shell code in configure.ac might set extrasub. | |
17493 | # FIXME: do we really want to maintain this feature? | |
17494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17495 | ac_sed_extra="$ac_vpsub | |
17496 | $extrasub | |
17497 | _ACEOF | |
17498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17499 | :t | |
17500 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17501 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17502 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17503 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17504 | s&@srcdir@&$ac_srcdir&;t t | |
17505 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17506 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17507 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17508 | s&@builddir@&$ac_builddir&;t t | |
17509 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17510 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17511 | s&@INSTALL@&$ac_INSTALL&;t t | |
17512 | $ac_datarootdir_hack | |
17513 | " | |
17514 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
17515 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17516 | ||
17517 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17518 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
17519 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17521 | which seems to be undefined. Please make sure it is defined." >&5 | |
17522 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17523 | which seems to be undefined. Please make sure it is defined." >&2;} | |
17524 | ||
17525 | rm -f "$tmp/stdin" | |
17526 | case $ac_file in | |
17527 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
17528 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
17529 | esac \ | |
17530 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
17531 | ;; | |
35fa52c0 | 17532 | |
35fa52c0 | 17533 | |
9c60689e DWT |
17534 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
17535 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17536 | ;; | |
17537 | esac | |
35fa52c0 | 17538 | |
35fa52c0 | 17539 | |
9c60689e DWT |
17540 | case $ac_file$ac_mode in |
17541 | "libtool":C) | |
17542 | ||
17543 | # See if we are running on zsh, and set the options which allow our | |
17544 | # commands through without removal of \ escapes. | |
17545 | if test -n "${ZSH_VERSION+set}" ; then | |
17546 | setopt NO_GLOB_SUBST | |
35fa52c0 | 17547 | fi |
35fa52c0 | 17548 | |
9c60689e DWT |
17549 | cfgfile="${ofile}T" |
17550 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17551 | $RM "$cfgfile" | |
35fa52c0 | 17552 | |
9c60689e DWT |
17553 | cat <<_LT_EOF >> "$cfgfile" |
17554 | #! $SHELL | |
35fa52c0 | 17555 | |
9c60689e DWT |
17556 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
17557 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17558 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17559 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17560 | # | |
17561 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17562 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
17563 | # Written by Gordon Matzigkeit, 1996 | |
17564 | # | |
17565 | # This file is part of GNU Libtool. | |
17566 | # | |
17567 | # GNU Libtool is free software; you can redistribute it and/or | |
17568 | # modify it under the terms of the GNU General Public License as | |
17569 | # published by the Free Software Foundation; either version 2 of | |
17570 | # the License, or (at your option) any later version. | |
17571 | # | |
17572 | # As a special exception to the GNU General Public License, | |
17573 | # if you distribute this file as part of a program or library that | |
17574 | # is built using GNU Libtool, you may include this file under the | |
17575 | # same distribution terms that you use for the rest of that program. | |
17576 | # | |
17577 | # GNU Libtool is distributed in the hope that it will be useful, | |
17578 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17579 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17580 | # GNU General Public License for more details. | |
17581 | # | |
17582 | # You should have received a copy of the GNU General Public License | |
17583 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17584 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17585 | # obtained by writing to the Free Software Foundation, Inc., | |
17586 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
35fa52c0 | 17587 | |
35fa52c0 | 17588 | |
9c60689e DWT |
17589 | # The names of the tagged configurations supported by this script. |
17590 | available_tags="CXX " | |
35fa52c0 | 17591 | |
9c60689e | 17592 | # ### BEGIN LIBTOOL CONFIG |
35fa52c0 | 17593 | |
9c60689e DWT |
17594 | # Which release of libtool.m4 was used? |
17595 | macro_version=$macro_version | |
17596 | macro_revision=$macro_revision | |
35fa52c0 | 17597 | |
9c60689e DWT |
17598 | # Whether or not to build shared libraries. |
17599 | build_libtool_libs=$enable_shared | |
35fa52c0 | 17600 | |
9c60689e DWT |
17601 | # Whether or not to build static libraries. |
17602 | build_old_libs=$enable_static | |
35fa52c0 | 17603 | |
9c60689e DWT |
17604 | # What type of objects to build. |
17605 | pic_mode=$pic_mode | |
35fa52c0 | 17606 | |
9c60689e DWT |
17607 | # Whether or not to optimize for fast installation. |
17608 | fast_install=$enable_fast_install | |
35fa52c0 | 17609 | |
9c60689e DWT |
17610 | # The host system. |
17611 | host_alias=$host_alias | |
17612 | host=$host | |
17613 | host_os=$host_os | |
35fa52c0 | 17614 | |
9c60689e DWT |
17615 | # The build system. |
17616 | build_alias=$build_alias | |
17617 | build=$build | |
17618 | build_os=$build_os | |
17619 | ||
17620 | # A sed program that does not truncate output. | |
17621 | SED=$lt_SED | |
17622 | ||
17623 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17624 | Xsed="\$SED -e 1s/^X//" | |
17625 | ||
17626 | # A grep program that handles long lines. | |
17627 | GREP=$lt_GREP | |
17628 | ||
17629 | # An ERE matcher. | |
17630 | EGREP=$lt_EGREP | |
17631 | ||
17632 | # A literal string matcher. | |
17633 | FGREP=$lt_FGREP | |
17634 | ||
17635 | # A BSD- or MS-compatible name lister. | |
17636 | NM=$lt_NM | |
17637 | ||
17638 | # Whether we need soft or hard links. | |
17639 | LN_S=$lt_LN_S | |
17640 | ||
17641 | # What is the maximum length of a command? | |
17642 | max_cmd_len=$max_cmd_len | |
17643 | ||
17644 | # Object file suffix (normally "o"). | |
17645 | objext=$ac_objext | |
17646 | ||
17647 | # Executable file suffix (normally ""). | |
17648 | exeext=$exeext | |
17649 | ||
17650 | # whether the shell understands "unset". | |
17651 | lt_unset=$lt_unset | |
17652 | ||
17653 | # turn spaces into newlines. | |
17654 | SP2NL=$lt_lt_SP2NL | |
17655 | ||
17656 | # turn newlines into spaces. | |
17657 | NL2SP=$lt_lt_NL2SP | |
17658 | ||
17659 | # How to create reloadable object files. | |
17660 | reload_flag=$lt_reload_flag | |
17661 | reload_cmds=$lt_reload_cmds | |
17662 | ||
17663 | # An object symbol dumper. | |
17664 | OBJDUMP=$lt_OBJDUMP | |
17665 | ||
17666 | # Method to check whether dependent libraries are shared objects. | |
17667 | deplibs_check_method=$lt_deplibs_check_method | |
17668 | ||
17669 | # Command to use when deplibs_check_method == "file_magic". | |
17670 | file_magic_cmd=$lt_file_magic_cmd | |
17671 | ||
17672 | # The archiver. | |
17673 | AR=$lt_AR | |
17674 | AR_FLAGS=$lt_AR_FLAGS | |
17675 | ||
17676 | # A symbol stripping program. | |
17677 | STRIP=$lt_STRIP | |
17678 | ||
17679 | # Commands used to install an old-style archive. | |
17680 | RANLIB=$lt_RANLIB | |
17681 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17682 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17683 | ||
17684 | # A C compiler. | |
17685 | LTCC=$lt_CC | |
17686 | ||
17687 | # LTCC compiler flags. | |
17688 | LTCFLAGS=$lt_CFLAGS | |
17689 | ||
17690 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17691 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17692 | ||
17693 | # Transform the output of nm in a proper C declaration. | |
17694 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17695 | ||
17696 | # Transform the output of nm in a C name address pair. | |
17697 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17698 | ||
17699 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17700 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17701 | ||
17702 | # The name of the directory that contains temporary libtool files. | |
17703 | objdir=$objdir | |
17704 | ||
17705 | # Shell to use when invoking shell scripts. | |
17706 | SHELL=$lt_SHELL | |
17707 | ||
17708 | # An echo program that does not interpret backslashes. | |
17709 | ECHO=$lt_ECHO | |
17710 | ||
17711 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17712 | MAGIC_CMD=$MAGIC_CMD | |
17713 | ||
17714 | # Must we lock files when doing compilation? | |
17715 | need_locks=$lt_need_locks | |
17716 | ||
17717 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17718 | DSYMUTIL=$lt_DSYMUTIL | |
17719 | ||
17720 | # Tool to change global to local symbols on Mac OS X. | |
17721 | NMEDIT=$lt_NMEDIT | |
17722 | ||
17723 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17724 | LIPO=$lt_LIPO | |
17725 | ||
17726 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17727 | OTOOL=$lt_OTOOL | |
17728 | ||
17729 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17730 | OTOOL64=$lt_OTOOL64 | |
17731 | ||
17732 | # Old archive suffix (normally "a"). | |
17733 | libext=$libext | |
17734 | ||
17735 | # Shared library suffix (normally ".so"). | |
17736 | shrext_cmds=$lt_shrext_cmds | |
35fa52c0 | 17737 | |
9c60689e DWT |
17738 | # The commands to extract the exported symbol list from a shared archive. |
17739 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
35fa52c0 | 17740 | |
9c60689e DWT |
17741 | # Variables whose values should be saved in libtool wrapper scripts and |
17742 | # restored at link time. | |
17743 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
35fa52c0 | 17744 | |
9c60689e DWT |
17745 | # Do we need the "lib" prefix for modules? |
17746 | need_lib_prefix=$need_lib_prefix | |
35fa52c0 | 17747 | |
9c60689e DWT |
17748 | # Do we need a version for libraries? |
17749 | need_version=$need_version | |
35fa52c0 | 17750 | |
9c60689e DWT |
17751 | # Library versioning type. |
17752 | version_type=$version_type | |
35fa52c0 | 17753 | |
9c60689e DWT |
17754 | # Shared library runtime path variable. |
17755 | runpath_var=$runpath_var | |
35fa52c0 | 17756 | |
9c60689e DWT |
17757 | # Shared library path variable. |
17758 | shlibpath_var=$shlibpath_var | |
35fa52c0 | 17759 | |
9c60689e DWT |
17760 | # Is shlibpath searched before the hard-coded library search path? |
17761 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
35fa52c0 | 17762 | |
9c60689e DWT |
17763 | # Format of library name prefix. |
17764 | libname_spec=$lt_libname_spec | |
35fa52c0 | 17765 | |
9c60689e DWT |
17766 | # List of archive names. First name is the real one, the rest are links. |
17767 | # The last name is the one that the linker finds with -lNAME | |
17768 | library_names_spec=$lt_library_names_spec | |
dbadc56a | 17769 | |
9c60689e DWT |
17770 | # The coded name of the library, if different from the real name. |
17771 | soname_spec=$lt_soname_spec | |
dbadc56a | 17772 | |
9c60689e DWT |
17773 | # Command to use after installation of a shared archive. |
17774 | postinstall_cmds=$lt_postinstall_cmds | |
35fa52c0 | 17775 | |
9c60689e DWT |
17776 | # Command to use after uninstallation of a shared archive. |
17777 | postuninstall_cmds=$lt_postuninstall_cmds | |
dbadc56a | 17778 | |
9c60689e DWT |
17779 | # Commands used to finish a libtool library installation in a directory. |
17780 | finish_cmds=$lt_finish_cmds | |
35fa52c0 | 17781 | |
9c60689e DWT |
17782 | # As "finish_cmds", except a single script fragment to be evaled but |
17783 | # not shown. | |
17784 | finish_eval=$lt_finish_eval | |
35fa52c0 | 17785 | |
9c60689e DWT |
17786 | # Whether we should hardcode library paths into libraries. |
17787 | hardcode_into_libs=$hardcode_into_libs | |
dbadc56a | 17788 | |
9c60689e DWT |
17789 | # Compile-time system search path for libraries. |
17790 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
35fa52c0 | 17791 | |
9c60689e DWT |
17792 | # Run-time system search path for libraries. |
17793 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
dbadc56a | 17794 | |
9c60689e DWT |
17795 | # Whether dlopen is supported. |
17796 | dlopen_support=$enable_dlopen | |
dbadc56a | 17797 | |
9c60689e DWT |
17798 | # Whether dlopen of programs is supported. |
17799 | dlopen_self=$enable_dlopen_self | |
35fa52c0 | 17800 | |
9c60689e DWT |
17801 | # Whether dlopen of statically linked programs is supported. |
17802 | dlopen_self_static=$enable_dlopen_self_static | |
35fa52c0 | 17803 | |
9c60689e DWT |
17804 | # Commands to strip libraries. |
17805 | old_striplib=$lt_old_striplib | |
17806 | striplib=$lt_striplib | |
35fa52c0 | 17807 | |
35fa52c0 | 17808 | |
9c60689e DWT |
17809 | # The linker used to build libraries. |
17810 | LD=$lt_LD | |
dbadc56a | 17811 | |
9c60689e DWT |
17812 | # Commands used to build an old-style archive. |
17813 | old_archive_cmds=$lt_old_archive_cmds | |
dbadc56a | 17814 | |
9c60689e DWT |
17815 | # A language specific compiler. |
17816 | CC=$lt_compiler | |
35fa52c0 | 17817 | |
9c60689e DWT |
17818 | # Is the compiler the GNU compiler? |
17819 | with_gcc=$GCC | |
dbadc56a | 17820 | |
9c60689e DWT |
17821 | # Compiler flag to turn off builtin functions. |
17822 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dbadc56a | 17823 | |
9c60689e DWT |
17824 | # How to pass a linker flag through the compiler. |
17825 | wl=$lt_lt_prog_compiler_wl | |
35fa52c0 | 17826 | |
9c60689e DWT |
17827 | # Additional compiler flags for building library objects. |
17828 | pic_flag=$lt_lt_prog_compiler_pic | |
35fa52c0 | 17829 | |
9c60689e DWT |
17830 | # Compiler flag to prevent dynamic linking. |
17831 | link_static_flag=$lt_lt_prog_compiler_static | |
35fa52c0 | 17832 | |
9c60689e DWT |
17833 | # Does compiler simultaneously support -c and -o options? |
17834 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
dbadc56a | 17835 | |
9c60689e DWT |
17836 | # Whether or not to add -lc for building shared libraries. |
17837 | build_libtool_need_lc=$archive_cmds_need_lc | |
35fa52c0 | 17838 | |
9c60689e DWT |
17839 | # Whether or not to disallow shared libs when runtime libs are static. |
17840 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
35fa52c0 | 17841 | |
9c60689e DWT |
17842 | # Compiler flag to allow reflexive dlopens. |
17843 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
35fa52c0 | 17844 | |
9c60689e DWT |
17845 | # Compiler flag to generate shared objects directly from archives. |
17846 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
dbadc56a | 17847 | |
9c60689e DWT |
17848 | # Whether the compiler copes with passing no objects directly. |
17849 | compiler_needs_object=$lt_compiler_needs_object | |
dbadc56a | 17850 | |
9c60689e DWT |
17851 | # Create an old-style archive from a shared archive. |
17852 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
dbadc56a | 17853 | |
9c60689e DWT |
17854 | # Create a temporary old-style archive to link instead of a shared archive. |
17855 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dbadc56a | 17856 | |
9c60689e DWT |
17857 | # Commands used to build a shared archive. |
17858 | archive_cmds=$lt_archive_cmds | |
17859 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
35fa52c0 | 17860 | |
9c60689e DWT |
17861 | # Commands used to build a loadable module if different from building |
17862 | # a shared archive. | |
17863 | module_cmds=$lt_module_cmds | |
17864 | module_expsym_cmds=$lt_module_expsym_cmds | |
dbadc56a | 17865 | |
9c60689e DWT |
17866 | # Whether we are building with GNU ld or not. |
17867 | with_gnu_ld=$lt_with_gnu_ld | |
6b66678a | 17868 | |
9c60689e DWT |
17869 | # Flag that allows shared libraries with undefined symbols to be built. |
17870 | allow_undefined_flag=$lt_allow_undefined_flag | |
6b66678a | 17871 | |
9c60689e DWT |
17872 | # Flag that enforces no undefined symbols. |
17873 | no_undefined_flag=$lt_no_undefined_flag | |
6b66678a | 17874 | |
9c60689e DWT |
17875 | # Flag to hardcode \$libdir into a binary during linking. |
17876 | # This must work even if \$libdir does not exist | |
17877 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
6b66678a | 17878 | |
9c60689e DWT |
17879 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
17880 | # during linking. This must work even if \$libdir does not exist. | |
17881 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
6b66678a | 17882 | |
9c60689e DWT |
17883 | # Whether we need a single "-rpath" flag with a separated argument. |
17884 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
6b66678a | 17885 | |
9c60689e DWT |
17886 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
17887 | # DIR into the resulting binary. | |
17888 | hardcode_direct=$hardcode_direct | |
6b66678a | 17889 | |
9c60689e DWT |
17890 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
17891 | # DIR into the resulting binary and the resulting library dependency is | |
17892 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17893 | # library is relocated. | |
17894 | hardcode_direct_absolute=$hardcode_direct_absolute | |
6b66678a | 17895 | |
9c60689e DWT |
17896 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
17897 | # into the resulting binary. | |
17898 | hardcode_minus_L=$hardcode_minus_L | |
6b66678a | 17899 | |
9c60689e DWT |
17900 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
17901 | # into the resulting binary. | |
17902 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
6b66678a | 17903 | |
9c60689e DWT |
17904 | # Set to "yes" if building a shared library automatically hardcodes DIR |
17905 | # into the library and all subsequent libraries and executables linked | |
17906 | # against it. | |
17907 | hardcode_automatic=$hardcode_automatic | |
6b66678a | 17908 | |
9c60689e DWT |
17909 | # Set to yes if linker adds runtime paths of dependent libraries |
17910 | # to runtime path list. | |
17911 | inherit_rpath=$inherit_rpath | |
6b66678a | 17912 | |
9c60689e DWT |
17913 | # Whether libtool must link a program against all its dependency libraries. |
17914 | link_all_deplibs=$link_all_deplibs | |
17915 | ||
17916 | # Fix the shell variable \$srcfile for the compiler. | |
17917 | fix_srcfile_path=$lt_fix_srcfile_path | |
17918 | ||
17919 | # Set to "yes" if exported symbols are required. | |
17920 | always_export_symbols=$always_export_symbols | |
6b66678a | 17921 | |
9c60689e DWT |
17922 | # The commands to list exported symbols. |
17923 | export_symbols_cmds=$lt_export_symbols_cmds | |
6b66678a | 17924 | |
9c60689e DWT |
17925 | # Symbols that should not be listed in the preloaded symbols. |
17926 | exclude_expsyms=$lt_exclude_expsyms | |
6b66678a | 17927 | |
9c60689e DWT |
17928 | # Symbols that must always be exported. |
17929 | include_expsyms=$lt_include_expsyms | |
6b66678a | 17930 | |
9c60689e DWT |
17931 | # Commands necessary for linking programs (against libraries) with templates. |
17932 | prelink_cmds=$lt_prelink_cmds | |
6b66678a | 17933 | |
9c60689e DWT |
17934 | # Specify filename containing input files. |
17935 | file_list_spec=$lt_file_list_spec | |
6b66678a | 17936 | |
9c60689e DWT |
17937 | # How to hardcode a shared library path into an executable. |
17938 | hardcode_action=$hardcode_action | |
17939 | ||
17940 | # The directories searched by this compiler when creating a shared library. | |
17941 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
17942 | ||
17943 | # Dependencies to place before and after the objects being linked to | |
17944 | # create a shared library. | |
17945 | predep_objects=$lt_predep_objects | |
17946 | postdep_objects=$lt_postdep_objects | |
17947 | predeps=$lt_predeps | |
17948 | postdeps=$lt_postdeps | |
17949 | ||
17950 | # The library search path used internally by the compiler when linking | |
17951 | # a shared library. | |
17952 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
17953 | ||
17954 | # ### END LIBTOOL CONFIG | |
17955 | ||
17956 | _LT_EOF | |
17957 | ||
17958 | case $host_os in | |
17959 | aix3*) | |
17960 | cat <<\_LT_EOF >> "$cfgfile" | |
17961 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17962 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17963 | # vanish in a puff of smoke. | |
17964 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17965 | COLLECT_NAMES= | |
17966 | export COLLECT_NAMES | |
6b66678a | 17967 | fi |
9c60689e DWT |
17968 | _LT_EOF |
17969 | ;; | |
17970 | esac | |
6b66678a DWT |
17971 | |
17972 | ||
9c60689e | 17973 | ltmain="$ac_aux_dir/ltmain.sh" |
6b66678a | 17974 | |
9c60689e DWT |
17975 | |
17976 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17977 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17978 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17979 | # is reportedly fixed, but why not run on old versions too? | |
17980 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17981 | || (rm -f "$cfgfile"; exit 1) | |
17982 | ||
17983 | case $xsi_shell in | |
17984 | yes) | |
17985 | cat << \_LT_EOF >> "$cfgfile" | |
17986 | ||
17987 | # func_dirname file append nondir_replacement | |
17988 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17989 | # otherwise set result to NONDIR_REPLACEMENT. | |
17990 | func_dirname () | |
6b66678a | 17991 | { |
9c60689e DWT |
17992 | case ${1} in |
17993 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17994 | * ) func_dirname_result="${3}" ;; | |
17995 | esac | |
17996 | } | |
6b66678a | 17997 | |
9c60689e DWT |
17998 | # func_basename file |
17999 | func_basename () | |
18000 | { | |
18001 | func_basename_result="${1##*/}" | |
6b66678a | 18002 | } |
6b66678a | 18003 | |
9c60689e DWT |
18004 | # func_dirname_and_basename file append nondir_replacement |
18005 | # perform func_basename and func_dirname in a single function | |
18006 | # call: | |
18007 | # dirname: Compute the dirname of FILE. If nonempty, | |
18008 | # add APPEND to the result, otherwise set result | |
18009 | # to NONDIR_REPLACEMENT. | |
18010 | # value returned in "$func_dirname_result" | |
18011 | # basename: Compute filename of FILE. | |
18012 | # value retuned in "$func_basename_result" | |
18013 | # Implementation must be kept synchronized with func_dirname | |
18014 | # and func_basename. For efficiency, we do not delegate to | |
18015 | # those functions but instead duplicate the functionality here. | |
18016 | func_dirname_and_basename () | |
18017 | { | |
18018 | case ${1} in | |
18019 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18020 | * ) func_dirname_result="${3}" ;; | |
18021 | esac | |
18022 | func_basename_result="${1##*/}" | |
18023 | } | |
6b66678a | 18024 | |
9c60689e DWT |
18025 | # func_stripname prefix suffix name |
18026 | # strip PREFIX and SUFFIX off of NAME. | |
18027 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18028 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18029 | # dot (in which case that matches only a dot). | |
18030 | func_stripname () | |
18031 | { | |
18032 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18033 | # positional parameters, so assign one to ordinary parameter first. | |
18034 | func_stripname_result=${3} | |
18035 | func_stripname_result=${func_stripname_result#"${1}"} | |
18036 | func_stripname_result=${func_stripname_result%"${2}"} | |
18037 | } | |
6b66678a | 18038 | |
9c60689e DWT |
18039 | # func_opt_split |
18040 | func_opt_split () | |
18041 | { | |
18042 | func_opt_split_opt=${1%%=*} | |
18043 | func_opt_split_arg=${1#*=} | |
18044 | } | |
6b66678a | 18045 | |
9c60689e DWT |
18046 | # func_lo2o object |
18047 | func_lo2o () | |
18048 | { | |
18049 | case ${1} in | |
18050 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18051 | *) func_lo2o_result=${1} ;; | |
18052 | esac | |
18053 | } | |
6b66678a | 18054 | |
9c60689e DWT |
18055 | # func_xform libobj-or-source |
18056 | func_xform () | |
18057 | { | |
18058 | func_xform_result=${1%.*}.lo | |
18059 | } | |
6b66678a | 18060 | |
9c60689e DWT |
18061 | # func_arith arithmetic-term... |
18062 | func_arith () | |
18063 | { | |
18064 | func_arith_result=$(( $* )) | |
18065 | } | |
6b66678a | 18066 | |
9c60689e DWT |
18067 | # func_len string |
18068 | # STRING may not start with a hyphen. | |
18069 | func_len () | |
18070 | { | |
18071 | func_len_result=${#1} | |
18072 | } | |
6b66678a | 18073 | |
9c60689e DWT |
18074 | _LT_EOF |
18075 | ;; | |
18076 | *) # Bourne compatible functions. | |
18077 | cat << \_LT_EOF >> "$cfgfile" | |
6b66678a | 18078 | |
9c60689e DWT |
18079 | # func_dirname file append nondir_replacement |
18080 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18081 | # otherwise set result to NONDIR_REPLACEMENT. | |
18082 | func_dirname () | |
18083 | { | |
18084 | # Extract subdirectory from the argument. | |
18085 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
18086 | if test "X$func_dirname_result" = "X${1}"; then | |
18087 | func_dirname_result="${3}" | |
18088 | else | |
18089 | func_dirname_result="$func_dirname_result${2}" | |
18090 | fi | |
18091 | } | |
6b66678a | 18092 | |
9c60689e DWT |
18093 | # func_basename file |
18094 | func_basename () | |
6b66678a | 18095 | { |
9c60689e | 18096 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
6b66678a | 18097 | } |
6b66678a | 18098 | |
6b66678a | 18099 | |
9c60689e DWT |
18100 | # func_stripname prefix suffix name |
18101 | # strip PREFIX and SUFFIX off of NAME. | |
18102 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18103 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18104 | # dot (in which case that matches only a dot). | |
18105 | # func_strip_suffix prefix name | |
18106 | func_stripname () | |
18107 | { | |
18108 | case ${2} in | |
18109 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
18110 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
18111 | *) func_stripname_result=`$ECHO "X${3}" \ | |
18112 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
18113 | esac | |
18114 | } | |
6b66678a | 18115 | |
9c60689e DWT |
18116 | # sed scripts: |
18117 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18118 | my_sed_long_arg='1s/^-[^=]*=//' | |
6b66678a | 18119 | |
9c60689e DWT |
18120 | # func_opt_split |
18121 | func_opt_split () | |
18122 | { | |
18123 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
18124 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
18125 | } | |
6b66678a | 18126 | |
9c60689e DWT |
18127 | # func_lo2o object |
18128 | func_lo2o () | |
18129 | { | |
18130 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
18131 | } | |
18132 | ||
18133 | # func_xform libobj-or-source | |
18134 | func_xform () | |
18135 | { | |
18136 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
18137 | } | |
18138 | ||
18139 | # func_arith arithmetic-term... | |
18140 | func_arith () | |
18141 | { | |
18142 | func_arith_result=`expr "$@"` | |
18143 | } | |
18144 | ||
18145 | # func_len string | |
18146 | # STRING may not start with a hyphen. | |
18147 | func_len () | |
18148 | { | |
18149 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18150 | } | |
18151 | ||
18152 | _LT_EOF | |
18153 | esac | |
18154 | ||
18155 | case $lt_shell_append in | |
18156 | yes) | |
18157 | cat << \_LT_EOF >> "$cfgfile" | |
18158 | ||
18159 | # func_append var value | |
18160 | # Append VALUE to the end of shell variable VAR. | |
18161 | func_append () | |
18162 | { | |
18163 | eval "$1+=\$2" | |
18164 | } | |
18165 | _LT_EOF | |
18166 | ;; | |
18167 | *) | |
18168 | cat << \_LT_EOF >> "$cfgfile" | |
18169 | ||
18170 | # func_append var value | |
18171 | # Append VALUE to the end of shell variable VAR. | |
18172 | func_append () | |
18173 | { | |
18174 | eval "$1=\$$1\$2" | |
18175 | } | |
18176 | ||
18177 | _LT_EOF | |
18178 | ;; | |
18179 | esac | |
18180 | ||
18181 | ||
18182 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18183 | || (rm -f "$cfgfile"; exit 1) | |
18184 | ||
18185 | mv -f "$cfgfile" "$ofile" || | |
18186 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18187 | chmod +x "$ofile" | |
18188 | ||
18189 | ||
18190 | cat <<_LT_EOF >> "$ofile" | |
18191 | ||
18192 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
18193 | ||
18194 | # The linker used to build libraries. | |
18195 | LD=$lt_LD_CXX | |
18196 | ||
18197 | # Commands used to build an old-style archive. | |
18198 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
18199 | ||
18200 | # A language specific compiler. | |
18201 | CC=$lt_compiler_CXX | |
18202 | ||
18203 | # Is the compiler the GNU compiler? | |
18204 | with_gcc=$GCC_CXX | |
18205 | ||
18206 | # Compiler flag to turn off builtin functions. | |
18207 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
6b66678a | 18208 | |
9c60689e DWT |
18209 | # How to pass a linker flag through the compiler. |
18210 | wl=$lt_lt_prog_compiler_wl_CXX | |
6b66678a | 18211 | |
9c60689e DWT |
18212 | # Additional compiler flags for building library objects. |
18213 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
6b66678a | 18214 | |
9c60689e DWT |
18215 | # Compiler flag to prevent dynamic linking. |
18216 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
6b66678a | 18217 | |
9c60689e DWT |
18218 | # Does compiler simultaneously support -c and -o options? |
18219 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
dbadc56a | 18220 | |
9c60689e DWT |
18221 | # Whether or not to add -lc for building shared libraries. |
18222 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
dbadc56a | 18223 | |
9c60689e DWT |
18224 | # Whether or not to disallow shared libs when runtime libs are static. |
18225 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
35fa52c0 | 18226 | |
9c60689e DWT |
18227 | # Compiler flag to allow reflexive dlopens. |
18228 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
35fa52c0 | 18229 | |
9c60689e DWT |
18230 | # Compiler flag to generate shared objects directly from archives. |
18231 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
35fa52c0 | 18232 | |
9c60689e DWT |
18233 | # Whether the compiler copes with passing no objects directly. |
18234 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
35fa52c0 | 18235 | |
9c60689e DWT |
18236 | # Create an old-style archive from a shared archive. |
18237 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
35fa52c0 | 18238 | |
9c60689e DWT |
18239 | # Create a temporary old-style archive to link instead of a shared archive. |
18240 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
35fa52c0 | 18241 | |
9c60689e DWT |
18242 | # Commands used to build a shared archive. |
18243 | archive_cmds=$lt_archive_cmds_CXX | |
18244 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
6b66678a | 18245 | |
9c60689e DWT |
18246 | # Commands used to build a loadable module if different from building |
18247 | # a shared archive. | |
18248 | module_cmds=$lt_module_cmds_CXX | |
18249 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
6b66678a | 18250 | |
9c60689e DWT |
18251 | # Whether we are building with GNU ld or not. |
18252 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
6b66678a | 18253 | |
9c60689e DWT |
18254 | # Flag that allows shared libraries with undefined symbols to be built. |
18255 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
35fa52c0 | 18256 | |
9c60689e DWT |
18257 | # Flag that enforces no undefined symbols. |
18258 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
35fa52c0 | 18259 | |
9c60689e DWT |
18260 | # Flag to hardcode \$libdir into a binary during linking. |
18261 | # This must work even if \$libdir does not exist | |
18262 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
6b66678a | 18263 | |
9c60689e DWT |
18264 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
18265 | # during linking. This must work even if \$libdir does not exist. | |
18266 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
6b66678a | 18267 | |
9c60689e DWT |
18268 | # Whether we need a single "-rpath" flag with a separated argument. |
18269 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
6b66678a | 18270 | |
9c60689e DWT |
18271 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18272 | # DIR into the resulting binary. | |
18273 | hardcode_direct=$hardcode_direct_CXX | |
6b66678a | 18274 | |
9c60689e DWT |
18275 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
18276 | # DIR into the resulting binary and the resulting library dependency is | |
18277 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18278 | # library is relocated. | |
18279 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
6b66678a | 18280 | |
9c60689e DWT |
18281 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
18282 | # into the resulting binary. | |
18283 | hardcode_minus_L=$hardcode_minus_L_CXX | |
35fa52c0 | 18284 | |
9c60689e DWT |
18285 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
18286 | # into the resulting binary. | |
18287 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
35fa52c0 | 18288 | |
9c60689e DWT |
18289 | # Set to "yes" if building a shared library automatically hardcodes DIR |
18290 | # into the library and all subsequent libraries and executables linked | |
18291 | # against it. | |
18292 | hardcode_automatic=$hardcode_automatic_CXX | |
6b66678a | 18293 | |
9c60689e DWT |
18294 | # Set to yes if linker adds runtime paths of dependent libraries |
18295 | # to runtime path list. | |
18296 | inherit_rpath=$inherit_rpath_CXX | |
6b66678a | 18297 | |
9c60689e DWT |
18298 | # Whether libtool must link a program against all its dependency libraries. |
18299 | link_all_deplibs=$link_all_deplibs_CXX | |
6b66678a | 18300 | |
9c60689e DWT |
18301 | # Fix the shell variable \$srcfile for the compiler. |
18302 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
6b66678a | 18303 | |
9c60689e DWT |
18304 | # Set to "yes" if exported symbols are required. |
18305 | always_export_symbols=$always_export_symbols_CXX | |
6b66678a | 18306 | |
9c60689e DWT |
18307 | # The commands to list exported symbols. |
18308 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
6b66678a | 18309 | |
9c60689e DWT |
18310 | # Symbols that should not be listed in the preloaded symbols. |
18311 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
6b66678a | 18312 | |
9c60689e DWT |
18313 | # Symbols that must always be exported. |
18314 | include_expsyms=$lt_include_expsyms_CXX | |
6b66678a | 18315 | |
9c60689e DWT |
18316 | # Commands necessary for linking programs (against libraries) with templates. |
18317 | prelink_cmds=$lt_prelink_cmds_CXX | |
6b66678a | 18318 | |
9c60689e DWT |
18319 | # Specify filename containing input files. |
18320 | file_list_spec=$lt_file_list_spec_CXX | |
dbadc56a | 18321 | |
9c60689e DWT |
18322 | # How to hardcode a shared library path into an executable. |
18323 | hardcode_action=$hardcode_action_CXX | |
309b0535 | 18324 | |
9c60689e DWT |
18325 | # The directories searched by this compiler when creating a shared library. |
18326 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
309b0535 | 18327 | |
9c60689e DWT |
18328 | # Dependencies to place before and after the objects being linked to |
18329 | # create a shared library. | |
18330 | predep_objects=$lt_predep_objects_CXX | |
18331 | postdep_objects=$lt_postdep_objects_CXX | |
18332 | predeps=$lt_predeps_CXX | |
18333 | postdeps=$lt_postdeps_CXX | |
309b0535 | 18334 | |
9c60689e DWT |
18335 | # The library search path used internally by the compiler when linking |
18336 | # a shared library. | |
18337 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
18338 | ||
18339 | # ### END LIBTOOL TAG CONFIG: CXX | |
18340 | _LT_EOF | |
18341 | ||
18342 | ;; | |
18343 | ||
18344 | esac | |
18345 | done # for ac_tag | |
18346 | ||
18347 | ||
18348 | as_fn_exit 0 | |
18349 | _ACEOF | |
18350 | ac_clean_files=$ac_clean_files_save | |
18351 | ||
18352 | test $ac_write_fail = 0 || | |
18353 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
18354 | ||
18355 | ||
18356 | # configure is writing to config.log, and then calls config.status. | |
18357 | # config.status does its own redirection, appending to config.log. | |
18358 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18359 | # by configure, so config.status won't be able to write to it; its | |
18360 | # output is simply discarded. So we exec the FD to /dev/null, | |
18361 | # effectively closing config.log, so it can be properly (re)opened and | |
18362 | # appended to by config.status. When coming back to configure, we | |
18363 | # need to make the FD available again. | |
18364 | if test "$no_create" != yes; then | |
18365 | ac_cs_success=: | |
18366 | ac_config_status_args= | |
18367 | test "$silent" = yes && | |
18368 | ac_config_status_args="$ac_config_status_args --quiet" | |
18369 | exec 5>/dev/null | |
18370 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18371 | exec 5>>config.log | |
18372 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18373 | # would make configure fail if this is the last instruction. | |
18374 | $ac_cs_success || as_fn_exit $? | |
309b0535 | 18375 | fi |
9c60689e DWT |
18376 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
18377 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18378 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18379 | fi | |
18380 |