]>
Commit | Line | Data |
---|---|---|
f35db108 WM |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
a2479b3d | 3 | # Generated by GNU Autoconf 2.64 for package-unused version-unused. |
f35db108 WM |
4 | # |
5 | # Report bugs to <libsanitizer>. | |
6 | # | |
f35db108 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
a2479b3d | 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software |
f35db108 WM |
9 | # Foundation, Inc. |
10 | # | |
f35db108 WM |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f35db108 WM |
92 | case $0 in #(( |
93 | *[\\/]* ) as_myself=$0 ;; | |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
100 | done | |
101 | IFS=$as_save_IFS | |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
112 | exit 1 | |
113 | fi | |
114 | ||
115 | # Unset variables that we do not need and which cause bugs (e.g. in | |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
122 | done | |
123 | PS1='$ ' | |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
128 | LC_ALL=C | |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
132 | ||
133 | # CDPATH. | |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
c915a581 | 174 | test \$(( 1 + 1 )) = 2 || exit 1 |
f35db108 WM |
175 | |
176 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
177 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
178 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
179 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
180 | PATH=/empty FPATH=/empty; export PATH FPATH | |
181 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
c915a581 | 182 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
f35db108 WM |
183 | if (eval "$as_required") 2>/dev/null; then : |
184 | as_have_required=yes | |
185 | else | |
186 | as_have_required=no | |
187 | fi | |
188 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
189 | ||
190 | else | |
191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
192 | as_found=false | |
193 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
194 | do | |
195 | IFS=$as_save_IFS | |
196 | test -z "$as_dir" && as_dir=. | |
197 | as_found=: | |
198 | case $as_dir in #( | |
199 | /*) | |
200 | for as_base in sh bash ksh sh5; do | |
201 | # Try only shells that exist, to save several forks. | |
202 | as_shell=$as_dir/$as_base | |
203 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
204 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | CONFIG_SHELL=$as_shell as_have_required=yes | |
206 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
207 | break 2 | |
208 | fi | |
209 | fi | |
210 | done;; | |
211 | esac | |
212 | as_found=false | |
213 | done | |
214 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
215 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
216 | CONFIG_SHELL=$SHELL as_have_required=yes | |
217 | fi; } | |
218 | IFS=$as_save_IFS | |
219 | ||
220 | ||
221 | if test "x$CONFIG_SHELL" != x; then : | |
222 | # We cannot yet assume a decent shell, so we have to provide a | |
223 | # neutralization value for shells without unset; and this also | |
224 | # works around shells that cannot unset nonexistent variables. | |
f35db108 WM |
225 | BASH_ENV=/dev/null |
226 | ENV=/dev/null | |
227 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
228 | export CONFIG_SHELL | |
a2479b3d | 229 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
f35db108 WM |
230 | fi |
231 | ||
232 | if test x$as_have_required = xno; then : | |
233 | $as_echo "$0: This script requires a shell more modern than all" | |
234 | $as_echo "$0: the shells that I found on your system." | |
235 | if test x${ZSH_VERSION+set} = xset ; then | |
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
238 | else | |
239 | $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about | |
240 | $0: your system, including any error possibly output before | |
241 | $0: this message. Then install a modern shell, or manually | |
242 | $0: run the script under such a shell if you do have one." | |
243 | fi | |
244 | exit 1 | |
245 | fi | |
246 | fi | |
247 | fi | |
248 | SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | export SHELL | |
250 | # Unset more variables known to interfere with behavior of common tools. | |
251 | CLICOLOR_FORCE= GREP_OPTIONS= | |
252 | unset CLICOLOR_FORCE GREP_OPTIONS | |
253 | ||
254 | ## --------------------- ## | |
255 | ## M4sh Shell Functions. ## | |
256 | ## --------------------- ## | |
257 | # as_fn_unset VAR | |
258 | # --------------- | |
259 | # Portably unset VAR. | |
260 | as_fn_unset () | |
261 | { | |
262 | { eval $1=; unset $1;} | |
263 | } | |
264 | as_unset=as_fn_unset | |
265 | ||
266 | # as_fn_set_status STATUS | |
267 | # ----------------------- | |
268 | # Set $? to STATUS, without forking. | |
269 | as_fn_set_status () | |
270 | { | |
271 | return $1 | |
272 | } # as_fn_set_status | |
273 | ||
274 | # as_fn_exit STATUS | |
275 | # ----------------- | |
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
277 | as_fn_exit () | |
278 | { | |
279 | set +e | |
280 | as_fn_set_status $1 | |
281 | exit $1 | |
282 | } # as_fn_exit | |
283 | ||
284 | # as_fn_mkdir_p | |
285 | # ------------- | |
286 | # Create "$as_dir" as a directory, including parents if necessary. | |
287 | as_fn_mkdir_p () | |
288 | { | |
289 | ||
290 | case $as_dir in #( | |
291 | -*) as_dir=./$as_dir;; | |
292 | esac | |
293 | test -d "$as_dir" || eval $as_mkdir_p || { | |
294 | as_dirs= | |
295 | while :; do | |
296 | case $as_dir in #( | |
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
298 | *) as_qdir=$as_dir;; | |
299 | esac | |
300 | as_dirs="'$as_qdir' $as_dirs" | |
301 | as_dir=`$as_dirname -- "$as_dir" || | |
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
303 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
304 | X"$as_dir" : 'X\(//\)$' \| \ | |
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
306 | $as_echo X"$as_dir" | | |
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\/\)[^/].*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)$/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\).*/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | s/.*/./; q'` | |
324 | test -d "$as_dir" && break | |
325 | done | |
326 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
a2479b3d | 327 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
f35db108 WM |
328 | |
329 | ||
330 | } # as_fn_mkdir_p | |
331 | # as_fn_append VAR VALUE | |
332 | # ---------------------- | |
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
334 | # advantage of any shell optimizations that allow amortized linear growth over | |
335 | # repeated appends, instead of the typical quadratic growth present in naive | |
336 | # implementations. | |
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
338 | eval 'as_fn_append () | |
339 | { | |
340 | eval $1+=\$2 | |
341 | }' | |
342 | else | |
343 | as_fn_append () | |
344 | { | |
345 | eval $1=\$$1\$2 | |
346 | } | |
347 | fi # as_fn_append | |
348 | ||
349 | # as_fn_arith ARG... | |
350 | # ------------------ | |
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
353 | # must be portable across $(()) and expr. | |
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
355 | eval 'as_fn_arith () | |
356 | { | |
357 | as_val=$(( $* )) | |
358 | }' | |
359 | else | |
360 | as_fn_arith () | |
361 | { | |
362 | as_val=`expr "$@" || test $? -eq 1` | |
363 | } | |
364 | fi # as_fn_arith | |
365 | ||
366 | ||
a2479b3d L |
367 | # as_fn_error ERROR [LINENO LOG_FD] |
368 | # --------------------------------- | |
f35db108 WM |
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
a2479b3d | 371 | # script with status $?, using 1 if that was 0. |
f35db108 WM |
372 | as_fn_error () |
373 | { | |
a2479b3d L |
374 | as_status=$?; test $as_status -eq 0 && as_status=1 |
375 | if test "$3"; then | |
376 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
f35db108 | 378 | fi |
a2479b3d | 379 | $as_echo "$as_me: error: $1" >&2 |
f35db108 WM |
380 | as_fn_exit $as_status |
381 | } # as_fn_error | |
382 | ||
383 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
385 | as_expr=expr | |
386 | else | |
387 | as_expr=false | |
388 | fi | |
389 | ||
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
391 | as_basename=basename | |
392 | else | |
393 | as_basename=false | |
394 | fi | |
395 | ||
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
397 | as_dirname=dirname | |
398 | else | |
399 | as_dirname=false | |
400 | fi | |
401 | ||
402 | as_me=`$as_basename -- "$0" || | |
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
404 | X"$0" : 'X\(//\)$' \| \ | |
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
406 | $as_echo X/"$0" | | |
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | /^X\/\(\/\/\)$/{ | |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\).*/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | s/.*/./; q'` | |
420 | ||
421 | # Avoid depending upon Character Ranges. | |
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
425 | as_cr_digits='0123456789' | |
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
427 | ||
428 | ||
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | sed -n ' | |
435 | p | |
436 | /[$]LINENO/= | |
437 | ' <$as_myself | | |
438 | sed ' | |
439 | s/[$]LINENO.*/&-/ | |
440 | t lineno | |
441 | b | |
442 | :lineno | |
443 | N | |
444 | :loop | |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
446 | t loop | |
447 | s/-\n.*// | |
448 | ' >$as_me.lineno && | |
449 | chmod +x "$as_me.lineno" || | |
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
451 | ||
452 | # Don't try to exec as it changes $[0], causing all sort of problems | |
453 | # (the dirname of $[0] is not the place where we might find the | |
454 | # original and so on. Autoconf is especially sensitive to this). | |
455 | . "./$as_me.lineno" | |
456 | # Exit status is that of the last command. | |
457 | exit | |
458 | } | |
459 | ||
460 | ECHO_C= ECHO_N= ECHO_T= | |
461 | case `echo -n x` in #((((( | |
462 | -n*) | |
463 | case `echo 'xy\c'` in | |
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
465 | xy) ECHO_C='\c';; | |
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
467 | ECHO_T=' ';; | |
468 | esac;; | |
469 | *) | |
470 | ECHO_N='-n';; | |
471 | esac | |
472 | ||
473 | rm -f conf$$ conf$$.exe conf$$.file | |
474 | if test -d conf$$.dir; then | |
475 | rm -f conf$$.dir/conf$$.file | |
476 | else | |
477 | rm -f conf$$.dir | |
478 | mkdir conf$$.dir 2>/dev/null | |
479 | fi | |
480 | if (echo >conf$$.file) 2>/dev/null; then | |
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s='ln -s' | |
483 | # ... but there are two gotchas: | |
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
486 | # In both cases, we have to default to `cp -p'. | |
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
488 | as_ln_s='cp -p' | |
489 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
490 | as_ln_s=ln | |
491 | else | |
492 | as_ln_s='cp -p' | |
493 | fi | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
498 | rmdir conf$$.dir 2>/dev/null | |
499 | ||
500 | if mkdir -p . 2>/dev/null; then | |
501 | as_mkdir_p='mkdir -p "$as_dir"' | |
502 | else | |
503 | test -d ./-p && rmdir ./-p | |
504 | as_mkdir_p=false | |
505 | fi | |
506 | ||
507 | if test -x / >/dev/null 2>&1; then | |
508 | as_test_x='test -x' | |
509 | else | |
510 | if ls -dL / >/dev/null 2>&1; then | |
511 | as_ls_L_option=L | |
512 | else | |
513 | as_ls_L_option= | |
514 | fi | |
515 | as_test_x=' | |
516 | eval sh -c '\'' | |
517 | if test -d "$1"; then | |
518 | test -d "$1/."; | |
519 | else | |
520 | case $1 in #( | |
521 | -*)set "./$1";; | |
522 | esac; | |
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | ???[sx]*):;;*)false;;esac;fi | |
525 | '\'' sh | |
526 | ' | |
527 | fi | |
528 | as_executable_p=$as_test_x | |
529 | ||
530 | # Sed expression to map a string onto a valid CPP name. | |
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
532 | ||
533 | # Sed expression to map a string onto a valid variable name. | |
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | SHELL=${CONFIG_SHELL-/bin/sh} | |
537 | ||
538 | ||
a2479b3d | 539 | exec 7<&0 </dev/null 6>&1 |
f35db108 WM |
540 | |
541 | # Name of the host. | |
a2479b3d | 542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
f35db108 WM |
543 | # so uname gets run too. |
544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
545 | ||
546 | # | |
547 | # Initializations. | |
548 | # | |
549 | ac_default_prefix=/usr/local | |
550 | ac_clean_files= | |
551 | ac_config_libobj_dir=. | |
552 | LIBOBJS= | |
553 | cross_compiling=no | |
554 | subdirs= | |
555 | MFLAGS= | |
556 | MAKEFLAGS= | |
557 | ||
558 | # Identity of this package. | |
559 | PACKAGE_NAME='package-unused' | |
560 | PACKAGE_TARNAME='package-unused' | |
561 | PACKAGE_VERSION='version-unused' | |
562 | PACKAGE_STRING='package-unused version-unused' | |
563 | PACKAGE_BUGREPORT='libsanitizer' | |
564 | PACKAGE_URL='' | |
565 | ||
566 | ac_unique_file="include/sanitizer/common_interface_defs.h" | |
567 | # Factoring default headers for most tests. | |
568 | ac_includes_default="\ | |
569 | #include <stdio.h> | |
570 | #ifdef HAVE_SYS_TYPES_H | |
571 | # include <sys/types.h> | |
572 | #endif | |
573 | #ifdef HAVE_SYS_STAT_H | |
574 | # include <sys/stat.h> | |
575 | #endif | |
576 | #ifdef STDC_HEADERS | |
577 | # include <stdlib.h> | |
578 | # include <stddef.h> | |
579 | #else | |
580 | # ifdef HAVE_STDLIB_H | |
581 | # include <stdlib.h> | |
582 | # endif | |
583 | #endif | |
584 | #ifdef HAVE_STRING_H | |
585 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
586 | # include <memory.h> | |
587 | # endif | |
588 | # include <string.h> | |
589 | #endif | |
590 | #ifdef HAVE_STRINGS_H | |
591 | # include <strings.h> | |
592 | #endif | |
593 | #ifdef HAVE_INTTYPES_H | |
594 | # include <inttypes.h> | |
595 | #endif | |
596 | #ifdef HAVE_STDINT_H | |
597 | # include <stdint.h> | |
598 | #endif | |
599 | #ifdef HAVE_UNISTD_H | |
600 | # include <unistd.h> | |
601 | #endif" | |
602 | ||
603 | ac_subst_vars='am__EXEEXT_FALSE | |
604 | am__EXEEXT_TRUE | |
605 | LTLIBOBJS | |
606 | LIBOBJS | |
10189819 | 607 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS |
b0edd457 | 608 | TSAN_TARGET_DEPENDENT_OBJECTS |
c915a581 JJ |
609 | LIBBACKTRACE_SUPPORTED_FALSE |
610 | LIBBACKTRACE_SUPPORTED_TRUE | |
d041a6fc | 611 | RPC_DEFS |
c915a581 JJ |
612 | BACKTRACE_SUPPORTS_THREADS |
613 | BACKTRACE_USES_MALLOC | |
614 | ALLOC_FILE | |
615 | VIEW_FILE | |
616 | BACKTRACE_SUPPORTED | |
617 | FORMAT_FILE | |
4a7eaf5f YG |
618 | SANITIZER_SUPPORTED_FALSE |
619 | SANITIZER_SUPPORTED_TRUE | |
8c4d267c KS |
620 | USING_MAC_INTERPOSE_FALSE |
621 | USING_MAC_INTERPOSE_TRUE | |
35814b03 JJ |
622 | link_liblsan |
623 | link_libubsan | |
624 | link_libtsan | |
625 | link_libasan | |
9065ada9 JJ |
626 | LSAN_SUPPORTED_FALSE |
627 | LSAN_SUPPORTED_TRUE | |
64548f3b JJ |
628 | TSAN_SUPPORTED_FALSE |
629 | TSAN_SUPPORTED_TRUE | |
f35db108 WM |
630 | enable_static |
631 | enable_shared | |
632 | CXXCPP | |
f35db108 WM |
633 | OTOOL64 |
634 | OTOOL | |
635 | LIPO | |
636 | NMEDIT | |
637 | DSYMUTIL | |
f35db108 | 638 | AR |
f35db108 WM |
639 | OBJDUMP |
640 | LN_S | |
641 | NM | |
642 | ac_ct_DUMPBIN | |
643 | DUMPBIN | |
644 | LD | |
645 | FGREP | |
f35db108 | 646 | SED |
f35db108 | 647 | LIBTOOL |
c915a581 | 648 | RANLIB |
f35db108 WM |
649 | am__fastdepCCAS_FALSE |
650 | am__fastdepCCAS_TRUE | |
651 | CCASDEPMODE | |
652 | CCASFLAGS | |
653 | CCAS | |
654 | am__fastdepCXX_FALSE | |
655 | am__fastdepCXX_TRUE | |
656 | CXXDEPMODE | |
657 | ac_ct_CXX | |
658 | CXXFLAGS | |
659 | CXX | |
c915a581 JJ |
660 | toolexeclibdir |
661 | toolexecdir | |
662 | MAINT | |
663 | MAINTAINER_MODE_FALSE | |
664 | MAINTAINER_MODE_TRUE | |
f35db108 WM |
665 | am__fastdepCC_FALSE |
666 | am__fastdepCC_TRUE | |
667 | CCDEPMODE | |
f3915b42 | 668 | am__nodep |
f35db108 WM |
669 | AMDEPBACKSLASH |
670 | AMDEP_FALSE | |
671 | AMDEP_TRUE | |
672 | am__quote | |
673 | am__include | |
674 | DEPDIR | |
f35db108 WM |
675 | am__untar |
676 | am__tar | |
677 | AMTAR | |
678 | am__leading_dot | |
679 | SET_MAKE | |
680 | AWK | |
681 | mkdir_p | |
682 | MKDIR_P | |
683 | INSTALL_STRIP_PROGRAM | |
684 | STRIP | |
685 | install_sh | |
686 | MAKEINFO | |
687 | AUTOHEADER | |
688 | AUTOMAKE | |
689 | AUTOCONF | |
690 | ACLOCAL | |
691 | VERSION | |
692 | PACKAGE | |
693 | CYGPATH_W | |
694 | am__isrc | |
695 | INSTALL_DATA | |
696 | INSTALL_SCRIPT | |
697 | INSTALL_PROGRAM | |
e1e953d9 | 698 | LIBSTDCXX_RAW_CXX_LDFLAGS |
d10a2df2 L |
699 | LIBSTDCXX_RAW_CXX_CXXFLAGS |
700 | target_noncanonical | |
2a6346c4 L |
701 | target_os |
702 | target_vendor | |
703 | target_cpu | |
704 | target | |
705 | host_os | |
706 | host_vendor | |
707 | host_cpu | |
708 | host | |
709 | build_os | |
710 | build_vendor | |
711 | build_cpu | |
712 | build | |
c915a581 JJ |
713 | EGREP |
714 | GREP | |
715 | CPP | |
716 | OBJEXT | |
717 | EXEEXT | |
718 | ac_ct_CC | |
719 | CPPFLAGS | |
720 | LDFLAGS | |
721 | CFLAGS | |
722 | CC | |
94213c10 | 723 | multi_basedir |
f35db108 WM |
724 | target_alias |
725 | host_alias | |
726 | build_alias | |
727 | LIBS | |
728 | ECHO_T | |
729 | ECHO_N | |
730 | ECHO_C | |
731 | DEFS | |
732 | mandir | |
733 | localedir | |
734 | libdir | |
735 | psdir | |
736 | pdfdir | |
737 | dvidir | |
738 | htmldir | |
739 | infodir | |
740 | docdir | |
741 | oldincludedir | |
742 | includedir | |
743 | localstatedir | |
744 | sharedstatedir | |
745 | sysconfdir | |
746 | datadir | |
747 | datarootdir | |
748 | libexecdir | |
749 | sbindir | |
750 | bindir | |
751 | program_transform_name | |
752 | prefix | |
753 | exec_prefix | |
754 | PACKAGE_URL | |
755 | PACKAGE_BUGREPORT | |
756 | PACKAGE_STRING | |
757 | PACKAGE_VERSION | |
758 | PACKAGE_TARNAME | |
759 | PACKAGE_NAME | |
760 | PATH_SEPARATOR | |
761 | SHELL' | |
762 | ac_subst_files='' | |
763 | ac_user_opts=' | |
764 | enable_option_checking | |
94213c10 | 765 | enable_multilib |
2a6346c4 | 766 | enable_version_specific_runtime_libs |
c915a581 | 767 | enable_dependency_tracking |
2b723e21 | 768 | enable_maintainer_mode |
f35db108 WM |
769 | enable_shared |
770 | enable_static | |
771 | with_pic | |
772 | enable_fast_install | |
773 | with_gnu_ld | |
f35db108 WM |
774 | enable_libtool_lock |
775 | ' | |
776 | ac_precious_vars='build_alias | |
777 | host_alias | |
778 | target_alias | |
779 | CC | |
780 | CFLAGS | |
781 | LDFLAGS | |
782 | LIBS | |
783 | CPPFLAGS | |
c915a581 | 784 | CPP |
f35db108 WM |
785 | CXX |
786 | CXXFLAGS | |
787 | CCC | |
788 | CCAS | |
789 | CCASFLAGS | |
f35db108 WM |
790 | CXXCPP' |
791 | ||
792 | ||
793 | # Initialize some variables set by options. | |
794 | ac_init_help= | |
795 | ac_init_version=false | |
796 | ac_unrecognized_opts= | |
797 | ac_unrecognized_sep= | |
798 | # The variables have the same names as the options, with | |
799 | # dashes changed to underlines. | |
800 | cache_file=/dev/null | |
801 | exec_prefix=NONE | |
802 | no_create= | |
803 | no_recursion= | |
804 | prefix=NONE | |
805 | program_prefix=NONE | |
806 | program_suffix=NONE | |
807 | program_transform_name=s,x,x, | |
808 | silent= | |
809 | site= | |
810 | srcdir= | |
811 | verbose= | |
812 | x_includes=NONE | |
813 | x_libraries=NONE | |
814 | ||
815 | # Installation directory options. | |
816 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
817 | # and all the variables that are supposed to be based on exec_prefix | |
818 | # by default will actually change. | |
819 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
820 | # (The list follows the same order as the GNU Coding Standards.) | |
821 | bindir='${exec_prefix}/bin' | |
822 | sbindir='${exec_prefix}/sbin' | |
823 | libexecdir='${exec_prefix}/libexec' | |
824 | datarootdir='${prefix}/share' | |
825 | datadir='${datarootdir}' | |
826 | sysconfdir='${prefix}/etc' | |
827 | sharedstatedir='${prefix}/com' | |
828 | localstatedir='${prefix}/var' | |
829 | includedir='${prefix}/include' | |
830 | oldincludedir='/usr/include' | |
831 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
832 | infodir='${datarootdir}/info' | |
833 | htmldir='${docdir}' | |
834 | dvidir='${docdir}' | |
835 | pdfdir='${docdir}' | |
836 | psdir='${docdir}' | |
837 | libdir='${exec_prefix}/lib' | |
838 | localedir='${datarootdir}/locale' | |
839 | mandir='${datarootdir}/man' | |
840 | ||
841 | ac_prev= | |
842 | ac_dashdash= | |
843 | for ac_option | |
844 | do | |
845 | # If the previous option needs an argument, assign it. | |
846 | if test -n "$ac_prev"; then | |
847 | eval $ac_prev=\$ac_option | |
848 | ac_prev= | |
849 | continue | |
850 | fi | |
851 | ||
852 | case $ac_option in | |
a2479b3d L |
853 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
854 | *) ac_optarg=yes ;; | |
f35db108 WM |
855 | esac |
856 | ||
857 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
858 | ||
859 | case $ac_dashdash$ac_option in | |
860 | --) | |
861 | ac_dashdash=yes ;; | |
862 | ||
863 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
864 | ac_prev=bindir ;; | |
865 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
866 | bindir=$ac_optarg ;; | |
867 | ||
868 | -build | --build | --buil | --bui | --bu) | |
869 | ac_prev=build_alias ;; | |
870 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
871 | build_alias=$ac_optarg ;; | |
872 | ||
873 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
874 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
875 | ac_prev=cache_file ;; | |
876 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
877 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
878 | cache_file=$ac_optarg ;; | |
879 | ||
880 | --config-cache | -C) | |
881 | cache_file=config.cache ;; | |
882 | ||
883 | -datadir | --datadir | --datadi | --datad) | |
884 | ac_prev=datadir ;; | |
885 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
886 | datadir=$ac_optarg ;; | |
887 | ||
888 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
889 | | --dataroo | --dataro | --datar) | |
890 | ac_prev=datarootdir ;; | |
891 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
892 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
893 | datarootdir=$ac_optarg ;; | |
894 | ||
895 | -disable-* | --disable-*) | |
896 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
897 | # Reject names that are not valid shell variable names. | |
898 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
a2479b3d | 899 | as_fn_error "invalid feature name: $ac_useropt" |
f35db108 WM |
900 | ac_useropt_orig=$ac_useropt |
901 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
902 | case $ac_user_opts in | |
903 | *" | |
904 | "enable_$ac_useropt" | |
905 | "*) ;; | |
906 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
907 | ac_unrecognized_sep=', ';; | |
908 | esac | |
909 | eval enable_$ac_useropt=no ;; | |
910 | ||
911 | -docdir | --docdir | --docdi | --doc | --do) | |
912 | ac_prev=docdir ;; | |
913 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
914 | docdir=$ac_optarg ;; | |
915 | ||
916 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
917 | ac_prev=dvidir ;; | |
918 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
919 | dvidir=$ac_optarg ;; | |
920 | ||
921 | -enable-* | --enable-*) | |
922 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
923 | # Reject names that are not valid shell variable names. | |
924 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
a2479b3d | 925 | as_fn_error "invalid feature name: $ac_useropt" |
f35db108 WM |
926 | ac_useropt_orig=$ac_useropt |
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
928 | case $ac_user_opts in | |
929 | *" | |
930 | "enable_$ac_useropt" | |
931 | "*) ;; | |
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
933 | ac_unrecognized_sep=', ';; | |
934 | esac | |
935 | eval enable_$ac_useropt=\$ac_optarg ;; | |
936 | ||
937 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
938 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
939 | | --exec | --exe | --ex) | |
940 | ac_prev=exec_prefix ;; | |
941 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
942 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
943 | | --exec=* | --exe=* | --ex=*) | |
944 | exec_prefix=$ac_optarg ;; | |
945 | ||
946 | -gas | --gas | --ga | --g) | |
947 | # Obsolete; use --with-gas. | |
948 | with_gas=yes ;; | |
949 | ||
950 | -help | --help | --hel | --he | -h) | |
951 | ac_init_help=long ;; | |
952 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
953 | ac_init_help=recursive ;; | |
954 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
955 | ac_init_help=short ;; | |
956 | ||
957 | -host | --host | --hos | --ho) | |
958 | ac_prev=host_alias ;; | |
959 | -host=* | --host=* | --hos=* | --ho=*) | |
960 | host_alias=$ac_optarg ;; | |
961 | ||
962 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
963 | ac_prev=htmldir ;; | |
964 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
965 | | --ht=*) | |
966 | htmldir=$ac_optarg ;; | |
967 | ||
968 | -includedir | --includedir | --includedi | --included | --include \ | |
969 | | --includ | --inclu | --incl | --inc) | |
970 | ac_prev=includedir ;; | |
971 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
972 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
973 | includedir=$ac_optarg ;; | |
974 | ||
975 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
976 | ac_prev=infodir ;; | |
977 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
978 | infodir=$ac_optarg ;; | |
979 | ||
980 | -libdir | --libdir | --libdi | --libd) | |
981 | ac_prev=libdir ;; | |
982 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
983 | libdir=$ac_optarg ;; | |
984 | ||
985 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
986 | | --libexe | --libex | --libe) | |
987 | ac_prev=libexecdir ;; | |
988 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
989 | | --libexe=* | --libex=* | --libe=*) | |
990 | libexecdir=$ac_optarg ;; | |
991 | ||
992 | -localedir | --localedir | --localedi | --localed | --locale) | |
993 | ac_prev=localedir ;; | |
994 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
995 | localedir=$ac_optarg ;; | |
996 | ||
997 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
998 | | --localstate | --localstat | --localsta | --localst | --locals) | |
999 | ac_prev=localstatedir ;; | |
1000 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1001 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1002 | localstatedir=$ac_optarg ;; | |
1003 | ||
1004 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1005 | ac_prev=mandir ;; | |
1006 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1007 | mandir=$ac_optarg ;; | |
1008 | ||
1009 | -nfp | --nfp | --nf) | |
1010 | # Obsolete; use --without-fp. | |
1011 | with_fp=no ;; | |
1012 | ||
1013 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1014 | | --no-cr | --no-c | -n) | |
1015 | no_create=yes ;; | |
1016 | ||
1017 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1018 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1019 | no_recursion=yes ;; | |
1020 | ||
1021 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1022 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1023 | | --oldin | --oldi | --old | --ol | --o) | |
1024 | ac_prev=oldincludedir ;; | |
1025 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1026 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1027 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1028 | oldincludedir=$ac_optarg ;; | |
1029 | ||
1030 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1031 | ac_prev=prefix ;; | |
1032 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1033 | prefix=$ac_optarg ;; | |
1034 | ||
1035 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1036 | | --program-pre | --program-pr | --program-p) | |
1037 | ac_prev=program_prefix ;; | |
1038 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1039 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1040 | program_prefix=$ac_optarg ;; | |
1041 | ||
1042 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1043 | | --program-suf | --program-su | --program-s) | |
1044 | ac_prev=program_suffix ;; | |
1045 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1046 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1047 | program_suffix=$ac_optarg ;; | |
1048 | ||
1049 | -program-transform-name | --program-transform-name \ | |
1050 | | --program-transform-nam | --program-transform-na \ | |
1051 | | --program-transform-n | --program-transform- \ | |
1052 | | --program-transform | --program-transfor \ | |
1053 | | --program-transfo | --program-transf \ | |
1054 | | --program-trans | --program-tran \ | |
1055 | | --progr-tra | --program-tr | --program-t) | |
1056 | ac_prev=program_transform_name ;; | |
1057 | -program-transform-name=* | --program-transform-name=* \ | |
1058 | | --program-transform-nam=* | --program-transform-na=* \ | |
1059 | | --program-transform-n=* | --program-transform-=* \ | |
1060 | | --program-transform=* | --program-transfor=* \ | |
1061 | | --program-transfo=* | --program-transf=* \ | |
1062 | | --program-trans=* | --program-tran=* \ | |
1063 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1064 | program_transform_name=$ac_optarg ;; | |
1065 | ||
1066 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1067 | ac_prev=pdfdir ;; | |
1068 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1069 | pdfdir=$ac_optarg ;; | |
1070 | ||
1071 | -psdir | --psdir | --psdi | --psd | --ps) | |
1072 | ac_prev=psdir ;; | |
1073 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1074 | psdir=$ac_optarg ;; | |
1075 | ||
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1077 | | -silent | --silent | --silen | --sile | --sil) | |
1078 | silent=yes ;; | |
1079 | ||
1080 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1081 | ac_prev=sbindir ;; | |
1082 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1083 | | --sbi=* | --sb=*) | |
1084 | sbindir=$ac_optarg ;; | |
1085 | ||
1086 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1087 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1088 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1089 | | --sha | --sh) | |
1090 | ac_prev=sharedstatedir ;; | |
1091 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1092 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1093 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1094 | | --sha=* | --sh=*) | |
1095 | sharedstatedir=$ac_optarg ;; | |
1096 | ||
1097 | -site | --site | --sit) | |
1098 | ac_prev=site ;; | |
1099 | -site=* | --site=* | --sit=*) | |
1100 | site=$ac_optarg ;; | |
1101 | ||
1102 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1103 | ac_prev=srcdir ;; | |
1104 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1105 | srcdir=$ac_optarg ;; | |
1106 | ||
1107 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1108 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1109 | ac_prev=sysconfdir ;; | |
1110 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1111 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1112 | sysconfdir=$ac_optarg ;; | |
1113 | ||
1114 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1115 | ac_prev=target_alias ;; | |
1116 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1117 | target_alias=$ac_optarg ;; | |
1118 | ||
1119 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1120 | verbose=yes ;; | |
1121 | ||
1122 | -version | --version | --versio | --versi | --vers | -V) | |
1123 | ac_init_version=: ;; | |
1124 | ||
1125 | -with-* | --with-*) | |
1126 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1127 | # Reject names that are not valid shell variable names. | |
1128 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
a2479b3d | 1129 | as_fn_error "invalid package name: $ac_useropt" |
f35db108 WM |
1130 | ac_useropt_orig=$ac_useropt |
1131 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1132 | case $ac_user_opts in | |
1133 | *" | |
1134 | "with_$ac_useropt" | |
1135 | "*) ;; | |
1136 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1137 | ac_unrecognized_sep=', ';; | |
1138 | esac | |
1139 | eval with_$ac_useropt=\$ac_optarg ;; | |
1140 | ||
1141 | -without-* | --without-*) | |
1142 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1143 | # Reject names that are not valid shell variable names. | |
1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
a2479b3d | 1145 | as_fn_error "invalid package name: $ac_useropt" |
f35db108 WM |
1146 | ac_useropt_orig=$ac_useropt |
1147 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1148 | case $ac_user_opts in | |
1149 | *" | |
1150 | "with_$ac_useropt" | |
1151 | "*) ;; | |
1152 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1153 | ac_unrecognized_sep=', ';; | |
1154 | esac | |
1155 | eval with_$ac_useropt=no ;; | |
1156 | ||
1157 | --x) | |
1158 | # Obsolete; use --with-x. | |
1159 | with_x=yes ;; | |
1160 | ||
1161 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1162 | | --x-incl | --x-inc | --x-in | --x-i) | |
1163 | ac_prev=x_includes ;; | |
1164 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1165 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1166 | x_includes=$ac_optarg ;; | |
1167 | ||
1168 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1169 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1170 | ac_prev=x_libraries ;; | |
1171 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1172 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1173 | x_libraries=$ac_optarg ;; | |
1174 | ||
a2479b3d L |
1175 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1176 | Try \`$0 --help' for more information." | |
f35db108 WM |
1177 | ;; |
1178 | ||
1179 | *=*) | |
1180 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1181 | # Reject names that are not valid shell variable names. | |
1182 | case $ac_envvar in #( | |
1183 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
a2479b3d | 1184 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
f35db108 WM |
1185 | esac |
1186 | eval $ac_envvar=\$ac_optarg | |
1187 | export $ac_envvar ;; | |
1188 | ||
1189 | *) | |
1190 | # FIXME: should be removed in autoconf 3.0. | |
1191 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1192 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1193 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
a2479b3d | 1194 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
f35db108 WM |
1195 | ;; |
1196 | ||
1197 | esac | |
1198 | done | |
1199 | ||
1200 | if test -n "$ac_prev"; then | |
1201 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
a2479b3d | 1202 | as_fn_error "missing argument to $ac_option" |
f35db108 WM |
1203 | fi |
1204 | ||
1205 | if test -n "$ac_unrecognized_opts"; then | |
1206 | case $enable_option_checking in | |
1207 | no) ;; | |
a2479b3d | 1208 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
f35db108 WM |
1209 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1210 | esac | |
1211 | fi | |
1212 | ||
1213 | # Check all directory arguments for consistency. | |
1214 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1215 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1216 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1217 | libdir localedir mandir | |
1218 | do | |
1219 | eval ac_val=\$$ac_var | |
1220 | # Remove trailing slashes. | |
1221 | case $ac_val in | |
1222 | */ ) | |
1223 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1224 | eval $ac_var=\$ac_val;; | |
1225 | esac | |
1226 | # Be sure to have absolute directory names. | |
1227 | case $ac_val in | |
1228 | [\\/$]* | ?:[\\/]* ) continue;; | |
1229 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1230 | esac | |
a2479b3d | 1231 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
f35db108 WM |
1232 | done |
1233 | ||
1234 | # There might be people who depend on the old broken behavior: `$host' | |
1235 | # used to hold the argument of --host etc. | |
1236 | # FIXME: To remove some day. | |
1237 | build=$build_alias | |
1238 | host=$host_alias | |
1239 | target=$target_alias | |
1240 | ||
1241 | # FIXME: To remove some day. | |
1242 | if test "x$host_alias" != x; then | |
1243 | if test "x$build_alias" = x; then | |
1244 | cross_compiling=maybe | |
a2479b3d L |
1245 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1246 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
f35db108 WM |
1247 | elif test "x$build_alias" != "x$host_alias"; then |
1248 | cross_compiling=yes | |
1249 | fi | |
1250 | fi | |
1251 | ||
1252 | ac_tool_prefix= | |
1253 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1254 | ||
1255 | test "$silent" = yes && exec 6>/dev/null | |
1256 | ||
1257 | ||
1258 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1259 | ac_ls_di=`ls -di .` && | |
1260 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
a2479b3d | 1261 | as_fn_error "working directory cannot be determined" |
f35db108 | 1262 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
a2479b3d | 1263 | as_fn_error "pwd does not report name of working directory" |
f35db108 WM |
1264 | |
1265 | ||
1266 | # Find the source files, if location was not specified. | |
1267 | if test -z "$srcdir"; then | |
1268 | ac_srcdir_defaulted=yes | |
1269 | # Try the directory containing this script, then the parent directory. | |
1270 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1271 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1272 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1273 | X"$as_myself" : 'X\(//\)$' \| \ | |
1274 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1275 | $as_echo X"$as_myself" | | |
1276 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | /^X\(\/\/\)[^/].*/{ | |
1281 | s//\1/ | |
1282 | q | |
1283 | } | |
1284 | /^X\(\/\/\)$/{ | |
1285 | s//\1/ | |
1286 | q | |
1287 | } | |
1288 | /^X\(\/\).*/{ | |
1289 | s//\1/ | |
1290 | q | |
1291 | } | |
1292 | s/.*/./; q'` | |
1293 | srcdir=$ac_confdir | |
1294 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1295 | srcdir=.. | |
1296 | fi | |
1297 | else | |
1298 | ac_srcdir_defaulted=no | |
1299 | fi | |
1300 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1301 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
a2479b3d | 1302 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
f35db108 WM |
1303 | fi |
1304 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1305 | ac_abs_confdir=`( | |
a2479b3d | 1306 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
f35db108 WM |
1307 | pwd)` |
1308 | # When building in place, set srcdir=. | |
1309 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1310 | srcdir=. | |
1311 | fi | |
1312 | # Remove unnecessary trailing slashes from srcdir. | |
1313 | # Double slashes in file names in object file debugging info | |
1314 | # mess up M-x gdb in Emacs. | |
1315 | case $srcdir in | |
1316 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1317 | esac | |
1318 | for ac_var in $ac_precious_vars; do | |
1319 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1320 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1321 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1322 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1323 | done | |
1324 | ||
1325 | # | |
1326 | # Report the --help message. | |
1327 | # | |
1328 | if test "$ac_init_help" = "long"; then | |
1329 | # Omit some internal or obsolete options to make the list less imposing. | |
1330 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1331 | cat <<_ACEOF | |
1332 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1333 | ||
1334 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1335 | ||
1336 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1337 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1338 | ||
1339 | Defaults for the options are specified in brackets. | |
1340 | ||
1341 | Configuration: | |
1342 | -h, --help display this help and exit | |
1343 | --help=short display options specific to this package | |
1344 | --help=recursive display the short help of all the included packages | |
1345 | -V, --version display version information and exit | |
a2479b3d | 1346 | -q, --quiet, --silent do not print \`checking...' messages |
f35db108 WM |
1347 | --cache-file=FILE cache test results in FILE [disabled] |
1348 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1349 | -n, --no-create do not create output files | |
1350 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1351 | ||
1352 | Installation directories: | |
1353 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1354 | [$ac_default_prefix] | |
1355 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1356 | [PREFIX] | |
1357 | ||
1358 | By default, \`make install' will install all the files in | |
1359 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1360 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1361 | for instance \`--prefix=\$HOME'. | |
1362 | ||
1363 | For better control, use the options below. | |
1364 | ||
1365 | Fine tuning of the installation directories: | |
1366 | --bindir=DIR user executables [EPREFIX/bin] | |
1367 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1368 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1369 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1370 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1371 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1372 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1373 | --includedir=DIR C header files [PREFIX/include] | |
1374 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1375 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1376 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1377 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1378 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1379 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1380 | --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused] | |
1381 | --htmldir=DIR html documentation [DOCDIR] | |
1382 | --dvidir=DIR dvi documentation [DOCDIR] | |
1383 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1384 | --psdir=DIR ps documentation [DOCDIR] | |
1385 | _ACEOF | |
1386 | ||
1387 | cat <<\_ACEOF | |
1388 | ||
1389 | Program names: | |
1390 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1391 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1392 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1393 | ||
1394 | System types: | |
1395 | --build=BUILD configure for building on BUILD [guessed] | |
1396 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2a6346c4 | 1397 | --target=TARGET configure for building compilers for TARGET [HOST] |
f35db108 WM |
1398 | _ACEOF |
1399 | fi | |
1400 | ||
1401 | if test -n "$ac_init_help"; then | |
1402 | case $ac_init_help in | |
1403 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1404 | esac | |
1405 | cat <<\_ACEOF | |
1406 | ||
1407 | Optional Features: | |
1408 | --disable-option-checking ignore unrecognized --enable/--with options | |
1409 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1410 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
94213c10 | 1411 | --enable-multilib build many library versions (default) |
2a6346c4 | 1412 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
c915a581 JJ |
1413 | --disable-dependency-tracking speeds up one-time build |
1414 | --enable-dependency-tracking do not reject slow dependency extractors | |
2b723e21 TT |
1415 | --enable-maintainer-mode enable make rules and dependencies not useful |
1416 | (and sometimes confusing) to the casual installer | |
f35db108 WM |
1417 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1418 | --enable-static[=PKGS] build static libraries [default=yes] | |
1419 | --enable-fast-install[=PKGS] | |
1420 | optimize for fast installation [default=yes] | |
1421 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1422 | ||
1423 | Optional Packages: | |
1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
a2479b3d | 1426 | --with-pic try to use only PIC/non-PIC objects [default=use |
f35db108 WM |
1427 | both] |
1428 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
f35db108 WM |
1429 | |
1430 | Some influential environment variables: | |
1431 | CC C compiler command | |
1432 | CFLAGS C compiler flags | |
1433 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1434 | nonstandard directory <lib dir> | |
1435 | LIBS libraries to pass to the linker, e.g. -l<library> | |
a2479b3d | 1436 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
f35db108 | 1437 | you have headers in a nonstandard directory <include dir> |
c915a581 | 1438 | CPP C preprocessor |
f35db108 WM |
1439 | CXX C++ compiler command |
1440 | CXXFLAGS C++ compiler flags | |
1441 | CCAS assembler compiler command (defaults to CC) | |
1442 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
f35db108 WM |
1443 | CXXCPP C++ preprocessor |
1444 | ||
1445 | Use these variables to override the choices made by `configure' or to help | |
1446 | it to find libraries and programs with nonstandard names/locations. | |
1447 | ||
1448 | Report bugs to <libsanitizer>. | |
1449 | _ACEOF | |
1450 | ac_status=$? | |
1451 | fi | |
1452 | ||
1453 | if test "$ac_init_help" = "recursive"; then | |
1454 | # If there are subdirs, report their specific --help. | |
1455 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1456 | test -d "$ac_dir" || | |
1457 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1458 | continue | |
1459 | ac_builddir=. | |
1460 | ||
1461 | case "$ac_dir" in | |
1462 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1463 | *) | |
1464 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1465 | # A ".." for each directory in $ac_dir_suffix. | |
1466 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1467 | case $ac_top_builddir_sub in | |
1468 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1469 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1470 | esac ;; | |
1471 | esac | |
1472 | ac_abs_top_builddir=$ac_pwd | |
1473 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1474 | # for backward compatibility: | |
1475 | ac_top_builddir=$ac_top_build_prefix | |
1476 | ||
1477 | case $srcdir in | |
1478 | .) # We are building in place. | |
1479 | ac_srcdir=. | |
1480 | ac_top_srcdir=$ac_top_builddir_sub | |
1481 | ac_abs_top_srcdir=$ac_pwd ;; | |
1482 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1483 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1484 | ac_top_srcdir=$srcdir | |
1485 | ac_abs_top_srcdir=$srcdir ;; | |
1486 | *) # Relative name. | |
1487 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1488 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1489 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1490 | esac | |
1491 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1492 | ||
1493 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1494 | # Check for guested configure. | |
1495 | if test -f "$ac_srcdir/configure.gnu"; then | |
1496 | echo && | |
1497 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1498 | elif test -f "$ac_srcdir/configure"; then | |
1499 | echo && | |
1500 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1501 | else | |
1502 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1503 | fi || ac_status=$? | |
1504 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1505 | done | |
1506 | fi | |
1507 | ||
1508 | test -n "$ac_init_help" && exit $ac_status | |
1509 | if $ac_init_version; then | |
1510 | cat <<\_ACEOF | |
1511 | package-unused configure version-unused | |
a2479b3d | 1512 | generated by GNU Autoconf 2.64 |
f35db108 | 1513 | |
a2479b3d | 1514 | Copyright (C) 2009 Free Software Foundation, Inc. |
f35db108 WM |
1515 | This configure script is free software; the Free Software Foundation |
1516 | gives unlimited permission to copy, distribute and modify it. | |
1517 | _ACEOF | |
1518 | exit | |
1519 | fi | |
1520 | ||
1521 | ## ------------------------ ## | |
1522 | ## Autoconf initialization. ## | |
1523 | ## ------------------------ ## | |
1524 | ||
1525 | # ac_fn_c_try_compile LINENO | |
1526 | # -------------------------- | |
1527 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1528 | ac_fn_c_try_compile () | |
1529 | { | |
1530 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1531 | rm -f conftest.$ac_objext | |
1532 | if { { ac_try="$ac_compile" | |
1533 | case "(($ac_try" in | |
1534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1535 | *) ac_try_echo=$ac_try;; | |
1536 | esac | |
1537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1538 | $as_echo "$ac_try_echo"; } >&5 | |
1539 | (eval "$ac_compile") 2>conftest.err | |
1540 | ac_status=$? | |
1541 | if test -s conftest.err; then | |
1542 | grep -v '^ *+' conftest.err >conftest.er1 | |
1543 | cat conftest.er1 >&5 | |
1544 | mv -f conftest.er1 conftest.err | |
1545 | fi | |
1546 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1547 | test $ac_status = 0; } && { | |
1548 | test -z "$ac_c_werror_flag" || | |
1549 | test ! -s conftest.err | |
1550 | } && test -s conftest.$ac_objext; then : | |
1551 | ac_retval=0 | |
1552 | else | |
1553 | $as_echo "$as_me: failed program was:" >&5 | |
1554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1555 | ||
1556 | ac_retval=1 | |
1557 | fi | |
a2479b3d L |
1558 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1559 | return $ac_retval | |
f35db108 WM |
1560 | |
1561 | } # ac_fn_c_try_compile | |
1562 | ||
c915a581 JJ |
1563 | # ac_fn_c_try_cpp LINENO |
1564 | # ---------------------- | |
1565 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1566 | ac_fn_c_try_cpp () | |
f35db108 WM |
1567 | { |
1568 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 | 1569 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
f35db108 WM |
1570 | case "(($ac_try" in |
1571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1572 | *) ac_try_echo=$ac_try;; | |
1573 | esac | |
1574 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1575 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1576 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
f35db108 WM |
1577 | ac_status=$? |
1578 | if test -s conftest.err; then | |
1579 | grep -v '^ *+' conftest.err >conftest.er1 | |
1580 | cat conftest.er1 >&5 | |
1581 | mv -f conftest.er1 conftest.err | |
1582 | fi | |
1583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c915a581 JJ |
1584 | test $ac_status = 0; } >/dev/null && { |
1585 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
f35db108 | 1586 | test ! -s conftest.err |
c915a581 | 1587 | }; then : |
f35db108 WM |
1588 | ac_retval=0 |
1589 | else | |
1590 | $as_echo "$as_me: failed program was:" >&5 | |
1591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1592 | ||
c915a581 | 1593 | ac_retval=1 |
f35db108 | 1594 | fi |
a2479b3d L |
1595 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1596 | return $ac_retval | |
f35db108 | 1597 | |
c915a581 | 1598 | } # ac_fn_c_try_cpp |
f35db108 | 1599 | |
c915a581 JJ |
1600 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1601 | # ------------------------------------------------------- | |
1602 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1603 | # the include files in INCLUDES and setting the cache variable VAR | |
1604 | # accordingly. | |
1605 | ac_fn_c_check_header_mongrel () | |
1606 | { | |
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1610 | $as_echo_n "checking for $2... " >&6; } | |
1611 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1612 | $as_echo_n "(cached) " >&6 | |
1613 | fi | |
1614 | eval ac_res=\$$3 | |
1615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1616 | $as_echo "$ac_res" >&6; } | |
1617 | else | |
1618 | # Is the header compilable? | |
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1620 | $as_echo_n "checking $2 usability... " >&6; } | |
1621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1622 | /* end confdefs.h. */ | |
1623 | $4 | |
1624 | #include <$2> | |
1625 | _ACEOF | |
1626 | if ac_fn_c_try_compile "$LINENO"; then : | |
1627 | ac_header_compiler=yes | |
1628 | else | |
1629 | ac_header_compiler=no | |
1630 | fi | |
1631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1633 | $as_echo "$ac_header_compiler" >&6; } | |
1634 | ||
1635 | # Is the header present? | |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1637 | $as_echo_n "checking $2 presence... " >&6; } | |
1638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1639 | /* end confdefs.h. */ | |
1640 | #include <$2> | |
1641 | _ACEOF | |
1642 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1643 | ac_header_preproc=yes | |
1644 | else | |
1645 | ac_header_preproc=no | |
1646 | fi | |
1647 | rm -f conftest.err conftest.$ac_ext | |
1648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1649 | $as_echo "$ac_header_preproc" >&6; } | |
1650 | ||
1651 | # So? What about this header? | |
1652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1653 | yes:no: ) | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1655 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1657 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1658 | ;; | |
1659 | no:yes:* ) | |
1660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1661 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1663 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1665 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1667 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1669 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1670 | ( cat <<\_ASBOX | |
1671 | ## --------------------------- ## | |
1672 | ## Report this to libsanitizer ## | |
1673 | ## --------------------------- ## | |
1674 | _ASBOX | |
1675 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1676 | ;; | |
1677 | esac | |
1678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1679 | $as_echo_n "checking for $2... " >&6; } | |
1680 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1681 | $as_echo_n "(cached) " >&6 | |
1682 | else | |
1683 | eval "$3=\$ac_header_compiler" | |
1684 | fi | |
1685 | eval ac_res=\$$3 | |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1687 | $as_echo "$ac_res" >&6; } | |
1688 | fi | |
1689 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1690 | ||
1691 | } # ac_fn_c_check_header_mongrel | |
1692 | ||
1693 | # ac_fn_c_try_run LINENO | |
1694 | # ---------------------- | |
1695 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1696 | # that executables *can* be run. | |
1697 | ac_fn_c_try_run () | |
f35db108 WM |
1698 | { |
1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
f35db108 WM |
1700 | if { { ac_try="$ac_link" |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1707 | (eval "$ac_link") 2>&5 |
f35db108 | 1708 | ac_status=$? |
f35db108 | 1709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c915a581 JJ |
1710 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1711 | { { case "(($ac_try" in | |
1712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1713 | *) ac_try_echo=$ac_try;; | |
1714 | esac | |
1715 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1716 | $as_echo "$ac_try_echo"; } >&5 | |
1717 | (eval "$ac_try") 2>&5 | |
1718 | ac_status=$? | |
1719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1720 | test $ac_status = 0; }; }; then : | |
f35db108 WM |
1721 | ac_retval=0 |
1722 | else | |
c915a581 JJ |
1723 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1724 | $as_echo "$as_me: failed program was:" >&5 | |
f35db108 WM |
1725 | sed 's/^/| /' conftest.$ac_ext >&5 |
1726 | ||
c915a581 | 1727 | ac_retval=$ac_status |
f35db108 | 1728 | fi |
f35db108 | 1729 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
a2479b3d L |
1730 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1731 | return $ac_retval | |
f35db108 | 1732 | |
c915a581 | 1733 | } # ac_fn_c_try_run |
f35db108 WM |
1734 | |
1735 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1736 | # ------------------------------------------------------- | |
1737 | # Tests whether HEADER exists and can be compiled using the include files in | |
1738 | # INCLUDES, setting the cache variable VAR accordingly. | |
1739 | ac_fn_c_check_header_compile () | |
1740 | { | |
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1743 | $as_echo_n "checking for $2... " >&6; } | |
a2479b3d | 1744 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
f35db108 WM |
1745 | $as_echo_n "(cached) " >&6 |
1746 | else | |
1747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1748 | /* end confdefs.h. */ | |
1749 | $4 | |
1750 | #include <$2> | |
1751 | _ACEOF | |
1752 | if ac_fn_c_try_compile "$LINENO"; then : | |
1753 | eval "$3=yes" | |
1754 | else | |
1755 | eval "$3=no" | |
1756 | fi | |
1757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1758 | fi | |
1759 | eval ac_res=\$$3 | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1761 | $as_echo "$ac_res" >&6; } | |
a2479b3d | 1762 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
f35db108 WM |
1763 | |
1764 | } # ac_fn_c_check_header_compile | |
1765 | ||
c915a581 JJ |
1766 | # ac_fn_cxx_try_compile LINENO |
1767 | # ---------------------------- | |
1768 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1769 | ac_fn_cxx_try_compile () | |
f35db108 WM |
1770 | { |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 JJ |
1772 | rm -f conftest.$ac_objext |
1773 | if { { ac_try="$ac_compile" | |
f35db108 WM |
1774 | case "(($ac_try" in |
1775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1776 | *) ac_try_echo=$ac_try;; | |
1777 | esac | |
1778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1779 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1780 | (eval "$ac_compile") 2>conftest.err |
f35db108 WM |
1781 | ac_status=$? |
1782 | if test -s conftest.err; then | |
1783 | grep -v '^ *+' conftest.err >conftest.er1 | |
1784 | cat conftest.er1 >&5 | |
1785 | mv -f conftest.er1 conftest.err | |
1786 | fi | |
1787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c915a581 JJ |
1788 | test $ac_status = 0; } && { |
1789 | test -z "$ac_cxx_werror_flag" || | |
f35db108 | 1790 | test ! -s conftest.err |
c915a581 | 1791 | } && test -s conftest.$ac_objext; then : |
f35db108 WM |
1792 | ac_retval=0 |
1793 | else | |
1794 | $as_echo "$as_me: failed program was:" >&5 | |
1795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1796 | ||
c915a581 | 1797 | ac_retval=1 |
f35db108 | 1798 | fi |
a2479b3d L |
1799 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1800 | return $ac_retval | |
f35db108 | 1801 | |
c915a581 | 1802 | } # ac_fn_cxx_try_compile |
f35db108 | 1803 | |
c915a581 JJ |
1804 | # ac_fn_c_try_link LINENO |
1805 | # ----------------------- | |
1806 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1807 | ac_fn_c_try_link () | |
f35db108 WM |
1808 | { |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 | 1810 | rm -f conftest.$ac_objext conftest$ac_exeext |
f35db108 WM |
1811 | if { { ac_try="$ac_link" |
1812 | case "(($ac_try" in | |
1813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1814 | *) ac_try_echo=$ac_try;; | |
1815 | esac | |
1816 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1817 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1818 | (eval "$ac_link") 2>conftest.err |
f35db108 | 1819 | ac_status=$? |
c915a581 JJ |
1820 | if test -s conftest.err; then |
1821 | grep -v '^ *+' conftest.err >conftest.er1 | |
1822 | cat conftest.er1 >&5 | |
1823 | mv -f conftest.er1 conftest.err | |
1824 | fi | |
f35db108 | 1825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c915a581 JJ |
1826 | test $ac_status = 0; } && { |
1827 | test -z "$ac_c_werror_flag" || | |
1828 | test ! -s conftest.err | |
1829 | } && test -s conftest$ac_exeext && { | |
1830 | test "$cross_compiling" = yes || | |
1831 | $as_test_x conftest$ac_exeext | |
1832 | }; then : | |
f35db108 WM |
1833 | ac_retval=0 |
1834 | else | |
c915a581 | 1835 | $as_echo "$as_me: failed program was:" >&5 |
f35db108 WM |
1836 | sed 's/^/| /' conftest.$ac_ext >&5 |
1837 | ||
c915a581 | 1838 | ac_retval=1 |
f35db108 | 1839 | fi |
c915a581 JJ |
1840 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1841 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1842 | # interfere with the next link command; also delete a directory that is | |
1843 | # left behind by Apple's compiler. We do this before executing the actions. | |
f35db108 | 1844 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
a2479b3d L |
1845 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1846 | return $ac_retval | |
f35db108 | 1847 | |
c915a581 | 1848 | } # ac_fn_c_try_link |
f35db108 WM |
1849 | |
1850 | # ac_fn_c_check_func LINENO FUNC VAR | |
1851 | # ---------------------------------- | |
1852 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1853 | ac_fn_c_check_func () | |
1854 | { | |
1855 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1857 | $as_echo_n "checking for $2... " >&6; } | |
a2479b3d | 1858 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
f35db108 WM |
1859 | $as_echo_n "(cached) " >&6 |
1860 | else | |
1861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1862 | /* end confdefs.h. */ | |
1863 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1865 | #define $2 innocuous_$2 | |
1866 | ||
1867 | /* System header to define __stub macros and hopefully few prototypes, | |
1868 | which can conflict with char $2 (); below. | |
1869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1870 | <limits.h> exists even on freestanding compilers. */ | |
1871 | ||
1872 | #ifdef __STDC__ | |
1873 | # include <limits.h> | |
1874 | #else | |
1875 | # include <assert.h> | |
1876 | #endif | |
1877 | ||
1878 | #undef $2 | |
1879 | ||
1880 | /* Override any GCC internal prototype to avoid an error. | |
1881 | Use char because int might match the return type of a GCC | |
1882 | builtin and then its argument prototype would still apply. */ | |
1883 | #ifdef __cplusplus | |
1884 | extern "C" | |
1885 | #endif | |
1886 | char $2 (); | |
1887 | /* The GNU C library defines this for functions which it implements | |
1888 | to always fail with ENOSYS. Some functions are actually named | |
1889 | something starting with __ and the normal name is an alias. */ | |
1890 | #if defined __stub_$2 || defined __stub___$2 | |
1891 | choke me | |
1892 | #endif | |
1893 | ||
1894 | int | |
1895 | main () | |
1896 | { | |
1897 | return $2 (); | |
1898 | ; | |
1899 | return 0; | |
1900 | } | |
1901 | _ACEOF | |
1902 | if ac_fn_c_try_link "$LINENO"; then : | |
1903 | eval "$3=yes" | |
1904 | else | |
1905 | eval "$3=no" | |
1906 | fi | |
1907 | rm -f core conftest.err conftest.$ac_objext \ | |
1908 | conftest$ac_exeext conftest.$ac_ext | |
1909 | fi | |
1910 | eval ac_res=\$$3 | |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1912 | $as_echo "$ac_res" >&6; } | |
a2479b3d | 1913 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
f35db108 WM |
1914 | |
1915 | } # ac_fn_c_check_func | |
1916 | ||
1917 | # ac_fn_cxx_try_cpp LINENO | |
1918 | # ------------------------ | |
1919 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1920 | ac_fn_cxx_try_cpp () | |
1921 | { | |
1922 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1923 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1924 | case "(($ac_try" in | |
1925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1926 | *) ac_try_echo=$ac_try;; | |
1927 | esac | |
1928 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1929 | $as_echo "$ac_try_echo"; } >&5 | |
1930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1931 | ac_status=$? | |
1932 | if test -s conftest.err; then | |
1933 | grep -v '^ *+' conftest.err >conftest.er1 | |
1934 | cat conftest.er1 >&5 | |
1935 | mv -f conftest.er1 conftest.err | |
1936 | fi | |
1937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
a2479b3d | 1938 | test $ac_status = 0; } >/dev/null && { |
f35db108 WM |
1939 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
1940 | test ! -s conftest.err | |
1941 | }; then : | |
1942 | ac_retval=0 | |
1943 | else | |
1944 | $as_echo "$as_me: failed program was:" >&5 | |
1945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1946 | ||
1947 | ac_retval=1 | |
1948 | fi | |
a2479b3d L |
1949 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1950 | return $ac_retval | |
f35db108 WM |
1951 | |
1952 | } # ac_fn_cxx_try_cpp | |
1953 | ||
1954 | # ac_fn_cxx_try_link LINENO | |
1955 | # ------------------------- | |
1956 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1957 | ac_fn_cxx_try_link () | |
1958 | { | |
1959 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1961 | if { { ac_try="$ac_link" | |
1962 | case "(($ac_try" in | |
1963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1964 | *) ac_try_echo=$ac_try;; | |
1965 | esac | |
1966 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1967 | $as_echo "$ac_try_echo"; } >&5 | |
1968 | (eval "$ac_link") 2>conftest.err | |
1969 | ac_status=$? | |
1970 | if test -s conftest.err; then | |
1971 | grep -v '^ *+' conftest.err >conftest.er1 | |
1972 | cat conftest.er1 >&5 | |
1973 | mv -f conftest.er1 conftest.err | |
1974 | fi | |
1975 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1976 | test $ac_status = 0; } && { | |
1977 | test -z "$ac_cxx_werror_flag" || | |
1978 | test ! -s conftest.err | |
1979 | } && test -s conftest$ac_exeext && { | |
1980 | test "$cross_compiling" = yes || | |
1981 | $as_test_x conftest$ac_exeext | |
1982 | }; then : | |
1983 | ac_retval=0 | |
1984 | else | |
1985 | $as_echo "$as_me: failed program was:" >&5 | |
1986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1987 | ||
1988 | ac_retval=1 | |
1989 | fi | |
1990 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1991 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1992 | # interfere with the next link command; also delete a directory that is | |
1993 | # left behind by Apple's compiler. We do this before executing the actions. | |
1994 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
a2479b3d L |
1995 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1996 | return $ac_retval | |
f35db108 WM |
1997 | |
1998 | } # ac_fn_cxx_try_link | |
64548f3b JJ |
1999 | |
2000 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2001 | # -------------------------------------------- | |
2002 | # Tries to find the compile-time value of EXPR in a program that includes | |
2003 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2004 | # computed | |
2005 | ac_fn_c_compute_int () | |
2006 | { | |
2007 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2008 | if test "$cross_compiling" = yes; then | |
2009 | # Depending upon the size, compute the lo and hi bounds. | |
2010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2011 | /* end confdefs.h. */ | |
2012 | $4 | |
2013 | int | |
2014 | main () | |
2015 | { | |
2016 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2017 | test_array [0] = 0 | |
2018 | ||
2019 | ; | |
2020 | return 0; | |
2021 | } | |
2022 | _ACEOF | |
2023 | if ac_fn_c_try_compile "$LINENO"; then : | |
2024 | ac_lo=0 ac_mid=0 | |
2025 | while :; do | |
2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2027 | /* end confdefs.h. */ | |
2028 | $4 | |
2029 | int | |
2030 | main () | |
2031 | { | |
2032 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2033 | test_array [0] = 0 | |
2034 | ||
2035 | ; | |
2036 | return 0; | |
2037 | } | |
2038 | _ACEOF | |
2039 | if ac_fn_c_try_compile "$LINENO"; then : | |
2040 | ac_hi=$ac_mid; break | |
2041 | else | |
2042 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2043 | if test $ac_lo -le $ac_mid; then | |
2044 | ac_lo= ac_hi= | |
2045 | break | |
2046 | fi | |
2047 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2048 | fi | |
2049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2050 | done | |
2051 | else | |
2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2053 | /* end confdefs.h. */ | |
2054 | $4 | |
2055 | int | |
2056 | main () | |
2057 | { | |
2058 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2059 | test_array [0] = 0 | |
2060 | ||
2061 | ; | |
2062 | return 0; | |
2063 | } | |
2064 | _ACEOF | |
2065 | if ac_fn_c_try_compile "$LINENO"; then : | |
2066 | ac_hi=-1 ac_mid=-1 | |
2067 | while :; do | |
2068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2069 | /* end confdefs.h. */ | |
2070 | $4 | |
2071 | int | |
2072 | main () | |
2073 | { | |
2074 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2075 | test_array [0] = 0 | |
2076 | ||
2077 | ; | |
2078 | return 0; | |
2079 | } | |
2080 | _ACEOF | |
2081 | if ac_fn_c_try_compile "$LINENO"; then : | |
2082 | ac_lo=$ac_mid; break | |
2083 | else | |
2084 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2085 | if test $ac_mid -le $ac_hi; then | |
2086 | ac_lo= ac_hi= | |
2087 | break | |
2088 | fi | |
2089 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2090 | fi | |
2091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2092 | done | |
2093 | else | |
2094 | ac_lo= ac_hi= | |
2095 | fi | |
2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2097 | fi | |
2098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2099 | # Binary search between lo and hi bounds. | |
2100 | while test "x$ac_lo" != "x$ac_hi"; do | |
2101 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2103 | /* end confdefs.h. */ | |
2104 | $4 | |
2105 | int | |
2106 | main () | |
2107 | { | |
2108 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2109 | test_array [0] = 0 | |
2110 | ||
2111 | ; | |
2112 | return 0; | |
2113 | } | |
2114 | _ACEOF | |
2115 | if ac_fn_c_try_compile "$LINENO"; then : | |
2116 | ac_hi=$ac_mid | |
2117 | else | |
2118 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2119 | fi | |
2120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2121 | done | |
2122 | case $ac_lo in #(( | |
2123 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2124 | '') ac_retval=1 ;; | |
2125 | esac | |
2126 | else | |
2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2128 | /* end confdefs.h. */ | |
2129 | $4 | |
2130 | static long int longval () { return $2; } | |
2131 | static unsigned long int ulongval () { return $2; } | |
2132 | #include <stdio.h> | |
2133 | #include <stdlib.h> | |
2134 | int | |
2135 | main () | |
2136 | { | |
2137 | ||
2138 | FILE *f = fopen ("conftest.val", "w"); | |
2139 | if (! f) | |
2140 | return 1; | |
2141 | if (($2) < 0) | |
2142 | { | |
2143 | long int i = longval (); | |
2144 | if (i != ($2)) | |
2145 | return 1; | |
2146 | fprintf (f, "%ld", i); | |
2147 | } | |
2148 | else | |
2149 | { | |
2150 | unsigned long int i = ulongval (); | |
2151 | if (i != ($2)) | |
2152 | return 1; | |
2153 | fprintf (f, "%lu", i); | |
2154 | } | |
2155 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2156 | on some platforms. */ | |
2157 | return ferror (f) || fclose (f) != 0; | |
2158 | ||
2159 | ; | |
2160 | return 0; | |
2161 | } | |
2162 | _ACEOF | |
2163 | if ac_fn_c_try_run "$LINENO"; then : | |
2164 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2165 | else | |
2166 | ac_retval=1 | |
2167 | fi | |
2168 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2169 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2170 | rm -f conftest.val | |
2171 | ||
2172 | fi | |
2173 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2174 | return $ac_retval | |
2175 | ||
2176 | } # ac_fn_c_compute_int | |
f35db108 | 2177 | |
c915a581 JJ |
2178 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2179 | # ------------------------------------------- | |
2180 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2181 | # variable VAR accordingly. | |
2182 | ac_fn_c_check_type () | |
f35db108 | 2183 | { |
c915a581 JJ |
2184 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2186 | $as_echo_n "checking for $2... " >&6; } | |
2187 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2188 | $as_echo_n "(cached) " >&6 | |
2189 | else | |
2190 | eval "$3=no" | |
2191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2192 | /* end confdefs.h. */ | |
2193 | $4 | |
2194 | int | |
2195 | main () | |
2196 | { | |
2197 | if (sizeof ($2)) | |
2198 | return 0; | |
2199 | ; | |
2200 | return 0; | |
2201 | } | |
2202 | _ACEOF | |
2203 | if ac_fn_c_try_compile "$LINENO"; then : | |
2204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2205 | /* end confdefs.h. */ | |
2206 | $4 | |
2207 | int | |
2208 | main () | |
2209 | { | |
2210 | if (sizeof (($2))) | |
2211 | return 0; | |
2212 | ; | |
2213 | return 0; | |
2214 | } | |
2215 | _ACEOF | |
2216 | if ac_fn_c_try_compile "$LINENO"; then : | |
2217 | ||
2218 | else | |
2219 | eval "$3=yes" | |
2220 | fi | |
2221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2222 | fi | |
2223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2224 | fi | |
2225 | eval ac_res=\$$3 | |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2227 | $as_echo "$ac_res" >&6; } | |
2228 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2229 | ||
2230 | } # ac_fn_c_check_type | |
2231 | ||
2232 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
2233 | # ------------------------------------ | |
2234 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
2235 | ac_fn_c_check_decl () | |
2236 | { | |
2237 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2238 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2239 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2241 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2242 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2243 | $as_echo_n "(cached) " >&6 | |
2244 | else | |
2245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2246 | /* end confdefs.h. */ | |
2247 | $4 | |
2248 | int | |
2249 | main () | |
2250 | { | |
2251 | #ifndef $as_decl_name | |
2252 | #ifdef __cplusplus | |
2253 | (void) $as_decl_use; | |
2254 | #else | |
2255 | (void) $as_decl_name; | |
2256 | #endif | |
2257 | #endif | |
2258 | ||
2259 | ; | |
2260 | return 0; | |
2261 | } | |
2262 | _ACEOF | |
2263 | if ac_fn_c_try_compile "$LINENO"; then : | |
2264 | eval "$3=yes" | |
2265 | else | |
2266 | eval "$3=no" | |
2267 | fi | |
2268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2269 | fi | |
2270 | eval ac_res=\$$3 | |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2272 | $as_echo "$ac_res" >&6; } | |
2273 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2274 | ||
2275 | } # ac_fn_c_check_decl | |
2276 | cat >config.log <<_ACEOF | |
2277 | This file contains any messages produced by compilers while | |
2278 | running configure, to aid debugging if configure makes a mistake. | |
2279 | ||
2280 | It was created by package-unused $as_me version-unused, which was | |
2281 | generated by GNU Autoconf 2.64. Invocation command line was | |
2282 | ||
2283 | $ $0 $@ | |
2284 | ||
2285 | _ACEOF | |
2286 | exec 5>>config.log | |
2287 | { | |
2288 | cat <<_ASUNAME | |
2289 | ## --------- ## | |
2290 | ## Platform. ## | |
2291 | ## --------- ## | |
2292 | ||
2293 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2294 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2295 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2296 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2297 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2298 | ||
2299 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2300 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2301 | ||
2302 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2303 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2304 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
f35db108 WM |
2305 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2306 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2307 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2308 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2309 | ||
2310 | _ASUNAME | |
2311 | ||
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2313 | for as_dir in $PATH | |
2314 | do | |
2315 | IFS=$as_save_IFS | |
2316 | test -z "$as_dir" && as_dir=. | |
2317 | $as_echo "PATH: $as_dir" | |
2318 | done | |
2319 | IFS=$as_save_IFS | |
2320 | ||
2321 | } >&5 | |
2322 | ||
2323 | cat >&5 <<_ACEOF | |
2324 | ||
2325 | ||
2326 | ## ----------- ## | |
2327 | ## Core tests. ## | |
2328 | ## ----------- ## | |
2329 | ||
2330 | _ACEOF | |
2331 | ||
2332 | ||
2333 | # Keep a trace of the command line. | |
2334 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2335 | # Strip out --silent because we don't want to record it for future runs. | |
2336 | # Also quote any args containing shell meta-characters. | |
2337 | # Make two passes to allow for proper duplicate-argument suppression. | |
2338 | ac_configure_args= | |
2339 | ac_configure_args0= | |
2340 | ac_configure_args1= | |
2341 | ac_must_keep_next=false | |
2342 | for ac_pass in 1 2 | |
2343 | do | |
2344 | for ac_arg | |
2345 | do | |
2346 | case $ac_arg in | |
2347 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2348 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2349 | | -silent | --silent | --silen | --sile | --sil) | |
2350 | continue ;; | |
2351 | *\'*) | |
2352 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2353 | esac | |
2354 | case $ac_pass in | |
2355 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2356 | 2) | |
2357 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2358 | if test $ac_must_keep_next = true; then | |
2359 | ac_must_keep_next=false # Got value, back to normal. | |
2360 | else | |
2361 | case $ac_arg in | |
2362 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2363 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2364 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2365 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2366 | case "$ac_configure_args0 " in | |
2367 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2368 | esac | |
2369 | ;; | |
2370 | -* ) ac_must_keep_next=true ;; | |
2371 | esac | |
2372 | fi | |
2373 | as_fn_append ac_configure_args " '$ac_arg'" | |
2374 | ;; | |
2375 | esac | |
2376 | done | |
2377 | done | |
2378 | { ac_configure_args0=; unset ac_configure_args0;} | |
2379 | { ac_configure_args1=; unset ac_configure_args1;} | |
2380 | ||
2381 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2382 | # config.log. We remove comments because anyway the quotes in there | |
2383 | # would cause problems or look ugly. | |
2384 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2385 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2386 | trap 'exit_status=$? | |
2387 | # Save into config.log some information that might help in debugging. | |
2388 | { | |
2389 | echo | |
2390 | ||
a2479b3d L |
2391 | cat <<\_ASBOX |
2392 | ## ---------------- ## | |
f35db108 | 2393 | ## Cache variables. ## |
a2479b3d L |
2394 | ## ---------------- ## |
2395 | _ASBOX | |
f35db108 WM |
2396 | echo |
2397 | # The following way of writing the cache mishandles newlines in values, | |
2398 | ( | |
2399 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2400 | eval ac_val=\$$ac_var | |
2401 | case $ac_val in #( | |
2402 | *${as_nl}*) | |
2403 | case $ac_var in #( | |
2404 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2405 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2406 | esac | |
2407 | case $ac_var in #( | |
2408 | _ | IFS | as_nl) ;; #( | |
2409 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2410 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2411 | esac ;; | |
2412 | esac | |
2413 | done | |
2414 | (set) 2>&1 | | |
2415 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2416 | *${as_nl}ac_space=\ *) | |
2417 | sed -n \ | |
2418 | "s/'\''/'\''\\\\'\'''\''/g; | |
2419 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2420 | ;; #( | |
2421 | *) | |
2422 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2423 | ;; | |
2424 | esac | | |
2425 | sort | |
2426 | ) | |
2427 | echo | |
2428 | ||
a2479b3d L |
2429 | cat <<\_ASBOX |
2430 | ## ----------------- ## | |
f35db108 | 2431 | ## Output variables. ## |
a2479b3d L |
2432 | ## ----------------- ## |
2433 | _ASBOX | |
f35db108 WM |
2434 | echo |
2435 | for ac_var in $ac_subst_vars | |
2436 | do | |
2437 | eval ac_val=\$$ac_var | |
2438 | case $ac_val in | |
2439 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2440 | esac | |
2441 | $as_echo "$ac_var='\''$ac_val'\''" | |
2442 | done | sort | |
2443 | echo | |
2444 | ||
2445 | if test -n "$ac_subst_files"; then | |
a2479b3d L |
2446 | cat <<\_ASBOX |
2447 | ## ------------------- ## | |
f35db108 | 2448 | ## File substitutions. ## |
a2479b3d L |
2449 | ## ------------------- ## |
2450 | _ASBOX | |
f35db108 WM |
2451 | echo |
2452 | for ac_var in $ac_subst_files | |
2453 | do | |
2454 | eval ac_val=\$$ac_var | |
2455 | case $ac_val in | |
2456 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2457 | esac | |
2458 | $as_echo "$ac_var='\''$ac_val'\''" | |
2459 | done | sort | |
2460 | echo | |
2461 | fi | |
2462 | ||
2463 | if test -s confdefs.h; then | |
a2479b3d L |
2464 | cat <<\_ASBOX |
2465 | ## ----------- ## | |
f35db108 | 2466 | ## confdefs.h. ## |
a2479b3d L |
2467 | ## ----------- ## |
2468 | _ASBOX | |
f35db108 WM |
2469 | echo |
2470 | cat confdefs.h | |
2471 | echo | |
2472 | fi | |
2473 | test "$ac_signal" != 0 && | |
2474 | $as_echo "$as_me: caught signal $ac_signal" | |
2475 | $as_echo "$as_me: exit $exit_status" | |
2476 | } >&5 | |
2477 | rm -f core *.core core.conftest.* && | |
2478 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2479 | exit $exit_status | |
2480 | ' 0 | |
2481 | for ac_signal in 1 2 13 15; do | |
2482 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2483 | done | |
2484 | ac_signal=0 | |
2485 | ||
2486 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2487 | rm -f -r conftest* confdefs.h | |
2488 | ||
2489 | $as_echo "/* confdefs.h */" > confdefs.h | |
2490 | ||
2491 | # Predefined preprocessor variables. | |
2492 | ||
2493 | cat >>confdefs.h <<_ACEOF | |
2494 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2495 | _ACEOF | |
2496 | ||
2497 | cat >>confdefs.h <<_ACEOF | |
2498 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2499 | _ACEOF | |
2500 | ||
2501 | cat >>confdefs.h <<_ACEOF | |
2502 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2503 | _ACEOF | |
2504 | ||
2505 | cat >>confdefs.h <<_ACEOF | |
2506 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2507 | _ACEOF | |
2508 | ||
2509 | cat >>confdefs.h <<_ACEOF | |
2510 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2511 | _ACEOF | |
2512 | ||
2513 | cat >>confdefs.h <<_ACEOF | |
2514 | #define PACKAGE_URL "$PACKAGE_URL" | |
2515 | _ACEOF | |
2516 | ||
2517 | ||
2518 | # Let the site file select an alternate cache file if it wants to. | |
2519 | # Prefer an explicitly selected file to automatically selected ones. | |
2520 | ac_site_file1=NONE | |
2521 | ac_site_file2=NONE | |
2522 | if test -n "$CONFIG_SITE"; then | |
a2479b3d | 2523 | ac_site_file1=$CONFIG_SITE |
f35db108 WM |
2524 | elif test "x$prefix" != xNONE; then |
2525 | ac_site_file1=$prefix/share/config.site | |
2526 | ac_site_file2=$prefix/etc/config.site | |
2527 | else | |
2528 | ac_site_file1=$ac_default_prefix/share/config.site | |
2529 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2530 | fi | |
2531 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2532 | do | |
2533 | test "x$ac_site_file" = xNONE && continue | |
a2479b3d | 2534 | if test -r "$ac_site_file"; then |
f35db108 WM |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2536 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2537 | sed 's/^/| /' "$ac_site_file" >&5 | |
a2479b3d | 2538 | . "$ac_site_file" |
f35db108 WM |
2539 | fi |
2540 | done | |
2541 | ||
2542 | if test -r "$cache_file"; then | |
a2479b3d L |
2543 | # Some versions of bash will fail to source /dev/null (special |
2544 | # files actually), so we avoid doing that. | |
2545 | if test -f "$cache_file"; then | |
f35db108 WM |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2547 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2548 | case $cache_file in | |
2549 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2550 | *) . "./$cache_file";; | |
2551 | esac | |
2552 | fi | |
2553 | else | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2555 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2556 | >$cache_file | |
2557 | fi | |
2558 | ||
2559 | # Check that the precious variables saved in the cache have kept the same | |
2560 | # value. | |
2561 | ac_cache_corrupted=false | |
2562 | for ac_var in $ac_precious_vars; do | |
2563 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2564 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2565 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2566 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2567 | case $ac_old_set,$ac_new_set in | |
2568 | set,) | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2570 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2571 | ac_cache_corrupted=: ;; | |
2572 | ,set) | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2574 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2575 | ac_cache_corrupted=: ;; | |
2576 | ,);; | |
2577 | *) | |
2578 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2579 | # differences in whitespace do not lead to failure. | |
2580 | ac_old_val_w=`echo x $ac_old_val` | |
2581 | ac_new_val_w=`echo x $ac_new_val` | |
2582 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2584 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2585 | ac_cache_corrupted=: | |
2586 | else | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2588 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2589 | eval $ac_var=\$ac_old_val | |
2590 | fi | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2592 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2594 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2595 | fi;; | |
2596 | esac | |
2597 | # Pass precious variables to config.status. | |
2598 | if test "$ac_new_set" = set; then | |
2599 | case $ac_new_val in | |
2600 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2601 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2602 | esac | |
2603 | case " $ac_configure_args " in | |
2604 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2605 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2606 | esac | |
2607 | fi | |
2608 | done | |
2609 | if $ac_cache_corrupted; then | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2611 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2613 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
a2479b3d | 2614 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
f35db108 WM |
2615 | fi |
2616 | ## -------------------- ## | |
2617 | ## Main body of script. ## | |
2618 | ## -------------------- ## | |
2619 | ||
2620 | ac_ext=c | |
2621 | ac_cpp='$CPP $CPPFLAGS' | |
2622 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2623 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2624 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2625 | ||
2626 | ||
2627 | ||
a2479b3d L |
2628 | |
2629 | ||
2630 | ||
4053ca2c | 2631 | |
94213c10 MK |
2632 | # Default to --enable-multilib |
2633 | # Check whether --enable-multilib was given. | |
2634 | if test "${enable_multilib+set}" = set; then : | |
2635 | enableval=$enable_multilib; case "$enableval" in | |
2636 | yes) multilib=yes ;; | |
2637 | no) multilib=no ;; | |
2638 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; | |
2639 | esac | |
2640 | else | |
2641 | multilib=yes | |
2642 | fi | |
2643 | ||
2644 | ||
2645 | # We may get other options which we leave undocumented: | |
2646 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2647 | # See config-ml.in if you want the gory details. | |
2648 | ||
2649 | if test "$srcdir" = "."; then | |
2650 | if test "$with_target_subdir" != "."; then | |
2651 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2652 | else | |
2653 | multi_basedir="$srcdir/$with_multisrctop.." | |
2654 | fi | |
2655 | else | |
2656 | multi_basedir="$srcdir/.." | |
2657 | fi | |
2658 | ||
2659 | ||
2660 | # Even if the default multilib is not a cross compilation, | |
2661 | # it may be that some of the other multilibs are. | |
2662 | if test $cross_compiling = no && test $multilib = yes \ | |
2663 | && test "x${with_multisubdir}" != x ; then | |
2664 | cross_compiling=maybe | |
2665 | fi | |
2666 | ||
2667 | ac_config_commands="$ac_config_commands default-1" | |
2668 | ||
2669 | ||
2a6346c4 L |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2671 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2672 | # Check whether --enable-version-specific-runtime-libs was given. | |
2673 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2674 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
2675 | yes) version_specific_libs=yes ;; | |
2676 | no) version_specific_libs=no ;; | |
2677 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; | |
2678 | esac | |
2679 | else | |
2680 | version_specific_libs=no | |
2681 | fi | |
2682 | ||
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2684 | $as_echo "$version_specific_libs" >&6; } | |
2685 | ||
c915a581 JJ |
2686 | ac_ext=c |
2687 | ac_cpp='$CPP $CPPFLAGS' | |
2688 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2689 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2690 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2691 | if test -n "$ac_tool_prefix"; then | |
2692 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2693 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2695 | $as_echo_n "checking for $ac_word... " >&6; } | |
2696 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2a6346c4 L |
2697 | $as_echo_n "(cached) " >&6 |
2698 | else | |
c915a581 JJ |
2699 | if test -n "$CC"; then |
2700 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2701 | else | |
2702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2703 | for as_dir in $PATH | |
2704 | do | |
2705 | IFS=$as_save_IFS | |
2706 | test -z "$as_dir" && as_dir=. | |
2707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2709 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2711 | break 2 | |
2712 | fi | |
2713 | done | |
2714 | done | |
2715 | IFS=$as_save_IFS | |
2a6346c4 L |
2716 | |
2717 | fi | |
c915a581 JJ |
2718 | fi |
2719 | CC=$ac_cv_prog_CC | |
2720 | if test -n "$CC"; then | |
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2722 | $as_echo "$CC" >&6; } | |
2723 | else | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2725 | $as_echo "no" >&6; } | |
2726 | fi | |
2a6346c4 L |
2727 | |
2728 | ||
c915a581 JJ |
2729 | fi |
2730 | if test -z "$ac_cv_prog_CC"; then | |
2731 | ac_ct_CC=$CC | |
2732 | # Extract the first word of "gcc", so it can be a program name with args. | |
2733 | set dummy gcc; ac_word=$2 | |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2735 | $as_echo_n "checking for $ac_word... " >&6; } | |
2736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2a6346c4 L |
2737 | $as_echo_n "(cached) " >&6 |
2738 | else | |
c915a581 JJ |
2739 | if test -n "$ac_ct_CC"; then |
2740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2a6346c4 | 2741 | else |
c915a581 JJ |
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2743 | for as_dir in $PATH | |
2744 | do | |
2745 | IFS=$as_save_IFS | |
2746 | test -z "$as_dir" && as_dir=. | |
2747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2749 | ac_cv_prog_ac_ct_CC="gcc" | |
2750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2751 | break 2 | |
2752 | fi | |
2753 | done | |
2754 | done | |
2755 | IFS=$as_save_IFS | |
2a6346c4 L |
2756 | |
2757 | fi | |
c915a581 JJ |
2758 | fi |
2759 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2760 | if test -n "$ac_ct_CC"; then | |
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2762 | $as_echo "$ac_ct_CC" >&6; } | |
2763 | else | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2765 | $as_echo "no" >&6; } | |
2766 | fi | |
2767 | ||
2768 | if test "x$ac_ct_CC" = x; then | |
2769 | CC="" | |
2770 | else | |
2771 | case $cross_compiling:$ac_tool_warned in | |
2772 | yes:) | |
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2774 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2775 | ac_tool_warned=yes ;; | |
2a6346c4 | 2776 | esac |
c915a581 JJ |
2777 | CC=$ac_ct_CC |
2778 | fi | |
2779 | else | |
2780 | CC="$ac_cv_prog_CC" | |
2781 | fi | |
2a6346c4 | 2782 | |
c915a581 JJ |
2783 | if test -z "$CC"; then |
2784 | if test -n "$ac_tool_prefix"; then | |
2785 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2786 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2788 | $as_echo_n "checking for $ac_word... " >&6; } | |
2789 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2a6346c4 L |
2790 | $as_echo_n "(cached) " >&6 |
2791 | else | |
c915a581 JJ |
2792 | if test -n "$CC"; then |
2793 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2a6346c4 | 2794 | else |
c915a581 JJ |
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2796 | for as_dir in $PATH | |
2797 | do | |
2798 | IFS=$as_save_IFS | |
2799 | test -z "$as_dir" && as_dir=. | |
2800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2802 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2804 | break 2 | |
2805 | fi | |
2806 | done | |
2807 | done | |
2808 | IFS=$as_save_IFS | |
2a6346c4 L |
2809 | |
2810 | fi | |
c915a581 JJ |
2811 | fi |
2812 | CC=$ac_cv_prog_CC | |
2813 | if test -n "$CC"; then | |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2815 | $as_echo "$CC" >&6; } | |
2816 | else | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2818 | $as_echo "no" >&6; } | |
2819 | fi | |
e1e953d9 | 2820 | |
d10a2df2 | 2821 | |
c915a581 JJ |
2822 | fi |
2823 | fi | |
2824 | if test -z "$CC"; then | |
2825 | # Extract the first word of "cc", so it can be a program name with args. | |
2826 | set dummy cc; ac_word=$2 | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2828 | $as_echo_n "checking for $ac_word... " >&6; } | |
2829 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2830 | $as_echo_n "(cached) " >&6 | |
2831 | else | |
2832 | if test -n "$CC"; then | |
2833 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2834 | else | |
2835 | ac_prog_rejected=no | |
2836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2837 | for as_dir in $PATH | |
2838 | do | |
2839 | IFS=$as_save_IFS | |
2840 | test -z "$as_dir" && as_dir=. | |
2841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2843 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2844 | ac_prog_rejected=yes | |
2845 | continue | |
2846 | fi | |
2847 | ac_cv_prog_CC="cc" | |
2848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2849 | break 2 | |
2850 | fi | |
2851 | done | |
2852 | done | |
2853 | IFS=$as_save_IFS | |
d10a2df2 | 2854 | |
c915a581 JJ |
2855 | if test $ac_prog_rejected = yes; then |
2856 | # We found a bogon in the path, so make sure we never use it. | |
2857 | set dummy $ac_cv_prog_CC | |
2858 | shift | |
2859 | if test $# != 0; then | |
2860 | # We chose a different compiler from the bogus one. | |
2861 | # However, it has the same basename, so the bogon will be chosen | |
2862 | # first if we set CC to just the basename; use the full file name. | |
2863 | shift | |
2864 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2865 | fi | |
2866 | fi | |
2867 | fi | |
2868 | fi | |
2869 | CC=$ac_cv_prog_CC | |
2870 | if test -n "$CC"; then | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2872 | $as_echo "$CC" >&6; } | |
2873 | else | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2875 | $as_echo "no" >&6; } | |
2876 | fi | |
2a6346c4 | 2877 | |
2a6346c4 | 2878 | |
c915a581 JJ |
2879 | fi |
2880 | if test -z "$CC"; then | |
2881 | if test -n "$ac_tool_prefix"; then | |
2882 | for ac_prog in cl.exe | |
2883 | do | |
2884 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2885 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2887 | $as_echo_n "checking for $ac_word... " >&6; } | |
2888 | if test "${ac_cv_prog_CC+set}" = set; then : | |
f35db108 WM |
2889 | $as_echo_n "(cached) " >&6 |
2890 | else | |
c915a581 JJ |
2891 | if test -n "$CC"; then |
2892 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2893 | else | |
2894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
f35db108 WM |
2895 | for as_dir in $PATH |
2896 | do | |
2897 | IFS=$as_save_IFS | |
2898 | test -z "$as_dir" && as_dir=. | |
c915a581 JJ |
2899 | for ac_exec_ext in '' $ac_executable_extensions; do |
2900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2901 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2903 | break 2 | |
2904 | fi | |
2905 | done | |
f35db108 WM |
2906 | done |
2907 | IFS=$as_save_IFS | |
2908 | ||
f35db108 | 2909 | fi |
f35db108 | 2910 | fi |
c915a581 JJ |
2911 | CC=$ac_cv_prog_CC |
2912 | if test -n "$CC"; then | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2914 | $as_echo "$CC" >&6; } | |
f35db108 | 2915 | else |
c915a581 JJ |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2917 | $as_echo "no" >&6; } | |
f35db108 | 2918 | fi |
f35db108 | 2919 | |
f35db108 | 2920 | |
c915a581 JJ |
2921 | test -n "$CC" && break |
2922 | done | |
f35db108 | 2923 | fi |
c915a581 JJ |
2924 | if test -z "$CC"; then |
2925 | ac_ct_CC=$CC | |
2926 | for ac_prog in cl.exe | |
2927 | do | |
2928 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2929 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2931 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 2932 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
f35db108 WM |
2933 | $as_echo_n "(cached) " >&6 |
2934 | else | |
c915a581 JJ |
2935 | if test -n "$ac_ct_CC"; then |
2936 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f35db108 WM |
2937 | else |
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2939 | for as_dir in $PATH | |
2940 | do | |
2941 | IFS=$as_save_IFS | |
2942 | test -z "$as_dir" && as_dir=. | |
2943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 2945 | ac_cv_prog_ac_ct_CC="$ac_prog" |
f35db108 WM |
2946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2947 | break 2 | |
2948 | fi | |
2949 | done | |
2950 | done | |
2951 | IFS=$as_save_IFS | |
2952 | ||
2953 | fi | |
2954 | fi | |
c915a581 JJ |
2955 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2956 | if test -n "$ac_ct_CC"; then | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2958 | $as_echo "$ac_ct_CC" >&6; } | |
f35db108 WM |
2959 | else |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2961 | $as_echo "no" >&6; } | |
2962 | fi | |
2963 | ||
2964 | ||
c915a581 | 2965 | test -n "$ac_ct_CC" && break |
f35db108 | 2966 | done |
f35db108 | 2967 | |
c915a581 JJ |
2968 | if test "x$ac_ct_CC" = x; then |
2969 | CC="" | |
f35db108 WM |
2970 | else |
2971 | case $cross_compiling:$ac_tool_warned in | |
2972 | yes:) | |
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2974 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2975 | ac_tool_warned=yes ;; | |
2976 | esac | |
c915a581 | 2977 | CC=$ac_ct_CC |
f35db108 | 2978 | fi |
f35db108 WM |
2979 | fi |
2980 | ||
2981 | fi | |
f35db108 | 2982 | |
f35db108 | 2983 | |
c915a581 JJ |
2984 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2986 | as_fn_error "no acceptable C compiler found in \$PATH | |
2987 | See \`config.log' for more details." "$LINENO" 5; } | |
f35db108 | 2988 | |
c915a581 JJ |
2989 | # Provide some information about the compiler. |
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2991 | set X $ac_compile | |
2992 | ac_compiler=$2 | |
2993 | for ac_option in --version -v -V -qversion; do | |
2994 | { { ac_try="$ac_compiler $ac_option >&5" | |
2995 | case "(($ac_try" in | |
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2997 | *) ac_try_echo=$ac_try;; | |
2998 | esac | |
2999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3000 | $as_echo "$ac_try_echo"; } >&5 | |
3001 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3002 | ac_status=$? | |
3003 | if test -s conftest.err; then | |
3004 | sed '10a\ | |
3005 | ... rest of stderr output deleted ... | |
3006 | 10q' conftest.err >conftest.er1 | |
3007 | cat conftest.er1 >&5 | |
3008 | rm -f conftest.er1 conftest.err | |
f35db108 | 3009 | fi |
c915a581 JJ |
3010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3011 | test $ac_status = 0; } | |
3012 | done | |
f35db108 | 3013 | |
c915a581 JJ |
3014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3015 | /* end confdefs.h. */ | |
f35db108 | 3016 | |
c915a581 JJ |
3017 | int |
3018 | main () | |
3019 | { | |
f35db108 | 3020 | |
c915a581 JJ |
3021 | ; |
3022 | return 0; | |
3023 | } | |
3024 | _ACEOF | |
3025 | ac_clean_files_save=$ac_clean_files | |
3026 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
3027 | # Try to create an executable without -o first, disregard a.out. | |
3028 | # It will help us diagnose broken compilers, and finding out an intuition | |
3029 | # of exeext. | |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3031 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3032 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
f35db108 | 3033 | |
c915a581 JJ |
3034 | # The possible output files: |
3035 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
f35db108 | 3036 | |
c915a581 JJ |
3037 | ac_rmfiles= |
3038 | for ac_file in $ac_files | |
3039 | do | |
3040 | case $ac_file in | |
3041 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3042 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3043 | esac | |
f35db108 | 3044 | done |
c915a581 | 3045 | rm -f $ac_rmfiles |
f35db108 | 3046 | |
c915a581 JJ |
3047 | if { { ac_try="$ac_link_default" |
3048 | case "(($ac_try" in | |
3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3050 | *) ac_try_echo=$ac_try;; | |
f35db108 | 3051 | esac |
c915a581 JJ |
3052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3053 | $as_echo "$ac_try_echo"; } >&5 | |
3054 | (eval "$ac_link_default") 2>&5 | |
3055 | ac_status=$? | |
3056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3057 | test $ac_status = 0; }; then : | |
3058 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3059 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3060 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3061 | # so that the user can short-circuit this test for compilers unknown to | |
3062 | # Autoconf. | |
3063 | for ac_file in $ac_files '' | |
3064 | do | |
3065 | test -f "$ac_file" || continue | |
3066 | case $ac_file in | |
3067 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3068 | ;; | |
3069 | [ab].out ) | |
3070 | # We found the default executable, but exeext='' is most | |
3071 | # certainly right. | |
3072 | break;; | |
3073 | *.* ) | |
3074 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3075 | then :; else | |
3076 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3077 | fi | |
3078 | # We set ac_cv_exeext here because the later test for it is not | |
3079 | # safe: cross compilers may not add the suffix if given an `-o' | |
3080 | # argument, so we may need to know it at that point already. | |
3081 | # Even if this section looks crufty: it has the advantage of | |
3082 | # actually working. | |
3083 | break;; | |
3084 | * ) | |
3085 | break;; | |
3086 | esac | |
3087 | done | |
3088 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
f35db108 | 3089 | |
f35db108 | 3090 | else |
c915a581 | 3091 | ac_file='' |
f35db108 | 3092 | fi |
c915a581 JJ |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3094 | $as_echo "$ac_file" >&6; } | |
3095 | if test -z "$ac_file"; then : | |
3096 | $as_echo "$as_me: failed program was:" >&5 | |
3097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f35db108 | 3098 | |
c915a581 JJ |
3099 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3100 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3101 | { as_fn_set_status 77 | |
3102 | as_fn_error "C compiler cannot create executables | |
3103 | See \`config.log' for more details." "$LINENO" 5; }; } | |
f35db108 | 3104 | fi |
c915a581 | 3105 | ac_exeext=$ac_cv_exeext |
f35db108 | 3106 | |
c915a581 JJ |
3107 | # Check that the compiler produces executables we can run. If not, either |
3108 | # the compiler is broken, or we cross compile. | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3110 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3111 | # If not cross compiling, check that we can run a simple program. | |
3112 | if test "$cross_compiling" != yes; then | |
3113 | if { ac_try='./$ac_file' | |
3114 | { { case "(($ac_try" in | |
3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3116 | *) ac_try_echo=$ac_try;; | |
3117 | esac | |
3118 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3119 | $as_echo "$ac_try_echo"; } >&5 | |
3120 | (eval "$ac_try") 2>&5 | |
3121 | ac_status=$? | |
3122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3123 | test $ac_status = 0; }; }; then | |
3124 | cross_compiling=no | |
f35db108 | 3125 | else |
c915a581 JJ |
3126 | if test "$cross_compiling" = maybe; then |
3127 | cross_compiling=yes | |
3128 | else | |
3129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3131 | as_fn_error "cannot run C compiled programs. | |
3132 | If you meant to cross compile, use \`--host'. | |
3133 | See \`config.log' for more details." "$LINENO" 5; } | |
3134 | fi | |
f35db108 WM |
3135 | fi |
3136 | fi | |
c915a581 JJ |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3138 | $as_echo "yes" >&6; } | |
f35db108 | 3139 | |
c915a581 JJ |
3140 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
3141 | ac_clean_files=$ac_clean_files_save | |
3142 | # Check that the compiler produces executables we can run. If not, either | |
3143 | # the compiler is broken, or we cross compile. | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3145 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3147 | $as_echo "$cross_compiling" >&6; } | |
f35db108 | 3148 | |
c915a581 JJ |
3149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3150 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3151 | if { { ac_try="$ac_link" | |
3152 | case "(($ac_try" in | |
3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3154 | *) ac_try_echo=$ac_try;; | |
3155 | esac | |
3156 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3157 | $as_echo "$ac_try_echo"; } >&5 | |
3158 | (eval "$ac_link") 2>&5 | |
3159 | ac_status=$? | |
3160 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3161 | test $ac_status = 0; }; then : | |
3162 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3163 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3164 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3165 | # `rm'. | |
3166 | for ac_file in conftest.exe conftest conftest.*; do | |
3167 | test -f "$ac_file" || continue | |
3168 | case $ac_file in | |
3169 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3170 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3171 | break;; | |
3172 | * ) break;; | |
3173 | esac | |
3174 | done | |
3175 | else | |
3176 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3177 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3178 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3179 | See \`config.log' for more details." "$LINENO" 5; } | |
3180 | fi | |
3181 | rm -f conftest$ac_cv_exeext | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3183 | $as_echo "$ac_cv_exeext" >&6; } | |
f35db108 | 3184 | |
c915a581 JJ |
3185 | rm -f conftest.$ac_ext |
3186 | EXEEXT=$ac_cv_exeext | |
3187 | ac_exeext=$EXEEXT | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3189 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3190 | if test "${ac_cv_objext+set}" = set; then : | |
3191 | $as_echo_n "(cached) " >&6 | |
3192 | else | |
3193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3194 | /* end confdefs.h. */ | |
f35db108 | 3195 | |
c915a581 JJ |
3196 | int |
3197 | main () | |
3198 | { | |
f35db108 | 3199 | |
c915a581 JJ |
3200 | ; |
3201 | return 0; | |
3202 | } | |
3203 | _ACEOF | |
3204 | rm -f conftest.o conftest.obj | |
3205 | if { { ac_try="$ac_compile" | |
3206 | case "(($ac_try" in | |
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3208 | *) ac_try_echo=$ac_try;; | |
3209 | esac | |
3210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3211 | $as_echo "$ac_try_echo"; } >&5 | |
3212 | (eval "$ac_compile") 2>&5 | |
3213 | ac_status=$? | |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3215 | test $ac_status = 0; }; then : | |
3216 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3217 | test -f "$ac_file" || continue; | |
3218 | case $ac_file in | |
3219 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3220 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3221 | break;; | |
3222 | esac | |
3223 | done | |
2a6346c4 | 3224 | else |
c915a581 JJ |
3225 | $as_echo "$as_me: failed program was:" >&5 |
3226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2a6346c4 | 3227 | |
c915a581 JJ |
3228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3230 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3231 | See \`config.log' for more details." "$LINENO" 5; } | |
2a6346c4 | 3232 | fi |
c915a581 | 3233 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2a6346c4 | 3234 | fi |
c915a581 JJ |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3236 | $as_echo "$ac_cv_objext" >&6; } | |
3237 | OBJEXT=$ac_cv_objext | |
3238 | ac_objext=$OBJEXT | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3240 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3241 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3242 | $as_echo_n "(cached) " >&6 | |
3243 | else | |
3244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3245 | /* end confdefs.h. */ | |
2a6346c4 | 3246 | |
c915a581 JJ |
3247 | int |
3248 | main () | |
3249 | { | |
3250 | #ifndef __GNUC__ | |
3251 | choke me | |
3252 | #endif | |
2a6346c4 | 3253 | |
c915a581 JJ |
3254 | ; |
3255 | return 0; | |
3256 | } | |
3257 | _ACEOF | |
3258 | if ac_fn_c_try_compile "$LINENO"; then : | |
3259 | ac_compiler_gnu=yes | |
2b723e21 | 3260 | else |
c915a581 | 3261 | ac_compiler_gnu=no |
2b723e21 | 3262 | fi |
c915a581 JJ |
3263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3264 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2b723e21 | 3265 | |
c915a581 JJ |
3266 | fi |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3268 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3269 | if test $ac_compiler_gnu = yes; then | |
3270 | GCC=yes | |
2b723e21 | 3271 | else |
c915a581 | 3272 | GCC= |
2b723e21 | 3273 | fi |
c915a581 JJ |
3274 | ac_test_CFLAGS=${CFLAGS+set} |
3275 | ac_save_CFLAGS=$CFLAGS | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3277 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3278 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3279 | $as_echo_n "(cached) " >&6 | |
3280 | else | |
3281 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3282 | ac_c_werror_flag=yes | |
3283 | ac_cv_prog_cc_g=no | |
3284 | CFLAGS="-g" | |
3285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3286 | /* end confdefs.h. */ | |
2b723e21 | 3287 | |
c915a581 JJ |
3288 | int |
3289 | main () | |
3290 | { | |
2b723e21 | 3291 | |
c915a581 JJ |
3292 | ; |
3293 | return 0; | |
3294 | } | |
3295 | _ACEOF | |
3296 | if ac_fn_c_try_compile "$LINENO"; then : | |
3297 | ac_cv_prog_cc_g=yes | |
3298 | else | |
3299 | CFLAGS="" | |
3300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3301 | /* end confdefs.h. */ | |
2a6346c4 | 3302 | |
c915a581 JJ |
3303 | int |
3304 | main () | |
3305 | { | |
2a6346c4 | 3306 | |
c915a581 JJ |
3307 | ; |
3308 | return 0; | |
3309 | } | |
3310 | _ACEOF | |
3311 | if ac_fn_c_try_compile "$LINENO"; then : | |
f35db108 | 3312 | |
f35db108 | 3313 | else |
c915a581 JJ |
3314 | ac_c_werror_flag=$ac_save_c_werror_flag |
3315 | CFLAGS="-g" | |
3316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3317 | /* end confdefs.h. */ | |
3318 | ||
3319 | int | |
3320 | main () | |
3321 | { | |
f35db108 | 3322 | |
c915a581 JJ |
3323 | ; |
3324 | return 0; | |
3325 | } | |
3326 | _ACEOF | |
3327 | if ac_fn_c_try_compile "$LINENO"; then : | |
3328 | ac_cv_prog_cc_g=yes | |
f35db108 | 3329 | fi |
c915a581 | 3330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 3331 | fi |
c915a581 | 3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 3333 | fi |
c915a581 JJ |
3334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3335 | ac_c_werror_flag=$ac_save_c_werror_flag | |
f35db108 | 3336 | fi |
c915a581 JJ |
3337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3338 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3339 | if test "$ac_test_CFLAGS" = set; then | |
3340 | CFLAGS=$ac_save_CFLAGS | |
3341 | elif test $ac_cv_prog_cc_g = yes; then | |
3342 | if test "$GCC" = yes; then | |
3343 | CFLAGS="-g -O2" | |
3344 | else | |
3345 | CFLAGS="-g" | |
f35db108 | 3346 | fi |
f35db108 | 3347 | else |
c915a581 JJ |
3348 | if test "$GCC" = yes; then |
3349 | CFLAGS="-O2" | |
f35db108 | 3350 | else |
c915a581 | 3351 | CFLAGS= |
f35db108 | 3352 | fi |
f35db108 | 3353 | fi |
c915a581 JJ |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3355 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3356 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
f35db108 WM |
3357 | $as_echo_n "(cached) " >&6 |
3358 | else | |
c915a581 JJ |
3359 | ac_cv_prog_cc_c89=no |
3360 | ac_save_CC=$CC | |
3361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3362 | /* end confdefs.h. */ | |
3363 | #include <stdarg.h> | |
3364 | #include <stdio.h> | |
3365 | #include <sys/types.h> | |
3366 | #include <sys/stat.h> | |
3367 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3368 | struct buf { int x; }; | |
3369 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3370 | static char *e (p, i) | |
3371 | char **p; | |
3372 | int i; | |
3373 | { | |
3374 | return p[i]; | |
3375 | } | |
3376 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3377 | { | |
3378 | char *s; | |
3379 | va_list v; | |
3380 | va_start (v,p); | |
3381 | s = g (p, va_arg (v,int)); | |
3382 | va_end (v); | |
3383 | return s; | |
3384 | } | |
f35db108 | 3385 | |
c915a581 JJ |
3386 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3387 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3388 | These don't provoke an error unfortunately, instead are silently treated | |
3389 | as 'x'. The following induces an error, until -std is added to get | |
3390 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3391 | array size at least. It's necessary to write '\x00'==0 to get something | |
3392 | that's true only with -std. */ | |
3393 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
f35db108 | 3394 | |
c915a581 JJ |
3395 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3396 | inside strings and character constants. */ | |
3397 | #define FOO(x) 'x' | |
3398 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
f35db108 | 3399 | |
c915a581 JJ |
3400 | int test (int i, double x); |
3401 | struct s1 {int (*f) (int a);}; | |
3402 | struct s2 {int (*f) (double a);}; | |
3403 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3404 | int argc; | |
3405 | char **argv; | |
3406 | int | |
3407 | main () | |
3408 | { | |
3409 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3410 | ; | |
3411 | return 0; | |
3412 | } | |
3413 | _ACEOF | |
3414 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3415 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
f35db108 | 3416 | do |
c915a581 JJ |
3417 | CC="$ac_save_CC $ac_arg" |
3418 | if ac_fn_c_try_compile "$LINENO"; then : | |
3419 | ac_cv_prog_cc_c89=$ac_arg | |
3420 | fi | |
3421 | rm -f core conftest.err conftest.$ac_objext | |
3422 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
f35db108 | 3423 | done |
c915a581 JJ |
3424 | rm -f conftest.$ac_ext |
3425 | CC=$ac_save_CC | |
f35db108 | 3426 | |
f35db108 | 3427 | fi |
c915a581 JJ |
3428 | # AC_CACHE_VAL |
3429 | case "x$ac_cv_prog_cc_c89" in | |
3430 | x) | |
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3432 | $as_echo "none needed" >&6; } ;; | |
3433 | xno) | |
3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3435 | $as_echo "unsupported" >&6; } ;; | |
3436 | *) | |
3437 | CC="$CC $ac_cv_prog_cc_c89" | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3439 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3440 | esac | |
3441 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3442 | ||
f35db108 WM |
3443 | fi |
3444 | ||
c915a581 JJ |
3445 | ac_ext=c |
3446 | ac_cpp='$CPP $CPPFLAGS' | |
3447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3450 | ||
f35db108 | 3451 | |
c915a581 JJ |
3452 | ac_ext=c |
3453 | ac_cpp='$CPP $CPPFLAGS' | |
3454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3458 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3459 | # On Suns, sometimes $CPP names a directory. | |
3460 | if test -n "$CPP" && test -d "$CPP"; then | |
3461 | CPP= | |
f35db108 | 3462 | fi |
c915a581 JJ |
3463 | if test -z "$CPP"; then |
3464 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
f35db108 WM |
3465 | $as_echo_n "(cached) " >&6 |
3466 | else | |
c915a581 JJ |
3467 | # Double quotes because CPP needs to be expanded |
3468 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3469 | do | |
3470 | ac_preproc_ok=false | |
3471 | for ac_c_preproc_warn_flag in '' yes | |
f35db108 | 3472 | do |
c915a581 JJ |
3473 | # Use a header file that comes with gcc, so configuring glibc |
3474 | # with a fresh cross-compiler works. | |
3475 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3476 | # <limits.h> exists even on freestanding compilers. | |
3477 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3478 | # not just through cpp. "Syntax error" is here to catch this case. | |
3479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3480 | /* end confdefs.h. */ | |
3481 | #ifdef __STDC__ | |
3482 | # include <limits.h> | |
3483 | #else | |
3484 | # include <assert.h> | |
3485 | #endif | |
3486 | Syntax error | |
3487 | _ACEOF | |
3488 | if ac_fn_c_try_cpp "$LINENO"; then : | |
f35db108 | 3489 | |
c915a581 JJ |
3490 | else |
3491 | # Broken: fails on valid input. | |
3492 | continue | |
f35db108 | 3493 | fi |
c915a581 JJ |
3494 | rm -f conftest.err conftest.$ac_ext |
3495 | ||
3496 | # OK, works on sane cases. Now check whether nonexistent headers | |
3497 | # can be detected and how. | |
3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3499 | /* end confdefs.h. */ | |
3500 | #include <ac_nonexistent.h> | |
3501 | _ACEOF | |
3502 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3503 | # Broken: success on invalid input. | |
3504 | continue | |
f35db108 | 3505 | else |
c915a581 JJ |
3506 | # Passes both tests. |
3507 | ac_preproc_ok=: | |
3508 | break | |
3509 | fi | |
3510 | rm -f conftest.err conftest.$ac_ext | |
3511 | ||
3512 | done | |
3513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3514 | rm -f conftest.err conftest.$ac_ext | |
3515 | if $ac_preproc_ok; then : | |
3516 | break | |
f35db108 WM |
3517 | fi |
3518 | ||
c915a581 JJ |
3519 | done |
3520 | ac_cv_prog_CPP=$CPP | |
f35db108 | 3521 | |
f35db108 | 3522 | fi |
c915a581 | 3523 | CPP=$ac_cv_prog_CPP |
f35db108 | 3524 | else |
c915a581 JJ |
3525 | ac_cv_prog_CPP=$CPP |
3526 | fi | |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3528 | $as_echo "$CPP" >&6; } | |
3529 | ac_preproc_ok=false | |
3530 | for ac_c_preproc_warn_flag in '' yes | |
f35db108 | 3531 | do |
c915a581 JJ |
3532 | # Use a header file that comes with gcc, so configuring glibc |
3533 | # with a fresh cross-compiler works. | |
3534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3535 | # <limits.h> exists even on freestanding compilers. | |
3536 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3537 | # not just through cpp. "Syntax error" is here to catch this case. | |
3538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3539 | /* end confdefs.h. */ | |
3540 | #ifdef __STDC__ | |
3541 | # include <limits.h> | |
3542 | #else | |
3543 | # include <assert.h> | |
3544 | #endif | |
3545 | Syntax error | |
3546 | _ACEOF | |
3547 | if ac_fn_c_try_cpp "$LINENO"; then : | |
f35db108 | 3548 | |
c915a581 JJ |
3549 | else |
3550 | # Broken: fails on valid input. | |
3551 | continue | |
f35db108 | 3552 | fi |
c915a581 JJ |
3553 | rm -f conftest.err conftest.$ac_ext |
3554 | ||
3555 | # OK, works on sane cases. Now check whether nonexistent headers | |
3556 | # can be detected and how. | |
3557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3558 | /* end confdefs.h. */ | |
3559 | #include <ac_nonexistent.h> | |
3560 | _ACEOF | |
3561 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3562 | # Broken: success on invalid input. | |
3563 | continue | |
3564 | else | |
3565 | # Passes both tests. | |
3566 | ac_preproc_ok=: | |
3567 | break | |
f35db108 | 3568 | fi |
c915a581 JJ |
3569 | rm -f conftest.err conftest.$ac_ext |
3570 | ||
3571 | done | |
3572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3573 | rm -f conftest.err conftest.$ac_ext | |
3574 | if $ac_preproc_ok; then : | |
3575 | ||
f35db108 | 3576 | else |
c915a581 JJ |
3577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3579 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3580 | See \`config.log' for more details." "$LINENO" 5; } | |
f35db108 WM |
3581 | fi |
3582 | ||
c915a581 JJ |
3583 | ac_ext=c |
3584 | ac_cpp='$CPP $CPPFLAGS' | |
3585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 3588 | |
f35db108 | 3589 | |
c915a581 JJ |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3591 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3592 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3593 | $as_echo_n "(cached) " >&6 | |
3594 | else | |
3595 | if test -z "$GREP"; then | |
3596 | ac_path_GREP_found=false | |
3597 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3599 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3600 | do | |
3601 | IFS=$as_save_IFS | |
3602 | test -z "$as_dir" && as_dir=. | |
3603 | for ac_prog in grep ggrep; do | |
3604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3605 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3606 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3607 | # Check for GNU ac_path_GREP and select it if it is found. | |
3608 | # Check for GNU $ac_path_GREP | |
3609 | case `"$ac_path_GREP" --version 2>&1` in | |
3610 | *GNU*) | |
3611 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3612 | *) | |
3613 | ac_count=0 | |
3614 | $as_echo_n 0123456789 >"conftest.in" | |
3615 | while : | |
3616 | do | |
3617 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3618 | mv "conftest.tmp" "conftest.in" | |
3619 | cp "conftest.in" "conftest.nl" | |
3620 | $as_echo 'GREP' >> "conftest.nl" | |
3621 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3622 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3623 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3624 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3625 | # Best one so far, save it but keep looking for a better one | |
3626 | ac_cv_path_GREP="$ac_path_GREP" | |
3627 | ac_path_GREP_max=$ac_count | |
3628 | fi | |
3629 | # 10*(2^10) chars as input seems more than enough | |
3630 | test $ac_count -gt 10 && break | |
3631 | done | |
3632 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
f35db108 | 3633 | esac |
c915a581 JJ |
3634 | |
3635 | $ac_path_GREP_found && break 3 | |
3636 | done | |
3637 | done | |
3638 | done | |
3639 | IFS=$as_save_IFS | |
3640 | if test -z "$ac_cv_path_GREP"; then | |
3641 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
f35db108 | 3642 | fi |
c915a581 JJ |
3643 | else |
3644 | ac_cv_path_GREP=$GREP | |
f35db108 WM |
3645 | fi |
3646 | ||
3647 | fi | |
c915a581 JJ |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3649 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3650 | GREP="$ac_cv_path_GREP" | |
f35db108 WM |
3651 | |
3652 | ||
c915a581 JJ |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3654 | $as_echo_n "checking for egrep... " >&6; } | |
3655 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3656 | $as_echo_n "(cached) " >&6 | |
3657 | else | |
3658 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3659 | then ac_cv_path_EGREP="$GREP -E" | |
3660 | else | |
3661 | if test -z "$EGREP"; then | |
3662 | ac_path_EGREP_found=false | |
3663 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3665 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
f35db108 | 3666 | do |
c915a581 JJ |
3667 | IFS=$as_save_IFS |
3668 | test -z "$as_dir" && as_dir=. | |
3669 | for ac_prog in egrep; do | |
3670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3671 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3672 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3673 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3674 | # Check for GNU $ac_path_EGREP | |
3675 | case `"$ac_path_EGREP" --version 2>&1` in | |
3676 | *GNU*) | |
3677 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3678 | *) | |
3679 | ac_count=0 | |
3680 | $as_echo_n 0123456789 >"conftest.in" | |
3681 | while : | |
3682 | do | |
3683 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3684 | mv "conftest.tmp" "conftest.in" | |
3685 | cp "conftest.in" "conftest.nl" | |
3686 | $as_echo 'EGREP' >> "conftest.nl" | |
3687 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3688 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3689 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3690 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3691 | # Best one so far, save it but keep looking for a better one | |
3692 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3693 | ac_path_EGREP_max=$ac_count | |
3694 | fi | |
3695 | # 10*(2^10) chars as input seems more than enough | |
3696 | test $ac_count -gt 10 && break | |
3697 | done | |
3698 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
f35db108 | 3699 | esac |
f35db108 | 3700 | |
c915a581 JJ |
3701 | $ac_path_EGREP_found && break 3 |
3702 | done | |
3703 | done | |
3704 | done | |
3705 | IFS=$as_save_IFS | |
3706 | if test -z "$ac_cv_path_EGREP"; then | |
3707 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3708 | fi | |
f35db108 | 3709 | else |
c915a581 | 3710 | ac_cv_path_EGREP=$EGREP |
f35db108 | 3711 | fi |
f35db108 | 3712 | |
c915a581 | 3713 | fi |
a2479b3d | 3714 | fi |
c915a581 JJ |
3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3716 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3717 | EGREP="$ac_cv_path_EGREP" | |
a2479b3d | 3718 | |
f35db108 | 3719 | |
c915a581 JJ |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3721 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3722 | if test "${ac_cv_header_stdc+set}" = set; then : | |
f35db108 WM |
3723 | $as_echo_n "(cached) " >&6 |
3724 | else | |
3725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3726 | /* end confdefs.h. */ | |
c915a581 JJ |
3727 | #include <stdlib.h> |
3728 | #include <stdarg.h> | |
3729 | #include <string.h> | |
3730 | #include <float.h> | |
f35db108 WM |
3731 | |
3732 | int | |
3733 | main () | |
3734 | { | |
3735 | ||
3736 | ; | |
3737 | return 0; | |
3738 | } | |
3739 | _ACEOF | |
c915a581 JJ |
3740 | if ac_fn_c_try_compile "$LINENO"; then : |
3741 | ac_cv_header_stdc=yes | |
f35db108 | 3742 | else |
c915a581 | 3743 | ac_cv_header_stdc=no |
f35db108 | 3744 | fi |
c915a581 JJ |
3745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3746 | ||
3747 | if test $ac_cv_header_stdc = yes; then | |
3748 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
f35db108 WM |
3749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3750 | /* end confdefs.h. */ | |
c915a581 | 3751 | #include <string.h> |
f35db108 | 3752 | |
f35db108 | 3753 | _ACEOF |
c915a581 JJ |
3754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3755 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3756 | ||
f35db108 | 3757 | else |
c915a581 | 3758 | ac_cv_header_stdc=no |
f35db108 | 3759 | fi |
c915a581 | 3760 | rm -f conftest* |
f35db108 WM |
3761 | |
3762 | fi | |
c915a581 JJ |
3763 | |
3764 | if test $ac_cv_header_stdc = yes; then | |
3765 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3767 | /* end confdefs.h. */ | |
3768 | #include <stdlib.h> | |
3769 | ||
3770 | _ACEOF | |
3771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3772 | $EGREP "free" >/dev/null 2>&1; then : | |
3773 | ||
f35db108 | 3774 | else |
c915a581 | 3775 | ac_cv_header_stdc=no |
f35db108 | 3776 | fi |
c915a581 | 3777 | rm -f conftest* |
f35db108 | 3778 | |
c915a581 | 3779 | fi |
f35db108 | 3780 | |
c915a581 JJ |
3781 | if test $ac_cv_header_stdc = yes; then |
3782 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3783 | if test "$cross_compiling" = yes; then : | |
3784 | : | |
f35db108 | 3785 | else |
c915a581 | 3786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f35db108 | 3787 | /* end confdefs.h. */ |
c915a581 JJ |
3788 | #include <ctype.h> |
3789 | #include <stdlib.h> | |
3790 | #if ((' ' & 0x0FF) == 0x020) | |
3791 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3792 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3793 | #else | |
3794 | # define ISLOWER(c) \ | |
3795 | (('a' <= (c) && (c) <= 'i') \ | |
3796 | || ('j' <= (c) && (c) <= 'r') \ | |
3797 | || ('s' <= (c) && (c) <= 'z')) | |
3798 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3799 | #endif | |
f35db108 | 3800 | |
c915a581 | 3801 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
f35db108 WM |
3802 | int |
3803 | main () | |
3804 | { | |
c915a581 JJ |
3805 | int i; |
3806 | for (i = 0; i < 256; i++) | |
3807 | if (XOR (islower (i), ISLOWER (i)) | |
3808 | || toupper (i) != TOUPPER (i)) | |
3809 | return 2; | |
f35db108 WM |
3810 | return 0; |
3811 | } | |
3812 | _ACEOF | |
c915a581 | 3813 | if ac_fn_c_try_run "$LINENO"; then : |
f35db108 WM |
3814 | |
3815 | else | |
c915a581 JJ |
3816 | ac_cv_header_stdc=no |
3817 | fi | |
3818 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3819 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3820 | fi | |
f35db108 | 3821 | |
f35db108 | 3822 | fi |
f35db108 | 3823 | fi |
c915a581 JJ |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3825 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3826 | if test $ac_cv_header_stdc = yes; then | |
3827 | ||
3828 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3829 | ||
f35db108 | 3830 | fi |
c915a581 JJ |
3831 | |
3832 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3833 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3834 | inttypes.h stdint.h unistd.h | |
3835 | do : | |
3836 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3837 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3838 | " | |
3839 | eval as_val=\$$as_ac_Header | |
3840 | if test "x$as_val" = x""yes; then : | |
3841 | cat >>confdefs.h <<_ACEOF | |
3842 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3843 | _ACEOF | |
3844 | ||
f35db108 | 3845 | fi |
c915a581 JJ |
3846 | |
3847 | done | |
3848 | ||
3849 | ||
3850 | ||
3851 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3852 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3853 | MINIX=yes | |
f35db108 | 3854 | else |
c915a581 | 3855 | MINIX= |
f35db108 | 3856 | fi |
c915a581 JJ |
3857 | |
3858 | ||
3859 | if test "$MINIX" = yes; then | |
3860 | ||
3861 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3862 | ||
3863 | ||
3864 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3865 | ||
3866 | ||
3867 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3868 | ||
3869 | fi | |
3870 | ||
3871 | ||
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3873 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3874 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
f35db108 WM |
3875 | $as_echo_n "(cached) " >&6 |
3876 | else | |
c915a581 | 3877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f35db108 | 3878 | /* end confdefs.h. */ |
f35db108 | 3879 | |
c915a581 JJ |
3880 | # define __EXTENSIONS__ 1 |
3881 | $ac_includes_default | |
f35db108 WM |
3882 | int |
3883 | main () | |
3884 | { | |
c915a581 | 3885 | |
f35db108 WM |
3886 | ; |
3887 | return 0; | |
3888 | } | |
3889 | _ACEOF | |
c915a581 JJ |
3890 | if ac_fn_c_try_compile "$LINENO"; then : |
3891 | ac_cv_safe_to_define___extensions__=yes | |
3892 | else | |
3893 | ac_cv_safe_to_define___extensions__=no | |
f35db108 | 3894 | fi |
c915a581 | 3895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 3896 | fi |
c915a581 JJ |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3898 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3899 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3900 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
f35db108 | 3901 | |
c915a581 | 3902 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
f35db108 | 3903 | |
c915a581 | 3904 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
f35db108 | 3905 | |
c915a581 | 3906 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
f35db108 | 3907 | |
c915a581 | 3908 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
f35db108 | 3909 | |
f35db108 | 3910 | |
f35db108 | 3911 | |
c915a581 JJ |
3912 | # Do not delete or change the following two lines. For why, see |
3913 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
3914 | ac_aux_dir= | |
3915 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3916 | for ac_t in install-sh install.sh shtool; do | |
3917 | if test -f "$ac_dir/$ac_t"; then | |
3918 | ac_aux_dir=$ac_dir | |
3919 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
3920 | break 2 | |
3921 | fi | |
3922 | done | |
3923 | done | |
3924 | if test -z "$ac_aux_dir"; then | |
3925 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
f35db108 WM |
3926 | fi |
3927 | ||
c915a581 JJ |
3928 | # These three variables are undocumented and unsupported, |
3929 | # and are intended to be withdrawn in a future Autoconf release. | |
3930 | # They can cause serious problems if a builder's source tree is in a directory | |
3931 | # whose full name contains unusual characters. | |
3932 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3933 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3934 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
f35db108 WM |
3935 | |
3936 | ||
c915a581 JJ |
3937 | # Make sure we can run config.sub. |
3938 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3939 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
f35db108 | 3940 | |
c915a581 JJ |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3942 | $as_echo_n "checking build system type... " >&6; } | |
3943 | if test "${ac_cv_build+set}" = set; then : | |
f35db108 WM |
3944 | $as_echo_n "(cached) " >&6 |
3945 | else | |
c915a581 JJ |
3946 | ac_build_alias=$build_alias |
3947 | test "x$ac_build_alias" = x && | |
3948 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3949 | test "x$ac_build_alias" = x && | |
3950 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3951 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3952 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
f35db108 | 3953 | |
c915a581 JJ |
3954 | fi |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3956 | $as_echo "$ac_cv_build" >&6; } | |
3957 | case $ac_cv_build in | |
3958 | *-*-*) ;; | |
3959 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3960 | esac | |
3961 | build=$ac_cv_build | |
3962 | ac_save_IFS=$IFS; IFS='-' | |
3963 | set x $ac_cv_build | |
3964 | shift | |
3965 | build_cpu=$1 | |
3966 | build_vendor=$2 | |
3967 | shift; shift | |
3968 | # Remember, the first character of IFS is used to create $*, | |
3969 | # except with old shells: | |
3970 | build_os=$* | |
3971 | IFS=$ac_save_IFS | |
3972 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f35db108 | 3973 | |
f35db108 | 3974 | |
c915a581 JJ |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3976 | $as_echo_n "checking host system type... " >&6; } | |
3977 | if test "${ac_cv_host+set}" = set; then : | |
3978 | $as_echo_n "(cached) " >&6 | |
f35db108 | 3979 | else |
c915a581 JJ |
3980 | if test "x$host_alias" = x; then |
3981 | ac_cv_host=$ac_cv_build | |
3982 | else | |
3983 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3984 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
f35db108 WM |
3985 | fi |
3986 | ||
3987 | fi | |
c915a581 JJ |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3989 | $as_echo "$ac_cv_host" >&6; } | |
3990 | case $ac_cv_host in | |
3991 | *-*-*) ;; | |
3992 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3993 | esac | |
3994 | host=$ac_cv_host | |
3995 | ac_save_IFS=$IFS; IFS='-' | |
3996 | set x $ac_cv_host | |
3997 | shift | |
3998 | host_cpu=$1 | |
3999 | host_vendor=$2 | |
4000 | shift; shift | |
4001 | # Remember, the first character of IFS is used to create $*, | |
4002 | # except with old shells: | |
4003 | host_os=$* | |
4004 | IFS=$ac_save_IFS | |
4005 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
f35db108 WM |
4006 | |
4007 | ||
c915a581 JJ |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
4009 | $as_echo_n "checking target system type... " >&6; } | |
4010 | if test "${ac_cv_target+set}" = set; then : | |
f35db108 WM |
4011 | $as_echo_n "(cached) " >&6 |
4012 | else | |
c915a581 JJ |
4013 | if test "x$target_alias" = x; then |
4014 | ac_cv_target=$ac_cv_host | |
f35db108 | 4015 | else |
c915a581 JJ |
4016 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
4017 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
f35db108 WM |
4018 | fi |
4019 | ||
f35db108 | 4020 | fi |
c915a581 JJ |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
4022 | $as_echo "$ac_cv_target" >&6; } | |
4023 | case $ac_cv_target in | |
4024 | *-*-*) ;; | |
4025 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
4026 | esac | |
4027 | target=$ac_cv_target | |
4028 | ac_save_IFS=$IFS; IFS='-' | |
4029 | set x $ac_cv_target | |
4030 | shift | |
4031 | target_cpu=$1 | |
4032 | target_vendor=$2 | |
4033 | shift; shift | |
4034 | # Remember, the first character of IFS is used to create $*, | |
4035 | # except with old shells: | |
4036 | target_os=$* | |
4037 | IFS=$ac_save_IFS | |
4038 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
f35db108 | 4039 | |
f35db108 | 4040 | |
c915a581 JJ |
4041 | # The aliases save the names the user supplied, while $host etc. |
4042 | # will get canonicalized. | |
4043 | test -n "$target_alias" && | |
4044 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
4045 | NONENONEs,x,x, && | |
4046 | program_prefix=${target_alias}- | |
f35db108 | 4047 | |
c915a581 | 4048 | target_alias=${target_alias-$host_alias} |
f35db108 | 4049 | |
c915a581 JJ |
4050 | case ${build_alias} in |
4051 | "") build_noncanonical=${build} ;; | |
4052 | *) build_noncanonical=${build_alias} ;; | |
f35db108 | 4053 | esac |
f35db108 | 4054 | |
c915a581 JJ |
4055 | case ${host_alias} in |
4056 | "") host_noncanonical=${build_noncanonical} ;; | |
4057 | *) host_noncanonical=${host_alias} ;; | |
f35db108 | 4058 | esac |
f35db108 | 4059 | |
c915a581 JJ |
4060 | case ${target_alias} in |
4061 | "") target_noncanonical=${host_noncanonical} ;; | |
4062 | *) target_noncanonical=${target_alias} ;; | |
4063 | esac | |
f35db108 | 4064 | |
f35db108 | 4065 | |
f35db108 | 4066 | |
f35db108 | 4067 | |
f35db108 | 4068 | |
c915a581 JJ |
4069 | LIBSTDCXX_RAW_CXX_CXXFLAGS="\ |
4070 | -I\$(top_builddir)/../libstdc++-v3/include \ | |
4071 | -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ | |
4072 | -I\$(top_srcdir)/../libstdc++-v3/libsupc++" | |
4073 | LIBSTDCXX_RAW_CXX_LDFLAGS="\ | |
4074 | \$(top_builddir)/../libstdc++-v3/src/libstdc++.la" | |
f35db108 | 4075 | |
f35db108 | 4076 | |
f35db108 | 4077 | |
f35db108 | 4078 | |
c915a581 | 4079 | am__api_version='1.11' |
f35db108 | 4080 | |
c915a581 JJ |
4081 | # Find a good install program. We prefer a C program (faster), |
4082 | # so one script is as good as another. But avoid the broken or | |
4083 | # incompatible versions: | |
4084 | # SysV /etc/install, /usr/sbin/install | |
4085 | # SunOS /usr/etc/install | |
4086 | # IRIX /sbin/install | |
4087 | # AIX /bin/install | |
4088 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4089 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4090 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4091 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4092 | # OS/2's system install, which has a completely different semantic | |
4093 | # ./install, which can be erroneously created by make from ./install.sh. | |
4094 | # Reject install programs that cannot install multiple files. | |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4096 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4097 | if test -z "$INSTALL"; then | |
4098 | if test "${ac_cv_path_install+set}" = set; then : | |
f35db108 WM |
4099 | $as_echo_n "(cached) " >&6 |
4100 | else | |
c915a581 JJ |
4101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4102 | for as_dir in $PATH | |
4103 | do | |
4104 | IFS=$as_save_IFS | |
4105 | test -z "$as_dir" && as_dir=. | |
4106 | # Account for people who put trailing slashes in PATH elements. | |
4107 | case $as_dir/ in #(( | |
4108 | ./ | .// | /[cC]/* | \ | |
4109 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4110 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4111 | /usr/ucb/* ) ;; | |
4112 | *) | |
4113 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4114 | # Don't use installbsd from OSF since it installs stuff as root | |
4115 | # by default. | |
4116 | for ac_prog in ginstall scoinst install; do | |
4117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4118 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4119 | if test $ac_prog = install && | |
4120 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4121 | # AIX install. It has an incompatible calling convention. | |
4122 | : | |
4123 | elif test $ac_prog = install && | |
4124 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4125 | # program-specific install script used by HP pwplus--don't use. | |
4126 | : | |
4127 | else | |
4128 | rm -rf conftest.one conftest.two conftest.dir | |
4129 | echo one > conftest.one | |
4130 | echo two > conftest.two | |
4131 | mkdir conftest.dir | |
4132 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4133 | test -s conftest.one && test -s conftest.two && | |
4134 | test -s conftest.dir/conftest.one && | |
4135 | test -s conftest.dir/conftest.two | |
4136 | then | |
4137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4138 | break 3 | |
4139 | fi | |
4140 | fi | |
4141 | fi | |
4142 | done | |
f35db108 | 4143 | done |
c915a581 JJ |
4144 | ;; |
4145 | esac | |
f35db108 | 4146 | |
f35db108 | 4147 | done |
c915a581 | 4148 | IFS=$as_save_IFS |
f35db108 | 4149 | |
c915a581 | 4150 | rm -rf conftest.one conftest.two conftest.dir |
f35db108 WM |
4151 | |
4152 | fi | |
c915a581 JJ |
4153 | if test "${ac_cv_path_install+set}" = set; then |
4154 | INSTALL=$ac_cv_path_install | |
4155 | else | |
4156 | # As a last resort, use the slow shell script. Don't cache a | |
4157 | # value for INSTALL within a source directory, because that will | |
4158 | # break other packages using the cache if that directory is | |
4159 | # removed, or if the value is a relative name. | |
4160 | INSTALL=$ac_install_sh | |
4161 | fi | |
f35db108 | 4162 | fi |
c915a581 JJ |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4164 | $as_echo "$INSTALL" >&6; } | |
f35db108 | 4165 | |
c915a581 JJ |
4166 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4167 | # It thinks the first close brace ends the variable substitution. | |
4168 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
f35db108 | 4169 | |
c915a581 | 4170 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f35db108 | 4171 | |
c915a581 | 4172 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
f35db108 | 4173 | |
c915a581 JJ |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
4175 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4176 | # Just in case | |
4177 | sleep 1 | |
4178 | echo timestamp > conftest.file | |
4179 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4180 | # name. Accept space and tab only in the latter. | |
4181 | am_lf=' | |
4182 | ' | |
4183 | case `pwd` in | |
4184 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4185 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
4186 | esac | |
4187 | case $srcdir in | |
4188 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4189 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
4190 | esac | |
f35db108 | 4191 | |
c915a581 JJ |
4192 | # Do `set' in a subshell so we don't clobber the current shell's |
4193 | # arguments. Must try -L first in case configure is actually a | |
4194 | # symlink; some systems play weird games with the mod time of symlinks | |
4195 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4196 | # directory). | |
4197 | if ( | |
4198 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4199 | if test "$*" = "X"; then | |
4200 | # -L didn't work. | |
4201 | set X `ls -t "$srcdir/configure" conftest.file` | |
4202 | fi | |
4203 | rm -f conftest.file | |
4204 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4205 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
f35db108 | 4206 | |
c915a581 JJ |
4207 | # If neither matched, then we have a broken ls. This can happen |
4208 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4209 | # broken ls alias from the environment. This has actually | |
4210 | # happened. Such a system could not be considered "sane". | |
4211 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
4212 | alias in your environment" "$LINENO" 5 | |
4213 | fi | |
f35db108 | 4214 | |
c915a581 JJ |
4215 | test "$2" = conftest.file |
4216 | ) | |
4217 | then | |
4218 | # Ok. | |
4219 | : | |
f35db108 | 4220 | else |
c915a581 JJ |
4221 | as_fn_error "newly created file is older than distributed files! |
4222 | Check your system clock" "$LINENO" 5 | |
f35db108 | 4223 | fi |
c915a581 JJ |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4225 | $as_echo "yes" >&6; } | |
4226 | test "$program_prefix" != NONE && | |
4227 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4228 | # Use a double $ so make ignores it. | |
4229 | test "$program_suffix" != NONE && | |
4230 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4231 | # Double any \ or $. | |
4232 | # By default was `s,x,x', remove it if useless. | |
4233 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4234 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
f35db108 | 4235 | |
c915a581 JJ |
4236 | # expand $ac_aux_dir to an absolute path |
4237 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
f35db108 | 4238 | |
c915a581 JJ |
4239 | if test x"${MISSING+set}" != xset; then |
4240 | case $am_aux_dir in | |
4241 | *\ * | *\ *) | |
4242 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4243 | *) | |
4244 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4245 | esac | |
4246 | fi | |
4247 | # Use eval to expand $SHELL | |
4248 | if eval "$MISSING --run true"; then | |
4249 | am_missing_run="$MISSING --run " | |
f35db108 | 4250 | else |
c915a581 JJ |
4251 | am_missing_run= |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
4253 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
f35db108 WM |
4254 | fi |
4255 | ||
c915a581 JJ |
4256 | if test x"${install_sh}" != xset; then |
4257 | case $am_aux_dir in | |
f35db108 | 4258 | *\ * | *\ *) |
c915a581 JJ |
4259 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
4260 | *) | |
4261 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4262 | esac | |
4263 | fi | |
f35db108 | 4264 | |
c915a581 JJ |
4265 | # Installed binaries are usually stripped using `strip' when the user |
4266 | # run `make install-strip'. However `strip' might not be the right | |
4267 | # tool to use in cross-compilation environments, therefore Automake | |
4268 | # will honor the `STRIP' environment variable to overrule this program. | |
4269 | if test "$cross_compiling" != no; then | |
4270 | if test -n "$ac_tool_prefix"; then | |
4271 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4272 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4274 | $as_echo_n "checking for $ac_word... " >&6; } | |
4275 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
4276 | $as_echo_n "(cached) " >&6 | |
4277 | else | |
4278 | if test -n "$STRIP"; then | |
4279 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4280 | else | |
4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4282 | for as_dir in $PATH | |
4283 | do | |
4284 | IFS=$as_save_IFS | |
4285 | test -z "$as_dir" && as_dir=. | |
4286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4288 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4290 | break 2 | |
4291 | fi | |
4292 | done | |
4293 | done | |
4294 | IFS=$as_save_IFS | |
f35db108 | 4295 | |
c915a581 JJ |
4296 | fi |
4297 | fi | |
4298 | STRIP=$ac_cv_prog_STRIP | |
4299 | if test -n "$STRIP"; then | |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4301 | $as_echo "$STRIP" >&6; } | |
4302 | else | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4304 | $as_echo "no" >&6; } | |
4305 | fi | |
f35db108 WM |
4306 | |
4307 | ||
c915a581 JJ |
4308 | fi |
4309 | if test -z "$ac_cv_prog_STRIP"; then | |
4310 | ac_ct_STRIP=$STRIP | |
4311 | # Extract the first word of "strip", so it can be a program name with args. | |
4312 | set dummy strip; ac_word=$2 | |
4313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4314 | $as_echo_n "checking for $ac_word... " >&6; } | |
4315 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
4316 | $as_echo_n "(cached) " >&6 | |
4317 | else | |
4318 | if test -n "$ac_ct_STRIP"; then | |
4319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4320 | else | |
4321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4322 | for as_dir in $PATH | |
4323 | do | |
4324 | IFS=$as_save_IFS | |
4325 | test -z "$as_dir" && as_dir=. | |
4326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4328 | ac_cv_prog_ac_ct_STRIP="strip" | |
4329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4330 | break 2 | |
4331 | fi | |
4332 | done | |
4333 | done | |
4334 | IFS=$as_save_IFS | |
f35db108 | 4335 | |
c915a581 JJ |
4336 | fi |
4337 | fi | |
4338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4339 | if test -n "$ac_ct_STRIP"; then | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4341 | $as_echo "$ac_ct_STRIP" >&6; } | |
f35db108 | 4342 | else |
c915a581 JJ |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4344 | $as_echo "no" >&6; } | |
f35db108 WM |
4345 | fi |
4346 | ||
c915a581 JJ |
4347 | if test "x$ac_ct_STRIP" = x; then |
4348 | STRIP=":" | |
4349 | else | |
4350 | case $cross_compiling:$ac_tool_warned in | |
4351 | yes:) | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4353 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4354 | ac_tool_warned=yes ;; | |
f35db108 | 4355 | esac |
c915a581 JJ |
4356 | STRIP=$ac_ct_STRIP |
4357 | fi | |
4358 | else | |
4359 | STRIP="$ac_cv_prog_STRIP" | |
4360 | fi | |
f35db108 | 4361 | |
c915a581 JJ |
4362 | fi |
4363 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
f35db108 | 4364 | |
c915a581 JJ |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4366 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4367 | if test -z "$MKDIR_P"; then | |
4368 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
f35db108 WM |
4369 | $as_echo_n "(cached) " >&6 |
4370 | else | |
f35db108 | 4371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c915a581 | 4372 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
f35db108 WM |
4373 | do |
4374 | IFS=$as_save_IFS | |
4375 | test -z "$as_dir" && as_dir=. | |
c915a581 JJ |
4376 | for ac_prog in mkdir gmkdir; do |
4377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4378 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4379 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4380 | 'mkdir (GNU coreutils) '* | \ | |
4381 | 'mkdir (coreutils) '* | \ | |
4382 | 'mkdir (fileutils) '4.1*) | |
4383 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4384 | break 3;; | |
4385 | esac | |
4386 | done | |
4387 | done | |
f35db108 WM |
4388 | done |
4389 | IFS=$as_save_IFS | |
f35db108 WM |
4390 | |
4391 | fi | |
f35db108 | 4392 | |
c915a581 JJ |
4393 | if test "${ac_cv_path_mkdir+set}" = set; then |
4394 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4395 | else | |
4396 | # As a last resort, use the slow shell script. Don't cache a | |
4397 | # value for MKDIR_P within a source directory, because that will | |
4398 | # break other packages using the cache if that directory is | |
4399 | # removed, or if the value is a relative name. | |
4400 | test -d ./--version && rmdir ./--version | |
4401 | MKDIR_P="$ac_install_sh -d" | |
4402 | fi | |
4403 | fi | |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4405 | $as_echo "$MKDIR_P" >&6; } | |
f35db108 | 4406 | |
c915a581 JJ |
4407 | mkdir_p="$MKDIR_P" |
4408 | case $mkdir_p in | |
4409 | [\\/$]* | ?:[\\/]*) ;; | |
4410 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
4411 | esac | |
f35db108 | 4412 | |
c915a581 JJ |
4413 | for ac_prog in gawk mawk nawk awk |
4414 | do | |
4415 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4416 | set dummy $ac_prog; ac_word=$2 | |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4418 | $as_echo_n "checking for $ac_word... " >&6; } | |
4419 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
f35db108 WM |
4420 | $as_echo_n "(cached) " >&6 |
4421 | else | |
c915a581 JJ |
4422 | if test -n "$AWK"; then |
4423 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4424 | else | |
4425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4426 | for as_dir in $PATH | |
f35db108 WM |
4427 | do |
4428 | IFS=$as_save_IFS | |
4429 | test -z "$as_dir" && as_dir=. | |
f35db108 | 4430 | for ac_exec_ext in '' $ac_executable_extensions; do |
c915a581 JJ |
4431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4432 | ac_cv_prog_AWK="$ac_prog" | |
4433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4434 | break 2 | |
4435 | fi | |
4436 | done | |
f35db108 | 4437 | done |
c915a581 | 4438 | IFS=$as_save_IFS |
f35db108 | 4439 | |
c915a581 JJ |
4440 | fi |
4441 | fi | |
4442 | AWK=$ac_cv_prog_AWK | |
4443 | if test -n "$AWK"; then | |
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4445 | $as_echo "$AWK" >&6; } | |
f35db108 | 4446 | else |
c915a581 JJ |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4448 | $as_echo "no" >&6; } | |
f35db108 WM |
4449 | fi |
4450 | ||
f35db108 | 4451 | |
c915a581 JJ |
4452 | test -n "$AWK" && break |
4453 | done | |
f35db108 | 4454 | |
c915a581 JJ |
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4456 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4457 | set x ${MAKE-make} | |
4458 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4459 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
f35db108 WM |
4460 | $as_echo_n "(cached) " >&6 |
4461 | else | |
c915a581 JJ |
4462 | cat >conftest.make <<\_ACEOF |
4463 | SHELL = /bin/sh | |
4464 | all: | |
4465 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4466 | _ACEOF | |
4467 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4468 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4469 | *@@@%%%=?*=@@@%%%*) | |
4470 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4471 | *) | |
4472 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
f35db108 | 4473 | esac |
c915a581 JJ |
4474 | rm -f conftest.make |
4475 | fi | |
4476 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4478 | $as_echo "yes" >&6; } | |
4479 | SET_MAKE= | |
f35db108 | 4480 | else |
c915a581 JJ |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4482 | $as_echo "no" >&6; } | |
4483 | SET_MAKE="MAKE=${MAKE-make}" | |
f35db108 WM |
4484 | fi |
4485 | ||
c915a581 JJ |
4486 | rm -rf .tst 2>/dev/null |
4487 | mkdir .tst 2>/dev/null | |
4488 | if test -d .tst; then | |
4489 | am__leading_dot=. | |
4490 | else | |
4491 | am__leading_dot=_ | |
f35db108 | 4492 | fi |
c915a581 | 4493 | rmdir .tst 2>/dev/null |
f35db108 | 4494 | |
c915a581 | 4495 | DEPDIR="${am__leading_dot}deps" |
f35db108 | 4496 | |
c915a581 | 4497 | ac_config_commands="$ac_config_commands depfiles" |
f35db108 | 4498 | |
f35db108 | 4499 | |
c915a581 JJ |
4500 | am_make=${MAKE-make} |
4501 | cat > confinc << 'END' | |
4502 | am__doit: | |
4503 | @echo this is the am__doit target | |
4504 | .PHONY: am__doit | |
4505 | END | |
4506 | # If we don't find an include directive, just comment out the code. | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4508 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4509 | am__include="#" | |
4510 | am__quote= | |
4511 | _am_result=none | |
4512 | # First try GNU make style include. | |
4513 | echo "include confinc" > confmf | |
4514 | # Ignore all kinds of additional output from `make'. | |
4515 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4516 | *the\ am__doit\ target*) | |
4517 | am__include=include | |
4518 | am__quote= | |
4519 | _am_result=GNU | |
4520 | ;; | |
4521 | esac | |
4522 | # Now try BSD make style include. | |
4523 | if test "$am__include" = "#"; then | |
4524 | echo '.include "confinc"' > confmf | |
4525 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4526 | *the\ am__doit\ target*) | |
4527 | am__include=.include | |
4528 | am__quote="\"" | |
4529 | _am_result=BSD | |
4530 | ;; | |
4531 | esac | |
f35db108 | 4532 | fi |
f35db108 WM |
4533 | |
4534 | ||
c915a581 JJ |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4536 | $as_echo "$_am_result" >&6; } | |
4537 | rm -f confinc confmf | |
f35db108 | 4538 | |
c915a581 JJ |
4539 | # Check whether --enable-dependency-tracking was given. |
4540 | if test "${enable_dependency_tracking+set}" = set; then : | |
4541 | enableval=$enable_dependency_tracking; | |
4542 | fi | |
f35db108 | 4543 | |
c915a581 JJ |
4544 | if test "x$enable_dependency_tracking" != xno; then |
4545 | am_depcomp="$ac_aux_dir/depcomp" | |
4546 | AMDEPBACKSLASH='\' | |
f3915b42 | 4547 | am__nodep='_no' |
c915a581 JJ |
4548 | fi |
4549 | if test "x$enable_dependency_tracking" != xno; then | |
4550 | AMDEP_TRUE= | |
4551 | AMDEP_FALSE='#' | |
4552 | else | |
4553 | AMDEP_TRUE='#' | |
4554 | AMDEP_FALSE= | |
4555 | fi | |
f35db108 WM |
4556 | |
4557 | ||
c915a581 JJ |
4558 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4559 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4560 | # is not polluted with repeated "-I." | |
4561 | am__isrc=' -I$(srcdir)' | |
4562 | # test to see if srcdir already configured | |
4563 | if test -f $srcdir/config.status; then | |
4564 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4565 | fi | |
4566 | fi | |
f35db108 | 4567 | |
c915a581 JJ |
4568 | # test whether we have cygpath |
4569 | if test -z "$CYGPATH_W"; then | |
4570 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4571 | CYGPATH_W='cygpath -w' | |
4572 | else | |
4573 | CYGPATH_W=echo | |
4574 | fi | |
4575 | fi | |
f35db108 WM |
4576 | |
4577 | ||
c915a581 JJ |
4578 | # Define the identity of the package. |
4579 | PACKAGE='package-unused' | |
4580 | VERSION='version-unused' | |
f35db108 WM |
4581 | |
4582 | ||
c915a581 JJ |
4583 | cat >>confdefs.h <<_ACEOF |
4584 | #define PACKAGE "$PACKAGE" | |
4585 | _ACEOF | |
f35db108 WM |
4586 | |
4587 | ||
c915a581 JJ |
4588 | cat >>confdefs.h <<_ACEOF |
4589 | #define VERSION "$VERSION" | |
4590 | _ACEOF | |
f35db108 | 4591 | |
c915a581 | 4592 | # Some tools Automake needs. |
f35db108 | 4593 | |
c915a581 | 4594 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
f35db108 WM |
4595 | |
4596 | ||
c915a581 | 4597 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
f35db108 WM |
4598 | |
4599 | ||
c915a581 | 4600 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
f35db108 WM |
4601 | |
4602 | ||
c915a581 | 4603 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
f35db108 | 4604 | |
c915a581 JJ |
4605 | |
4606 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4607 | ||
4608 | # We need awk for the "check" target. The system "awk" is bad on | |
4609 | # some platforms. | |
f3915b42 MH |
4610 | # Always define AMTAR for backward compatibility. Yes, it's still used |
4611 | # in the wild :-( We should find a proper way to deprecate it ... | |
4612 | AMTAR='$${TAR-tar}' | |
c915a581 | 4613 | |
f3915b42 | 4614 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c915a581 JJ |
4615 | |
4616 | ||
4617 | ||
4618 | ||
4619 | depcc="$CC" am_compiler_list= | |
4620 | ||
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4622 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4623 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
f35db108 WM |
4624 | $as_echo_n "(cached) " >&6 |
4625 | else | |
c915a581 JJ |
4626 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4627 | # We make a subdir and do the tests there. Otherwise we can end up | |
4628 | # making bogus files that we don't know about and never remove. For | |
4629 | # instance it was reported that on HP-UX the gcc test will end up | |
4630 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4631 | # in D'. | |
f3915b42 | 4632 | rm -rf conftest.dir |
c915a581 JJ |
4633 | mkdir conftest.dir |
4634 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4635 | # using a relative directory. | |
4636 | cp "$am_depcomp" conftest.dir | |
4637 | cd conftest.dir | |
4638 | # We will build objects and dependencies in a subdirectory because | |
4639 | # it helps to detect inapplicable dependency modes. For instance | |
4640 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4641 | # side effect of compilation, but ICC will put the dependencies in | |
4642 | # the current directory while Tru64 will put them in the object | |
4643 | # directory. | |
4644 | mkdir sub | |
4645 | ||
4646 | am_cv_CC_dependencies_compiler_type=none | |
4647 | if test "$am_compiler_list" = ""; then | |
4648 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4649 | fi | |
4650 | am__universal=false | |
4651 | case " $depcc " in #( | |
4652 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4653 | esac | |
4654 | ||
4655 | for depmode in $am_compiler_list; do | |
4656 | # Setup a source with many dependencies, because some compilers | |
4657 | # like to wrap large dependency lists on column 80 (with \), and | |
4658 | # we should not choose a depcomp mode which is confused by this. | |
4659 | # | |
4660 | # We need to recreate these files for each test, as the compiler may | |
4661 | # overwrite some of them when testing with obscure command lines. | |
4662 | # This happens at least with the AIX C compiler. | |
4663 | : > sub/conftest.c | |
4664 | for i in 1 2 3 4 5 6; do | |
4665 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4666 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4667 | # Solaris 8's {/usr,}/bin/sh. | |
4668 | touch sub/conftst$i.h | |
4669 | done | |
4670 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4671 | ||
4672 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4673 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4674 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4675 | # versions had trouble with output in subdirs | |
4676 | am__obj=sub/conftest.${OBJEXT-o} | |
4677 | am__minus_obj="-o $am__obj" | |
4678 | case $depmode in | |
4679 | gcc) | |
4680 | # This depmode causes a compiler race in universal mode. | |
4681 | test "$am__universal" = false || continue | |
4682 | ;; | |
4683 | nosideeffect) | |
4684 | # after this tag, mechanisms are not by side-effect, so they'll | |
4685 | # only be used when explicitly requested | |
4686 | if test "x$enable_dependency_tracking" = xyes; then | |
4687 | continue | |
4688 | else | |
4689 | break | |
4690 | fi | |
4691 | ;; | |
f3915b42 | 4692 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
c915a581 JJ |
4693 | # This compiler won't grok `-c -o', but also, the minuso test has |
4694 | # not run yet. These depmodes are late enough in the game, and | |
4695 | # so weak that their functioning should not be impacted. | |
4696 | am__obj=conftest.${OBJEXT-o} | |
4697 | am__minus_obj= | |
4698 | ;; | |
4699 | none) break ;; | |
4700 | esac | |
4701 | if depmode=$depmode \ | |
4702 | source=sub/conftest.c object=$am__obj \ | |
4703 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4704 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4705 | >/dev/null 2>conftest.err && | |
4706 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4707 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4708 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4709 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4710 | # icc doesn't choke on unknown options, it will just issue warnings | |
4711 | # or remarks (even with -Werror). So we grep stderr for any message | |
4712 | # that says an option was ignored or not supported. | |
4713 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4714 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4715 | # The diagnosis changed in icc 8.0: | |
4716 | # icc: Command line remark: option '-MP' not supported | |
4717 | if (grep 'ignoring option' conftest.err || | |
4718 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4719 | am_cv_CC_dependencies_compiler_type=$depmode | |
4720 | break | |
4721 | fi | |
f35db108 WM |
4722 | fi |
4723 | done | |
c915a581 JJ |
4724 | |
4725 | cd .. | |
4726 | rm -rf conftest.dir | |
f35db108 | 4727 | else |
c915a581 | 4728 | am_cv_CC_dependencies_compiler_type=none |
f35db108 | 4729 | fi |
c915a581 | 4730 | |
f35db108 | 4731 | fi |
c915a581 JJ |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4733 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4734 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
f35db108 | 4735 | |
c915a581 JJ |
4736 | if |
4737 | test "x$enable_dependency_tracking" != xno \ | |
4738 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4739 | am__fastdepCC_TRUE= | |
4740 | am__fastdepCC_FALSE='#' | |
f35db108 | 4741 | else |
c915a581 JJ |
4742 | am__fastdepCC_TRUE='#' |
4743 | am__fastdepCC_FALSE= | |
f35db108 | 4744 | fi |
c915a581 JJ |
4745 | |
4746 | ||
4747 | ||
f35db108 | 4748 | |
c915a581 JJ |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4750 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4751 | # Check whether --enable-maintainer-mode was given. | |
4752 | if test "${enable_maintainer_mode+set}" = set; then : | |
4753 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
f35db108 | 4754 | else |
c915a581 | 4755 | USE_MAINTAINER_MODE=no |
f35db108 | 4756 | fi |
c915a581 JJ |
4757 | |
4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4759 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4760 | if test $USE_MAINTAINER_MODE = yes; then | |
4761 | MAINTAINER_MODE_TRUE= | |
4762 | MAINTAINER_MODE_FALSE='#' | |
f35db108 | 4763 | else |
c915a581 JJ |
4764 | MAINTAINER_MODE_TRUE='#' |
4765 | MAINTAINER_MODE_FALSE= | |
4766 | fi | |
4767 | ||
4768 | MAINT=$MAINTAINER_MODE_TRUE | |
4769 | ||
4770 | ||
4771 | ||
4772 | # Calculate toolexeclibdir | |
4773 | # Also toolexecdir, though it's only used in toolexeclibdir | |
4774 | case ${version_specific_libs} in | |
4775 | yes) | |
4776 | # Need the gcc compiler version to know where to install libraries | |
4777 | # and header files if --enable-version-specific-runtime-libs option | |
4778 | # is selected. | |
4779 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
4780 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
4781 | ;; | |
4782 | no) | |
4783 | if test -n "$with_cross_host" && | |
4784 | test x"$with_cross_host" != x"no"; then | |
4785 | # Install a library built with a cross compiler in tooldir, not libdir. | |
4786 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
4787 | toolexeclibdir='$(toolexecdir)/lib' | |
4788 | else | |
4789 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
4790 | toolexeclibdir='$(libdir)' | |
4791 | fi | |
4792 | multi_os_directory=`$CC -print-multi-os-directory` | |
4793 | case $multi_os_directory in | |
4794 | .) ;; # Avoid trailing /. | |
4795 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
4796 | esac | |
4797 | ;; | |
4798 | esac | |
4799 | ||
4800 | ||
4801 | ||
4802 | # Checks for programs. | |
4803 | ac_ext=c | |
4804 | ac_cpp='$CPP $CPPFLAGS' | |
4805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4808 | if test -n "$ac_tool_prefix"; then | |
4809 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4810 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
f35db108 WM |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4812 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 4813 | if test "${ac_cv_prog_CC+set}" = set; then : |
f35db108 WM |
4814 | $as_echo_n "(cached) " >&6 |
4815 | else | |
c915a581 JJ |
4816 | if test -n "$CC"; then |
4817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 WM |
4818 | else |
4819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4820 | for as_dir in $PATH | |
4821 | do | |
4822 | IFS=$as_save_IFS | |
4823 | test -z "$as_dir" && as_dir=. | |
4824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 4826 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
f35db108 WM |
4827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4828 | break 2 | |
4829 | fi | |
4830 | done | |
4831 | done | |
4832 | IFS=$as_save_IFS | |
4833 | ||
4834 | fi | |
4835 | fi | |
c915a581 JJ |
4836 | CC=$ac_cv_prog_CC |
4837 | if test -n "$CC"; then | |
4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4839 | $as_echo "$CC" >&6; } | |
f35db108 WM |
4840 | else |
4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4842 | $as_echo "no" >&6; } | |
4843 | fi | |
4844 | ||
4845 | ||
f35db108 | 4846 | fi |
c915a581 JJ |
4847 | if test -z "$ac_cv_prog_CC"; then |
4848 | ac_ct_CC=$CC | |
4849 | # Extract the first word of "gcc", so it can be a program name with args. | |
4850 | set dummy gcc; ac_word=$2 | |
f35db108 WM |
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4852 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 4853 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
f35db108 WM |
4854 | $as_echo_n "(cached) " >&6 |
4855 | else | |
c915a581 JJ |
4856 | if test -n "$ac_ct_CC"; then |
4857 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f35db108 WM |
4858 | else |
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4860 | for as_dir in $PATH | |
4861 | do | |
4862 | IFS=$as_save_IFS | |
4863 | test -z "$as_dir" && as_dir=. | |
4864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 4866 | ac_cv_prog_ac_ct_CC="gcc" |
f35db108 WM |
4867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4868 | break 2 | |
4869 | fi | |
4870 | done | |
4871 | done | |
4872 | IFS=$as_save_IFS | |
4873 | ||
4874 | fi | |
4875 | fi | |
c915a581 JJ |
4876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4877 | if test -n "$ac_ct_CC"; then | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4879 | $as_echo "$ac_ct_CC" >&6; } | |
f35db108 WM |
4880 | else |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4882 | $as_echo "no" >&6; } | |
4883 | fi | |
4884 | ||
c915a581 JJ |
4885 | if test "x$ac_ct_CC" = x; then |
4886 | CC="" | |
f35db108 WM |
4887 | else |
4888 | case $cross_compiling:$ac_tool_warned in | |
4889 | yes:) | |
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4891 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4892 | ac_tool_warned=yes ;; | |
4893 | esac | |
c915a581 | 4894 | CC=$ac_ct_CC |
f35db108 | 4895 | fi |
c915a581 JJ |
4896 | else |
4897 | CC="$ac_cv_prog_CC" | |
f35db108 WM |
4898 | fi |
4899 | ||
c915a581 JJ |
4900 | if test -z "$CC"; then |
4901 | if test -n "$ac_tool_prefix"; then | |
4902 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4903 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4905 | $as_echo_n "checking for $ac_word... " >&6; } | |
4906 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4907 | $as_echo_n "(cached) " >&6 | |
4908 | else | |
4909 | if test -n "$CC"; then | |
4910 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4911 | else | |
4912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4913 | for as_dir in $PATH | |
4914 | do | |
4915 | IFS=$as_save_IFS | |
4916 | test -z "$as_dir" && as_dir=. | |
4917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4919 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4921 | break 2 | |
f35db108 | 4922 | fi |
c915a581 JJ |
4923 | done |
4924 | done | |
4925 | IFS=$as_save_IFS | |
f35db108 | 4926 | |
f35db108 | 4927 | fi |
c915a581 JJ |
4928 | fi |
4929 | CC=$ac_cv_prog_CC | |
4930 | if test -n "$CC"; then | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4932 | $as_echo "$CC" >&6; } | |
4933 | else | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4935 | $as_echo "no" >&6; } | |
4936 | fi | |
f35db108 WM |
4937 | |
4938 | ||
f35db108 | 4939 | fi |
f35db108 | 4940 | fi |
c915a581 JJ |
4941 | if test -z "$CC"; then |
4942 | # Extract the first word of "cc", so it can be a program name with args. | |
4943 | set dummy cc; ac_word=$2 | |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4945 | $as_echo_n "checking for $ac_word... " >&6; } | |
4946 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4947 | $as_echo_n "(cached) " >&6 | |
f35db108 | 4948 | else |
c915a581 JJ |
4949 | if test -n "$CC"; then |
4950 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 | 4951 | else |
c915a581 | 4952 | ac_prog_rejected=no |
f35db108 WM |
4953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4954 | for as_dir in $PATH | |
4955 | do | |
4956 | IFS=$as_save_IFS | |
4957 | test -z "$as_dir" && as_dir=. | |
4958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 JJ |
4960 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4961 | ac_prog_rejected=yes | |
4962 | continue | |
4963 | fi | |
4964 | ac_cv_prog_CC="cc" | |
f35db108 WM |
4965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4966 | break 2 | |
4967 | fi | |
4968 | done | |
4969 | done | |
4970 | IFS=$as_save_IFS | |
4971 | ||
c915a581 JJ |
4972 | if test $ac_prog_rejected = yes; then |
4973 | # We found a bogon in the path, so make sure we never use it. | |
4974 | set dummy $ac_cv_prog_CC | |
4975 | shift | |
4976 | if test $# != 0; then | |
4977 | # We chose a different compiler from the bogus one. | |
4978 | # However, it has the same basename, so the bogon will be chosen | |
4979 | # first if we set CC to just the basename; use the full file name. | |
4980 | shift | |
4981 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4982 | fi | |
4983 | fi | |
4984 | fi | |
4985 | fi | |
4986 | CC=$ac_cv_prog_CC | |
4987 | if test -n "$CC"; then | |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4989 | $as_echo "$CC" >&6; } | |
f35db108 WM |
4990 | else |
4991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4992 | $as_echo "no" >&6; } | |
4993 | fi | |
4994 | ||
4995 | ||
4996 | fi | |
c915a581 JJ |
4997 | if test -z "$CC"; then |
4998 | if test -n "$ac_tool_prefix"; then | |
4999 | for ac_prog in cl.exe | |
5000 | do | |
5001 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5002 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
f35db108 WM |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5004 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 5005 | if test "${ac_cv_prog_CC+set}" = set; then : |
f35db108 WM |
5006 | $as_echo_n "(cached) " >&6 |
5007 | else | |
c915a581 JJ |
5008 | if test -n "$CC"; then |
5009 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 WM |
5010 | else |
5011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5012 | for as_dir in $PATH | |
5013 | do | |
5014 | IFS=$as_save_IFS | |
5015 | test -z "$as_dir" && as_dir=. | |
5016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 5018 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
f35db108 WM |
5019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5020 | break 2 | |
5021 | fi | |
5022 | done | |
5023 | done | |
5024 | IFS=$as_save_IFS | |
5025 | ||
5026 | fi | |
5027 | fi | |
c915a581 JJ |
5028 | CC=$ac_cv_prog_CC |
5029 | if test -n "$CC"; then | |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5031 | $as_echo "$CC" >&6; } | |
f35db108 WM |
5032 | else |
5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5034 | $as_echo "no" >&6; } | |
5035 | fi | |
5036 | ||
c915a581 JJ |
5037 | |
5038 | test -n "$CC" && break | |
5039 | done | |
5040 | fi | |
5041 | if test -z "$CC"; then | |
5042 | ac_ct_CC=$CC | |
5043 | for ac_prog in cl.exe | |
5044 | do | |
5045 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5046 | set dummy $ac_prog; ac_word=$2 | |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5048 | $as_echo_n "checking for $ac_word... " >&6; } | |
5049 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
5050 | $as_echo_n "(cached) " >&6 | |
5051 | else | |
5052 | if test -n "$ac_ct_CC"; then | |
5053 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5054 | else | |
5055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5056 | for as_dir in $PATH | |
5057 | do | |
5058 | IFS=$as_save_IFS | |
5059 | test -z "$as_dir" && as_dir=. | |
5060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5062 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5064 | break 2 | |
5065 | fi | |
5066 | done | |
5067 | done | |
5068 | IFS=$as_save_IFS | |
5069 | ||
5070 | fi | |
5071 | fi | |
5072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5073 | if test -n "$ac_ct_CC"; then | |
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5075 | $as_echo "$ac_ct_CC" >&6; } | |
5076 | else | |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5078 | $as_echo "no" >&6; } | |
5079 | fi | |
5080 | ||
5081 | ||
5082 | test -n "$ac_ct_CC" && break | |
5083 | done | |
5084 | ||
5085 | if test "x$ac_ct_CC" = x; then | |
5086 | CC="" | |
f35db108 WM |
5087 | else |
5088 | case $cross_compiling:$ac_tool_warned in | |
5089 | yes:) | |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5092 | ac_tool_warned=yes ;; | |
5093 | esac | |
c915a581 | 5094 | CC=$ac_ct_CC |
f35db108 | 5095 | fi |
f35db108 WM |
5096 | fi |
5097 | ||
c915a581 | 5098 | fi |
f35db108 WM |
5099 | |
5100 | ||
c915a581 JJ |
5101 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5102 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5103 | as_fn_error "no acceptable C compiler found in \$PATH | |
5104 | See \`config.log' for more details." "$LINENO" 5; } | |
f35db108 | 5105 | |
c915a581 JJ |
5106 | # Provide some information about the compiler. |
5107 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5108 | set X $ac_compile | |
5109 | ac_compiler=$2 | |
5110 | for ac_option in --version -v -V -qversion; do | |
5111 | { { ac_try="$ac_compiler $ac_option >&5" | |
5112 | case "(($ac_try" in | |
5113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5114 | *) ac_try_echo=$ac_try;; | |
5115 | esac | |
5116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5117 | $as_echo "$ac_try_echo"; } >&5 | |
5118 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5119 | ac_status=$? | |
5120 | if test -s conftest.err; then | |
5121 | sed '10a\ | |
5122 | ... rest of stderr output deleted ... | |
5123 | 10q' conftest.err >conftest.er1 | |
5124 | cat conftest.er1 >&5 | |
5125 | rm -f conftest.er1 conftest.err | |
5126 | fi | |
5127 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5128 | test $ac_status = 0; } | |
5129 | done | |
f35db108 | 5130 | |
c915a581 JJ |
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
5132 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
5133 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
5134 | $as_echo_n "(cached) " >&6 | |
5135 | else | |
5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5137 | /* end confdefs.h. */ | |
f35db108 | 5138 | |
c915a581 JJ |
5139 | int |
5140 | main () | |
5141 | { | |
5142 | #ifndef __GNUC__ | |
5143 | choke me | |
5144 | #endif | |
f35db108 | 5145 | |
c915a581 JJ |
5146 | ; |
5147 | return 0; | |
5148 | } | |
5149 | _ACEOF | |
5150 | if ac_fn_c_try_compile "$LINENO"; then : | |
5151 | ac_compiler_gnu=yes | |
5152 | else | |
5153 | ac_compiler_gnu=no | |
5154 | fi | |
5155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5156 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
f35db108 | 5157 | |
c915a581 JJ |
5158 | fi |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5160 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5161 | if test $ac_compiler_gnu = yes; then | |
5162 | GCC=yes | |
5163 | else | |
5164 | GCC= | |
5165 | fi | |
5166 | ac_test_CFLAGS=${CFLAGS+set} | |
5167 | ac_save_CFLAGS=$CFLAGS | |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5169 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5170 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
f35db108 WM |
5171 | $as_echo_n "(cached) " >&6 |
5172 | else | |
c915a581 JJ |
5173 | ac_save_c_werror_flag=$ac_c_werror_flag |
5174 | ac_c_werror_flag=yes | |
5175 | ac_cv_prog_cc_g=no | |
5176 | CFLAGS="-g" | |
5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5178 | /* end confdefs.h. */ | |
f35db108 | 5179 | |
c915a581 JJ |
5180 | int |
5181 | main () | |
5182 | { | |
f35db108 | 5183 | |
c915a581 JJ |
5184 | ; |
5185 | return 0; | |
5186 | } | |
5187 | _ACEOF | |
5188 | if ac_fn_c_try_compile "$LINENO"; then : | |
5189 | ac_cv_prog_cc_g=yes | |
5190 | else | |
5191 | CFLAGS="" | |
5192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5193 | /* end confdefs.h. */ | |
f35db108 | 5194 | |
c915a581 JJ |
5195 | int |
5196 | main () | |
5197 | { | |
f35db108 | 5198 | |
c915a581 JJ |
5199 | ; |
5200 | return 0; | |
5201 | } | |
5202 | _ACEOF | |
5203 | if ac_fn_c_try_compile "$LINENO"; then : | |
f35db108 | 5204 | |
c915a581 JJ |
5205 | else |
5206 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5207 | CFLAGS="-g" | |
5208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5209 | /* end confdefs.h. */ | |
f35db108 | 5210 | |
c915a581 JJ |
5211 | int |
5212 | main () | |
5213 | { | |
f35db108 | 5214 | |
c915a581 JJ |
5215 | ; |
5216 | return 0; | |
5217 | } | |
5218 | _ACEOF | |
5219 | if ac_fn_c_try_compile "$LINENO"; then : | |
5220 | ac_cv_prog_cc_g=yes | |
5221 | fi | |
5222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5223 | fi | |
5224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5225 | fi | |
5226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5227 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5228 | fi | |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5230 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5231 | if test "$ac_test_CFLAGS" = set; then | |
5232 | CFLAGS=$ac_save_CFLAGS | |
5233 | elif test $ac_cv_prog_cc_g = yes; then | |
5234 | if test "$GCC" = yes; then | |
5235 | CFLAGS="-g -O2" | |
f35db108 | 5236 | else |
c915a581 | 5237 | CFLAGS="-g" |
f35db108 | 5238 | fi |
c915a581 JJ |
5239 | else |
5240 | if test "$GCC" = yes; then | |
5241 | CFLAGS="-O2" | |
5242 | else | |
5243 | CFLAGS= | |
5244 | fi | |
5245 | fi | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5247 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5248 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
5249 | $as_echo_n "(cached) " >&6 | |
5250 | else | |
5251 | ac_cv_prog_cc_c89=no | |
5252 | ac_save_CC=$CC | |
5253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5254 | /* end confdefs.h. */ | |
5255 | #include <stdarg.h> | |
5256 | #include <stdio.h> | |
5257 | #include <sys/types.h> | |
5258 | #include <sys/stat.h> | |
5259 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5260 | struct buf { int x; }; | |
5261 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5262 | static char *e (p, i) | |
5263 | char **p; | |
5264 | int i; | |
5265 | { | |
5266 | return p[i]; | |
5267 | } | |
5268 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5269 | { | |
5270 | char *s; | |
5271 | va_list v; | |
5272 | va_start (v,p); | |
5273 | s = g (p, va_arg (v,int)); | |
5274 | va_end (v); | |
5275 | return s; | |
5276 | } | |
f35db108 | 5277 | |
c915a581 JJ |
5278 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5279 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5280 | These don't provoke an error unfortunately, instead are silently treated | |
5281 | as 'x'. The following induces an error, until -std is added to get | |
5282 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5283 | array size at least. It's necessary to write '\x00'==0 to get something | |
5284 | that's true only with -std. */ | |
5285 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
f35db108 | 5286 | |
c915a581 JJ |
5287 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5288 | inside strings and character constants. */ | |
5289 | #define FOO(x) 'x' | |
5290 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
f35db108 | 5291 | |
c915a581 JJ |
5292 | int test (int i, double x); |
5293 | struct s1 {int (*f) (int a);}; | |
5294 | struct s2 {int (*f) (double a);}; | |
5295 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5296 | int argc; | |
5297 | char **argv; | |
5298 | int | |
5299 | main () | |
5300 | { | |
5301 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5302 | ; | |
5303 | return 0; | |
5304 | } | |
5305 | _ACEOF | |
5306 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5307 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5308 | do | |
5309 | CC="$ac_save_CC $ac_arg" | |
5310 | if ac_fn_c_try_compile "$LINENO"; then : | |
5311 | ac_cv_prog_cc_c89=$ac_arg | |
5312 | fi | |
5313 | rm -f core conftest.err conftest.$ac_objext | |
5314 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5315 | done | |
5316 | rm -f conftest.$ac_ext | |
5317 | CC=$ac_save_CC | |
f35db108 | 5318 | |
c915a581 JJ |
5319 | fi |
5320 | # AC_CACHE_VAL | |
5321 | case "x$ac_cv_prog_cc_c89" in | |
5322 | x) | |
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5324 | $as_echo "none needed" >&6; } ;; | |
5325 | xno) | |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5327 | $as_echo "unsupported" >&6; } ;; | |
5328 | *) | |
5329 | CC="$CC $ac_cv_prog_cc_c89" | |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5331 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5332 | esac | |
5333 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
f35db108 | 5334 | |
c915a581 | 5335 | fi |
f35db108 | 5336 | |
c915a581 JJ |
5337 | ac_ext=c |
5338 | ac_cpp='$CPP $CPPFLAGS' | |
5339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 5342 | |
c915a581 JJ |
5343 | ac_ext=cpp |
5344 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5345 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5346 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5347 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5348 | if test -z "$CXX"; then | |
5349 | if test -n "$CCC"; then | |
5350 | CXX=$CCC | |
f35db108 | 5351 | else |
c915a581 JJ |
5352 | if test -n "$ac_tool_prefix"; then |
5353 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5354 | do | |
5355 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5356 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5358 | $as_echo_n "checking for $ac_word... " >&6; } | |
5359 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
5360 | $as_echo_n "(cached) " >&6 | |
5361 | else | |
5362 | if test -n "$CXX"; then | |
5363 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5364 | else | |
5365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5366 | for as_dir in $PATH | |
5367 | do | |
5368 | IFS=$as_save_IFS | |
5369 | test -z "$as_dir" && as_dir=. | |
5370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5372 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5374 | break 2 | |
f35db108 | 5375 | fi |
c915a581 JJ |
5376 | done |
5377 | done | |
5378 | IFS=$as_save_IFS | |
f35db108 | 5379 | |
c915a581 JJ |
5380 | fi |
5381 | fi | |
5382 | CXX=$ac_cv_prog_CXX | |
5383 | if test -n "$CXX"; then | |
5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5385 | $as_echo "$CXX" >&6; } | |
5386 | else | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5388 | $as_echo "no" >&6; } | |
5389 | fi | |
f35db108 | 5390 | |
f35db108 | 5391 | |
c915a581 JJ |
5392 | test -n "$CXX" && break |
5393 | done | |
f35db108 | 5394 | fi |
c915a581 JJ |
5395 | if test -z "$CXX"; then |
5396 | ac_ct_CXX=$CXX | |
5397 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5398 | do | |
5399 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5400 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5402 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 5403 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
f35db108 WM |
5404 | $as_echo_n "(cached) " >&6 |
5405 | else | |
c915a581 JJ |
5406 | if test -n "$ac_ct_CXX"; then |
5407 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
f35db108 WM |
5408 | else |
5409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5410 | for as_dir in $PATH | |
5411 | do | |
5412 | IFS=$as_save_IFS | |
5413 | test -z "$as_dir" && as_dir=. | |
5414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 5416 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
f35db108 WM |
5417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5418 | break 2 | |
5419 | fi | |
5420 | done | |
5421 | done | |
5422 | IFS=$as_save_IFS | |
5423 | ||
5424 | fi | |
5425 | fi | |
c915a581 JJ |
5426 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5427 | if test -n "$ac_ct_CXX"; then | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5429 | $as_echo "$ac_ct_CXX" >&6; } | |
f35db108 WM |
5430 | else |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5432 | $as_echo "no" >&6; } | |
5433 | fi | |
5434 | ||
5435 | ||
c915a581 | 5436 | test -n "$ac_ct_CXX" && break |
f35db108 | 5437 | done |
f35db108 | 5438 | |
c915a581 JJ |
5439 | if test "x$ac_ct_CXX" = x; then |
5440 | CXX="g++" | |
f35db108 WM |
5441 | else |
5442 | case $cross_compiling:$ac_tool_warned in | |
5443 | yes:) | |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5445 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5446 | ac_tool_warned=yes ;; | |
5447 | esac | |
c915a581 | 5448 | CXX=$ac_ct_CXX |
f35db108 | 5449 | fi |
f35db108 WM |
5450 | fi |
5451 | ||
f35db108 | 5452 | fi |
c915a581 JJ |
5453 | fi |
5454 | # Provide some information about the compiler. | |
5455 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5456 | set X $ac_compile | |
5457 | ac_compiler=$2 | |
5458 | for ac_option in --version -v -V -qversion; do | |
5459 | { { ac_try="$ac_compiler $ac_option >&5" | |
5460 | case "(($ac_try" in | |
5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5462 | *) ac_try_echo=$ac_try;; | |
5463 | esac | |
5464 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5465 | $as_echo "$ac_try_echo"; } >&5 | |
5466 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5467 | ac_status=$? | |
5468 | if test -s conftest.err; then | |
5469 | sed '10a\ | |
5470 | ... rest of stderr output deleted ... | |
5471 | 10q' conftest.err >conftest.er1 | |
5472 | cat conftest.er1 >&5 | |
5473 | rm -f conftest.er1 conftest.err | |
5474 | fi | |
5475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5476 | test $ac_status = 0; } | |
f35db108 | 5477 | done |
f35db108 | 5478 | |
c915a581 JJ |
5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5480 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
5481 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
5482 | $as_echo_n "(cached) " >&6 | |
f35db108 | 5483 | else |
c915a581 JJ |
5484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5485 | /* end confdefs.h. */ | |
f35db108 | 5486 | |
c915a581 JJ |
5487 | int |
5488 | main () | |
5489 | { | |
5490 | #ifndef __GNUC__ | |
5491 | choke me | |
5492 | #endif | |
f35db108 | 5493 | |
c915a581 JJ |
5494 | ; |
5495 | return 0; | |
5496 | } | |
5497 | _ACEOF | |
5498 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5499 | ac_compiler_gnu=yes | |
f35db108 | 5500 | else |
c915a581 | 5501 | ac_compiler_gnu=no |
f35db108 | 5502 | fi |
c915a581 JJ |
5503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5504 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5505 | ||
f35db108 | 5506 | fi |
c915a581 JJ |
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5508 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5509 | if test $ac_compiler_gnu = yes; then | |
5510 | GXX=yes | |
f35db108 | 5511 | else |
c915a581 | 5512 | GXX= |
f35db108 | 5513 | fi |
c915a581 JJ |
5514 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5515 | ac_save_CXXFLAGS=$CXXFLAGS | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5517 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5518 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5519 | $as_echo_n "(cached) " >&6 | |
f35db108 | 5520 | else |
c915a581 JJ |
5521 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5522 | ac_cxx_werror_flag=yes | |
5523 | ac_cv_prog_cxx_g=no | |
5524 | CXXFLAGS="-g" | |
5525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5526 | /* end confdefs.h. */ | |
f35db108 | 5527 | |
c915a581 JJ |
5528 | int |
5529 | main () | |
5530 | { | |
f35db108 | 5531 | |
c915a581 JJ |
5532 | ; |
5533 | return 0; | |
5534 | } | |
5535 | _ACEOF | |
5536 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5537 | ac_cv_prog_cxx_g=yes | |
5538 | else | |
5539 | CXXFLAGS="" | |
5540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5541 | /* end confdefs.h. */ | |
f35db108 | 5542 | |
c915a581 JJ |
5543 | int |
5544 | main () | |
5545 | { | |
f35db108 | 5546 | |
c915a581 JJ |
5547 | ; |
5548 | return 0; | |
5549 | } | |
5550 | _ACEOF | |
5551 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
f35db108 | 5552 | |
f35db108 | 5553 | else |
c915a581 JJ |
5554 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5555 | CXXFLAGS="-g" | |
5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5557 | /* end confdefs.h. */ | |
f35db108 | 5558 | |
c915a581 JJ |
5559 | int |
5560 | main () | |
5561 | { | |
f35db108 | 5562 | |
c915a581 JJ |
5563 | ; |
5564 | return 0; | |
5565 | } | |
5566 | _ACEOF | |
5567 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5568 | ac_cv_prog_cxx_g=yes | |
f35db108 | 5569 | fi |
c915a581 | 5570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 5571 | fi |
c915a581 | 5572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 5573 | fi |
c915a581 JJ |
5574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5575 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
f35db108 | 5576 | fi |
c915a581 JJ |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5578 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5579 | if test "$ac_test_CXXFLAGS" = set; then | |
5580 | CXXFLAGS=$ac_save_CXXFLAGS | |
5581 | elif test $ac_cv_prog_cxx_g = yes; then | |
5582 | if test "$GXX" = yes; then | |
5583 | CXXFLAGS="-g -O2" | |
f35db108 | 5584 | else |
c915a581 | 5585 | CXXFLAGS="-g" |
f35db108 WM |
5586 | fi |
5587 | else | |
c915a581 JJ |
5588 | if test "$GXX" = yes; then |
5589 | CXXFLAGS="-O2" | |
5590 | else | |
5591 | CXXFLAGS= | |
5592 | fi | |
f35db108 | 5593 | fi |
c915a581 JJ |
5594 | ac_ext=c |
5595 | ac_cpp='$CPP $CPPFLAGS' | |
5596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 5599 | |
c915a581 | 5600 | depcc="$CXX" am_compiler_list= |
f35db108 | 5601 | |
c915a581 JJ |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5603 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5604 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
5605 | $as_echo_n "(cached) " >&6 | |
5606 | else | |
5607 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5608 | # We make a subdir and do the tests there. Otherwise we can end up | |
5609 | # making bogus files that we don't know about and never remove. For | |
5610 | # instance it was reported that on HP-UX the gcc test will end up | |
5611 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5612 | # in D'. | |
f3915b42 | 5613 | rm -rf conftest.dir |
c915a581 JJ |
5614 | mkdir conftest.dir |
5615 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5616 | # using a relative directory. | |
5617 | cp "$am_depcomp" conftest.dir | |
5618 | cd conftest.dir | |
5619 | # We will build objects and dependencies in a subdirectory because | |
5620 | # it helps to detect inapplicable dependency modes. For instance | |
5621 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5622 | # side effect of compilation, but ICC will put the dependencies in | |
5623 | # the current directory while Tru64 will put them in the object | |
5624 | # directory. | |
5625 | mkdir sub | |
f35db108 | 5626 | |
c915a581 JJ |
5627 | am_cv_CXX_dependencies_compiler_type=none |
5628 | if test "$am_compiler_list" = ""; then | |
5629 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5630 | fi | |
5631 | am__universal=false | |
5632 | case " $depcc " in #( | |
5633 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5634 | esac | |
f35db108 | 5635 | |
c915a581 JJ |
5636 | for depmode in $am_compiler_list; do |
5637 | # Setup a source with many dependencies, because some compilers | |
5638 | # like to wrap large dependency lists on column 80 (with \), and | |
5639 | # we should not choose a depcomp mode which is confused by this. | |
5640 | # | |
5641 | # We need to recreate these files for each test, as the compiler may | |
5642 | # overwrite some of them when testing with obscure command lines. | |
5643 | # This happens at least with the AIX C compiler. | |
5644 | : > sub/conftest.c | |
5645 | for i in 1 2 3 4 5 6; do | |
5646 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5647 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5648 | # Solaris 8's {/usr,}/bin/sh. | |
5649 | touch sub/conftst$i.h | |
5650 | done | |
5651 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
f35db108 | 5652 | |
c915a581 JJ |
5653 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5654 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5655 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5656 | # versions had trouble with output in subdirs | |
5657 | am__obj=sub/conftest.${OBJEXT-o} | |
5658 | am__minus_obj="-o $am__obj" | |
5659 | case $depmode in | |
5660 | gcc) | |
5661 | # This depmode causes a compiler race in universal mode. | |
5662 | test "$am__universal" = false || continue | |
5663 | ;; | |
5664 | nosideeffect) | |
5665 | # after this tag, mechanisms are not by side-effect, so they'll | |
5666 | # only be used when explicitly requested | |
5667 | if test "x$enable_dependency_tracking" = xyes; then | |
5668 | continue | |
5669 | else | |
5670 | break | |
5671 | fi | |
5672 | ;; | |
f3915b42 | 5673 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
c915a581 JJ |
5674 | # This compiler won't grok `-c -o', but also, the minuso test has |
5675 | # not run yet. These depmodes are late enough in the game, and | |
5676 | # so weak that their functioning should not be impacted. | |
5677 | am__obj=conftest.${OBJEXT-o} | |
5678 | am__minus_obj= | |
5679 | ;; | |
5680 | none) break ;; | |
5681 | esac | |
5682 | if depmode=$depmode \ | |
5683 | source=sub/conftest.c object=$am__obj \ | |
5684 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5685 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5686 | >/dev/null 2>conftest.err && | |
5687 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5688 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5689 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5690 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5691 | # icc doesn't choke on unknown options, it will just issue warnings | |
5692 | # or remarks (even with -Werror). So we grep stderr for any message | |
5693 | # that says an option was ignored or not supported. | |
5694 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5695 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5696 | # The diagnosis changed in icc 8.0: | |
5697 | # icc: Command line remark: option '-MP' not supported | |
5698 | if (grep 'ignoring option' conftest.err || | |
5699 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5700 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5701 | break | |
5702 | fi | |
5703 | fi | |
5704 | done | |
f35db108 | 5705 | |
c915a581 JJ |
5706 | cd .. |
5707 | rm -rf conftest.dir | |
5708 | else | |
5709 | am_cv_CXX_dependencies_compiler_type=none | |
5710 | fi | |
f35db108 | 5711 | |
c915a581 JJ |
5712 | fi |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5714 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5715 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
f35db108 | 5716 | |
c915a581 JJ |
5717 | if |
5718 | test "x$enable_dependency_tracking" != xno \ | |
5719 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5720 | am__fastdepCXX_TRUE= | |
5721 | am__fastdepCXX_FALSE='#' | |
5722 | else | |
5723 | am__fastdepCXX_TRUE='#' | |
5724 | am__fastdepCXX_FALSE= | |
5725 | fi | |
f35db108 WM |
5726 | |
5727 | ||
c915a581 | 5728 | # By default we simply use the C compiler to build assembly code. |
f35db108 | 5729 | |
c915a581 JJ |
5730 | test "${CCAS+set}" = set || CCAS=$CC |
5731 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
f35db108 WM |
5732 | |
5733 | ||
5734 | ||
c915a581 | 5735 | depcc="$CCAS" am_compiler_list= |
f35db108 | 5736 | |
c915a581 JJ |
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5738 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
5739 | if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : | |
5740 | $as_echo_n "(cached) " >&6 | |
5741 | else | |
5742 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5743 | # We make a subdir and do the tests there. Otherwise we can end up | |
5744 | # making bogus files that we don't know about and never remove. For | |
5745 | # instance it was reported that on HP-UX the gcc test will end up | |
5746 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5747 | # in D'. | |
f3915b42 | 5748 | rm -rf conftest.dir |
c915a581 JJ |
5749 | mkdir conftest.dir |
5750 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5751 | # using a relative directory. | |
5752 | cp "$am_depcomp" conftest.dir | |
5753 | cd conftest.dir | |
5754 | # We will build objects and dependencies in a subdirectory because | |
5755 | # it helps to detect inapplicable dependency modes. For instance | |
5756 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5757 | # side effect of compilation, but ICC will put the dependencies in | |
5758 | # the current directory while Tru64 will put them in the object | |
5759 | # directory. | |
5760 | mkdir sub | |
f35db108 | 5761 | |
c915a581 JJ |
5762 | am_cv_CCAS_dependencies_compiler_type=none |
5763 | if test "$am_compiler_list" = ""; then | |
5764 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5765 | fi | |
5766 | am__universal=false | |
f35db108 WM |
5767 | |
5768 | ||
c915a581 JJ |
5769 | for depmode in $am_compiler_list; do |
5770 | # Setup a source with many dependencies, because some compilers | |
5771 | # like to wrap large dependency lists on column 80 (with \), and | |
5772 | # we should not choose a depcomp mode which is confused by this. | |
5773 | # | |
5774 | # We need to recreate these files for each test, as the compiler may | |
5775 | # overwrite some of them when testing with obscure command lines. | |
5776 | # This happens at least with the AIX C compiler. | |
5777 | : > sub/conftest.c | |
5778 | for i in 1 2 3 4 5 6; do | |
5779 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5780 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5781 | # Solaris 8's {/usr,}/bin/sh. | |
5782 | touch sub/conftst$i.h | |
5783 | done | |
5784 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
f35db108 | 5785 | |
c915a581 JJ |
5786 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5787 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5788 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5789 | # versions had trouble with output in subdirs | |
5790 | am__obj=sub/conftest.${OBJEXT-o} | |
5791 | am__minus_obj="-o $am__obj" | |
5792 | case $depmode in | |
5793 | gcc) | |
5794 | # This depmode causes a compiler race in universal mode. | |
5795 | test "$am__universal" = false || continue | |
5796 | ;; | |
5797 | nosideeffect) | |
5798 | # after this tag, mechanisms are not by side-effect, so they'll | |
5799 | # only be used when explicitly requested | |
5800 | if test "x$enable_dependency_tracking" = xyes; then | |
5801 | continue | |
5802 | else | |
5803 | break | |
5804 | fi | |
5805 | ;; | |
f3915b42 | 5806 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
c915a581 JJ |
5807 | # This compiler won't grok `-c -o', but also, the minuso test has |
5808 | # not run yet. These depmodes are late enough in the game, and | |
5809 | # so weak that their functioning should not be impacted. | |
5810 | am__obj=conftest.${OBJEXT-o} | |
5811 | am__minus_obj= | |
5812 | ;; | |
5813 | none) break ;; | |
5814 | esac | |
5815 | if depmode=$depmode \ | |
5816 | source=sub/conftest.c object=$am__obj \ | |
5817 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5818 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5819 | >/dev/null 2>conftest.err && | |
5820 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5821 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5822 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5823 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5824 | # icc doesn't choke on unknown options, it will just issue warnings | |
5825 | # or remarks (even with -Werror). So we grep stderr for any message | |
5826 | # that says an option was ignored or not supported. | |
5827 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5828 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5829 | # The diagnosis changed in icc 8.0: | |
5830 | # icc: Command line remark: option '-MP' not supported | |
5831 | if (grep 'ignoring option' conftest.err || | |
5832 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5833 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
5834 | break | |
5835 | fi | |
5836 | fi | |
5837 | done | |
f35db108 | 5838 | |
c915a581 JJ |
5839 | cd .. |
5840 | rm -rf conftest.dir | |
5841 | else | |
5842 | am_cv_CCAS_dependencies_compiler_type=none | |
5843 | fi | |
f35db108 | 5844 | |
c915a581 JJ |
5845 | fi |
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
5847 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
5848 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
f35db108 | 5849 | |
c915a581 JJ |
5850 | if |
5851 | test "x$enable_dependency_tracking" != xno \ | |
5852 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
5853 | am__fastdepCCAS_TRUE= | |
5854 | am__fastdepCCAS_FALSE='#' | |
5855 | else | |
5856 | am__fastdepCCAS_TRUE='#' | |
5857 | am__fastdepCCAS_FALSE= | |
5858 | fi | |
f35db108 WM |
5859 | |
5860 | ||
c915a581 JJ |
5861 | if test -n "$ac_tool_prefix"; then |
5862 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5863 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5865 | $as_echo_n "checking for $ac_word... " >&6; } | |
5866 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
f35db108 WM |
5867 | $as_echo_n "(cached) " >&6 |
5868 | else | |
c915a581 JJ |
5869 | if test -n "$RANLIB"; then |
5870 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5871 | else | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
5876 | test -z "$as_dir" && as_dir=. | |
5877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5879 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5881 | break 2 | |
5882 | fi | |
5883 | done | |
5884 | done | |
5885 | IFS=$as_save_IFS | |
f35db108 | 5886 | |
c915a581 JJ |
5887 | fi |
5888 | fi | |
5889 | RANLIB=$ac_cv_prog_RANLIB | |
5890 | if test -n "$RANLIB"; then | |
5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5892 | $as_echo "$RANLIB" >&6; } | |
5893 | else | |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5895 | $as_echo "no" >&6; } | |
5896 | fi | |
f35db108 | 5897 | |
f35db108 | 5898 | |
c915a581 JJ |
5899 | fi |
5900 | if test -z "$ac_cv_prog_RANLIB"; then | |
5901 | ac_ct_RANLIB=$RANLIB | |
5902 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5903 | set dummy ranlib; ac_word=$2 | |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5905 | $as_echo_n "checking for $ac_word... " >&6; } | |
5906 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5907 | $as_echo_n "(cached) " >&6 | |
5908 | else | |
5909 | if test -n "$ac_ct_RANLIB"; then | |
5910 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5911 | else | |
5912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5913 | for as_dir in $PATH | |
5914 | do | |
5915 | IFS=$as_save_IFS | |
5916 | test -z "$as_dir" && as_dir=. | |
5917 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5919 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5921 | break 2 | |
f35db108 WM |
5922 | fi |
5923 | done | |
c915a581 JJ |
5924 | done |
5925 | IFS=$as_save_IFS | |
f35db108 WM |
5926 | |
5927 | fi | |
f35db108 | 5928 | fi |
c915a581 JJ |
5929 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5930 | if test -n "$ac_ct_RANLIB"; then | |
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5932 | $as_echo "$ac_ct_RANLIB" >&6; } | |
f35db108 | 5933 | else |
c915a581 JJ |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5935 | $as_echo "no" >&6; } | |
f35db108 WM |
5936 | fi |
5937 | ||
c915a581 JJ |
5938 | if test "x$ac_ct_RANLIB" = x; then |
5939 | RANLIB=":" | |
5940 | else | |
5941 | case $cross_compiling:$ac_tool_warned in | |
5942 | yes:) | |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5944 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5945 | ac_tool_warned=yes ;; | |
5946 | esac | |
5947 | RANLIB=$ac_ct_RANLIB | |
5948 | fi | |
5949 | else | |
5950 | RANLIB="$ac_cv_prog_RANLIB" | |
5951 | fi | |
f35db108 WM |
5952 | |
5953 | ||
c915a581 | 5954 | enable_dlopen=yes |
f35db108 WM |
5955 | |
5956 | ||
5957 | ||
c915a581 JJ |
5958 | case `pwd` in |
5959 | *\ * | *\ *) | |
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5961 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5962 | esac | |
f35db108 WM |
5963 | |
5964 | ||
5965 | ||
c915a581 JJ |
5966 | macro_version='2.2.7a' |
5967 | macro_revision='1.3134' | |
f35db108 WM |
5968 | |
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | ||
5975 | ||
5976 | ||
f35db108 WM |
5977 | |
5978 | ||
5979 | ||
5980 | ||
c915a581 | 5981 | ltmain="$ac_aux_dir/ltmain.sh" |
f35db108 | 5982 | |
c915a581 JJ |
5983 | # Backslashify metacharacters that are still active within |
5984 | # double-quoted strings. | |
5985 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
f35db108 | 5986 | |
c915a581 JJ |
5987 | # Same as above, but do not quote variable references. |
5988 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
f35db108 | 5989 | |
c915a581 JJ |
5990 | # Sed substitution to delay expansion of an escaped shell variable in a |
5991 | # double_quote_subst'ed string. | |
5992 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
f35db108 | 5993 | |
c915a581 JJ |
5994 | # Sed substitution to delay expansion of an escaped single quote. |
5995 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
f35db108 | 5996 | |
c915a581 JJ |
5997 | # Sed substitution to avoid accidental globbing in evaled expressions |
5998 | no_glob_subst='s/\*/\\\*/g' | |
f35db108 | 5999 | |
c915a581 JJ |
6000 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
6001 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6002 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
f35db108 | 6003 | |
c915a581 JJ |
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
6005 | $as_echo_n "checking how to print strings... " >&6; } | |
6006 | # Test print first, because it will be a builtin if present. | |
6007 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6008 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6009 | ECHO='print -r --' | |
6010 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6011 | ECHO='printf %s\n' | |
f35db108 | 6012 | else |
c915a581 JJ |
6013 | # Use this function as a fallback that always works. |
6014 | func_fallback_echo () | |
6015 | { | |
6016 | eval 'cat <<_LTECHO_EOF | |
6017 | $1 | |
6018 | _LTECHO_EOF' | |
6019 | } | |
6020 | ECHO='func_fallback_echo' | |
f35db108 | 6021 | fi |
f35db108 | 6022 | |
c915a581 JJ |
6023 | # func_echo_all arg... |
6024 | # Invoke $ECHO with all args, space-separated. | |
6025 | func_echo_all () | |
6026 | { | |
6027 | $ECHO "" | |
6028 | } | |
6029 | ||
6030 | case "$ECHO" in | |
6031 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6032 | $as_echo "printf" >&6; } ;; | |
6033 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6034 | $as_echo "print -r" >&6; } ;; | |
6035 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6036 | $as_echo "cat" >&6; } ;; | |
f35db108 WM |
6037 | esac |
6038 | ||
f35db108 | 6039 | |
f35db108 | 6040 | |
c915a581 JJ |
6041 | |
6042 | ||
6043 | ||
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6053 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6054 | if test "${ac_cv_path_SED+set}" = set; then : | |
f35db108 WM |
6055 | $as_echo_n "(cached) " >&6 |
6056 | else | |
c915a581 JJ |
6057 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6058 | for ac_i in 1 2 3 4 5 6 7; do | |
6059 | ac_script="$ac_script$as_nl$ac_script" | |
6060 | done | |
6061 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6062 | { ac_script=; unset ac_script;} | |
6063 | if test -z "$SED"; then | |
6064 | ac_path_SED_found=false | |
6065 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6067 | for as_dir in $PATH | |
f35db108 WM |
6068 | do |
6069 | IFS=$as_save_IFS | |
6070 | test -z "$as_dir" && as_dir=. | |
c915a581 | 6071 | for ac_prog in sed gsed; do |
f35db108 | 6072 | for ac_exec_ext in '' $ac_executable_extensions; do |
c915a581 JJ |
6073 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
6074 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
6075 | # Check for GNU ac_path_SED and select it if it is found. | |
6076 | # Check for GNU $ac_path_SED | |
6077 | case `"$ac_path_SED" --version 2>&1` in | |
6078 | *GNU*) | |
6079 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6080 | *) | |
6081 | ac_count=0 | |
6082 | $as_echo_n 0123456789 >"conftest.in" | |
6083 | while : | |
6084 | do | |
6085 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6086 | mv "conftest.tmp" "conftest.in" | |
6087 | cp "conftest.in" "conftest.nl" | |
6088 | $as_echo '' >> "conftest.nl" | |
6089 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6090 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6091 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6092 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6093 | # Best one so far, save it but keep looking for a better one | |
6094 | ac_cv_path_SED="$ac_path_SED" | |
6095 | ac_path_SED_max=$ac_count | |
6096 | fi | |
6097 | # 10*(2^10) chars as input seems more than enough | |
6098 | test $ac_count -gt 10 && break | |
f35db108 | 6099 | done |
c915a581 JJ |
6100 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6101 | esac | |
f35db108 | 6102 | |
c915a581 JJ |
6103 | $ac_path_SED_found && break 3 |
6104 | done | |
6105 | done | |
f35db108 WM |
6106 | done |
6107 | IFS=$as_save_IFS | |
c915a581 JJ |
6108 | if test -z "$ac_cv_path_SED"; then |
6109 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6110 | fi | |
f35db108 | 6111 | else |
c915a581 | 6112 | ac_cv_path_SED=$SED |
f35db108 WM |
6113 | fi |
6114 | ||
f35db108 | 6115 | fi |
c915a581 JJ |
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6117 | $as_echo "$ac_cv_path_SED" >&6; } | |
6118 | SED="$ac_cv_path_SED" | |
6119 | rm -f conftest.sed | |
f35db108 | 6120 | |
c915a581 JJ |
6121 | test -z "$SED" && SED=sed |
6122 | Xsed="$SED -e 1s/^X//" | |
f35db108 | 6123 | |
f35db108 WM |
6124 | |
6125 | ||
c915a581 JJ |
6126 | |
6127 | ||
6128 | ||
6129 | ||
6130 | ||
6131 | ||
6132 | ||
6133 | ||
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6135 | $as_echo_n "checking for fgrep... " >&6; } | |
6136 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
f35db108 WM |
6137 | $as_echo_n "(cached) " >&6 |
6138 | else | |
c915a581 JJ |
6139 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6140 | then ac_cv_path_FGREP="$GREP -F" | |
6141 | else | |
6142 | if test -z "$FGREP"; then | |
6143 | ac_path_FGREP_found=false | |
6144 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6146 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
f35db108 WM |
6147 | do |
6148 | IFS=$as_save_IFS | |
6149 | test -z "$as_dir" && as_dir=. | |
c915a581 | 6150 | for ac_prog in fgrep; do |
f35db108 | 6151 | for ac_exec_ext in '' $ac_executable_extensions; do |
c915a581 JJ |
6152 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
6153 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
6154 | # Check for GNU ac_path_FGREP and select it if it is found. | |
6155 | # Check for GNU $ac_path_FGREP | |
6156 | case `"$ac_path_FGREP" --version 2>&1` in | |
6157 | *GNU*) | |
6158 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6159 | *) | |
6160 | ac_count=0 | |
6161 | $as_echo_n 0123456789 >"conftest.in" | |
6162 | while : | |
6163 | do | |
6164 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6165 | mv "conftest.tmp" "conftest.in" | |
6166 | cp "conftest.in" "conftest.nl" | |
6167 | $as_echo 'FGREP' >> "conftest.nl" | |
6168 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6169 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6170 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6171 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6172 | # Best one so far, save it but keep looking for a better one | |
6173 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6174 | ac_path_FGREP_max=$ac_count | |
6175 | fi | |
6176 | # 10*(2^10) chars as input seems more than enough | |
6177 | test $ac_count -gt 10 && break | |
f35db108 | 6178 | done |
c915a581 JJ |
6179 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6180 | esac | |
f35db108 | 6181 | |
c915a581 JJ |
6182 | $ac_path_FGREP_found && break 3 |
6183 | done | |
6184 | done | |
6185 | done | |
6186 | IFS=$as_save_IFS | |
6187 | if test -z "$ac_cv_path_FGREP"; then | |
6188 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6189 | fi | |
f35db108 | 6190 | else |
c915a581 | 6191 | ac_cv_path_FGREP=$FGREP |
f35db108 WM |
6192 | fi |
6193 | ||
c915a581 | 6194 | fi |
f35db108 | 6195 | fi |
c915a581 JJ |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6197 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6198 | FGREP="$ac_cv_path_FGREP" | |
f35db108 | 6199 | |
c915a581 JJ |
6200 | |
6201 | test -z "$GREP" && GREP=grep | |
6202 | ||
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | ||
6220 | ||
6221 | # Check whether --with-gnu-ld was given. | |
6222 | if test "${with_gnu_ld+set}" = set; then : | |
6223 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6224 | else | |
6225 | with_gnu_ld=no | |
6226 | fi | |
6227 | ||
6228 | ac_prog=ld | |
6229 | if test "$GCC" = yes; then | |
6230 | # Check if gcc -print-prog-name=ld gives a path. | |
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6232 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6233 | case $host in | |
6234 | *-*-mingw*) | |
6235 | # gcc leaves a trailing carriage return which upsets mingw | |
6236 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6237 | *) | |
6238 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6239 | esac | |
6240 | case $ac_prog in | |
6241 | # Accept absolute paths. | |
6242 | [\\/]* | ?:[\\/]*) | |
6243 | re_direlt='/[^/][^/]*/\.\./' | |
6244 | # Canonicalize the pathname of ld | |
6245 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6246 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6247 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6248 | done | |
6249 | test -z "$LD" && LD="$ac_prog" | |
6250 | ;; | |
6251 | "") | |
6252 | # If it fails, then pretend we aren't using GCC. | |
6253 | ac_prog=ld | |
6254 | ;; | |
6255 | *) | |
6256 | # If it is relative, then search for the first ld in PATH. | |
6257 | with_gnu_ld=unknown | |
6258 | ;; | |
6259 | esac | |
6260 | elif test "$with_gnu_ld" = yes; then | |
6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6262 | $as_echo_n "checking for GNU ld... " >&6; } | |
6263 | else | |
6264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6265 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6266 | fi | |
6267 | if test "${lt_cv_path_LD+set}" = set; then : | |
6268 | $as_echo_n "(cached) " >&6 | |
6269 | else | |
6270 | if test -z "$LD"; then | |
6271 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6272 | for ac_dir in $PATH; do | |
6273 | IFS="$lt_save_ifs" | |
6274 | test -z "$ac_dir" && ac_dir=. | |
6275 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6276 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6277 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6278 | # but apparently some variants of GNU ld only accept -v. | |
6279 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6280 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6281 | *GNU* | *'with BFD'*) | |
6282 | test "$with_gnu_ld" != no && break | |
6283 | ;; | |
6284 | *) | |
6285 | test "$with_gnu_ld" != yes && break | |
6286 | ;; | |
6287 | esac | |
6288 | fi | |
6289 | done | |
6290 | IFS="$lt_save_ifs" | |
6291 | else | |
6292 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6293 | fi | |
6294 | fi | |
6295 | ||
6296 | LD="$lt_cv_path_LD" | |
6297 | if test -n "$LD"; then | |
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6299 | $as_echo "$LD" >&6; } | |
6300 | else | |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6302 | $as_echo "no" >&6; } | |
6303 | fi | |
6304 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6306 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6307 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
6308 | $as_echo_n "(cached) " >&6 | |
6309 | else | |
6310 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6311 | case `$LD -v 2>&1 </dev/null` in | |
6312 | *GNU* | *'with BFD'*) | |
6313 | lt_cv_prog_gnu_ld=yes | |
6314 | ;; | |
6315 | *) | |
6316 | lt_cv_prog_gnu_ld=no | |
6317 | ;; | |
6318 | esac | |
6319 | fi | |
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6321 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6322 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
6329 | ||
6330 | ||
6331 | ||
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6333 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6334 | if test "${lt_cv_path_NM+set}" = set; then : | |
6335 | $as_echo_n "(cached) " >&6 | |
6336 | else | |
6337 | if test -n "$NM"; then | |
6338 | # Let the user override the test. | |
6339 | lt_cv_path_NM="$NM" | |
6340 | else | |
6341 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6342 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6343 | lt_nm_to_check="$lt_nm_to_check nm" | |
6344 | fi | |
6345 | for lt_tmp_nm in $lt_nm_to_check; do | |
6346 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6347 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6348 | IFS="$lt_save_ifs" | |
6349 | test -z "$ac_dir" && ac_dir=. | |
6350 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6351 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6352 | # Check to see if the nm accepts a BSD-compat flag. | |
6353 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6354 | # nm: unknown option "B" ignored | |
6355 | # Tru64's nm complains that /dev/null is an invalid object file | |
6356 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6357 | */dev/null* | *'Invalid file or object type'*) | |
6358 | lt_cv_path_NM="$tmp_nm -B" | |
6359 | break | |
6360 | ;; | |
6361 | *) | |
6362 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6363 | */dev/null*) | |
6364 | lt_cv_path_NM="$tmp_nm -p" | |
6365 | break | |
6366 | ;; | |
6367 | *) | |
6368 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6369 | continue # so that we can try to find one that supports BSD flags | |
6370 | ;; | |
6371 | esac | |
6372 | ;; | |
6373 | esac | |
6374 | fi | |
6375 | done | |
6376 | IFS="$lt_save_ifs" | |
6377 | done | |
6378 | : ${lt_cv_path_NM=no} | |
6379 | fi | |
6380 | fi | |
6381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6382 | $as_echo "$lt_cv_path_NM" >&6; } | |
6383 | if test "$lt_cv_path_NM" != "no"; then | |
6384 | NM="$lt_cv_path_NM" | |
6385 | else | |
6386 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6387 | if test -n "$DUMPBIN"; then : | |
6388 | # Let the user override the test. | |
6389 | else | |
f35db108 | 6390 | if test -n "$ac_tool_prefix"; then |
c915a581 JJ |
6391 | for ac_prog in dumpbin "link -dump" |
6392 | do | |
6393 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6394 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
f35db108 WM |
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6396 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 6397 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
f35db108 WM |
6398 | $as_echo_n "(cached) " >&6 |
6399 | else | |
c915a581 JJ |
6400 | if test -n "$DUMPBIN"; then |
6401 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
f35db108 WM |
6402 | else |
6403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6404 | for as_dir in $PATH | |
6405 | do | |
6406 | IFS=$as_save_IFS | |
6407 | test -z "$as_dir" && as_dir=. | |
6408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 6410 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
f35db108 WM |
6411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6412 | break 2 | |
6413 | fi | |
6414 | done | |
6415 | done | |
6416 | IFS=$as_save_IFS | |
6417 | ||
6418 | fi | |
6419 | fi | |
c915a581 JJ |
6420 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6421 | if test -n "$DUMPBIN"; then | |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6423 | $as_echo "$DUMPBIN" >&6; } | |
f35db108 WM |
6424 | else |
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6426 | $as_echo "no" >&6; } | |
6427 | fi | |
6428 | ||
6429 | ||
c915a581 JJ |
6430 | test -n "$DUMPBIN" && break |
6431 | done | |
f35db108 | 6432 | fi |
c915a581 JJ |
6433 | if test -z "$DUMPBIN"; then |
6434 | ac_ct_DUMPBIN=$DUMPBIN | |
6435 | for ac_prog in dumpbin "link -dump" | |
6436 | do | |
6437 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6438 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6440 | $as_echo_n "checking for $ac_word... " >&6; } | |
c915a581 | 6441 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
f35db108 WM |
6442 | $as_echo_n "(cached) " >&6 |
6443 | else | |
c915a581 JJ |
6444 | if test -n "$ac_ct_DUMPBIN"; then |
6445 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
f35db108 WM |
6446 | else |
6447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6448 | for as_dir in $PATH | |
6449 | do | |
6450 | IFS=$as_save_IFS | |
6451 | test -z "$as_dir" && as_dir=. | |
6452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c915a581 | 6454 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
f35db108 WM |
6455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6456 | break 2 | |
6457 | fi | |
6458 | done | |
6459 | done | |
6460 | IFS=$as_save_IFS | |
6461 | ||
6462 | fi | |
6463 | fi | |
c915a581 JJ |
6464 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6465 | if test -n "$ac_ct_DUMPBIN"; then | |
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6467 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
f35db108 WM |
6468 | else |
6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6470 | $as_echo "no" >&6; } | |
6471 | fi | |
6472 | ||
c915a581 JJ |
6473 | |
6474 | test -n "$ac_ct_DUMPBIN" && break | |
6475 | done | |
6476 | ||
6477 | if test "x$ac_ct_DUMPBIN" = x; then | |
6478 | DUMPBIN=":" | |
f35db108 WM |
6479 | else |
6480 | case $cross_compiling:$ac_tool_warned in | |
6481 | yes:) | |
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6484 | ac_tool_warned=yes ;; | |
6485 | esac | |
c915a581 | 6486 | DUMPBIN=$ac_ct_DUMPBIN |
f35db108 | 6487 | fi |
f35db108 WM |
6488 | fi |
6489 | ||
c915a581 JJ |
6490 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6491 | *COFF*) | |
6492 | DUMPBIN="$DUMPBIN -symbols" | |
6493 | ;; | |
6494 | *) | |
6495 | DUMPBIN=: | |
6496 | ;; | |
6497 | esac | |
f35db108 | 6498 | fi |
f35db108 | 6499 | |
c915a581 JJ |
6500 | if test "$DUMPBIN" != ":"; then |
6501 | NM="$DUMPBIN" | |
6502 | fi | |
f35db108 | 6503 | fi |
c915a581 | 6504 | test -z "$NM" && NM=nm |
f35db108 WM |
6505 | |
6506 | ||
f35db108 | 6507 | |
f35db108 | 6508 | |
f35db108 | 6509 | |
c915a581 JJ |
6510 | |
6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6512 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6513 | if test "${lt_cv_nm_interface+set}" = set; then : | |
f35db108 WM |
6514 | $as_echo_n "(cached) " >&6 |
6515 | else | |
c915a581 JJ |
6516 | lt_cv_nm_interface="BSD nm" |
6517 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6518 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6519 | (eval "$ac_compile" 2>conftest.err) | |
6520 | cat conftest.err >&5 | |
6521 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6522 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6523 | cat conftest.err >&5 | |
6524 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6525 | cat conftest.out >&5 | |
6526 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6527 | lt_cv_nm_interface="MS dumpbin" | |
f35db108 | 6528 | fi |
c915a581 | 6529 | rm -f conftest* |
f35db108 | 6530 | fi |
c915a581 JJ |
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6532 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6533 | ||
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6535 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6536 | LN_S=$as_ln_s | |
6537 | if test "$LN_S" = "ln -s"; then | |
6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6539 | $as_echo "yes" >&6; } | |
f35db108 | 6540 | else |
c915a581 JJ |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6542 | $as_echo "no, using $LN_S" >&6; } | |
f35db108 WM |
6543 | fi |
6544 | ||
c915a581 JJ |
6545 | # find the maximum length of command line arguments |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6547 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6548 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
f35db108 WM |
6549 | $as_echo_n "(cached) " >&6 |
6550 | else | |
c915a581 JJ |
6551 | i=0 |
6552 | teststring="ABCD" | |
f35db108 | 6553 | |
c915a581 JJ |
6554 | case $build_os in |
6555 | msdosdjgpp*) | |
6556 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6557 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6558 | # during glob expansion). Even if it were fixed, the result of this | |
6559 | # check would be larger than it should be. | |
6560 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6561 | ;; | |
f35db108 | 6562 | |
c915a581 JJ |
6563 | gnu*) |
6564 | # Under GNU Hurd, this test is not required because there is | |
6565 | # no limit to the length of command line arguments. | |
6566 | # Libtool will interpret -1 as no limit whatsoever | |
6567 | lt_cv_sys_max_cmd_len=-1; | |
6568 | ;; | |
f35db108 | 6569 | |
c915a581 JJ |
6570 | cygwin* | mingw* | cegcc*) |
6571 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6572 | # about 5 minutes as the teststring grows exponentially. | |
6573 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6574 | # you end up with a "frozen" computer, even though with patience | |
6575 | # the test eventually succeeds (with a max line length of 256k). | |
6576 | # Instead, let's just punt: use the minimum linelength reported by | |
6577 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6578 | lt_cv_sys_max_cmd_len=8192; | |
6579 | ;; | |
f35db108 | 6580 | |
c915a581 JJ |
6581 | mint*) |
6582 | # On MiNT this can take a long time and run out of memory. | |
6583 | lt_cv_sys_max_cmd_len=8192; | |
6584 | ;; | |
f35db108 | 6585 | |
c915a581 JJ |
6586 | amigaos*) |
6587 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6588 | # So we just punt and use a minimum line length of 8192. | |
6589 | lt_cv_sys_max_cmd_len=8192; | |
6590 | ;; | |
f35db108 | 6591 | |
c915a581 JJ |
6592 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6593 | # This has been around since 386BSD, at least. Likely further. | |
6594 | if test -x /sbin/sysctl; then | |
6595 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6596 | elif test -x /usr/sbin/sysctl; then | |
6597 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6598 | else | |
6599 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6600 | fi | |
6601 | # And add a safety zone | |
6602 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6603 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6604 | ;; | |
f35db108 | 6605 | |
c915a581 JJ |
6606 | interix*) |
6607 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6608 | lt_cv_sys_max_cmd_len=196608 | |
6609 | ;; | |
6610 | ||
6611 | osf*) | |
6612 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6613 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6614 | # nice to cause kernel panics so lets avoid the loop below. | |
6615 | # First set a reasonable default. | |
6616 | lt_cv_sys_max_cmd_len=16384 | |
6617 | # | |
6618 | if test -x /sbin/sysconfig; then | |
6619 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6620 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6621 | esac | |
6622 | fi | |
6623 | ;; | |
6624 | sco3.2v5*) | |
6625 | lt_cv_sys_max_cmd_len=102400 | |
6626 | ;; | |
6627 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6628 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6629 | if test -n "$kargmax"; then | |
6630 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6631 | else | |
6632 | lt_cv_sys_max_cmd_len=32768 | |
6633 | fi | |
6634 | ;; | |
6635 | *) | |
6636 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6637 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6638 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6639 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6640 | else | |
6641 | # Make teststring a little bigger before we do anything with it. | |
6642 | # a 1K string should be a reasonable start. | |
6643 | for i in 1 2 3 4 5 6 7 8 ; do | |
6644 | teststring=$teststring$teststring | |
6645 | done | |
6646 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6647 | # If test is not a shell built-in, we'll probably end up computing a | |
6648 | # maximum length that is only half of the actual maximum length, but | |
6649 | # we can't tell. | |
6650 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6651 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6652 | test $i != 17 # 1/2 MB should be enough | |
6653 | do | |
6654 | i=`expr $i + 1` | |
6655 | teststring=$teststring$teststring | |
6656 | done | |
6657 | # Only check the string length outside the loop. | |
6658 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6659 | teststring= | |
6660 | # Add a significant safety factor because C++ compilers can tack on | |
6661 | # massive amounts of additional arguments before passing them to the | |
6662 | # linker. It appears as though 1/2 is a usable value. | |
6663 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6664 | fi | |
6665 | ;; | |
6666 | esac | |
6667 | ||
6668 | fi | |
6669 | ||
6670 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6672 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6673 | else | |
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6675 | $as_echo "none" >&6; } | |
6676 | fi | |
6677 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
f35db108 WM |
6678 | |
6679 | ||
6680 | ||
6681 | ||
6682 | ||
6683 | ||
c915a581 JJ |
6684 | : ${CP="cp -f"} |
6685 | : ${MV="mv -f"} | |
6686 | : ${RM="rm -f"} | |
6687 | ||
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6689 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6690 | # Try some XSI features | |
6691 | xsi_shell=no | |
6692 | ( _lt_dummy="a/b/c" | |
6693 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6694 | = c,a/b,, \ | |
6695 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6696 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6697 | && xsi_shell=yes | |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6699 | $as_echo "$xsi_shell" >&6; } | |
6700 | ||
6701 | ||
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6703 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6704 | lt_shell_append=no | |
6705 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6706 | >/dev/null 2>&1 \ | |
6707 | && lt_shell_append=yes | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6709 | $as_echo "$lt_shell_append" >&6; } | |
f35db108 WM |
6710 | |
6711 | ||
c915a581 JJ |
6712 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
6713 | lt_unset=unset | |
6714 | else | |
6715 | lt_unset=false | |
6716 | fi | |
f35db108 WM |
6717 | |
6718 | ||
6719 | ||
6720 | ||
6721 | ||
c915a581 JJ |
6722 | # test EBCDIC or ASCII |
6723 | case `echo X|tr X '\101'` in | |
6724 | A) # ASCII based system | |
6725 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6726 | lt_SP2NL='tr \040 \012' | |
6727 | lt_NL2SP='tr \015\012 \040\040' | |
6728 | ;; | |
6729 | *) # EBCDIC based system | |
6730 | lt_SP2NL='tr \100 \n' | |
6731 | lt_NL2SP='tr \r\n \100\100' | |
6732 | ;; | |
6733 | esac | |
f35db108 WM |
6734 | |
6735 | ||
6736 | ||
6737 | ||
6738 | ||
6739 | ||
6740 | ||
6741 | ||
6742 | ||
c915a581 JJ |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
6744 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6745 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
f35db108 WM |
6746 | $as_echo_n "(cached) " >&6 |
6747 | else | |
c915a581 | 6748 | lt_cv_ld_reload_flag='-r' |
f35db108 | 6749 | fi |
c915a581 JJ |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
6751 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6752 | reload_flag=$lt_cv_ld_reload_flag | |
6753 | case $reload_flag in | |
6754 | "" | " "*) ;; | |
6755 | *) reload_flag=" $reload_flag" ;; | |
6756 | esac | |
6757 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6758 | case $host_os in | |
6759 | darwin*) | |
6760 | if test "$GCC" = yes; then | |
6761 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6762 | else | |
6763 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6764 | fi | |
6765 | ;; | |
6766 | esac | |
6767 | ||
6768 | ||
6769 | ||
6770 | ||
6771 | ||
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | if test -n "$ac_tool_prefix"; then | |
6777 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6778 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6780 | $as_echo_n "checking for $ac_word... " >&6; } | |
6781 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
f35db108 WM |
6782 | $as_echo_n "(cached) " >&6 |
6783 | else | |
c915a581 JJ |
6784 | if test -n "$OBJDUMP"; then |
6785 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6786 | else | |
6787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6788 | for as_dir in $PATH | |
6789 | do | |
6790 | IFS=$as_save_IFS | |
6791 | test -z "$as_dir" && as_dir=. | |
6792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6794 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6796 | break 2 | |
6797 | fi | |
6798 | done | |
6799 | done | |
6800 | IFS=$as_save_IFS | |
f35db108 | 6801 | |
c915a581 JJ |
6802 | fi |
6803 | fi | |
6804 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6805 | if test -n "$OBJDUMP"; then | |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6807 | $as_echo "$OBJDUMP" >&6; } | |
f35db108 | 6808 | else |
c915a581 JJ |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6810 | $as_echo "no" >&6; } | |
f35db108 | 6811 | fi |
c915a581 | 6812 | |
f35db108 WM |
6813 | |
6814 | fi | |
c915a581 JJ |
6815 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6816 | ac_ct_OBJDUMP=$OBJDUMP | |
6817 | # Extract the first word of "objdump", so it can be a program name with args. | |
6818 | set dummy objdump; ac_word=$2 | |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6820 | $as_echo_n "checking for $ac_word... " >&6; } | |
6821 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
f35db108 WM |
6822 | $as_echo_n "(cached) " >&6 |
6823 | else | |
c915a581 JJ |
6824 | if test -n "$ac_ct_OBJDUMP"; then |
6825 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
f35db108 | 6826 | else |
c915a581 JJ |
6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6828 | for as_dir in $PATH | |
f35db108 | 6829 | do |
c915a581 JJ |
6830 | IFS=$as_save_IFS |
6831 | test -z "$as_dir" && as_dir=. | |
6832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6834 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6836 | break 2 | |
6837 | fi | |
f35db108 | 6838 | done |
c915a581 JJ |
6839 | done |
6840 | IFS=$as_save_IFS | |
f35db108 WM |
6841 | |
6842 | fi | |
f35db108 | 6843 | fi |
c915a581 JJ |
6844 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6845 | if test -n "$ac_ct_OBJDUMP"; then | |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6847 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
f35db108 | 6848 | else |
c915a581 JJ |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6850 | $as_echo "no" >&6; } | |
f35db108 | 6851 | fi |
f35db108 | 6852 | |
c915a581 JJ |
6853 | if test "x$ac_ct_OBJDUMP" = x; then |
6854 | OBJDUMP="false" | |
6855 | else | |
6856 | case $cross_compiling:$ac_tool_warned in | |
6857 | yes:) | |
6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6860 | ac_tool_warned=yes ;; | |
6861 | esac | |
6862 | OBJDUMP=$ac_ct_OBJDUMP | |
6863 | fi | |
f35db108 | 6864 | else |
c915a581 | 6865 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
f35db108 | 6866 | fi |
f35db108 | 6867 | |
c915a581 | 6868 | test -z "$OBJDUMP" && OBJDUMP=objdump |
f35db108 | 6869 | |
f35db108 | 6870 | |
f35db108 WM |
6871 | |
6872 | ||
f35db108 | 6873 | |
f35db108 | 6874 | |
f35db108 | 6875 | |
f35db108 | 6876 | |
f35db108 | 6877 | |
c915a581 JJ |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6879 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6880 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
6881 | $as_echo_n "(cached) " >&6 | |
f35db108 | 6882 | else |
c915a581 JJ |
6883 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
6884 | lt_cv_file_magic_test_file= | |
6885 | lt_cv_deplibs_check_method='unknown' | |
6886 | # Need to set the preceding variable on all platforms that support | |
6887 | # interlibrary dependencies. | |
6888 | # 'none' -- dependencies not supported. | |
6889 | # `unknown' -- same as none, but documents that we really don't know. | |
6890 | # 'pass_all' -- all dependencies passed with no checks. | |
6891 | # 'test_compile' -- check by making test program. | |
6892 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6893 | # which responds to the $file_magic_cmd with a given extended regex. | |
6894 | # If you have `file' or equivalent on your system and you're not sure | |
6895 | # whether `pass_all' will *always* work, you probably want this one. | |
f35db108 | 6896 | |
c915a581 JJ |
6897 | case $host_os in |
6898 | aix[4-9]*) | |
6899 | lt_cv_deplibs_check_method=pass_all | |
6900 | ;; | |
f35db108 | 6901 | |
c915a581 JJ |
6902 | beos*) |
6903 | lt_cv_deplibs_check_method=pass_all | |
6904 | ;; | |
f35db108 | 6905 | |
c915a581 JJ |
6906 | bsdi[45]*) |
6907 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6908 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6909 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6910 | ;; | |
f35db108 | 6911 | |
c915a581 JJ |
6912 | cygwin*) |
6913 | # func_win32_libid is a shell function defined in ltmain.sh | |
6914 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6915 | lt_cv_file_magic_cmd='func_win32_libid' | |
6916 | ;; | |
f35db108 | 6917 | |
c915a581 JJ |
6918 | mingw* | pw32*) |
6919 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6920 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6921 | # unless we find 'file', for example because we are cross-compiling. | |
6922 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6923 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6924 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6925 | lt_cv_file_magic_cmd='func_win32_libid' | |
6926 | else | |
6927 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6928 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6929 | fi | |
6930 | ;; | |
f35db108 | 6931 | |
c915a581 JJ |
6932 | cegcc*) |
6933 | # use the weaker test based on 'objdump'. See mingw*. | |
6934 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6935 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6936 | ;; | |
f35db108 | 6937 | |
c915a581 JJ |
6938 | darwin* | rhapsody*) |
6939 | lt_cv_deplibs_check_method=pass_all | |
6940 | ;; | |
f35db108 | 6941 | |
c915a581 JJ |
6942 | freebsd* | dragonfly*) |
6943 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6944 | case $host_cpu in | |
6945 | i*86 ) | |
6946 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6947 | # Let's accept both of them until this is cleared up. | |
6948 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6949 | lt_cv_file_magic_cmd=/usr/bin/file | |
6950 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6951 | ;; | |
6952 | esac | |
6953 | else | |
6954 | lt_cv_deplibs_check_method=pass_all | |
6955 | fi | |
6956 | ;; | |
f35db108 | 6957 | |
c915a581 JJ |
6958 | gnu*) |
6959 | lt_cv_deplibs_check_method=pass_all | |
6960 | ;; | |
f35db108 | 6961 | |
c915a581 JJ |
6962 | haiku*) |
6963 | lt_cv_deplibs_check_method=pass_all | |
6964 | ;; | |
f35db108 | 6965 | |
c915a581 JJ |
6966 | hpux10.20* | hpux11*) |
6967 | lt_cv_file_magic_cmd=/usr/bin/file | |
6968 | case $host_cpu in | |
6969 | ia64*) | |
6970 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6971 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6972 | ;; | |
6973 | hppa*64*) | |
6974 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6975 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6976 | ;; | |
6977 | *) | |
6978 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6979 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6980 | ;; | |
6981 | esac | |
6982 | ;; | |
f35db108 | 6983 | |
c915a581 JJ |
6984 | interix[3-9]*) |
6985 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6986 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6987 | ;; | |
f35db108 | 6988 | |
c915a581 JJ |
6989 | irix5* | irix6* | nonstopux*) |
6990 | case $LD in | |
6991 | *-32|*"-32 ") libmagic=32-bit;; | |
6992 | *-n32|*"-n32 ") libmagic=N32;; | |
6993 | *-64|*"-64 ") libmagic=64-bit;; | |
6994 | *) libmagic=never-match;; | |
6995 | esac | |
6996 | lt_cv_deplibs_check_method=pass_all | |
6997 | ;; | |
f35db108 | 6998 | |
c915a581 JJ |
6999 | # This must be Linux ELF. |
7000 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7001 | lt_cv_deplibs_check_method=pass_all | |
7002 | ;; | |
f35db108 | 7003 | |
c915a581 JJ |
7004 | netbsd*) |
7005 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7006 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7007 | else | |
7008 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7009 | fi | |
7010 | ;; | |
f35db108 | 7011 | |
c915a581 JJ |
7012 | newos6*) |
7013 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7014 | lt_cv_file_magic_cmd=/usr/bin/file | |
7015 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7016 | ;; | |
f35db108 | 7017 | |
c915a581 JJ |
7018 | *nto* | *qnx*) |
7019 | lt_cv_deplibs_check_method=pass_all | |
7020 | ;; | |
f35db108 | 7021 | |
c915a581 JJ |
7022 | openbsd*) |
7023 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7024 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7025 | else | |
7026 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7027 | fi | |
7028 | ;; | |
f35db108 | 7029 | |
c915a581 JJ |
7030 | osf3* | osf4* | osf5*) |
7031 | lt_cv_deplibs_check_method=pass_all | |
7032 | ;; | |
f35db108 | 7033 | |
c915a581 JJ |
7034 | rdos*) |
7035 | lt_cv_deplibs_check_method=pass_all | |
7036 | ;; | |
f35db108 | 7037 | |
c915a581 JJ |
7038 | solaris*) |
7039 | lt_cv_deplibs_check_method=pass_all | |
7040 | ;; | |
f35db108 | 7041 | |
c915a581 JJ |
7042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
7043 | lt_cv_deplibs_check_method=pass_all | |
7044 | ;; | |
f35db108 | 7045 | |
c915a581 JJ |
7046 | sysv4 | sysv4.3*) |
7047 | case $host_vendor in | |
7048 | motorola) | |
7049 | 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]' | |
7050 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7051 | ;; | |
7052 | ncr) | |
7053 | lt_cv_deplibs_check_method=pass_all | |
7054 | ;; | |
7055 | sequent) | |
7056 | lt_cv_file_magic_cmd='/bin/file' | |
7057 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7058 | ;; | |
7059 | sni) | |
7060 | lt_cv_file_magic_cmd='/bin/file' | |
7061 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7062 | lt_cv_file_magic_test_file=/lib/libc.so | |
7063 | ;; | |
7064 | siemens) | |
7065 | lt_cv_deplibs_check_method=pass_all | |
7066 | ;; | |
7067 | pc) | |
7068 | lt_cv_deplibs_check_method=pass_all | |
7069 | ;; | |
7070 | esac | |
7071 | ;; | |
f35db108 | 7072 | |
c915a581 JJ |
7073 | tpf*) |
7074 | lt_cv_deplibs_check_method=pass_all | |
7075 | ;; | |
7076 | esac | |
f35db108 | 7077 | |
c915a581 JJ |
7078 | fi |
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
7080 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7081 | file_magic_cmd=$lt_cv_file_magic_cmd | |
7082 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7083 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
f35db108 WM |
7084 | |
7085 | ||
f35db108 WM |
7086 | |
7087 | ||
f35db108 WM |
7088 | |
7089 | ||
7090 | ||
7091 | ||
7092 | ||
7093 | ||
7094 | ||
7095 | ||
c915a581 JJ |
7096 | if test -n "$ac_tool_prefix"; then |
7097 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7098 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7100 | $as_echo_n "checking for $ac_word... " >&6; } | |
7101 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7102 | $as_echo_n "(cached) " >&6 | |
7103 | else | |
7104 | if test -n "$AR"; then | |
7105 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7106 | else | |
7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7108 | for as_dir in $PATH | |
7109 | do | |
7110 | IFS=$as_save_IFS | |
7111 | test -z "$as_dir" && as_dir=. | |
7112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7114 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7116 | break 2 | |
7117 | fi | |
7118 | done | |
7119 | done | |
7120 | IFS=$as_save_IFS | |
f35db108 | 7121 | |
c915a581 JJ |
7122 | fi |
7123 | fi | |
7124 | AR=$ac_cv_prog_AR | |
7125 | if test -n "$AR"; then | |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7127 | $as_echo "$AR" >&6; } | |
f35db108 | 7128 | else |
c915a581 JJ |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7130 | $as_echo "no" >&6; } | |
f35db108 WM |
7131 | fi |
7132 | ||
7133 | ||
c915a581 JJ |
7134 | fi |
7135 | if test -z "$ac_cv_prog_AR"; then | |
7136 | ac_ct_AR=$AR | |
7137 | # Extract the first word of "ar", so it can be a program name with args. | |
7138 | set dummy ar; ac_word=$2 | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7140 | $as_echo_n "checking for $ac_word... " >&6; } | |
7141 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
7142 | $as_echo_n "(cached) " >&6 | |
7143 | else | |
7144 | if test -n "$ac_ct_AR"; then | |
7145 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7146 | else | |
7147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7148 | for as_dir in $PATH | |
7149 | do | |
7150 | IFS=$as_save_IFS | |
7151 | test -z "$as_dir" && as_dir=. | |
7152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7154 | ac_cv_prog_ac_ct_AR="ar" | |
7155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7156 | break 2 | |
7157 | fi | |
7158 | done | |
7159 | done | |
7160 | IFS=$as_save_IFS | |
f35db108 | 7161 | |
c915a581 JJ |
7162 | fi |
7163 | fi | |
7164 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7165 | if test -n "$ac_ct_AR"; then | |
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7167 | $as_echo "$ac_ct_AR" >&6; } | |
f35db108 | 7168 | else |
c915a581 JJ |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7170 | $as_echo "no" >&6; } | |
f35db108 WM |
7171 | fi |
7172 | ||
c915a581 JJ |
7173 | if test "x$ac_ct_AR" = x; then |
7174 | AR="false" | |
7175 | else | |
7176 | case $cross_compiling:$ac_tool_warned in | |
7177 | yes:) | |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7180 | ac_tool_warned=yes ;; | |
7181 | esac | |
7182 | AR=$ac_ct_AR | |
7183 | fi | |
f35db108 | 7184 | else |
c915a581 | 7185 | AR="$ac_cv_prog_AR" |
f35db108 WM |
7186 | fi |
7187 | ||
c915a581 JJ |
7188 | test -z "$AR" && AR=ar |
7189 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
f35db108 WM |
7190 | |
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
c915a581 JJ |
7201 | if test -n "$ac_tool_prefix"; then |
7202 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7203 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7205 | $as_echo_n "checking for $ac_word... " >&6; } | |
7206 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
7207 | $as_echo_n "(cached) " >&6 | |
7208 | else | |
7209 | if test -n "$STRIP"; then | |
7210 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7211 | else | |
7212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7213 | for as_dir in $PATH | |
7214 | do | |
7215 | IFS=$as_save_IFS | |
7216 | test -z "$as_dir" && as_dir=. | |
7217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7219 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7221 | break 2 | |
7222 | fi | |
7223 | done | |
7224 | done | |
7225 | IFS=$as_save_IFS | |
f35db108 | 7226 | |
c915a581 JJ |
7227 | fi |
7228 | fi | |
7229 | STRIP=$ac_cv_prog_STRIP | |
7230 | if test -n "$STRIP"; then | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7232 | $as_echo "$STRIP" >&6; } | |
7233 | else | |
7234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7235 | $as_echo "no" >&6; } | |
7236 | fi | |
f35db108 WM |
7237 | |
7238 | ||
c915a581 JJ |
7239 | fi |
7240 | if test -z "$ac_cv_prog_STRIP"; then | |
7241 | ac_ct_STRIP=$STRIP | |
7242 | # Extract the first word of "strip", so it can be a program name with args. | |
7243 | set dummy strip; ac_word=$2 | |
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7245 | $as_echo_n "checking for $ac_word... " >&6; } | |
7246 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
7247 | $as_echo_n "(cached) " >&6 | |
7248 | else | |
7249 | if test -n "$ac_ct_STRIP"; then | |
7250 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7251 | else | |
7252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7253 | for as_dir in $PATH | |
7254 | do | |
7255 | IFS=$as_save_IFS | |
7256 | test -z "$as_dir" && as_dir=. | |
7257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7259 | ac_cv_prog_ac_ct_STRIP="strip" | |
7260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7261 | break 2 | |
7262 | fi | |
7263 | done | |
7264 | done | |
7265 | IFS=$as_save_IFS | |
f35db108 | 7266 | |
c915a581 JJ |
7267 | fi |
7268 | fi | |
7269 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7270 | if test -n "$ac_ct_STRIP"; then | |
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7272 | $as_echo "$ac_ct_STRIP" >&6; } | |
7273 | else | |
7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7275 | $as_echo "no" >&6; } | |
7276 | fi | |
f35db108 | 7277 | |
c915a581 JJ |
7278 | if test "x$ac_ct_STRIP" = x; then |
7279 | STRIP=":" | |
7280 | else | |
7281 | case $cross_compiling:$ac_tool_warned in | |
7282 | yes:) | |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7284 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7285 | ac_tool_warned=yes ;; | |
7286 | esac | |
7287 | STRIP=$ac_ct_STRIP | |
7288 | fi | |
7289 | else | |
7290 | STRIP="$ac_cv_prog_STRIP" | |
7291 | fi | |
f35db108 | 7292 | |
c915a581 | 7293 | test -z "$STRIP" && STRIP=: |
f35db108 WM |
7294 | |
7295 | ||
7296 | ||
7297 | ||
7298 | ||
7299 | ||
c915a581 JJ |
7300 | if test -n "$ac_tool_prefix"; then |
7301 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7302 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7304 | $as_echo_n "checking for $ac_word... " >&6; } | |
7305 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
7306 | $as_echo_n "(cached) " >&6 | |
7307 | else | |
7308 | if test -n "$RANLIB"; then | |
7309 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7310 | else | |
7311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7312 | for as_dir in $PATH | |
7313 | do | |
7314 | IFS=$as_save_IFS | |
7315 | test -z "$as_dir" && as_dir=. | |
7316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7318 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7320 | break 2 | |
7321 | fi | |
7322 | done | |
7323 | done | |
7324 | IFS=$as_save_IFS | |
f35db108 | 7325 | |
c915a581 JJ |
7326 | fi |
7327 | fi | |
7328 | RANLIB=$ac_cv_prog_RANLIB | |
7329 | if test -n "$RANLIB"; then | |
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7331 | $as_echo "$RANLIB" >&6; } | |
7332 | else | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7334 | $as_echo "no" >&6; } | |
7335 | fi | |
f35db108 WM |
7336 | |
7337 | ||
f35db108 | 7338 | fi |
c915a581 JJ |
7339 | if test -z "$ac_cv_prog_RANLIB"; then |
7340 | ac_ct_RANLIB=$RANLIB | |
7341 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7342 | set dummy ranlib; ac_word=$2 | |
7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7344 | $as_echo_n "checking for $ac_word... " >&6; } | |
7345 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
f35db108 WM |
7346 | $as_echo_n "(cached) " >&6 |
7347 | else | |
c915a581 JJ |
7348 | if test -n "$ac_ct_RANLIB"; then |
7349 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
f35db108 | 7350 | else |
c915a581 JJ |
7351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7352 | for as_dir in $PATH | |
7353 | do | |
7354 | IFS=$as_save_IFS | |
7355 | test -z "$as_dir" && as_dir=. | |
7356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7358 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7360 | break 2 | |
7361 | fi | |
7362 | done | |
7363 | done | |
7364 | IFS=$as_save_IFS | |
7365 | ||
f35db108 | 7366 | fi |
f35db108 | 7367 | fi |
c915a581 JJ |
7368 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7369 | if test -n "$ac_ct_RANLIB"; then | |
7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7371 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7372 | else | |
7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7374 | $as_echo "no" >&6; } | |
7375 | fi | |
7376 | ||
7377 | if test "x$ac_ct_RANLIB" = x; then | |
7378 | RANLIB=":" | |
7379 | else | |
7380 | case $cross_compiling:$ac_tool_warned in | |
7381 | yes:) | |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7383 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7384 | ac_tool_warned=yes ;; | |
7385 | esac | |
7386 | RANLIB=$ac_ct_RANLIB | |
7387 | fi | |
7388 | else | |
7389 | RANLIB="$ac_cv_prog_RANLIB" | |
7390 | fi | |
f35db108 | 7391 | |
c915a581 | 7392 | test -z "$RANLIB" && RANLIB=: |
f35db108 WM |
7393 | |
7394 | ||
7395 | ||
7396 | ||
f35db108 WM |
7397 | |
7398 | ||
c915a581 JJ |
7399 | # Determine commands to create old-style static archives. |
7400 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7401 | old_postinstall_cmds='chmod 644 $oldlib' | |
7402 | old_postuninstall_cmds= | |
f35db108 | 7403 | |
c915a581 JJ |
7404 | if test -n "$RANLIB"; then |
7405 | case $host_os in | |
7406 | openbsd*) | |
7407 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7408 | ;; | |
7409 | *) | |
7410 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7411 | ;; | |
7412 | esac | |
7413 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7414 | fi | |
f35db108 WM |
7415 | |
7416 | case $host_os in | |
c915a581 JJ |
7417 | darwin*) |
7418 | lock_old_archive_extraction=yes ;; | |
7419 | *) | |
7420 | lock_old_archive_extraction=no ;; | |
f35db108 WM |
7421 | esac |
7422 | ||
f35db108 | 7423 | |
f35db108 | 7424 | |
f35db108 | 7425 | |
f35db108 | 7426 | |
f35db108 | 7427 | |
f35db108 WM |
7428 | |
7429 | ||
f35db108 | 7430 | |
f35db108 | 7431 | |
f35db108 | 7432 | |
f35db108 WM |
7433 | |
7434 | ||
7435 | ||
7436 | ||
7437 | ||
f35db108 | 7438 | |
f35db108 | 7439 | |
f35db108 | 7440 | |
f35db108 WM |
7441 | |
7442 | ||
f35db108 | 7443 | |
f35db108 | 7444 | |
f35db108 | 7445 | |
f35db108 WM |
7446 | |
7447 | ||
f35db108 | 7448 | |
f35db108 | 7449 | |
f35db108 | 7450 | |
c915a581 JJ |
7451 | |
7452 | ||
7453 | ||
f35db108 WM |
7454 | |
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | # If no C compiler was specified, use CC. | |
7462 | LTCC=${LTCC-"$CC"} | |
7463 | ||
7464 | # If no C compiler flags were specified, use CFLAGS. | |
7465 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7466 | ||
7467 | # Allow CC to be a program name with arguments. | |
7468 | compiler=$CC | |
7469 | ||
f35db108 | 7470 | |
c915a581 JJ |
7471 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7473 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7474 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
7475 | $as_echo_n "(cached) " >&6 | |
7476 | else | |
f35db108 | 7477 | |
c915a581 JJ |
7478 | # These are sane defaults that work on at least a few old systems. |
7479 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
f35db108 | 7480 | |
c915a581 JJ |
7481 | # Character class describing NM global symbol codes. |
7482 | symcode='[BCDEGRST]' | |
f35db108 | 7483 | |
c915a581 JJ |
7484 | # Regexp to match symbols that can be accessed directly from C. |
7485 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
f35db108 | 7486 | |
c915a581 JJ |
7487 | # Define system-specific variables. |
7488 | case $host_os in | |
7489 | aix*) | |
7490 | symcode='[BCDT]' | |
7491 | ;; | |
7492 | cygwin* | mingw* | pw32* | cegcc*) | |
7493 | symcode='[ABCDGISTW]' | |
7494 | ;; | |
7495 | hpux*) | |
7496 | if test "$host_cpu" = ia64; then | |
7497 | symcode='[ABCDEGRST]' | |
7498 | fi | |
7499 | ;; | |
7500 | irix* | nonstopux*) | |
7501 | symcode='[BCDEGRST]' | |
7502 | ;; | |
7503 | osf*) | |
7504 | symcode='[BCDEGQRST]' | |
7505 | ;; | |
7506 | solaris*) | |
7507 | symcode='[BDRT]' | |
7508 | ;; | |
7509 | sco3.2v5*) | |
7510 | symcode='[DT]' | |
7511 | ;; | |
7512 | sysv4.2uw2*) | |
7513 | symcode='[DT]' | |
7514 | ;; | |
7515 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7516 | symcode='[ABDT]' | |
7517 | ;; | |
7518 | sysv4) | |
7519 | symcode='[DFNSTU]' | |
7520 | ;; | |
7521 | esac | |
f35db108 | 7522 | |
c915a581 JJ |
7523 | # If we're using GNU nm, then use its standard symbol codes. |
7524 | case `$NM -V 2>&1` in | |
7525 | *GNU* | *'with BFD'*) | |
7526 | symcode='[ABCDGIRSTW]' ;; | |
7527 | esac | |
f35db108 | 7528 | |
c915a581 JJ |
7529 | # Transform an extracted symbol line into a proper C declaration. |
7530 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7531 | # so use this general approach. | |
7532 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
f35db108 | 7533 | |
c915a581 JJ |
7534 | # Transform an extracted symbol line into symbol name and symbol address |
7535 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7536 | 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'" | |
f35db108 | 7537 | |
c915a581 JJ |
7538 | # Handle CRLF in mingw tool chain |
7539 | opt_cr= | |
7540 | case $build_os in | |
7541 | mingw*) | |
7542 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7543 | ;; | |
7544 | esac | |
f35db108 | 7545 | |
c915a581 JJ |
7546 | # Try without a prefix underscore, then with it. |
7547 | for ac_symprfx in "" "_"; do | |
f35db108 | 7548 | |
c915a581 JJ |
7549 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7550 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
f35db108 | 7551 | |
c915a581 JJ |
7552 | # Write the raw and C identifiers. |
7553 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7554 | # Fake it for dumpbin and say T for any non-static function | |
7555 | # and D for any global variable. | |
7556 | # Also find C++ and __fastcall symbols from MSVC++, | |
7557 | # which start with @ or ?. | |
7558 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7559 | " {last_section=section; section=\$ 3};"\ | |
7560 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7561 | " \$ 0!~/External *\|/{next};"\ | |
7562 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7563 | " {if(hide[section]) next};"\ | |
7564 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7565 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7566 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7567 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7568 | " ' prfx=^$ac_symprfx" | |
7569 | else | |
7570 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7571 | fi | |
f35db108 | 7572 | |
c915a581 JJ |
7573 | # Check to see that the pipe works correctly. |
7574 | pipe_works=no | |
f35db108 | 7575 | |
c915a581 JJ |
7576 | rm -f conftest* |
7577 | cat > conftest.$ac_ext <<_LT_EOF | |
7578 | #ifdef __cplusplus | |
7579 | extern "C" { | |
7580 | #endif | |
7581 | char nm_test_var; | |
7582 | void nm_test_func(void); | |
7583 | void nm_test_func(void){} | |
7584 | #ifdef __cplusplus | |
7585 | } | |
7586 | #endif | |
7587 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7588 | _LT_EOF | |
f35db108 | 7589 | |
c915a581 JJ |
7590 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7591 | (eval $ac_compile) 2>&5 | |
7592 | ac_status=$? | |
7593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7594 | test $ac_status = 0; }; then | |
7595 | # Now try to grab the symbols. | |
7596 | nlist=conftest.nm | |
7597 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7598 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7599 | ac_status=$? | |
7600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7601 | test $ac_status = 0; } && test -s "$nlist"; then | |
7602 | # Try sorting and uniquifying the output. | |
7603 | if sort "$nlist" | uniq > "$nlist"T; then | |
7604 | mv -f "$nlist"T "$nlist" | |
7605 | else | |
7606 | rm -f "$nlist"T | |
7607 | fi | |
f35db108 | 7608 | |
c915a581 JJ |
7609 | # Make sure that we snagged all the symbols we need. |
7610 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7611 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7612 | cat <<_LT_EOF > conftest.$ac_ext | |
7613 | #ifdef __cplusplus | |
7614 | extern "C" { | |
7615 | #endif | |
f35db108 | 7616 | |
c915a581 JJ |
7617 | _LT_EOF |
7618 | # Now generate the symbol file. | |
7619 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
f35db108 | 7620 | |
c915a581 JJ |
7621 | cat <<_LT_EOF >> conftest.$ac_ext |
7622 | ||
7623 | /* The mapping between symbol names and symbols. */ | |
7624 | const struct { | |
7625 | const char *name; | |
7626 | void *address; | |
7627 | } | |
7628 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7629 | { | |
7630 | { "@PROGRAM@", (void *) 0 }, | |
7631 | _LT_EOF | |
7632 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7633 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7634 | {0, (void *) 0} | |
7635 | }; | |
7636 | ||
7637 | /* This works around a problem in FreeBSD linker */ | |
7638 | #ifdef FREEBSD_WORKAROUND | |
7639 | static const void *lt_preloaded_setup() { | |
7640 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7641 | } | |
7642 | #endif | |
7643 | ||
7644 | #ifdef __cplusplus | |
7645 | } | |
7646 | #endif | |
7647 | _LT_EOF | |
7648 | # Now try linking the two files. | |
7649 | mv conftest.$ac_objext conftstm.$ac_objext | |
7650 | lt_save_LIBS="$LIBS" | |
7651 | lt_save_CFLAGS="$CFLAGS" | |
7652 | LIBS="conftstm.$ac_objext" | |
7653 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7654 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7655 | (eval $ac_link) 2>&5 | |
7656 | ac_status=$? | |
7657 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7658 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7659 | pipe_works=yes | |
7660 | fi | |
7661 | LIBS="$lt_save_LIBS" | |
7662 | CFLAGS="$lt_save_CFLAGS" | |
7663 | else | |
7664 | echo "cannot find nm_test_func in $nlist" >&5 | |
7665 | fi | |
7666 | else | |
7667 | echo "cannot find nm_test_var in $nlist" >&5 | |
f35db108 | 7668 | fi |
c915a581 JJ |
7669 | else |
7670 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7671 | fi | |
7672 | else | |
7673 | echo "$progname: failed program was:" >&5 | |
7674 | cat conftest.$ac_ext >&5 | |
7675 | fi | |
7676 | rm -rf conftest* conftst* | |
f35db108 | 7677 | |
c915a581 JJ |
7678 | # Do not use the global_symbol_pipe unless it works. |
7679 | if test "$pipe_works" = yes; then | |
7680 | break | |
7681 | else | |
7682 | lt_cv_sys_global_symbol_pipe= | |
7683 | fi | |
7684 | done | |
f35db108 | 7685 | |
c915a581 | 7686 | fi |
f35db108 | 7687 | |
c915a581 JJ |
7688 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7689 | lt_cv_sys_global_symbol_to_cdecl= | |
7690 | fi | |
7691 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7693 | $as_echo "failed" >&6; } | |
7694 | else | |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7696 | $as_echo "ok" >&6; } | |
7697 | fi | |
f35db108 | 7698 | |
f35db108 | 7699 | |
f35db108 | 7700 | |
f35db108 | 7701 | |
f35db108 | 7702 | |
f35db108 | 7703 | |
f35db108 | 7704 | |
f35db108 | 7705 | |
f35db108 | 7706 | |
f35db108 | 7707 | |
f35db108 | 7708 | |
f35db108 | 7709 | |
f35db108 | 7710 | |
c915a581 JJ |
7711 | |
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | # Check whether --enable-libtool-lock was given. | |
7721 | if test "${enable_libtool_lock+set}" = set; then : | |
7722 | enableval=$enable_libtool_lock; | |
7723 | fi | |
7724 | ||
7725 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7726 | ||
7727 | # Some flags need to be propagated to the compiler or linker for good | |
7728 | # libtool support. | |
7729 | case $host in | |
7730 | ia64-*-hpux*) | |
7731 | # Find out which ABI we are using. | |
7732 | echo 'int i;' > conftest.$ac_ext | |
7733 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7734 | (eval $ac_compile) 2>&5 | |
7735 | ac_status=$? | |
7736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7737 | test $ac_status = 0; }; then | |
7738 | case `/usr/bin/file conftest.$ac_objext` in | |
7739 | *ELF-32*) | |
7740 | HPUX_IA64_MODE="32" | |
f35db108 | 7741 | ;; |
c915a581 JJ |
7742 | *ELF-64*) |
7743 | HPUX_IA64_MODE="64" | |
f35db108 | 7744 | ;; |
c915a581 JJ |
7745 | esac |
7746 | fi | |
7747 | rm -rf conftest* | |
7748 | ;; | |
7749 | *-*-irix6*) | |
7750 | # Find out which ABI we are using. | |
7751 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7753 | (eval $ac_compile) 2>&5 | |
7754 | ac_status=$? | |
7755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7756 | test $ac_status = 0; }; then | |
7757 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7758 | case `/usr/bin/file conftest.$ac_objext` in | |
7759 | *32-bit*) | |
7760 | LD="${LD-ld} -melf32bsmip" | |
f35db108 | 7761 | ;; |
c915a581 JJ |
7762 | *N32*) |
7763 | LD="${LD-ld} -melf32bmipn32" | |
f35db108 | 7764 | ;; |
c915a581 JJ |
7765 | *64-bit*) |
7766 | LD="${LD-ld} -melf64bmip" | |
f35db108 WM |
7767 | ;; |
7768 | esac | |
c915a581 JJ |
7769 | else |
7770 | case `/usr/bin/file conftest.$ac_objext` in | |
7771 | *32-bit*) | |
7772 | LD="${LD-ld} -32" | |
7773 | ;; | |
7774 | *N32*) | |
7775 | LD="${LD-ld} -n32" | |
7776 | ;; | |
7777 | *64-bit*) | |
7778 | LD="${LD-ld} -64" | |
7779 | ;; | |
f35db108 | 7780 | esac |
c915a581 JJ |
7781 | fi |
7782 | fi | |
7783 | rm -rf conftest* | |
7784 | ;; | |
f35db108 | 7785 | |
c915a581 JJ |
7786 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7787 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7788 | # Find out which ABI we are using. | |
7789 | echo 'int i;' > conftest.$ac_ext | |
7790 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7791 | (eval $ac_compile) 2>&5 | |
7792 | ac_status=$? | |
7793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7794 | test $ac_status = 0; }; then | |
7795 | case `/usr/bin/file conftest.o` in | |
7796 | *32-bit*) | |
7797 | case $host in | |
7798 | x86_64-*kfreebsd*-gnu) | |
7799 | LD="${LD-ld} -m elf_i386_fbsd" | |
7800 | ;; | |
7801 | x86_64-*linux*) | |
7802 | case `/usr/bin/file conftest.o` in | |
7803 | *x86-64*) | |
7804 | LD="${LD-ld} -m elf32_x86_64" | |
7805 | ;; | |
7806 | *) | |
7807 | LD="${LD-ld} -m elf_i386" | |
7808 | ;; | |
7809 | esac | |
7810 | ;; | |
7811 | powerpc64le-*linux*) | |
7812 | LD="${LD-ld} -m elf32lppclinux" | |
7813 | ;; | |
7814 | powerpc64-*linux*) | |
7815 | LD="${LD-ld} -m elf32ppclinux" | |
7816 | ;; | |
7817 | s390x-*linux*) | |
7818 | LD="${LD-ld} -m elf_s390" | |
7819 | ;; | |
7820 | sparc64-*linux*) | |
7821 | LD="${LD-ld} -m elf32_sparc" | |
7822 | ;; | |
7823 | esac | |
7824 | ;; | |
7825 | *64-bit*) | |
7826 | case $host in | |
7827 | x86_64-*kfreebsd*-gnu) | |
7828 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7829 | ;; | |
7830 | x86_64-*linux*) | |
7831 | LD="${LD-ld} -m elf_x86_64" | |
7832 | ;; | |
7833 | powerpcle-*linux*) | |
7834 | LD="${LD-ld} -m elf64lppc" | |
7835 | ;; | |
7836 | powerpc-*linux*) | |
7837 | LD="${LD-ld} -m elf64ppc" | |
7838 | ;; | |
7839 | s390*-*linux*|s390*-*tpf*) | |
7840 | LD="${LD-ld} -m elf64_s390" | |
7841 | ;; | |
7842 | sparc*-*linux*) | |
7843 | LD="${LD-ld} -m elf64_sparc" | |
7844 | ;; | |
7845 | esac | |
7846 | ;; | |
7847 | esac | |
7848 | fi | |
7849 | rm -rf conftest* | |
7850 | ;; | |
f35db108 | 7851 | |
c915a581 JJ |
7852 | *-*-sco3.2v5*) |
7853 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7854 | SAVE_CFLAGS="$CFLAGS" | |
7855 | CFLAGS="$CFLAGS -belf" | |
7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7857 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7858 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
7859 | $as_echo_n "(cached) " >&6 | |
7860 | else | |
7861 | ac_ext=c | |
7862 | ac_cpp='$CPP $CPPFLAGS' | |
7863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 7866 | |
c915a581 JJ |
7867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7868 | /* end confdefs.h. */ | |
f35db108 | 7869 | |
c915a581 JJ |
7870 | int |
7871 | main () | |
7872 | { | |
f35db108 | 7873 | |
c915a581 JJ |
7874 | ; |
7875 | return 0; | |
7876 | } | |
7877 | _ACEOF | |
7878 | if ac_fn_c_try_link "$LINENO"; then : | |
7879 | lt_cv_cc_needs_belf=yes | |
7880 | else | |
7881 | lt_cv_cc_needs_belf=no | |
7882 | fi | |
7883 | rm -f core conftest.err conftest.$ac_objext \ | |
7884 | conftest$ac_exeext conftest.$ac_ext | |
7885 | ac_ext=c | |
7886 | ac_cpp='$CPP $CPPFLAGS' | |
7887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 7890 | |
c915a581 JJ |
7891 | fi |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7893 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7894 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7895 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7896 | CFLAGS="$SAVE_CFLAGS" | |
7897 | fi | |
7898 | ;; | |
7899 | sparc*-*solaris*) | |
7900 | # Find out which ABI we are using. | |
7901 | echo 'int i;' > conftest.$ac_ext | |
7902 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7903 | (eval $ac_compile) 2>&5 | |
7904 | ac_status=$? | |
7905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7906 | test $ac_status = 0; }; then | |
7907 | case `/usr/bin/file conftest.o` in | |
7908 | *64-bit*) | |
7909 | case $lt_cv_prog_gnu_ld in | |
7910 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7911 | *) | |
7912 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7913 | LD="${LD-ld} -64" | |
7914 | fi | |
7915 | ;; | |
7916 | esac | |
f35db108 WM |
7917 | ;; |
7918 | esac | |
7919 | fi | |
c915a581 JJ |
7920 | rm -rf conftest* |
7921 | ;; | |
7922 | esac | |
f35db108 | 7923 | |
c915a581 | 7924 | need_locks="$enable_libtool_lock" |
a2479b3d L |
7925 | |
7926 | ||
c915a581 JJ |
7927 | case $host_os in |
7928 | rhapsody* | darwin*) | |
7929 | if test -n "$ac_tool_prefix"; then | |
7930 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7931 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7933 | $as_echo_n "checking for $ac_word... " >&6; } | |
7934 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
7935 | $as_echo_n "(cached) " >&6 | |
7936 | else | |
7937 | if test -n "$DSYMUTIL"; then | |
7938 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7939 | else | |
7940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7941 | for as_dir in $PATH | |
7942 | do | |
7943 | IFS=$as_save_IFS | |
7944 | test -z "$as_dir" && as_dir=. | |
7945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7947 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7949 | break 2 | |
7950 | fi | |
7951 | done | |
7952 | done | |
7953 | IFS=$as_save_IFS | |
a2479b3d | 7954 | |
c915a581 JJ |
7955 | fi |
7956 | fi | |
7957 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7958 | if test -n "$DSYMUTIL"; then | |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7960 | $as_echo "$DSYMUTIL" >&6; } | |
7961 | else | |
7962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7963 | $as_echo "no" >&6; } | |
7964 | fi | |
f35db108 | 7965 | |
f35db108 | 7966 | |
c915a581 JJ |
7967 | fi |
7968 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7969 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7970 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7971 | set dummy dsymutil; ac_word=$2 | |
7972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7973 | $as_echo_n "checking for $ac_word... " >&6; } | |
7974 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
f35db108 WM |
7975 | $as_echo_n "(cached) " >&6 |
7976 | else | |
c915a581 JJ |
7977 | if test -n "$ac_ct_DSYMUTIL"; then |
7978 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7979 | else | |
7980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7981 | for as_dir in $PATH | |
7982 | do | |
7983 | IFS=$as_save_IFS | |
7984 | test -z "$as_dir" && as_dir=. | |
7985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7987 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7989 | break 2 | |
7990 | fi | |
7991 | done | |
7992 | done | |
7993 | IFS=$as_save_IFS | |
f35db108 WM |
7994 | |
7995 | fi | |
c915a581 JJ |
7996 | fi |
7997 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7998 | if test -n "$ac_ct_DSYMUTIL"; then | |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8000 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
f35db108 | 8001 | else |
c915a581 JJ |
8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8003 | $as_echo "no" >&6; } | |
f35db108 WM |
8004 | fi |
8005 | ||
c915a581 JJ |
8006 | if test "x$ac_ct_DSYMUTIL" = x; then |
8007 | DSYMUTIL=":" | |
8008 | else | |
8009 | case $cross_compiling:$ac_tool_warned in | |
8010 | yes:) | |
8011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8012 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8013 | ac_tool_warned=yes ;; | |
8014 | esac | |
8015 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8016 | fi | |
8017 | else | |
8018 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
f35db108 WM |
8019 | fi |
8020 | ||
c915a581 JJ |
8021 | if test -n "$ac_tool_prefix"; then |
8022 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8023 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8025 | $as_echo_n "checking for $ac_word... " >&6; } | |
8026 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
f35db108 WM |
8027 | $as_echo_n "(cached) " >&6 |
8028 | else | |
c915a581 JJ |
8029 | if test -n "$NMEDIT"; then |
8030 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8031 | else | |
8032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8033 | for as_dir in $PATH | |
8034 | do | |
8035 | IFS=$as_save_IFS | |
8036 | test -z "$as_dir" && as_dir=. | |
8037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8039 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8041 | break 2 | |
8042 | fi | |
8043 | done | |
8044 | done | |
8045 | IFS=$as_save_IFS | |
f35db108 WM |
8046 | |
8047 | fi | |
c915a581 JJ |
8048 | fi |
8049 | NMEDIT=$ac_cv_prog_NMEDIT | |
8050 | if test -n "$NMEDIT"; then | |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8052 | $as_echo "$NMEDIT" >&6; } | |
f35db108 | 8053 | else |
c915a581 JJ |
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8055 | $as_echo "no" >&6; } | |
f35db108 WM |
8056 | fi |
8057 | ||
8058 | ||
c915a581 JJ |
8059 | fi |
8060 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8061 | ac_ct_NMEDIT=$NMEDIT | |
8062 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8063 | set dummy nmedit; ac_word=$2 | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8065 | $as_echo_n "checking for $ac_word... " >&6; } | |
8066 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
f35db108 WM |
8067 | $as_echo_n "(cached) " >&6 |
8068 | else | |
c915a581 JJ |
8069 | if test -n "$ac_ct_NMEDIT"; then |
8070 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8071 | else | |
8072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8073 | for as_dir in $PATH | |
8074 | do | |
8075 | IFS=$as_save_IFS | |
8076 | test -z "$as_dir" && as_dir=. | |
8077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8079 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8081 | break 2 | |
8082 | fi | |
8083 | done | |
8084 | done | |
8085 | IFS=$as_save_IFS | |
f35db108 WM |
8086 | |
8087 | fi | |
c915a581 JJ |
8088 | fi |
8089 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8090 | if test -n "$ac_ct_NMEDIT"; then | |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8092 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
8093 | else | |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8095 | $as_echo "no" >&6; } | |
8096 | fi | |
f35db108 | 8097 | |
c915a581 JJ |
8098 | if test "x$ac_ct_NMEDIT" = x; then |
8099 | NMEDIT=":" | |
8100 | else | |
8101 | case $cross_compiling:$ac_tool_warned in | |
8102 | yes:) | |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8105 | ac_tool_warned=yes ;; | |
8106 | esac | |
8107 | NMEDIT=$ac_ct_NMEDIT | |
8108 | fi | |
8109 | else | |
8110 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8111 | fi | |
f35db108 | 8112 | |
c915a581 JJ |
8113 | if test -n "$ac_tool_prefix"; then |
8114 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8115 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8117 | $as_echo_n "checking for $ac_word... " >&6; } | |
8118 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
f35db108 WM |
8119 | $as_echo_n "(cached) " >&6 |
8120 | else | |
c915a581 JJ |
8121 | if test -n "$LIPO"; then |
8122 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8123 | else | |
8124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8125 | for as_dir in $PATH | |
8126 | do | |
8127 | IFS=$as_save_IFS | |
8128 | test -z "$as_dir" && as_dir=. | |
8129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8131 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8133 | break 2 | |
8134 | fi | |
8135 | done | |
8136 | done | |
8137 | IFS=$as_save_IFS | |
f35db108 WM |
8138 | |
8139 | fi | |
c915a581 JJ |
8140 | fi |
8141 | LIPO=$ac_cv_prog_LIPO | |
8142 | if test -n "$LIPO"; then | |
8143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8144 | $as_echo "$LIPO" >&6; } | |
8145 | else | |
8146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8147 | $as_echo "no" >&6; } | |
8148 | fi | |
f35db108 WM |
8149 | |
8150 | ||
c915a581 JJ |
8151 | fi |
8152 | if test -z "$ac_cv_prog_LIPO"; then | |
8153 | ac_ct_LIPO=$LIPO | |
8154 | # Extract the first word of "lipo", so it can be a program name with args. | |
8155 | set dummy lipo; ac_word=$2 | |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8157 | $as_echo_n "checking for $ac_word... " >&6; } | |
8158 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
8159 | $as_echo_n "(cached) " >&6 | |
8160 | else | |
8161 | if test -n "$ac_ct_LIPO"; then | |
8162 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8163 | else | |
8164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8165 | for as_dir in $PATH | |
8166 | do | |
8167 | IFS=$as_save_IFS | |
8168 | test -z "$as_dir" && as_dir=. | |
8169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8171 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8173 | break 2 | |
8174 | fi | |
8175 | done | |
8176 | done | |
8177 | IFS=$as_save_IFS | |
f35db108 | 8178 | |
c915a581 JJ |
8179 | fi |
8180 | fi | |
8181 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8182 | if test -n "$ac_ct_LIPO"; then | |
8183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8184 | $as_echo "$ac_ct_LIPO" >&6; } | |
8185 | else | |
8186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8187 | $as_echo "no" >&6; } | |
8188 | fi | |
f35db108 | 8189 | |
c915a581 JJ |
8190 | if test "x$ac_ct_LIPO" = x; then |
8191 | LIPO=":" | |
8192 | else | |
8193 | case $cross_compiling:$ac_tool_warned in | |
8194 | yes:) | |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8196 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8197 | ac_tool_warned=yes ;; | |
8198 | esac | |
8199 | LIPO=$ac_ct_LIPO | |
f35db108 WM |
8200 | fi |
8201 | else | |
c915a581 | 8202 | LIPO="$ac_cv_prog_LIPO" |
f35db108 WM |
8203 | fi |
8204 | ||
c915a581 JJ |
8205 | if test -n "$ac_tool_prefix"; then |
8206 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8207 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8209 | $as_echo_n "checking for $ac_word... " >&6; } | |
8210 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
8211 | $as_echo_n "(cached) " >&6 | |
8212 | else | |
8213 | if test -n "$OTOOL"; then | |
8214 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8215 | else | |
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8217 | for as_dir in $PATH | |
8218 | do | |
8219 | IFS=$as_save_IFS | |
8220 | test -z "$as_dir" && as_dir=. | |
8221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8223 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8225 | break 2 | |
8226 | fi | |
8227 | done | |
8228 | done | |
8229 | IFS=$as_save_IFS | |
f35db108 | 8230 | |
c915a581 JJ |
8231 | fi |
8232 | fi | |
8233 | OTOOL=$ac_cv_prog_OTOOL | |
8234 | if test -n "$OTOOL"; then | |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8236 | $as_echo "$OTOOL" >&6; } | |
8237 | else | |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8239 | $as_echo "no" >&6; } | |
8240 | fi | |
f35db108 WM |
8241 | |
8242 | ||
c915a581 JJ |
8243 | fi |
8244 | if test -z "$ac_cv_prog_OTOOL"; then | |
8245 | ac_ct_OTOOL=$OTOOL | |
8246 | # Extract the first word of "otool", so it can be a program name with args. | |
8247 | set dummy otool; ac_word=$2 | |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8249 | $as_echo_n "checking for $ac_word... " >&6; } | |
8250 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
8251 | $as_echo_n "(cached) " >&6 | |
8252 | else | |
8253 | if test -n "$ac_ct_OTOOL"; then | |
8254 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8255 | else | |
8256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8257 | for as_dir in $PATH | |
8258 | do | |
8259 | IFS=$as_save_IFS | |
8260 | test -z "$as_dir" && as_dir=. | |
8261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8263 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8265 | break 2 | |
8266 | fi | |
8267 | done | |
8268 | done | |
8269 | IFS=$as_save_IFS | |
f35db108 | 8270 | |
c915a581 JJ |
8271 | fi |
8272 | fi | |
8273 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8274 | if test -n "$ac_ct_OTOOL"; then | |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8276 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8277 | else | |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8279 | $as_echo "no" >&6; } | |
8280 | fi | |
f35db108 | 8281 | |
c915a581 JJ |
8282 | if test "x$ac_ct_OTOOL" = x; then |
8283 | OTOOL=":" | |
8284 | else | |
8285 | case $cross_compiling:$ac_tool_warned in | |
8286 | yes:) | |
8287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8288 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8289 | ac_tool_warned=yes ;; | |
8290 | esac | |
8291 | OTOOL=$ac_ct_OTOOL | |
8292 | fi | |
8293 | else | |
8294 | OTOOL="$ac_cv_prog_OTOOL" | |
8295 | fi | |
f35db108 | 8296 | |
c915a581 JJ |
8297 | if test -n "$ac_tool_prefix"; then |
8298 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8299 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8301 | $as_echo_n "checking for $ac_word... " >&6; } | |
8302 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
8303 | $as_echo_n "(cached) " >&6 | |
8304 | else | |
8305 | if test -n "$OTOOL64"; then | |
8306 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8307 | else | |
8308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8309 | for as_dir in $PATH | |
8310 | do | |
8311 | IFS=$as_save_IFS | |
8312 | test -z "$as_dir" && as_dir=. | |
8313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8315 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8317 | break 2 | |
f35db108 | 8318 | fi |
c915a581 JJ |
8319 | done |
8320 | done | |
8321 | IFS=$as_save_IFS | |
f35db108 | 8322 | |
c915a581 JJ |
8323 | fi |
8324 | fi | |
8325 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8326 | if test -n "$OTOOL64"; then | |
8327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8328 | $as_echo "$OTOOL64" >&6; } | |
8329 | else | |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8331 | $as_echo "no" >&6; } | |
8332 | fi | |
f35db108 | 8333 | |
f35db108 | 8334 | |
c915a581 JJ |
8335 | fi |
8336 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8337 | ac_ct_OTOOL64=$OTOOL64 | |
8338 | # Extract the first word of "otool64", so it can be a program name with args. | |
8339 | set dummy otool64; ac_word=$2 | |
8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8341 | $as_echo_n "checking for $ac_word... " >&6; } | |
8342 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
8343 | $as_echo_n "(cached) " >&6 | |
8344 | else | |
8345 | if test -n "$ac_ct_OTOOL64"; then | |
8346 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8347 | else | |
8348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8349 | for as_dir in $PATH | |
8350 | do | |
8351 | IFS=$as_save_IFS | |
8352 | test -z "$as_dir" && as_dir=. | |
8353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8355 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8357 | break 2 | |
8358 | fi | |
8359 | done | |
8360 | done | |
8361 | IFS=$as_save_IFS | |
f35db108 | 8362 | |
c915a581 JJ |
8363 | fi |
8364 | fi | |
8365 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8366 | if test -n "$ac_ct_OTOOL64"; then | |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8368 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8369 | else | |
8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8371 | $as_echo "no" >&6; } | |
8372 | fi | |
f35db108 | 8373 | |
c915a581 JJ |
8374 | if test "x$ac_ct_OTOOL64" = x; then |
8375 | OTOOL64=":" | |
8376 | else | |
8377 | case $cross_compiling:$ac_tool_warned in | |
8378 | yes:) | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8380 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8381 | ac_tool_warned=yes ;; | |
8382 | esac | |
8383 | OTOOL64=$ac_ct_OTOOL64 | |
8384 | fi | |
8385 | else | |
8386 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8387 | fi | |
f35db108 | 8388 | |
f35db108 | 8389 | |
f35db108 | 8390 | |
f35db108 | 8391 | |
f35db108 | 8392 | |
f35db108 | 8393 | |
f35db108 | 8394 | |
f35db108 | 8395 | |
f35db108 | 8396 | |
f35db108 | 8397 | |
f35db108 | 8398 | |
f35db108 | 8399 | |
f35db108 | 8400 | |
f35db108 | 8401 | |
f35db108 | 8402 | |
f35db108 | 8403 | |
f35db108 | 8404 | |
f35db108 | 8405 | |
f35db108 | 8406 | |
f35db108 | 8407 | |
f35db108 | 8408 | |
f35db108 | 8409 | |
f35db108 | 8410 | |
f35db108 | 8411 | |
f35db108 | 8412 | |
c915a581 JJ |
8413 | |
8414 | ||
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8416 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8417 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
8418 | $as_echo_n "(cached) " >&6 | |
8419 | else | |
8420 | lt_cv_apple_cc_single_mod=no | |
8421 | if test -z "${LT_MULTI_MODULE}"; then | |
8422 | # By default we will add the -single_module flag. You can override | |
8423 | # by either setting the environment variable LT_MULTI_MODULE | |
8424 | # non-empty at configure time, or by adding -multi_module to the | |
8425 | # link flags. | |
8426 | rm -rf libconftest.dylib* | |
8427 | echo "int foo(void){return 1;}" > conftest.c | |
8428 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8429 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8430 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8431 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8432 | _lt_result=$? | |
8433 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8434 | lt_cv_apple_cc_single_mod=yes | |
f35db108 | 8435 | else |
c915a581 | 8436 | cat conftest.err >&5 |
f35db108 | 8437 | fi |
c915a581 JJ |
8438 | rm -rf libconftest.dylib* |
8439 | rm -f conftest.* | |
f35db108 | 8440 | fi |
c915a581 JJ |
8441 | fi |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8443 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8445 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8446 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
8447 | $as_echo_n "(cached) " >&6 | |
8448 | else | |
8449 | lt_cv_ld_exported_symbols_list=no | |
8450 | save_LDFLAGS=$LDFLAGS | |
8451 | echo "_main" > conftest.sym | |
8452 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f35db108 WM |
8454 | /* end confdefs.h. */ |
8455 | ||
8456 | int | |
8457 | main () | |
8458 | { | |
8459 | ||
8460 | ; | |
8461 | return 0; | |
8462 | } | |
8463 | _ACEOF | |
8464 | if ac_fn_c_try_link "$LINENO"; then : | |
c915a581 JJ |
8465 | lt_cv_ld_exported_symbols_list=yes |
8466 | else | |
8467 | lt_cv_ld_exported_symbols_list=no | |
f35db108 WM |
8468 | fi |
8469 | rm -f core conftest.err conftest.$ac_objext \ | |
8470 | conftest$ac_exeext conftest.$ac_ext | |
c915a581 | 8471 | LDFLAGS="$save_LDFLAGS" |
f35db108 | 8472 | |
c915a581 JJ |
8473 | fi |
8474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8475 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8477 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8478 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8479 | $as_echo_n "(cached) " >&6 | |
8480 | else | |
8481 | lt_cv_ld_force_load=no | |
8482 | cat > conftest.c << _LT_EOF | |
8483 | int forced_loaded() { return 2;} | |
8484 | _LT_EOF | |
8485 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8486 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8487 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8488 | $AR cru libconftest.a conftest.o 2>&5 | |
8489 | cat > conftest.c << _LT_EOF | |
8490 | int main() { return 0;} | |
8491 | _LT_EOF | |
8492 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8493 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8494 | _lt_result=$? | |
8495 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8496 | lt_cv_ld_force_load=yes | |
f35db108 | 8497 | else |
c915a581 JJ |
8498 | cat conftest.err >&5 |
8499 | fi | |
8500 | rm -f conftest.err libconftest.a conftest conftest.c | |
8501 | rm -rf conftest.dSYM | |
f35db108 | 8502 | |
c915a581 JJ |
8503 | fi |
8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8505 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8506 | case $host_os in | |
8507 | rhapsody* | darwin1.[012]) | |
8508 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8509 | darwin1.*) | |
8510 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8511 | darwin*) # darwin 5.x on | |
8512 | # if running on 10.5 or later, the deployment target defaults | |
8513 | # to the OS version, if on x86, and 10.4, the deployment | |
8514 | # target defaults to 10.4. Don't you love it? | |
8515 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8516 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8517 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 8518 | 10.[012][,.]*) |
c915a581 JJ |
8519 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8520 | 10.*) | |
8521 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8522 | esac | |
8523 | ;; | |
8524 | esac | |
8525 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8526 | _lt_dar_single_mod='$single_module' | |
8527 | fi | |
8528 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8529 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8530 | else | |
8531 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8532 | fi | |
8533 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8534 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8535 | else | |
8536 | _lt_dsymutil= | |
8537 | fi | |
8538 | ;; | |
8539 | esac | |
f35db108 | 8540 | |
c915a581 JJ |
8541 | for ac_header in dlfcn.h |
8542 | do : | |
8543 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8544 | " | |
8545 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
8546 | cat >>confdefs.h <<_ACEOF | |
8547 | #define HAVE_DLFCN_H 1 | |
f35db108 | 8548 | _ACEOF |
f35db108 | 8549 | |
f35db108 | 8550 | fi |
f35db108 | 8551 | |
c915a581 | 8552 | done |
f35db108 | 8553 | |
f35db108 | 8554 | |
f35db108 | 8555 | |
f35db108 | 8556 | |
f35db108 WM |
8557 | |
8558 | ||
c915a581 | 8559 | # Set options |
f35db108 | 8560 | |
f35db108 | 8561 | |
f35db108 | 8562 | |
f35db108 | 8563 | |
c915a581 | 8564 | enable_win32_dll=no |
f35db108 | 8565 | |
f35db108 | 8566 | |
c915a581 JJ |
8567 | # Check whether --enable-shared was given. |
8568 | if test "${enable_shared+set}" = set; then : | |
8569 | enableval=$enable_shared; p=${PACKAGE-default} | |
8570 | case $enableval in | |
8571 | yes) enable_shared=yes ;; | |
8572 | no) enable_shared=no ;; | |
8573 | *) | |
8574 | enable_shared=no | |
8575 | # Look at the argument we got. We use all the common list separators. | |
8576 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8577 | for pkg in $enableval; do | |
8578 | IFS="$lt_save_ifs" | |
8579 | if test "X$pkg" = "X$p"; then | |
8580 | enable_shared=yes | |
8581 | fi | |
8582 | done | |
8583 | IFS="$lt_save_ifs" | |
f35db108 | 8584 | ;; |
c915a581 JJ |
8585 | esac |
8586 | else | |
8587 | enable_shared=yes | |
8588 | fi | |
f35db108 | 8589 | |
f35db108 | 8590 | |
f35db108 | 8591 | |
f35db108 | 8592 | |
f35db108 | 8593 | |
f35db108 | 8594 | |
f35db108 | 8595 | |
c915a581 JJ |
8596 | |
8597 | ||
8598 | # Check whether --enable-static was given. | |
8599 | if test "${enable_static+set}" = set; then : | |
8600 | enableval=$enable_static; p=${PACKAGE-default} | |
8601 | case $enableval in | |
8602 | yes) enable_static=yes ;; | |
8603 | no) enable_static=no ;; | |
8604 | *) | |
8605 | enable_static=no | |
8606 | # Look at the argument we got. We use all the common list separators. | |
8607 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8608 | for pkg in $enableval; do | |
8609 | IFS="$lt_save_ifs" | |
8610 | if test "X$pkg" = "X$p"; then | |
8611 | enable_static=yes | |
8612 | fi | |
8613 | done | |
8614 | IFS="$lt_save_ifs" | |
8615 | ;; | |
8616 | esac | |
f35db108 | 8617 | else |
c915a581 | 8618 | enable_static=yes |
f35db108 WM |
8619 | fi |
8620 | ||
f35db108 | 8621 | |
f35db108 | 8622 | |
f35db108 | 8623 | |
a2479b3d | 8624 | |
f35db108 | 8625 | |
f35db108 | 8626 | |
f35db108 | 8627 | |
f35db108 | 8628 | |
f35db108 | 8629 | |
c915a581 JJ |
8630 | # Check whether --with-pic was given. |
8631 | if test "${with_pic+set}" = set; then : | |
8632 | withval=$with_pic; pic_mode="$withval" | |
8633 | else | |
8634 | pic_mode=default | |
8635 | fi | |
f35db108 | 8636 | |
f35db108 | 8637 | |
c915a581 | 8638 | test -z "$pic_mode" && pic_mode=default |
f35db108 | 8639 | |
f35db108 | 8640 | |
f35db108 | 8641 | |
f35db108 | 8642 | |
f35db108 | 8643 | |
f35db108 | 8644 | |
c915a581 JJ |
8645 | |
8646 | # Check whether --enable-fast-install was given. | |
8647 | if test "${enable_fast_install+set}" = set; then : | |
8648 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8649 | case $enableval in | |
8650 | yes) enable_fast_install=yes ;; | |
8651 | no) enable_fast_install=no ;; | |
8652 | *) | |
8653 | enable_fast_install=no | |
8654 | # Look at the argument we got. We use all the common list separators. | |
8655 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8656 | for pkg in $enableval; do | |
8657 | IFS="$lt_save_ifs" | |
8658 | if test "X$pkg" = "X$p"; then | |
8659 | enable_fast_install=yes | |
8660 | fi | |
8661 | done | |
8662 | IFS="$lt_save_ifs" | |
f35db108 | 8663 | ;; |
c915a581 JJ |
8664 | esac |
8665 | else | |
8666 | enable_fast_install=yes | |
8667 | fi | |
f35db108 WM |
8668 | |
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
c915a581 JJ |
8679 | # This can be used to rebuild libtool when needed |
8680 | LIBTOOL_DEPS="$ltmain" | |
f35db108 | 8681 | |
c915a581 JJ |
8682 | # Always use our own libtool. |
8683 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
f35db108 WM |
8684 | |
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
c915a581 | 8710 | test -z "$LN_S" && LN_S="ln -s" |
f35db108 WM |
8711 | |
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
c915a581 JJ |
8725 | if test -n "${ZSH_VERSION+set}" ; then |
8726 | setopt NO_GLOB_SUBST | |
8727 | fi | |
f35db108 | 8728 | |
c915a581 JJ |
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8730 | $as_echo_n "checking for objdir... " >&6; } | |
8731 | if test "${lt_cv_objdir+set}" = set; then : | |
8732 | $as_echo_n "(cached) " >&6 | |
8733 | else | |
8734 | rm -f .libs 2>/dev/null | |
8735 | mkdir .libs 2>/dev/null | |
8736 | if test -d .libs; then | |
8737 | lt_cv_objdir=.libs | |
8738 | else | |
8739 | # MS-DOS does not allow filenames that begin with a dot. | |
8740 | lt_cv_objdir=_libs | |
8741 | fi | |
8742 | rmdir .libs 2>/dev/null | |
8743 | fi | |
8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8745 | $as_echo "$lt_cv_objdir" >&6; } | |
8746 | objdir=$lt_cv_objdir | |
f35db108 WM |
8747 | |
8748 | ||
8749 | ||
8750 | ||
8751 | ||
c915a581 JJ |
8752 | cat >>confdefs.h <<_ACEOF |
8753 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8754 | _ACEOF | |
f35db108 WM |
8755 | |
8756 | ||
8757 | ||
8758 | ||
c915a581 JJ |
8759 | case $host_os in |
8760 | aix3*) | |
8761 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8762 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8763 | # vanish in a puff of smoke. | |
8764 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8765 | COLLECT_NAMES= | |
8766 | export COLLECT_NAMES | |
8767 | fi | |
8768 | ;; | |
8769 | esac | |
f35db108 | 8770 | |
c915a581 JJ |
8771 | # Global variables: |
8772 | ofile=libtool | |
8773 | can_build_shared=yes | |
f35db108 | 8774 | |
c915a581 JJ |
8775 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8776 | # which needs '.lib'). | |
8777 | libext=a | |
f35db108 | 8778 | |
c915a581 | 8779 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
f35db108 | 8780 | |
c915a581 JJ |
8781 | old_CC="$CC" |
8782 | old_CFLAGS="$CFLAGS" | |
f35db108 | 8783 | |
c915a581 JJ |
8784 | # Set sane defaults for various variables |
8785 | test -z "$CC" && CC=cc | |
8786 | test -z "$LTCC" && LTCC=$CC | |
8787 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8788 | test -z "$LD" && LD=ld | |
8789 | test -z "$ac_objext" && ac_objext=o | |
f35db108 | 8790 | |
c915a581 JJ |
8791 | for cc_temp in $compiler""; do |
8792 | case $cc_temp in | |
8793 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8794 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8795 | \-*) ;; | |
8796 | *) break;; | |
8797 | esac | |
8798 | done | |
8799 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
f35db108 WM |
8800 | |
8801 | ||
c915a581 JJ |
8802 | # Only perform the check for file, if the check method requires it |
8803 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8804 | case $deplibs_check_method in | |
8805 | file_magic*) | |
8806 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8808 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8809 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8810 | $as_echo_n "(cached) " >&6 | |
8811 | else | |
8812 | case $MAGIC_CMD in | |
8813 | [\\/*] | ?:[\\/]*) | |
8814 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8815 | ;; | |
8816 | *) | |
8817 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8818 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8819 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8820 | for ac_dir in $ac_dummy; do | |
8821 | IFS="$lt_save_ifs" | |
8822 | test -z "$ac_dir" && ac_dir=. | |
8823 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8824 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8825 | if test -n "$file_magic_test_file"; then | |
8826 | case $deplibs_check_method in | |
8827 | "file_magic "*) | |
8828 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8829 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8830 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8831 | $EGREP "$file_magic_regex" > /dev/null; then | |
8832 | : | |
8833 | else | |
8834 | cat <<_LT_EOF 1>&2 | |
f35db108 | 8835 | |
c915a581 JJ |
8836 | *** Warning: the command libtool uses to detect shared libraries, |
8837 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8838 | *** The result is that libtool may fail to recognize shared libraries | |
8839 | *** as such. This will affect the creation of libtool libraries that | |
8840 | *** depend on shared libraries, but programs linked with such libtool | |
8841 | *** libraries will work regardless of this problem. Nevertheless, you | |
8842 | *** may want to report the problem to your system manager and/or to | |
8843 | *** bug-libtool@gnu.org | |
f35db108 | 8844 | |
c915a581 JJ |
8845 | _LT_EOF |
8846 | fi ;; | |
8847 | esac | |
8848 | fi | |
8849 | break | |
8850 | fi | |
8851 | done | |
8852 | IFS="$lt_save_ifs" | |
8853 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8854 | ;; | |
8855 | esac | |
8856 | fi | |
f35db108 | 8857 | |
c915a581 JJ |
8858 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8859 | if test -n "$MAGIC_CMD"; then | |
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8861 | $as_echo "$MAGIC_CMD" >&6; } | |
8862 | else | |
8863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8864 | $as_echo "no" >&6; } | |
8865 | fi | |
f35db108 WM |
8866 | |
8867 | ||
8868 | ||
8869 | ||
8870 | ||
c915a581 JJ |
8871 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8872 | if test -n "$ac_tool_prefix"; then | |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8874 | $as_echo_n "checking for file... " >&6; } | |
8875 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
8876 | $as_echo_n "(cached) " >&6 | |
8877 | else | |
8878 | case $MAGIC_CMD in | |
8879 | [\\/*] | ?:[\\/]*) | |
8880 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8881 | ;; | |
8882 | *) | |
8883 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8884 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8885 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8886 | for ac_dir in $ac_dummy; do | |
8887 | IFS="$lt_save_ifs" | |
8888 | test -z "$ac_dir" && ac_dir=. | |
8889 | if test -f $ac_dir/file; then | |
8890 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8891 | if test -n "$file_magic_test_file"; then | |
8892 | case $deplibs_check_method in | |
8893 | "file_magic "*) | |
8894 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8895 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8896 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8897 | $EGREP "$file_magic_regex" > /dev/null; then | |
8898 | : | |
8899 | else | |
8900 | cat <<_LT_EOF 1>&2 | |
f35db108 | 8901 | |
c915a581 JJ |
8902 | *** Warning: the command libtool uses to detect shared libraries, |
8903 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8904 | *** The result is that libtool may fail to recognize shared libraries | |
8905 | *** as such. This will affect the creation of libtool libraries that | |
8906 | *** depend on shared libraries, but programs linked with such libtool | |
8907 | *** libraries will work regardless of this problem. Nevertheless, you | |
8908 | *** may want to report the problem to your system manager and/or to | |
8909 | *** bug-libtool@gnu.org | |
f35db108 | 8910 | |
c915a581 JJ |
8911 | _LT_EOF |
8912 | fi ;; | |
8913 | esac | |
8914 | fi | |
8915 | break | |
8916 | fi | |
8917 | done | |
8918 | IFS="$lt_save_ifs" | |
8919 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8920 | ;; | |
8921 | esac | |
8922 | fi | |
f35db108 | 8923 | |
c915a581 JJ |
8924 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8925 | if test -n "$MAGIC_CMD"; then | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8927 | $as_echo "$MAGIC_CMD" >&6; } | |
8928 | else | |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8930 | $as_echo "no" >&6; } | |
8931 | fi | |
f35db108 WM |
8932 | |
8933 | ||
c915a581 JJ |
8934 | else |
8935 | MAGIC_CMD=: | |
8936 | fi | |
8937 | fi | |
f35db108 | 8938 | |
c915a581 JJ |
8939 | fi |
8940 | ;; | |
8941 | esac | |
f35db108 | 8942 | |
c915a581 | 8943 | # Use C for the default configuration in the libtool script |
f35db108 | 8944 | |
c915a581 JJ |
8945 | lt_save_CC="$CC" |
8946 | ac_ext=c | |
8947 | ac_cpp='$CPP $CPPFLAGS' | |
8948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 WM |
8951 | |
8952 | ||
c915a581 JJ |
8953 | # Source file extension for C test sources. |
8954 | ac_ext=c | |
f35db108 | 8955 | |
c915a581 JJ |
8956 | # Object file extension for compiled C test sources. |
8957 | objext=o | |
8958 | objext=$objext | |
f35db108 | 8959 | |
c915a581 JJ |
8960 | # Code to be used in simple compile tests |
8961 | lt_simple_compile_test_code="int some_variable = 0;" | |
f35db108 | 8962 | |
c915a581 JJ |
8963 | # Code to be used in simple link tests |
8964 | lt_simple_link_test_code='int main(){return(0);}' | |
f35db108 WM |
8965 | |
8966 | ||
8967 | ||
8968 | ||
8969 | ||
8970 | ||
8971 | ||
c915a581 JJ |
8972 | # If no C compiler was specified, use CC. |
8973 | LTCC=${LTCC-"$CC"} | |
f35db108 | 8974 | |
c915a581 JJ |
8975 | # If no C compiler flags were specified, use CFLAGS. |
8976 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
f35db108 | 8977 | |
c915a581 JJ |
8978 | # Allow CC to be a program name with arguments. |
8979 | compiler=$CC | |
f35db108 | 8980 | |
c915a581 JJ |
8981 | # Save the default compiler, since it gets overwritten when the other |
8982 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8983 | compiler_DEFAULT=$CC | |
f35db108 | 8984 | |
c915a581 JJ |
8985 | # save warnings/boilerplate of simple test code |
8986 | ac_outfile=conftest.$ac_objext | |
8987 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8988 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8989 | _lt_compiler_boilerplate=`cat conftest.err` | |
8990 | $RM conftest* | |
f35db108 | 8991 | |
c915a581 JJ |
8992 | ac_outfile=conftest.$ac_objext |
8993 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8994 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8995 | _lt_linker_boilerplate=`cat conftest.err` | |
8996 | $RM -r conftest* | |
f35db108 WM |
8997 | |
8998 | ||
c915a581 JJ |
8999 | ## CAVEAT EMPTOR: |
9000 | ## There is no encapsulation within the following macros, do not change | |
9001 | ## the running order or otherwise move them around unless you know exactly | |
9002 | ## what you are doing... | |
9003 | if test -n "$compiler"; then | |
f35db108 | 9004 | |
c915a581 | 9005 | lt_prog_compiler_no_builtin_flag= |
f35db108 | 9006 | |
c915a581 JJ |
9007 | if test "$GCC" = yes; then |
9008 | case $cc_basename in | |
9009 | nvcc*) | |
9010 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9011 | *) | |
9012 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9013 | esac | |
f35db108 | 9014 | |
c915a581 JJ |
9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9016 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9017 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
9018 | $as_echo_n "(cached) " >&6 | |
9019 | else | |
9020 | lt_cv_prog_compiler_rtti_exceptions=no | |
9021 | ac_outfile=conftest.$ac_objext | |
9022 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9023 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9024 | # Insert the option either (1) after the last *FLAGS variable, or | |
9025 | # (2) before a word containing "conftest.", or (3) at the end. | |
9026 | # Note that $ac_compile itself does not contain backslashes and begins | |
9027 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9028 | # The option is referenced via a variable to avoid confusing sed. | |
9029 | lt_compile=`echo "$ac_compile" | $SED \ | |
9030 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9031 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9032 | -e 's:$: $lt_compiler_flag:'` | |
9033 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9034 | (eval "$lt_compile" 2>conftest.err) | |
9035 | ac_status=$? | |
9036 | cat conftest.err >&5 | |
9037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9038 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9039 | # The compiler can only warn and ignore the option if not recognized | |
9040 | # So say no if there are warnings other than the usual output. | |
9041 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9042 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9043 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9044 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9045 | fi | |
9046 | fi | |
9047 | $RM conftest* | |
f35db108 | 9048 | |
c915a581 JJ |
9049 | fi |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9051 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
f35db108 | 9052 | |
c915a581 JJ |
9053 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9054 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9055 | else | |
9056 | : | |
9057 | fi | |
f35db108 | 9058 | |
c915a581 | 9059 | fi |
f35db108 WM |
9060 | |
9061 | ||
9062 | ||
9063 | ||
9064 | ||
9065 | ||
c915a581 JJ |
9066 | lt_prog_compiler_wl= |
9067 | lt_prog_compiler_pic= | |
9068 | lt_prog_compiler_static= | |
f35db108 | 9069 | |
c915a581 JJ |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9071 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
f35db108 | 9072 | |
c915a581 JJ |
9073 | if test "$GCC" = yes; then |
9074 | lt_prog_compiler_wl='-Wl,' | |
9075 | lt_prog_compiler_static='-static' | |
f35db108 | 9076 | |
c915a581 JJ |
9077 | case $host_os in |
9078 | aix*) | |
9079 | # All AIX code is PIC. | |
9080 | if test "$host_cpu" = ia64; then | |
9081 | # AIX 5 now supports IA64 processor | |
9082 | lt_prog_compiler_static='-Bstatic' | |
9083 | fi | |
9084 | lt_prog_compiler_pic='-fPIC' | |
9085 | ;; | |
f35db108 | 9086 | |
c915a581 JJ |
9087 | amigaos*) |
9088 | case $host_cpu in | |
9089 | powerpc) | |
9090 | # see comment about AmigaOS4 .so support | |
9091 | lt_prog_compiler_pic='-fPIC' | |
9092 | ;; | |
9093 | m68k) | |
9094 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9095 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9096 | # like `-m68040'. | |
9097 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9098 | ;; | |
9099 | esac | |
9100 | ;; | |
f35db108 | 9101 | |
c915a581 JJ |
9102 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9103 | # PIC is the default for these OSes. | |
9104 | ;; | |
f35db108 | 9105 | |
c915a581 JJ |
9106 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9107 | # This hack is so that the source file can tell whether it is being | |
9108 | # built for inclusion in a dll (and should export symbols for example). | |
9109 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9110 | # (--disable-auto-import) libraries | |
9111 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9112 | ;; | |
f35db108 | 9113 | |
c915a581 JJ |
9114 | darwin* | rhapsody*) |
9115 | # PIC is the default on this platform | |
9116 | # Common symbols not allowed in MH_DYLIB files | |
9117 | lt_prog_compiler_pic='-fno-common' | |
9118 | ;; | |
f35db108 | 9119 | |
c915a581 JJ |
9120 | haiku*) |
9121 | # PIC is the default for Haiku. | |
9122 | # The "-static" flag exists, but is broken. | |
9123 | lt_prog_compiler_static= | |
9124 | ;; | |
f35db108 | 9125 | |
c915a581 JJ |
9126 | hpux*) |
9127 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9128 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9129 | # sets the default TLS model and affects inlining. | |
9130 | case $host_cpu in | |
9131 | hppa*64*) | |
9132 | # +Z the default | |
9133 | ;; | |
9134 | *) | |
9135 | lt_prog_compiler_pic='-fPIC' | |
9136 | ;; | |
9137 | esac | |
9138 | ;; | |
f35db108 | 9139 | |
c915a581 JJ |
9140 | interix[3-9]*) |
9141 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9142 | # Instead, we relocate shared libraries at runtime. | |
9143 | ;; | |
a2479b3d | 9144 | |
c915a581 JJ |
9145 | msdosdjgpp*) |
9146 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9147 | # on systems that don't support them. | |
9148 | lt_prog_compiler_can_build_shared=no | |
9149 | enable_shared=no | |
9150 | ;; | |
a2479b3d | 9151 | |
c915a581 JJ |
9152 | *nto* | *qnx*) |
9153 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9154 | # it will coredump. | |
9155 | lt_prog_compiler_pic='-fPIC -shared' | |
9156 | ;; | |
a2479b3d | 9157 | |
c915a581 JJ |
9158 | sysv4*MP*) |
9159 | if test -d /usr/nec; then | |
9160 | lt_prog_compiler_pic=-Kconform_pic | |
9161 | fi | |
9162 | ;; | |
a2479b3d | 9163 | |
c915a581 JJ |
9164 | *) |
9165 | lt_prog_compiler_pic='-fPIC' | |
9166 | ;; | |
9167 | esac | |
a2479b3d | 9168 | |
c915a581 JJ |
9169 | case $cc_basename in |
9170 | nvcc*) # Cuda Compiler Driver 2.2 | |
9171 | lt_prog_compiler_wl='-Xlinker ' | |
9172 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9173 | ;; | |
9174 | esac | |
9175 | else | |
9176 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9177 | case $host_os in | |
9178 | aix*) | |
9179 | lt_prog_compiler_wl='-Wl,' | |
9180 | if test "$host_cpu" = ia64; then | |
9181 | # AIX 5 now supports IA64 processor | |
9182 | lt_prog_compiler_static='-Bstatic' | |
9183 | else | |
9184 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9185 | fi | |
9186 | ;; | |
f35db108 | 9187 | |
c915a581 JJ |
9188 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9189 | # This hack is so that the source file can tell whether it is being | |
9190 | # built for inclusion in a dll (and should export symbols for example). | |
9191 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9192 | ;; | |
f35db108 | 9193 | |
c915a581 JJ |
9194 | hpux9* | hpux10* | hpux11*) |
9195 | lt_prog_compiler_wl='-Wl,' | |
9196 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9197 | # not for PA HP-UX. | |
9198 | case $host_cpu in | |
9199 | hppa*64*|ia64*) | |
9200 | # +Z the default | |
9201 | ;; | |
9202 | *) | |
9203 | lt_prog_compiler_pic='+Z' | |
9204 | ;; | |
9205 | esac | |
9206 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9207 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9208 | ;; | |
f35db108 | 9209 | |
c915a581 JJ |
9210 | irix5* | irix6* | nonstopux*) |
9211 | lt_prog_compiler_wl='-Wl,' | |
9212 | # PIC (with -KPIC) is the default. | |
9213 | lt_prog_compiler_static='-non_shared' | |
9214 | ;; | |
f35db108 | 9215 | |
c915a581 JJ |
9216 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9217 | case $cc_basename in | |
9218 | # old Intel for x86_64 which still supported -KPIC. | |
9219 | ecc*) | |
9220 | lt_prog_compiler_wl='-Wl,' | |
9221 | lt_prog_compiler_pic='-KPIC' | |
9222 | lt_prog_compiler_static='-static' | |
9223 | ;; | |
9224 | # icc used to be incompatible with GCC. | |
9225 | # ICC 10 doesn't accept -KPIC any more. | |
9226 | icc* | ifort*) | |
9227 | lt_prog_compiler_wl='-Wl,' | |
9228 | lt_prog_compiler_pic='-fPIC' | |
9229 | lt_prog_compiler_static='-static' | |
9230 | ;; | |
9231 | # Lahey Fortran 8.1. | |
9232 | lf95*) | |
9233 | lt_prog_compiler_wl='-Wl,' | |
9234 | lt_prog_compiler_pic='--shared' | |
9235 | lt_prog_compiler_static='--static' | |
9236 | ;; | |
9237 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9238 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9239 | # which looks to be a dead project) | |
9240 | lt_prog_compiler_wl='-Wl,' | |
9241 | lt_prog_compiler_pic='-fpic' | |
9242 | lt_prog_compiler_static='-Bstatic' | |
9243 | ;; | |
9244 | ccc*) | |
9245 | lt_prog_compiler_wl='-Wl,' | |
9246 | # All Alpha code is PIC. | |
9247 | lt_prog_compiler_static='-non_shared' | |
9248 | ;; | |
9249 | xl* | bgxl* | bgf* | mpixl*) | |
9250 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9251 | lt_prog_compiler_wl='-Wl,' | |
9252 | lt_prog_compiler_pic='-qpic' | |
9253 | lt_prog_compiler_static='-qstaticlink' | |
9254 | ;; | |
9255 | *) | |
9256 | case `$CC -V 2>&1 | sed 5q` in | |
9257 | *Sun\ F* | *Sun*Fortran*) | |
9258 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9259 | lt_prog_compiler_pic='-KPIC' | |
9260 | lt_prog_compiler_static='-Bstatic' | |
9261 | lt_prog_compiler_wl='' | |
9262 | ;; | |
9263 | *Sun\ C*) | |
9264 | # Sun C 5.9 | |
9265 | lt_prog_compiler_pic='-KPIC' | |
9266 | lt_prog_compiler_static='-Bstatic' | |
9267 | lt_prog_compiler_wl='-Wl,' | |
9268 | ;; | |
9269 | esac | |
9270 | ;; | |
9271 | esac | |
9272 | ;; | |
f35db108 | 9273 | |
c915a581 JJ |
9274 | newsos6) |
9275 | lt_prog_compiler_pic='-KPIC' | |
9276 | lt_prog_compiler_static='-Bstatic' | |
9277 | ;; | |
f35db108 | 9278 | |
c915a581 JJ |
9279 | *nto* | *qnx*) |
9280 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9281 | # it will coredump. | |
9282 | lt_prog_compiler_pic='-fPIC -shared' | |
9283 | ;; | |
f35db108 | 9284 | |
c915a581 JJ |
9285 | osf3* | osf4* | osf5*) |
9286 | lt_prog_compiler_wl='-Wl,' | |
9287 | # All OSF/1 code is PIC. | |
9288 | lt_prog_compiler_static='-non_shared' | |
9289 | ;; | |
f35db108 | 9290 | |
c915a581 JJ |
9291 | rdos*) |
9292 | lt_prog_compiler_static='-non_shared' | |
9293 | ;; | |
f35db108 | 9294 | |
c915a581 JJ |
9295 | solaris*) |
9296 | lt_prog_compiler_pic='-KPIC' | |
9297 | lt_prog_compiler_static='-Bstatic' | |
9298 | case $cc_basename in | |
9299 | f77* | f90* | f95*) | |
9300 | lt_prog_compiler_wl='-Qoption ld ';; | |
9301 | *) | |
9302 | lt_prog_compiler_wl='-Wl,';; | |
9303 | esac | |
9304 | ;; | |
f35db108 | 9305 | |
c915a581 JJ |
9306 | sunos4*) |
9307 | lt_prog_compiler_wl='-Qoption ld ' | |
9308 | lt_prog_compiler_pic='-PIC' | |
9309 | lt_prog_compiler_static='-Bstatic' | |
9310 | ;; | |
f35db108 | 9311 | |
c915a581 JJ |
9312 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9313 | lt_prog_compiler_wl='-Wl,' | |
9314 | lt_prog_compiler_pic='-KPIC' | |
9315 | lt_prog_compiler_static='-Bstatic' | |
9316 | ;; | |
9317 | ||
9318 | sysv4*MP*) | |
9319 | if test -d /usr/nec ;then | |
9320 | lt_prog_compiler_pic='-Kconform_pic' | |
9321 | lt_prog_compiler_static='-Bstatic' | |
f35db108 WM |
9322 | fi |
9323 | ;; | |
c915a581 JJ |
9324 | |
9325 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9326 | lt_prog_compiler_wl='-Wl,' | |
9327 | lt_prog_compiler_pic='-KPIC' | |
9328 | lt_prog_compiler_static='-Bstatic' | |
9329 | ;; | |
9330 | ||
9331 | unicos*) | |
9332 | lt_prog_compiler_wl='-Wl,' | |
9333 | lt_prog_compiler_can_build_shared=no | |
9334 | ;; | |
9335 | ||
9336 | uts4*) | |
9337 | lt_prog_compiler_pic='-pic' | |
9338 | lt_prog_compiler_static='-Bstatic' | |
9339 | ;; | |
9340 | ||
9341 | *) | |
9342 | lt_prog_compiler_can_build_shared=no | |
9343 | ;; | |
f35db108 | 9344 | esac |
f35db108 | 9345 | fi |
f35db108 | 9346 | |
c915a581 JJ |
9347 | case $host_os in |
9348 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9349 | *djgpp*) | |
9350 | lt_prog_compiler_pic= | |
f35db108 | 9351 | ;; |
c915a581 JJ |
9352 | *) |
9353 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
f35db108 | 9354 | ;; |
c915a581 JJ |
9355 | esac |
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9357 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
f35db108 | 9358 | |
f35db108 | 9359 | |
f35db108 | 9360 | |
f35db108 | 9361 | |
f35db108 | 9362 | |
f35db108 | 9363 | |
c915a581 JJ |
9364 | # |
9365 | # Check to make sure the PIC flag actually works. | |
9366 | # | |
9367 | if test -n "$lt_prog_compiler_pic"; then | |
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9369 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9370 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
9371 | $as_echo_n "(cached) " >&6 | |
9372 | else | |
9373 | lt_cv_prog_compiler_pic_works=no | |
9374 | ac_outfile=conftest.$ac_objext | |
9375 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9376 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9377 | # Insert the option either (1) after the last *FLAGS variable, or | |
9378 | # (2) before a word containing "conftest.", or (3) at the end. | |
9379 | # Note that $ac_compile itself does not contain backslashes and begins | |
9380 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9381 | # The option is referenced via a variable to avoid confusing sed. | |
9382 | lt_compile=`echo "$ac_compile" | $SED \ | |
9383 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9384 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9385 | -e 's:$: $lt_compiler_flag:'` | |
9386 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9387 | (eval "$lt_compile" 2>conftest.err) | |
9388 | ac_status=$? | |
9389 | cat conftest.err >&5 | |
9390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9391 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9392 | # The compiler can only warn and ignore the option if not recognized | |
9393 | # So say no if there are warnings other than the usual output. | |
9394 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9395 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9396 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9397 | lt_cv_prog_compiler_pic_works=yes | |
9398 | fi | |
9399 | fi | |
9400 | $RM conftest* | |
f35db108 | 9401 | |
c915a581 JJ |
9402 | fi |
9403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9404 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
f35db108 | 9405 | |
c915a581 JJ |
9406 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9407 | case $lt_prog_compiler_pic in | |
9408 | "" | " "*) ;; | |
9409 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9410 | esac | |
9411 | else | |
9412 | lt_prog_compiler_pic= | |
9413 | lt_prog_compiler_can_build_shared=no | |
9414 | fi | |
f35db108 | 9415 | |
c915a581 | 9416 | fi |
f35db108 | 9417 | |
f35db108 | 9418 | |
f35db108 | 9419 | |
f35db108 | 9420 | |
f35db108 | 9421 | |
f35db108 | 9422 | |
c915a581 JJ |
9423 | # |
9424 | # Check to make sure the static flag actually works. | |
9425 | # | |
9426 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9428 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9429 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
9430 | $as_echo_n "(cached) " >&6 | |
9431 | else | |
9432 | lt_cv_prog_compiler_static_works=no | |
9433 | save_LDFLAGS="$LDFLAGS" | |
9434 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9435 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9436 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9437 | # The linker can only warn and ignore the option if not recognized | |
9438 | # So say no if there are warnings | |
9439 | if test -s conftest.err; then | |
9440 | # Append any errors to the config.log. | |
9441 | cat conftest.err 1>&5 | |
9442 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9443 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9444 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9445 | lt_cv_prog_compiler_static_works=yes | |
9446 | fi | |
9447 | else | |
9448 | lt_cv_prog_compiler_static_works=yes | |
9449 | fi | |
9450 | fi | |
9451 | $RM -r conftest* | |
9452 | LDFLAGS="$save_LDFLAGS" | |
f35db108 | 9453 | |
c915a581 JJ |
9454 | fi |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9456 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
f35db108 | 9457 | |
c915a581 JJ |
9458 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9459 | : | |
9460 | else | |
9461 | lt_prog_compiler_static= | |
9462 | fi | |
f35db108 | 9463 | |
f35db108 | 9464 | |
f35db108 | 9465 | |
f35db108 | 9466 | |
f35db108 | 9467 | |
f35db108 | 9468 | |
f35db108 | 9469 | |
c915a581 JJ |
9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9471 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9472 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9473 | $as_echo_n "(cached) " >&6 | |
9474 | else | |
9475 | lt_cv_prog_compiler_c_o=no | |
9476 | $RM -r conftest 2>/dev/null | |
9477 | mkdir conftest | |
9478 | cd conftest | |
9479 | mkdir out | |
9480 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
f35db108 | 9481 | |
c915a581 JJ |
9482 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9483 | # Insert the option either (1) after the last *FLAGS variable, or | |
9484 | # (2) before a word containing "conftest.", or (3) at the end. | |
9485 | # Note that $ac_compile itself does not contain backslashes and begins | |
9486 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9487 | lt_compile=`echo "$ac_compile" | $SED \ | |
9488 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9489 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9490 | -e 's:$: $lt_compiler_flag:'` | |
9491 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9492 | (eval "$lt_compile" 2>out/conftest.err) | |
9493 | ac_status=$? | |
9494 | cat out/conftest.err >&5 | |
9495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9496 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9497 | then | |
9498 | # The compiler can only warn and ignore the option if not recognized | |
9499 | # So say no if there are warnings | |
9500 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9501 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9502 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9503 | lt_cv_prog_compiler_c_o=yes | |
9504 | fi | |
9505 | fi | |
9506 | chmod u+w . 2>&5 | |
9507 | $RM conftest* | |
9508 | # SGI C++ compiler will create directory out/ii_files/ for | |
9509 | # template instantiation | |
9510 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9511 | $RM out/* && rmdir out | |
9512 | cd .. | |
9513 | $RM -r conftest | |
9514 | $RM conftest* | |
f35db108 | 9515 | |
c915a581 JJ |
9516 | fi |
9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9518 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
f35db108 | 9519 | |
f35db108 | 9520 | |
f35db108 | 9521 | |
f35db108 | 9522 | |
f35db108 | 9523 | |
f35db108 | 9524 | |
c915a581 JJ |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9526 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9527 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
9528 | $as_echo_n "(cached) " >&6 | |
9529 | else | |
9530 | lt_cv_prog_compiler_c_o=no | |
9531 | $RM -r conftest 2>/dev/null | |
9532 | mkdir conftest | |
9533 | cd conftest | |
9534 | mkdir out | |
9535 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
f35db108 | 9536 | |
c915a581 JJ |
9537 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9538 | # Insert the option either (1) after the last *FLAGS variable, or | |
9539 | # (2) before a word containing "conftest.", or (3) at the end. | |
9540 | # Note that $ac_compile itself does not contain backslashes and begins | |
9541 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9542 | lt_compile=`echo "$ac_compile" | $SED \ | |
9543 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9544 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9545 | -e 's:$: $lt_compiler_flag:'` | |
9546 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9547 | (eval "$lt_compile" 2>out/conftest.err) | |
9548 | ac_status=$? | |
9549 | cat out/conftest.err >&5 | |
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9551 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9552 | then | |
9553 | # The compiler can only warn and ignore the option if not recognized | |
9554 | # So say no if there are warnings | |
9555 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9556 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9557 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9558 | lt_cv_prog_compiler_c_o=yes | |
9559 | fi | |
9560 | fi | |
9561 | chmod u+w . 2>&5 | |
9562 | $RM conftest* | |
9563 | # SGI C++ compiler will create directory out/ii_files/ for | |
9564 | # template instantiation | |
9565 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9566 | $RM out/* && rmdir out | |
9567 | cd .. | |
9568 | $RM -r conftest | |
9569 | $RM conftest* | |
f35db108 | 9570 | |
c915a581 JJ |
9571 | fi |
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9573 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
f35db108 | 9574 | |
f35db108 | 9575 | |
f35db108 | 9576 | |
f35db108 | 9577 | |
c915a581 JJ |
9578 | hard_links="nottested" |
9579 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9580 | # do not overwrite the value of need_locks provided by the user | |
9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9582 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9583 | hard_links=yes | |
9584 | $RM conftest* | |
9585 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9586 | touch conftest.a | |
9587 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9588 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9590 | $as_echo "$hard_links" >&6; } | |
9591 | if test "$hard_links" = no; then | |
9592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9593 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9594 | need_locks=warn | |
f35db108 | 9595 | fi |
c915a581 JJ |
9596 | else |
9597 | need_locks=no | |
f35db108 WM |
9598 | fi |
9599 | ||
f35db108 WM |
9600 | |
9601 | ||
9602 | ||
9603 | ||
9604 | ||
c915a581 JJ |
9605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9606 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
f35db108 | 9607 | |
c915a581 JJ |
9608 | runpath_var= |
9609 | allow_undefined_flag= | |
9610 | always_export_symbols=no | |
9611 | archive_cmds= | |
9612 | archive_expsym_cmds= | |
9613 | compiler_needs_object=no | |
9614 | enable_shared_with_static_runtimes=no | |
9615 | export_dynamic_flag_spec= | |
9616 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9617 | hardcode_automatic=no | |
9618 | hardcode_direct=no | |
9619 | hardcode_direct_absolute=no | |
9620 | hardcode_libdir_flag_spec= | |
9621 | hardcode_libdir_flag_spec_ld= | |
9622 | hardcode_libdir_separator= | |
9623 | hardcode_minus_L=no | |
9624 | hardcode_shlibpath_var=unsupported | |
9625 | inherit_rpath=no | |
9626 | link_all_deplibs=unknown | |
9627 | module_cmds= | |
9628 | module_expsym_cmds= | |
9629 | old_archive_from_new_cmds= | |
9630 | old_archive_from_expsyms_cmds= | |
9631 | thread_safe_flag_spec= | |
9632 | whole_archive_flag_spec= | |
9633 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9634 | # included in the symbol list | |
9635 | include_expsyms= | |
9636 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9637 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9638 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9639 | # as well as any symbol that contains `d'. | |
9640 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9641 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9642 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9643 | # the symbol is explicitly referenced. Since portable code cannot | |
9644 | # rely on this symbol name, it's probably fine to never include it in | |
9645 | # preloaded symbol tables. | |
9646 | # Exclude shared library initialization/finalization symbols. | |
9647 | extract_expsyms_cmds= | |
f35db108 | 9648 | |
c915a581 JJ |
9649 | case $host_os in |
9650 | cygwin* | mingw* | pw32* | cegcc*) | |
9651 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9652 | # When not using gcc, we currently assume that we are using | |
9653 | # Microsoft Visual C++. | |
9654 | if test "$GCC" != yes; then | |
9655 | with_gnu_ld=no | |
9656 | fi | |
9657 | ;; | |
9658 | interix*) | |
9659 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9660 | with_gnu_ld=yes | |
9661 | ;; | |
9662 | openbsd*) | |
9663 | with_gnu_ld=no | |
9664 | ;; | |
9665 | esac | |
f35db108 | 9666 | |
c915a581 | 9667 | ld_shlibs=yes |
f35db108 | 9668 | |
c915a581 JJ |
9669 | # On some targets, GNU ld is compatible enough with the native linker |
9670 | # that we're better off using the native interface for both. | |
9671 | lt_use_gnu_ld_interface=no | |
9672 | if test "$with_gnu_ld" = yes; then | |
9673 | case $host_os in | |
9674 | aix*) | |
9675 | # The AIX port of GNU ld has always aspired to compatibility | |
9676 | # with the native linker. However, as the warning in the GNU ld | |
9677 | # block says, versions before 2.19.5* couldn't really create working | |
9678 | # shared libraries, regardless of the interface used. | |
9679 | case `$LD -v 2>&1` in | |
9680 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9681 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9682 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9683 | *) | |
9684 | lt_use_gnu_ld_interface=yes | |
9685 | ;; | |
9686 | esac | |
9687 | ;; | |
9688 | *) | |
9689 | lt_use_gnu_ld_interface=yes | |
9690 | ;; | |
9691 | esac | |
9692 | fi | |
f35db108 | 9693 | |
c915a581 JJ |
9694 | if test "$lt_use_gnu_ld_interface" = yes; then |
9695 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9696 | wlarc='${wl}' | |
f35db108 | 9697 | |
c915a581 JJ |
9698 | # Set some defaults for GNU ld with shared library support. These |
9699 | # are reset later if shared libraries are not supported. Putting them | |
9700 | # here allows them to be overridden if necessary. | |
9701 | runpath_var=LD_RUN_PATH | |
9702 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9703 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9704 | # ancient GNU ld didn't support --whole-archive et. al. | |
9705 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9706 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9707 | else | |
9708 | whole_archive_flag_spec= | |
9709 | fi | |
9710 | supports_anon_versioning=no | |
9711 | case `$LD -v 2>&1` in | |
9712 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9713 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9714 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9715 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9716 | *\ 2.11.*) ;; # other 2.11 versions | |
9717 | *) supports_anon_versioning=yes ;; | |
9718 | esac | |
f35db108 | 9719 | |
c915a581 JJ |
9720 | # See if GNU ld supports shared libraries. |
9721 | case $host_os in | |
9722 | aix[3-9]*) | |
9723 | # On AIX/PPC, the GNU linker is very broken | |
9724 | if test "$host_cpu" != ia64; then | |
9725 | ld_shlibs=no | |
9726 | cat <<_LT_EOF 1>&2 | |
f35db108 | 9727 | |
c915a581 JJ |
9728 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9729 | *** to be unable to reliably create shared libraries on AIX. | |
9730 | *** Therefore, libtool is disabling shared libraries support. If you | |
9731 | *** really care for shared libraries, you may want to install binutils | |
9732 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9733 | *** You will then need to restart the configuration process. | |
f35db108 | 9734 | |
c915a581 JJ |
9735 | _LT_EOF |
9736 | fi | |
9737 | ;; | |
f35db108 | 9738 | |
c915a581 JJ |
9739 | amigaos*) |
9740 | case $host_cpu in | |
9741 | powerpc) | |
9742 | # see comment about AmigaOS4 .so support | |
9743 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9744 | archive_expsym_cmds='' | |
9745 | ;; | |
9746 | m68k) | |
9747 | 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)' | |
9748 | hardcode_libdir_flag_spec='-L$libdir' | |
9749 | hardcode_minus_L=yes | |
9750 | ;; | |
9751 | esac | |
9752 | ;; | |
f35db108 | 9753 | |
c915a581 JJ |
9754 | beos*) |
9755 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9756 | allow_undefined_flag=unsupported | |
9757 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9758 | # support --undefined. This deserves some investigation. FIXME | |
9759 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9760 | else | |
9761 | ld_shlibs=no | |
9762 | fi | |
9763 | ;; | |
f35db108 | 9764 | |
c915a581 JJ |
9765 | cygwin* | mingw* | pw32* | cegcc*) |
9766 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9767 | # as there is no search path for DLLs. | |
9768 | hardcode_libdir_flag_spec='-L$libdir' | |
9769 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9770 | allow_undefined_flag=unsupported | |
9771 | always_export_symbols=no | |
9772 | enable_shared_with_static_runtimes=yes | |
9773 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
f35db108 | 9774 | |
c915a581 JJ |
9775 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9776 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9777 | # If the export-symbols file already is a .def file (1st line | |
9778 | # is EXPORTS), use it as is; otherwise, prepend... | |
9779 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9780 | cp $export_symbols $output_objdir/$soname.def; | |
9781 | else | |
9782 | echo EXPORTS > $output_objdir/$soname.def; | |
9783 | cat $export_symbols >> $output_objdir/$soname.def; | |
9784 | fi~ | |
9785 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9786 | else | |
9787 | ld_shlibs=no | |
9788 | fi | |
9789 | ;; | |
f35db108 | 9790 | |
c915a581 JJ |
9791 | haiku*) |
9792 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9793 | link_all_deplibs=yes | |
9794 | ;; | |
f35db108 | 9795 | |
c915a581 JJ |
9796 | interix[3-9]*) |
9797 | hardcode_direct=no | |
9798 | hardcode_shlibpath_var=no | |
9799 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9800 | export_dynamic_flag_spec='${wl}-E' | |
9801 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9802 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9803 | # default) and relocated if they conflict, which is a slow very memory | |
9804 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9805 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9806 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9807 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9808 | 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' | |
9809 | ;; | |
f35db108 | 9810 | |
c915a581 JJ |
9811 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9812 | tmp_diet=no | |
9813 | if test "$host_os" = linux-dietlibc; then | |
9814 | case $cc_basename in | |
9815 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9816 | esac | |
9817 | fi | |
9818 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9819 | && test "$tmp_diet" = no | |
9820 | then | |
a699d672 | 9821 | tmp_addflag=' $pic_flag' |
c915a581 JJ |
9822 | tmp_sharedflag='-shared' |
9823 | case $cc_basename,$host_cpu in | |
9824 | pgcc*) # Portland Group C compiler | |
9825 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9826 | tmp_addflag=' $pic_flag' | |
9827 | ;; | |
9828 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9829 | # Portland Group f77 and f90 compilers | |
9830 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9831 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9832 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9833 | tmp_addflag=' -i_dynamic' ;; | |
9834 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9835 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9836 | ifc* | ifort*) # Intel Fortran compiler | |
9837 | tmp_addflag=' -nofor_main' ;; | |
9838 | lf95*) # Lahey Fortran 8.1 | |
9839 | whole_archive_flag_spec= | |
9840 | tmp_sharedflag='--shared' ;; | |
9841 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9842 | tmp_sharedflag='-qmkshrobj' | |
9843 | tmp_addflag= ;; | |
9844 | nvcc*) # Cuda Compiler Driver 2.2 | |
9845 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9846 | compiler_needs_object=yes | |
9847 | ;; | |
9848 | esac | |
9849 | case `$CC -V 2>&1 | sed 5q` in | |
9850 | *Sun\ C*) # Sun C 5.9 | |
9851 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9852 | compiler_needs_object=yes | |
9853 | tmp_sharedflag='-G' ;; | |
9854 | *Sun\ F*) # Sun Fortran 8.3 | |
9855 | tmp_sharedflag='-G' ;; | |
9856 | esac | |
9857 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
f35db108 | 9858 | |
c915a581 JJ |
9859 | if test "x$supports_anon_versioning" = xyes; then |
9860 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9861 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9862 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9863 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9864 | fi | |
f35db108 | 9865 | |
c915a581 JJ |
9866 | case $cc_basename in |
9867 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9868 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9869 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9870 | hardcode_libdir_flag_spec= | |
9871 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9872 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9873 | if test "x$supports_anon_versioning" = xyes; then | |
9874 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9875 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9876 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9877 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9878 | fi | |
9879 | ;; | |
9880 | esac | |
9881 | else | |
9882 | ld_shlibs=no | |
9883 | fi | |
9884 | ;; | |
f35db108 | 9885 | |
c915a581 JJ |
9886 | netbsd*) |
9887 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9888 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9889 | wlarc= | |
9890 | else | |
9891 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9892 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9893 | fi | |
9894 | ;; | |
f35db108 | 9895 | |
c915a581 JJ |
9896 | solaris*) |
9897 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9898 | ld_shlibs=no | |
9899 | cat <<_LT_EOF 1>&2 | |
f35db108 | 9900 | |
c915a581 JJ |
9901 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9902 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9903 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9904 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9905 | *** your PATH or compiler configuration so that the native linker is | |
9906 | *** used, and then restart. | |
f35db108 | 9907 | |
c915a581 JJ |
9908 | _LT_EOF |
9909 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9910 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9911 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9912 | else | |
9913 | ld_shlibs=no | |
9914 | fi | |
9915 | ;; | |
f35db108 | 9916 | |
c915a581 JJ |
9917 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9918 | case `$LD -v 2>&1` in | |
9919 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9920 | ld_shlibs=no | |
9921 | cat <<_LT_EOF 1>&2 | |
f35db108 | 9922 | |
c915a581 JJ |
9923 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9924 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9925 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9926 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9927 | *** your PATH or compiler configuration so that the native linker is | |
9928 | *** used, and then restart. | |
f35db108 | 9929 | |
c915a581 JJ |
9930 | _LT_EOF |
9931 | ;; | |
9932 | *) | |
9933 | # For security reasons, it is highly recommended that you always | |
9934 | # use absolute paths for naming shared libraries, and exclude the | |
9935 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9936 | # requires that you compile everything twice, which is a pain. | |
9937 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9938 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9939 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9940 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9941 | else | |
9942 | ld_shlibs=no | |
9943 | fi | |
9944 | ;; | |
9945 | esac | |
9946 | ;; | |
f35db108 | 9947 | |
c915a581 JJ |
9948 | sunos4*) |
9949 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9950 | wlarc= | |
9951 | hardcode_direct=yes | |
9952 | hardcode_shlibpath_var=no | |
9953 | ;; | |
f35db108 | 9954 | |
c915a581 JJ |
9955 | *) |
9956 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9957 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9958 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9959 | else | |
9960 | ld_shlibs=no | |
9961 | fi | |
9962 | ;; | |
9963 | esac | |
f35db108 | 9964 | |
c915a581 JJ |
9965 | if test "$ld_shlibs" = no; then |
9966 | runpath_var= | |
9967 | hardcode_libdir_flag_spec= | |
9968 | export_dynamic_flag_spec= | |
9969 | whole_archive_flag_spec= | |
9970 | fi | |
9971 | else | |
9972 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9973 | case $host_os in | |
9974 | aix3*) | |
9975 | allow_undefined_flag=unsupported | |
9976 | always_export_symbols=yes | |
9977 | 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' | |
9978 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9979 | # are no directories specified by -L. | |
9980 | hardcode_minus_L=yes | |
9981 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9982 | # Neither direct hardcoding nor static linking is supported with a | |
9983 | # broken collect2. | |
9984 | hardcode_direct=unsupported | |
9985 | fi | |
9986 | ;; | |
f35db108 | 9987 | |
c915a581 JJ |
9988 | aix[4-9]*) |
9989 | if test "$host_cpu" = ia64; then | |
9990 | # On IA64, the linker does run time linking by default, so we don't | |
9991 | # have to do anything special. | |
9992 | aix_use_runtimelinking=no | |
9993 | exp_sym_flag='-Bexport' | |
9994 | no_entry_flag="" | |
9995 | else | |
9996 | # If we're using GNU nm, then we don't want the "-C" option. | |
9997 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9998 | # Also, AIX nm treats weak defined symbols like other global | |
9999 | # defined symbols, whereas GNU nm marks them as "W". | |
10000 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10001 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10002 | else | |
bf93d543 | 10003 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
c915a581 JJ |
10004 | fi |
10005 | aix_use_runtimelinking=no | |
f35db108 | 10006 | |
c915a581 JJ |
10007 | # Test if we are trying to use run time linking or normal |
10008 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10009 | # need to do runtime linking. | |
10010 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10011 | for ld_flag in $LDFLAGS; do | |
10012 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10013 | aix_use_runtimelinking=yes | |
10014 | break | |
10015 | fi | |
10016 | done | |
10017 | ;; | |
10018 | esac | |
f35db108 | 10019 | |
c915a581 JJ |
10020 | exp_sym_flag='-bexport' |
10021 | no_entry_flag='-bnoentry' | |
10022 | fi | |
f35db108 | 10023 | |
c915a581 JJ |
10024 | # When large executables or shared objects are built, AIX ld can |
10025 | # have problems creating the table of contents. If linking a library | |
10026 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10027 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10028 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
f35db108 | 10029 | |
c915a581 JJ |
10030 | archive_cmds='' |
10031 | hardcode_direct=yes | |
10032 | hardcode_direct_absolute=yes | |
10033 | hardcode_libdir_separator=':' | |
10034 | link_all_deplibs=yes | |
10035 | file_list_spec='${wl}-f,' | |
f35db108 | 10036 | |
c915a581 JJ |
10037 | if test "$GCC" = yes; then |
10038 | case $host_os in aix4.[012]|aix4.[012].*) | |
10039 | # We only want to do this on AIX 4.2 and lower, the check | |
10040 | # below for broken collect2 doesn't work under 4.3+ | |
10041 | collect2name=`${CC} -print-prog-name=collect2` | |
10042 | if test -f "$collect2name" && | |
10043 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10044 | then | |
10045 | # We have reworked collect2 | |
10046 | : | |
10047 | else | |
10048 | # We have old collect2 | |
10049 | hardcode_direct=unsupported | |
10050 | # It fails to find uninstalled libraries when the uninstalled | |
10051 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10052 | # to unsupported forces relinking | |
10053 | hardcode_minus_L=yes | |
10054 | hardcode_libdir_flag_spec='-L$libdir' | |
10055 | hardcode_libdir_separator= | |
10056 | fi | |
10057 | ;; | |
10058 | esac | |
10059 | shared_flag='-shared' | |
10060 | if test "$aix_use_runtimelinking" = yes; then | |
10061 | shared_flag="$shared_flag "'${wl}-G' | |
10062 | fi | |
10063 | else | |
10064 | # not using gcc | |
10065 | if test "$host_cpu" = ia64; then | |
10066 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10067 | # chokes on -Wl,-G. The following line is correct: | |
10068 | shared_flag='-G' | |
10069 | else | |
10070 | if test "$aix_use_runtimelinking" = yes; then | |
10071 | shared_flag='${wl}-G' | |
10072 | else | |
10073 | shared_flag='${wl}-bM:SRE' | |
10074 | fi | |
10075 | fi | |
10076 | fi | |
f35db108 | 10077 | |
c915a581 JJ |
10078 | export_dynamic_flag_spec='${wl}-bexpall' |
10079 | # It seems that -bexpall does not export symbols beginning with | |
10080 | # underscore (_), so it is better to generate a list of symbols to export. | |
10081 | always_export_symbols=yes | |
10082 | if test "$aix_use_runtimelinking" = yes; then | |
10083 | # Warning - without using the other runtime loading flags (-brtl), | |
10084 | # -berok will link without error, but may produce a broken library. | |
10085 | allow_undefined_flag='-berok' | |
10086 | # Determine the default libpath from the value encoded in an | |
10087 | # empty executable. | |
10088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10089 | /* end confdefs.h. */ | |
f35db108 | 10090 | |
c915a581 JJ |
10091 | int |
10092 | main () | |
10093 | { | |
f35db108 | 10094 | |
c915a581 JJ |
10095 | ; |
10096 | return 0; | |
10097 | } | |
10098 | _ACEOF | |
10099 | if ac_fn_c_try_link "$LINENO"; then : | |
f35db108 | 10100 | |
c915a581 JJ |
10101 | lt_aix_libpath_sed=' |
10102 | /Import File Strings/,/^$/ { | |
10103 | /^0/ { | |
10104 | s/^0 *\(.*\)$/\1/ | |
10105 | p | |
10106 | } | |
10107 | }' | |
10108 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10109 | # Check for a 64-bit object if we didn't find anything. | |
10110 | if test -z "$aix_libpath"; then | |
10111 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10112 | fi | |
10113 | fi | |
10114 | rm -f core conftest.err conftest.$ac_objext \ | |
10115 | conftest$ac_exeext conftest.$ac_ext | |
10116 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
f35db108 | 10117 | |
c915a581 JJ |
10118 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10119 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10120 | else | |
10121 | if test "$host_cpu" = ia64; then | |
10122 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10123 | allow_undefined_flag="-z nodefs" | |
10124 | 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" | |
10125 | else | |
10126 | # Determine the default libpath from the value encoded in an | |
10127 | # empty executable. | |
10128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10129 | /* end confdefs.h. */ | |
f35db108 | 10130 | |
c915a581 JJ |
10131 | int |
10132 | main () | |
10133 | { | |
f35db108 | 10134 | |
c915a581 JJ |
10135 | ; |
10136 | return 0; | |
10137 | } | |
10138 | _ACEOF | |
10139 | if ac_fn_c_try_link "$LINENO"; then : | |
f35db108 | 10140 | |
c915a581 JJ |
10141 | lt_aix_libpath_sed=' |
10142 | /Import File Strings/,/^$/ { | |
10143 | /^0/ { | |
10144 | s/^0 *\(.*\)$/\1/ | |
10145 | p | |
10146 | } | |
10147 | }' | |
10148 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10149 | # Check for a 64-bit object if we didn't find anything. | |
10150 | if test -z "$aix_libpath"; then | |
10151 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10152 | fi | |
10153 | fi | |
10154 | rm -f core conftest.err conftest.$ac_objext \ | |
10155 | conftest$ac_exeext conftest.$ac_ext | |
10156 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
f35db108 | 10157 | |
c915a581 JJ |
10158 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10159 | # Warning - without using the other run time loading flags, | |
10160 | # -berok will link without error, but may produce a broken library. | |
10161 | no_undefined_flag=' ${wl}-bernotok' | |
10162 | allow_undefined_flag=' ${wl}-berok' | |
10163 | if test "$with_gnu_ld" = yes; then | |
10164 | # We only use this code for GNU lds that support --whole-archive. | |
10165 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10166 | else | |
10167 | # Exported symbols can be pulled into shared objects from archives | |
10168 | whole_archive_flag_spec='$convenience' | |
10169 | fi | |
10170 | archive_cmds_need_lc=yes | |
10171 | # This is similar to how AIX traditionally builds its shared libraries. | |
10172 | 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' | |
10173 | fi | |
10174 | fi | |
10175 | ;; | |
f35db108 | 10176 | |
c915a581 JJ |
10177 | amigaos*) |
10178 | case $host_cpu in | |
10179 | powerpc) | |
10180 | # see comment about AmigaOS4 .so support | |
10181 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10182 | archive_expsym_cmds='' | |
10183 | ;; | |
10184 | m68k) | |
10185 | 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)' | |
10186 | hardcode_libdir_flag_spec='-L$libdir' | |
10187 | hardcode_minus_L=yes | |
10188 | ;; | |
10189 | esac | |
10190 | ;; | |
f35db108 | 10191 | |
c915a581 JJ |
10192 | bsdi[45]*) |
10193 | export_dynamic_flag_spec=-rdynamic | |
10194 | ;; | |
f35db108 | 10195 | |
c915a581 JJ |
10196 | cygwin* | mingw* | pw32* | cegcc*) |
10197 | # When not using gcc, we currently assume that we are using | |
10198 | # Microsoft Visual C++. | |
10199 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10200 | # no search path for DLLs. | |
10201 | hardcode_libdir_flag_spec=' ' | |
10202 | allow_undefined_flag=unsupported | |
10203 | # Tell ltmain to make .lib files, not .a files. | |
10204 | libext=lib | |
10205 | # Tell ltmain to make .dll files, not .so files. | |
10206 | shrext_cmds=".dll" | |
10207 | # FIXME: Setting linknames here is a bad hack. | |
10208 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10209 | # The linker will automatically build a .lib file if we build a DLL. | |
10210 | old_archive_from_new_cmds='true' | |
10211 | # FIXME: Should let the user specify the lib program. | |
10212 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10213 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10214 | enable_shared_with_static_runtimes=yes | |
10215 | ;; | |
f35db108 | 10216 | |
c915a581 | 10217 | darwin* | rhapsody*) |
f35db108 WM |
10218 | |
10219 | ||
c915a581 JJ |
10220 | archive_cmds_need_lc=no |
10221 | hardcode_direct=no | |
10222 | hardcode_automatic=yes | |
10223 | hardcode_shlibpath_var=unsupported | |
10224 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10225 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10226 | else | |
10227 | whole_archive_flag_spec='' | |
10228 | fi | |
10229 | link_all_deplibs=yes | |
10230 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10231 | case $cc_basename in | |
10232 | ifort*) _lt_dar_can_shared=yes ;; | |
10233 | *) _lt_dar_can_shared=$GCC ;; | |
10234 | esac | |
10235 | if test "$_lt_dar_can_shared" = "yes"; then | |
10236 | output_verbose_link_cmd=func_echo_all | |
10237 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10238 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10239 | 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}" | |
10240 | 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}" | |
f35db108 | 10241 | |
c915a581 JJ |
10242 | else |
10243 | ld_shlibs=no | |
10244 | fi | |
f35db108 | 10245 | |
c915a581 | 10246 | ;; |
f35db108 | 10247 | |
c915a581 JJ |
10248 | dgux*) |
10249 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10250 | hardcode_libdir_flag_spec='-L$libdir' | |
10251 | hardcode_shlibpath_var=no | |
10252 | ;; | |
f35db108 | 10253 | |
c915a581 JJ |
10254 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10255 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10256 | # does not break anything, and helps significantly (at the cost of a little | |
10257 | # extra space). | |
10258 | freebsd2.2*) | |
10259 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10260 | hardcode_libdir_flag_spec='-R$libdir' | |
10261 | hardcode_direct=yes | |
10262 | hardcode_shlibpath_var=no | |
10263 | ;; | |
f35db108 | 10264 | |
c915a581 JJ |
10265 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10266 | freebsd2.*) | |
10267 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10268 | hardcode_direct=yes | |
10269 | hardcode_minus_L=yes | |
10270 | hardcode_shlibpath_var=no | |
10271 | ;; | |
f35db108 | 10272 | |
c915a581 JJ |
10273 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10274 | freebsd* | dragonfly*) | |
10275 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10276 | hardcode_libdir_flag_spec='-R$libdir' | |
10277 | hardcode_direct=yes | |
10278 | hardcode_shlibpath_var=no | |
10279 | ;; | |
f35db108 | 10280 | |
c915a581 JJ |
10281 | hpux9*) |
10282 | if test "$GCC" = yes; then | |
10283 | 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' | |
10284 | else | |
10285 | 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' | |
10286 | fi | |
10287 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10288 | hardcode_libdir_separator=: | |
10289 | hardcode_direct=yes | |
f35db108 | 10290 | |
c915a581 JJ |
10291 | # hardcode_minus_L: Not really in the search PATH, |
10292 | # but as the default location of the library. | |
10293 | hardcode_minus_L=yes | |
10294 | export_dynamic_flag_spec='${wl}-E' | |
10295 | ;; | |
f35db108 | 10296 | |
c915a581 JJ |
10297 | hpux10*) |
10298 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10299 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10300 | else | |
10301 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10302 | fi | |
10303 | if test "$with_gnu_ld" = no; then | |
10304 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10305 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10306 | hardcode_libdir_separator=: | |
10307 | hardcode_direct=yes | |
10308 | hardcode_direct_absolute=yes | |
10309 | export_dynamic_flag_spec='${wl}-E' | |
10310 | # hardcode_minus_L: Not really in the search PATH, | |
10311 | # but as the default location of the library. | |
10312 | hardcode_minus_L=yes | |
10313 | fi | |
10314 | ;; | |
f35db108 | 10315 | |
c915a581 JJ |
10316 | hpux11*) |
10317 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10318 | case $host_cpu in | |
10319 | hppa*64*) | |
10320 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10321 | ;; | |
10322 | ia64*) | |
10323 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10324 | ;; | |
10325 | *) | |
10326 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10327 | ;; | |
10328 | esac | |
10329 | else | |
10330 | case $host_cpu in | |
10331 | hppa*64*) | |
10332 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10333 | ;; | |
10334 | ia64*) | |
10335 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10336 | ;; | |
10337 | *) | |
f35db108 | 10338 | |
c915a581 JJ |
10339 | # Older versions of the 11.00 compiler do not understand -b yet |
10340 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10342 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10343 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10344 | $as_echo_n "(cached) " >&6 | |
f35db108 | 10345 | else |
c915a581 JJ |
10346 | lt_cv_prog_compiler__b=no |
10347 | save_LDFLAGS="$LDFLAGS" | |
10348 | LDFLAGS="$LDFLAGS -b" | |
10349 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10350 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10351 | # The linker can only warn and ignore the option if not recognized | |
10352 | # So say no if there are warnings | |
10353 | if test -s conftest.err; then | |
10354 | # Append any errors to the config.log. | |
10355 | cat conftest.err 1>&5 | |
10356 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10357 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10358 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10359 | lt_cv_prog_compiler__b=yes | |
10360 | fi | |
10361 | else | |
10362 | lt_cv_prog_compiler__b=yes | |
10363 | fi | |
10364 | fi | |
10365 | $RM -r conftest* | |
10366 | LDFLAGS="$save_LDFLAGS" | |
f35db108 | 10367 | |
f35db108 | 10368 | fi |
c915a581 JJ |
10369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
10370 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
f35db108 | 10371 | |
c915a581 JJ |
10372 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10373 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10374 | else | |
10375 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10376 | fi | |
f35db108 | 10377 | |
c915a581 JJ |
10378 | ;; |
10379 | esac | |
10380 | fi | |
10381 | if test "$with_gnu_ld" = no; then | |
10382 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10383 | hardcode_libdir_separator=: | |
f35db108 | 10384 | |
c915a581 JJ |
10385 | case $host_cpu in |
10386 | hppa*64*|ia64*) | |
10387 | hardcode_direct=no | |
10388 | hardcode_shlibpath_var=no | |
10389 | ;; | |
10390 | *) | |
10391 | hardcode_direct=yes | |
10392 | hardcode_direct_absolute=yes | |
10393 | export_dynamic_flag_spec='${wl}-E' | |
f35db108 | 10394 | |
c915a581 JJ |
10395 | # hardcode_minus_L: Not really in the search PATH, |
10396 | # but as the default location of the library. | |
10397 | hardcode_minus_L=yes | |
10398 | ;; | |
10399 | esac | |
10400 | fi | |
10401 | ;; | |
f35db108 | 10402 | |
c915a581 JJ |
10403 | irix5* | irix6* | nonstopux*) |
10404 | if test "$GCC" = yes; then | |
10405 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10406 | # Try to use the -exported_symbol ld option, if it does not | |
10407 | # work, assume that -exports_file does not work either and | |
10408 | # implicitly export all symbols. | |
10409 | save_LDFLAGS="$LDFLAGS" | |
10410 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10412 | /* end confdefs.h. */ | |
10413 | int foo(void) {} | |
10414 | _ACEOF | |
10415 | if ac_fn_c_try_link "$LINENO"; then : | |
10416 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
f35db108 | 10417 | |
c915a581 JJ |
10418 | fi |
10419 | rm -f core conftest.err conftest.$ac_objext \ | |
10420 | conftest$ac_exeext conftest.$ac_ext | |
10421 | LDFLAGS="$save_LDFLAGS" | |
10422 | else | |
10423 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10424 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
10425 | fi | |
10426 | archive_cmds_need_lc='no' | |
10427 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10428 | hardcode_libdir_separator=: | |
10429 | inherit_rpath=yes | |
10430 | link_all_deplibs=yes | |
10431 | ;; | |
f35db108 | 10432 | |
c915a581 JJ |
10433 | netbsd*) |
10434 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10435 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10436 | else | |
10437 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10438 | fi | |
10439 | hardcode_libdir_flag_spec='-R$libdir' | |
10440 | hardcode_direct=yes | |
10441 | hardcode_shlibpath_var=no | |
10442 | ;; | |
f35db108 | 10443 | |
c915a581 JJ |
10444 | newsos6) |
10445 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10446 | hardcode_direct=yes | |
10447 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10448 | hardcode_libdir_separator=: | |
10449 | hardcode_shlibpath_var=no | |
10450 | ;; | |
f35db108 | 10451 | |
c915a581 JJ |
10452 | *nto* | *qnx*) |
10453 | ;; | |
f35db108 | 10454 | |
c915a581 JJ |
10455 | openbsd*) |
10456 | if test -f /usr/libexec/ld.so; then | |
10457 | hardcode_direct=yes | |
10458 | hardcode_shlibpath_var=no | |
10459 | hardcode_direct_absolute=yes | |
10460 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10461 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10462 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10463 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10464 | export_dynamic_flag_spec='${wl}-E' | |
10465 | else | |
10466 | case $host_os in | |
10467 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10468 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10469 | hardcode_libdir_flag_spec='-R$libdir' | |
10470 | ;; | |
10471 | *) | |
10472 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10473 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10474 | ;; | |
10475 | esac | |
10476 | fi | |
10477 | else | |
10478 | ld_shlibs=no | |
10479 | fi | |
10480 | ;; | |
f35db108 | 10481 | |
c915a581 JJ |
10482 | os2*) |
10483 | hardcode_libdir_flag_spec='-L$libdir' | |
10484 | hardcode_minus_L=yes | |
10485 | allow_undefined_flag=unsupported | |
10486 | 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' | |
10487 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10488 | ;; | |
f35db108 | 10489 | |
c915a581 JJ |
10490 | osf3*) |
10491 | if test "$GCC" = yes; then | |
10492 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10493 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10494 | else | |
10495 | allow_undefined_flag=' -expect_unresolved \*' | |
10496 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10497 | fi | |
10498 | archive_cmds_need_lc='no' | |
10499 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10500 | hardcode_libdir_separator=: | |
10501 | ;; | |
f35db108 | 10502 | |
c915a581 JJ |
10503 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10504 | if test "$GCC" = yes; then | |
10505 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10506 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10507 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10508 | else | |
10509 | allow_undefined_flag=' -expect_unresolved \*' | |
10510 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10511 | 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~ | |
10512 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
f35db108 | 10513 | |
c915a581 JJ |
10514 | # Both c and cxx compiler support -rpath directly |
10515 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10516 | fi | |
10517 | archive_cmds_need_lc='no' | |
10518 | hardcode_libdir_separator=: | |
10519 | ;; | |
f35db108 | 10520 | |
c915a581 JJ |
10521 | solaris*) |
10522 | no_undefined_flag=' -z defs' | |
10523 | if test "$GCC" = yes; then | |
10524 | wlarc='${wl}' | |
10525 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10526 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10527 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10528 | else | |
10529 | case `$CC -V 2>&1` in | |
10530 | *"Compilers 5.0"*) | |
10531 | wlarc='' | |
10532 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10533 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10534 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10535 | ;; | |
10536 | *) | |
10537 | wlarc='${wl}' | |
10538 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10539 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10540 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10541 | ;; | |
10542 | esac | |
10543 | fi | |
10544 | hardcode_libdir_flag_spec='-R$libdir' | |
10545 | hardcode_shlibpath_var=no | |
10546 | case $host_os in | |
10547 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10548 | *) | |
10549 | # The compiler driver will combine and reorder linker options, | |
10550 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10551 | # but is careful enough not to reorder. | |
10552 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10553 | if test "$GCC" = yes; then | |
10554 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10555 | else | |
10556 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10557 | fi | |
10558 | ;; | |
10559 | esac | |
10560 | link_all_deplibs=yes | |
10561 | ;; | |
f35db108 | 10562 | |
c915a581 JJ |
10563 | sunos4*) |
10564 | if test "x$host_vendor" = xsequent; then | |
10565 | # Use $CC to link under sequent, because it throws in some extra .o | |
10566 | # files that make .init and .fini sections work. | |
10567 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10568 | else | |
10569 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10570 | fi | |
10571 | hardcode_libdir_flag_spec='-L$libdir' | |
10572 | hardcode_direct=yes | |
10573 | hardcode_minus_L=yes | |
10574 | hardcode_shlibpath_var=no | |
10575 | ;; | |
f35db108 | 10576 | |
c915a581 JJ |
10577 | sysv4) |
10578 | case $host_vendor in | |
10579 | sni) | |
10580 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10581 | hardcode_direct=yes # is this really true??? | |
10582 | ;; | |
10583 | siemens) | |
10584 | ## LD is ld it makes a PLAMLIB | |
10585 | ## CC just makes a GrossModule. | |
10586 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10587 | reload_cmds='$CC -r -o $output$reload_objs' | |
10588 | hardcode_direct=no | |
10589 | ;; | |
10590 | motorola) | |
10591 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10592 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10593 | ;; | |
10594 | esac | |
10595 | runpath_var='LD_RUN_PATH' | |
10596 | hardcode_shlibpath_var=no | |
10597 | ;; | |
f35db108 | 10598 | |
c915a581 JJ |
10599 | sysv4.3*) |
10600 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10601 | hardcode_shlibpath_var=no | |
10602 | export_dynamic_flag_spec='-Bexport' | |
10603 | ;; | |
f35db108 | 10604 | |
c915a581 JJ |
10605 | sysv4*MP*) |
10606 | if test -d /usr/nec; then | |
10607 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10608 | hardcode_shlibpath_var=no | |
10609 | runpath_var=LD_RUN_PATH | |
10610 | hardcode_runpath_var=yes | |
10611 | ld_shlibs=yes | |
10612 | fi | |
10613 | ;; | |
f35db108 | 10614 | |
c915a581 JJ |
10615 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10616 | no_undefined_flag='${wl}-z,text' | |
10617 | archive_cmds_need_lc=no | |
10618 | hardcode_shlibpath_var=no | |
10619 | runpath_var='LD_RUN_PATH' | |
f35db108 | 10620 | |
c915a581 JJ |
10621 | if test "$GCC" = yes; then |
10622 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10623 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10624 | else | |
10625 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10626 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10627 | fi | |
10628 | ;; | |
f35db108 | 10629 | |
c915a581 JJ |
10630 | sysv5* | sco3.2v5* | sco5v6*) |
10631 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10632 | # link with -lc, and that would cause any symbols used from libc to | |
10633 | # always be unresolved, which means just about no library would | |
10634 | # ever link correctly. If we're not using GNU ld we use -z text | |
10635 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10636 | # as -z defs. | |
10637 | no_undefined_flag='${wl}-z,text' | |
10638 | allow_undefined_flag='${wl}-z,nodefs' | |
10639 | archive_cmds_need_lc=no | |
10640 | hardcode_shlibpath_var=no | |
10641 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10642 | hardcode_libdir_separator=':' | |
10643 | link_all_deplibs=yes | |
10644 | export_dynamic_flag_spec='${wl}-Bexport' | |
10645 | runpath_var='LD_RUN_PATH' | |
f35db108 | 10646 | |
c915a581 JJ |
10647 | if test "$GCC" = yes; then |
10648 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10649 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10650 | else | |
10651 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10652 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10653 | fi | |
10654 | ;; | |
f35db108 | 10655 | |
c915a581 JJ |
10656 | uts4*) |
10657 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10658 | hardcode_libdir_flag_spec='-L$libdir' | |
10659 | hardcode_shlibpath_var=no | |
10660 | ;; | |
f35db108 | 10661 | |
c915a581 JJ |
10662 | *) |
10663 | ld_shlibs=no | |
10664 | ;; | |
10665 | esac | |
f35db108 | 10666 | |
c915a581 JJ |
10667 | if test x$host_vendor = xsni; then |
10668 | case $host in | |
10669 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10670 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10671 | ;; | |
10672 | esac | |
10673 | fi | |
10674 | fi | |
f35db108 | 10675 | |
c915a581 JJ |
10676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10677 | $as_echo "$ld_shlibs" >&6; } | |
10678 | test "$ld_shlibs" = no && can_build_shared=no | |
f35db108 | 10679 | |
c915a581 | 10680 | with_gnu_ld=$with_gnu_ld |
f35db108 | 10681 | |
f35db108 | 10682 | |
f35db108 | 10683 | |
f35db108 | 10684 | |
f35db108 | 10685 | |
f35db108 | 10686 | |
f35db108 | 10687 | |
f35db108 | 10688 | |
f35db108 | 10689 | |
f35db108 | 10690 | |
f35db108 | 10691 | |
f35db108 | 10692 | |
f35db108 | 10693 | |
f35db108 | 10694 | |
f35db108 | 10695 | |
c915a581 JJ |
10696 | # |
10697 | # Do we need to explicitly link libc? | |
10698 | # | |
10699 | case "x$archive_cmds_need_lc" in | |
10700 | x|xyes) | |
10701 | # Assume -lc should be added | |
10702 | archive_cmds_need_lc=yes | |
10703 | ||
10704 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10705 | case $archive_cmds in | |
10706 | *'~'*) | |
10707 | # FIXME: we may have to deal with multi-command sequences. | |
10708 | ;; | |
10709 | '$CC '*) | |
10710 | # Test whether the compiler implicitly links with -lc since on some | |
10711 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10712 | # to ld, don't add -lc before -lgcc. | |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10714 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10715 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10716 | $as_echo_n "(cached) " >&6 | |
10717 | else | |
10718 | $RM conftest* | |
10719 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10720 | ||
10721 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10722 | (eval $ac_compile) 2>&5 | |
f35db108 WM |
10723 | ac_status=$? |
10724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c915a581 JJ |
10725 | test $ac_status = 0; } 2>conftest.err; then |
10726 | soname=conftest | |
10727 | lib=conftest | |
10728 | libobjs=conftest.$ac_objext | |
10729 | deplibs= | |
10730 | wl=$lt_prog_compiler_wl | |
10731 | pic_flag=$lt_prog_compiler_pic | |
10732 | compiler_flags=-v | |
10733 | linker_flags=-v | |
10734 | verstring= | |
10735 | output_objdir=. | |
10736 | libname=conftest | |
10737 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10738 | allow_undefined_flag= | |
10739 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10740 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10741 | ac_status=$? | |
10742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10743 | test $ac_status = 0; } | |
10744 | then | |
10745 | lt_cv_archive_cmds_need_lc=no | |
10746 | else | |
10747 | lt_cv_archive_cmds_need_lc=yes | |
10748 | fi | |
10749 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10750 | else | |
10751 | cat conftest.err 1>&5 | |
10752 | fi | |
10753 | $RM conftest* | |
10754 | ||
10755 | fi | |
10756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10757 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10758 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10759 | ;; | |
f35db108 | 10760 | esac |
f35db108 | 10761 | fi |
c915a581 JJ |
10762 | ;; |
10763 | esac | |
f35db108 WM |
10764 | |
10765 | ||
f35db108 | 10766 | |
f35db108 | 10767 | |
f35db108 | 10768 | |
f35db108 | 10769 | |
f35db108 | 10770 | |
f35db108 | 10771 | |
f35db108 | 10772 | |
f35db108 | 10773 | |
f35db108 | 10774 | |
f35db108 WM |
10775 | |
10776 | ||
f35db108 | 10777 | |
f35db108 | 10778 | |
f35db108 | 10779 | |
f35db108 WM |
10780 | |
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
f35db108 WM |
10797 | |
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
f35db108 | 10809 | |
f35db108 | 10810 | |
f35db108 | 10811 | |
f35db108 | 10812 | |
f35db108 WM |
10813 | |
10814 | ||
10815 | ||
10816 | ||
f35db108 | 10817 | |
f35db108 | 10818 | |
f35db108 | 10819 | |
f35db108 | 10820 | |
f35db108 | 10821 | |
f35db108 | 10822 | |
f35db108 | 10823 | |
f35db108 | 10824 | |
f35db108 | 10825 | |
f35db108 | 10826 | |
f35db108 | 10827 | |
f35db108 | 10828 | |
f35db108 | 10829 | |
f35db108 | 10830 | |
f35db108 | 10831 | |
f35db108 | 10832 | |
f35db108 | 10833 | |
f35db108 | 10834 | |
f35db108 | 10835 | |
f35db108 | 10836 | |
f35db108 WM |
10837 | |
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
f35db108 | 10843 | |
f35db108 | 10844 | |
f35db108 WM |
10845 | |
10846 | ||
f35db108 | 10847 | |
f35db108 WM |
10848 | |
10849 | ||
f35db108 WM |
10850 | |
10851 | ||
f35db108 | 10852 | |
f35db108 WM |
10853 | |
10854 | ||
10855 | ||
f35db108 | 10856 | |
f35db108 | 10857 | |
f35db108 WM |
10858 | |
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
10864 | ||
f35db108 | 10865 | |
f35db108 | 10866 | |
f35db108 | 10867 | |
f35db108 | 10868 | |
f35db108 | 10869 | |
f35db108 | 10870 | |
f35db108 | 10871 | |
f35db108 | 10872 | |
f35db108 | 10873 | |
f35db108 | 10874 | |
f35db108 | 10875 | |
f35db108 | 10876 | |
f35db108 | 10877 | |
f35db108 | 10878 | |
f35db108 | 10879 | |
f35db108 | 10880 | |
f35db108 | 10881 | |
f35db108 | 10882 | |
f35db108 | 10883 | |
f35db108 | 10884 | |
f35db108 | 10885 | |
f35db108 | 10886 | |
f35db108 | 10887 | |
f35db108 | 10888 | |
f35db108 | 10889 | |
a2479b3d | 10890 | |
f35db108 WM |
10891 | |
10892 | ||
f35db108 | 10893 | |
f35db108 | 10894 | |
f35db108 | 10895 | |
f35db108 | 10896 | |
f35db108 | 10897 | |
f35db108 | 10898 | |
f35db108 | 10899 | |
f35db108 | 10900 | |
f35db108 | 10901 | |
f35db108 | 10902 | |
f35db108 | 10903 | |
f35db108 | 10904 | |
f35db108 | 10905 | |
f35db108 | 10906 | |
f35db108 | 10907 | |
f35db108 | 10908 | |
f35db108 | 10909 | |
f35db108 | 10910 | |
f35db108 | 10911 | |
f35db108 | 10912 | |
f35db108 | 10913 | |
f35db108 | 10914 | |
f35db108 | 10915 | |
f35db108 | 10916 | |
f35db108 | 10917 | |
f35db108 | 10918 | |
f35db108 | 10919 | |
f35db108 | 10920 | |
c915a581 JJ |
10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10922 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
f35db108 | 10923 | |
c915a581 JJ |
10924 | if test "$GCC" = yes; then |
10925 | case $host_os in | |
10926 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10927 | *) lt_awk_arg="/^libraries:/" ;; | |
10928 | esac | |
10929 | case $host_os in | |
10930 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10931 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10932 | esac | |
10933 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10934 | case $lt_search_path_spec in | |
10935 | *\;*) | |
10936 | # if the path contains ";" then we assume it to be the separator | |
10937 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10938 | # assumed that no part of a normal pathname contains ";" but that should | |
10939 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10940 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10941 | ;; | |
10942 | *) | |
10943 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10944 | ;; | |
10945 | esac | |
10946 | # Ok, now we have the path, separated by spaces, we can step through it | |
10947 | # and add multilib dir if necessary. | |
10948 | lt_tmp_lt_search_path_spec= | |
10949 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10950 | for lt_sys_path in $lt_search_path_spec; do | |
10951 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10952 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10953 | else | |
10954 | test -d "$lt_sys_path" && \ | |
10955 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10956 | fi | |
10957 | done | |
10958 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10959 | BEGIN {RS=" "; FS="/|\n";} { | |
10960 | lt_foo=""; | |
10961 | lt_count=0; | |
10962 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10963 | if ($lt_i != "" && $lt_i != ".") { | |
10964 | if ($lt_i == "..") { | |
10965 | lt_count++; | |
10966 | } else { | |
10967 | if (lt_count == 0) { | |
10968 | lt_foo="/" $lt_i lt_foo; | |
10969 | } else { | |
10970 | lt_count--; | |
10971 | } | |
10972 | } | |
10973 | } | |
10974 | } | |
10975 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10976 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10977 | }'` | |
10978 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10979 | # for these hosts. | |
10980 | case $host_os in | |
10981 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10982 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10983 | esac | |
10984 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10985 | else | |
10986 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10987 | fi | |
10988 | library_names_spec= | |
10989 | libname_spec='lib$name' | |
10990 | soname_spec= | |
10991 | shrext_cmds=".so" | |
10992 | postinstall_cmds= | |
10993 | postuninstall_cmds= | |
10994 | finish_cmds= | |
10995 | finish_eval= | |
10996 | shlibpath_var= | |
10997 | shlibpath_overrides_runpath=unknown | |
10998 | version_type=none | |
10999 | dynamic_linker="$host_os ld.so" | |
11000 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11001 | need_lib_prefix=unknown | |
11002 | hardcode_into_libs=no | |
f35db108 | 11003 | |
c915a581 JJ |
11004 | # when you set need_version to no, make sure it does not cause -set_version |
11005 | # flags to be left without arguments | |
11006 | need_version=unknown | |
f35db108 | 11007 | |
c915a581 JJ |
11008 | case $host_os in |
11009 | aix3*) | |
11010 | version_type=linux | |
11011 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11012 | shlibpath_var=LIBPATH | |
f35db108 | 11013 | |
c915a581 JJ |
11014 | # AIX 3 has no versioning support, so we append a major version to the name. |
11015 | soname_spec='${libname}${release}${shared_ext}$major' | |
11016 | ;; | |
f35db108 | 11017 | |
c915a581 JJ |
11018 | aix[4-9]*) |
11019 | version_type=linux | |
11020 | need_lib_prefix=no | |
11021 | need_version=no | |
11022 | hardcode_into_libs=yes | |
11023 | if test "$host_cpu" = ia64; then | |
11024 | # AIX 5 supports IA64 | |
11025 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11026 | shlibpath_var=LD_LIBRARY_PATH | |
11027 | else | |
11028 | # With GCC up to 2.95.x, collect2 would create an import file | |
11029 | # for dependence libraries. The import file would start with | |
11030 | # the line `#! .'. This would cause the generated library to | |
11031 | # depend on `.', always an invalid library. This was fixed in | |
11032 | # development snapshots of GCC prior to 3.0. | |
11033 | case $host_os in | |
11034 | aix4 | aix4.[01] | aix4.[01].*) | |
11035 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11036 | echo ' yes ' | |
11037 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11038 | : | |
11039 | else | |
11040 | can_build_shared=no | |
11041 | fi | |
11042 | ;; | |
11043 | esac | |
11044 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11045 | # soname into executable. Probably we can add versioning support to | |
11046 | # collect2, so additional links can be useful in future. | |
11047 | if test "$aix_use_runtimelinking" = yes; then | |
11048 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11049 | # instead of lib<name>.a to let people know that these are not | |
11050 | # typical AIX shared libraries. | |
11051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11052 | else | |
11053 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11054 | # and later when we are not doing run time linking. | |
11055 | library_names_spec='${libname}${release}.a $libname.a' | |
11056 | soname_spec='${libname}${release}${shared_ext}$major' | |
11057 | fi | |
11058 | shlibpath_var=LIBPATH | |
11059 | fi | |
11060 | ;; | |
f35db108 | 11061 | |
c915a581 JJ |
11062 | amigaos*) |
11063 | case $host_cpu in | |
11064 | powerpc) | |
11065 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11066 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11068 | ;; | |
11069 | m68k) | |
11070 | library_names_spec='$libname.ixlibrary $libname.a' | |
11071 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11072 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
11073 | ;; | |
11074 | esac | |
11075 | ;; | |
f35db108 | 11076 | |
c915a581 JJ |
11077 | beos*) |
11078 | library_names_spec='${libname}${shared_ext}' | |
11079 | dynamic_linker="$host_os ld.so" | |
11080 | shlibpath_var=LIBRARY_PATH | |
11081 | ;; | |
f35db108 | 11082 | |
c915a581 JJ |
11083 | bsdi[45]*) |
11084 | version_type=linux | |
11085 | need_version=no | |
11086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11087 | soname_spec='${libname}${release}${shared_ext}$major' | |
11088 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11089 | shlibpath_var=LD_LIBRARY_PATH | |
11090 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11091 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11092 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11093 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11094 | # libtool to hard-code these into programs | |
11095 | ;; | |
f35db108 | 11096 | |
c915a581 JJ |
11097 | cygwin* | mingw* | pw32* | cegcc*) |
11098 | version_type=windows | |
11099 | shrext_cmds=".dll" | |
11100 | need_version=no | |
11101 | need_lib_prefix=no | |
f35db108 | 11102 | |
c915a581 JJ |
11103 | case $GCC,$host_os in |
11104 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11105 | library_names_spec='$libname.dll.a' | |
11106 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11107 | postinstall_cmds='base_file=`basename \${file}`~ | |
11108 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11109 | dldir=$destdir/`dirname \$dlpath`~ | |
11110 | test -d \$dldir || mkdir -p \$dldir~ | |
11111 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11112 | chmod a+x \$dldir/$dlname~ | |
11113 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11114 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11115 | fi' | |
11116 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11117 | dlpath=$dir/\$dldll~ | |
11118 | $RM \$dlpath' | |
11119 | shlibpath_overrides_runpath=yes | |
f35db108 | 11120 | |
c915a581 JJ |
11121 | case $host_os in |
11122 | cygwin*) | |
11123 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11124 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 | 11125 | |
c915a581 JJ |
11126 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11127 | ;; | |
11128 | mingw* | cegcc*) | |
11129 | # MinGW DLLs use traditional 'lib' prefix | |
11130 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11131 | ;; | |
11132 | pw32*) | |
11133 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11134 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11135 | ;; | |
11136 | esac | |
11137 | ;; | |
f35db108 | 11138 | |
c915a581 JJ |
11139 | *) |
11140 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11141 | ;; | |
11142 | esac | |
11143 | dynamic_linker='Win32 ld.exe' | |
11144 | # FIXME: first we should search . and the directory the executable is in | |
11145 | shlibpath_var=PATH | |
11146 | ;; | |
f35db108 | 11147 | |
c915a581 JJ |
11148 | darwin* | rhapsody*) |
11149 | dynamic_linker="$host_os dyld" | |
11150 | version_type=darwin | |
11151 | need_lib_prefix=no | |
11152 | need_version=no | |
11153 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11154 | soname_spec='${libname}${release}${major}$shared_ext' | |
11155 | shlibpath_overrides_runpath=yes | |
11156 | shlibpath_var=DYLD_LIBRARY_PATH | |
11157 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
f35db108 | 11158 | |
c915a581 JJ |
11159 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11160 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11161 | ;; | |
f35db108 | 11162 | |
c915a581 JJ |
11163 | dgux*) |
11164 | version_type=linux | |
11165 | need_lib_prefix=no | |
11166 | need_version=no | |
11167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11168 | soname_spec='${libname}${release}${shared_ext}$major' | |
11169 | shlibpath_var=LD_LIBRARY_PATH | |
11170 | ;; | |
f35db108 | 11171 | |
c915a581 JJ |
11172 | freebsd* | dragonfly*) |
11173 | # DragonFly does not have aout. When/if they implement a new | |
11174 | # versioning mechanism, adjust this. | |
11175 | if test -x /usr/bin/objformat; then | |
11176 | objformat=`/usr/bin/objformat` | |
11177 | else | |
11178 | case $host_os in | |
11179 | freebsd[23].*) objformat=aout ;; | |
11180 | *) objformat=elf ;; | |
11181 | esac | |
11182 | fi | |
11183 | version_type=freebsd-$objformat | |
11184 | case $version_type in | |
11185 | freebsd-elf*) | |
11186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11187 | need_version=no | |
11188 | need_lib_prefix=no | |
f35db108 | 11189 | ;; |
c915a581 JJ |
11190 | freebsd-*) |
11191 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11192 | need_version=yes | |
f35db108 | 11193 | ;; |
c915a581 JJ |
11194 | esac |
11195 | shlibpath_var=LD_LIBRARY_PATH | |
11196 | case $host_os in | |
11197 | freebsd2.*) | |
11198 | shlibpath_overrides_runpath=yes | |
11199 | ;; | |
11200 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11201 | shlibpath_overrides_runpath=yes | |
11202 | hardcode_into_libs=yes | |
11203 | ;; | |
11204 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11205 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11206 | shlibpath_overrides_runpath=no | |
11207 | hardcode_into_libs=yes | |
11208 | ;; | |
11209 | *) # from 4.6 on, and DragonFly | |
11210 | shlibpath_overrides_runpath=yes | |
11211 | hardcode_into_libs=yes | |
11212 | ;; | |
11213 | esac | |
11214 | ;; | |
f35db108 | 11215 | |
c915a581 JJ |
11216 | gnu*) |
11217 | version_type=linux | |
11218 | need_lib_prefix=no | |
11219 | need_version=no | |
11220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11221 | soname_spec='${libname}${release}${shared_ext}$major' | |
11222 | shlibpath_var=LD_LIBRARY_PATH | |
11223 | hardcode_into_libs=yes | |
11224 | ;; | |
f35db108 | 11225 | |
c915a581 JJ |
11226 | haiku*) |
11227 | version_type=linux | |
11228 | need_lib_prefix=no | |
11229 | need_version=no | |
11230 | dynamic_linker="$host_os runtime_loader" | |
11231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11232 | soname_spec='${libname}${release}${shared_ext}$major' | |
11233 | shlibpath_var=LIBRARY_PATH | |
11234 | shlibpath_overrides_runpath=yes | |
11235 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
11236 | hardcode_into_libs=yes | |
11237 | ;; | |
f35db108 | 11238 | |
c915a581 JJ |
11239 | hpux9* | hpux10* | hpux11*) |
11240 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11241 | # link against other versions. | |
11242 | version_type=sunos | |
11243 | need_lib_prefix=no | |
11244 | need_version=no | |
11245 | case $host_cpu in | |
11246 | ia64*) | |
11247 | shrext_cmds='.so' | |
11248 | hardcode_into_libs=yes | |
11249 | dynamic_linker="$host_os dld.so" | |
11250 | shlibpath_var=LD_LIBRARY_PATH | |
11251 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11253 | soname_spec='${libname}${release}${shared_ext}$major' | |
11254 | if test "X$HPUX_IA64_MODE" = X32; then | |
11255 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11256 | else | |
11257 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11258 | fi | |
11259 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11260 | ;; | |
11261 | hppa*64*) | |
11262 | shrext_cmds='.sl' | |
11263 | hardcode_into_libs=yes | |
11264 | dynamic_linker="$host_os dld.sl" | |
11265 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11266 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11268 | soname_spec='${libname}${release}${shared_ext}$major' | |
11269 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11270 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11271 | ;; | |
11272 | *) | |
11273 | shrext_cmds='.sl' | |
11274 | dynamic_linker="$host_os dld.sl" | |
11275 | shlibpath_var=SHLIB_PATH | |
11276 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11278 | soname_spec='${libname}${release}${shared_ext}$major' | |
11279 | ;; | |
11280 | esac | |
11281 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11282 | postinstall_cmds='chmod 555 $lib' | |
11283 | # or fails outright, so override atomically: | |
11284 | install_override_mode=555 | |
11285 | ;; | |
f35db108 | 11286 | |
c915a581 JJ |
11287 | interix[3-9]*) |
11288 | version_type=linux | |
11289 | need_lib_prefix=no | |
11290 | need_version=no | |
11291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11292 | soname_spec='${libname}${release}${shared_ext}$major' | |
11293 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11294 | shlibpath_var=LD_LIBRARY_PATH | |
11295 | shlibpath_overrides_runpath=no | |
11296 | hardcode_into_libs=yes | |
11297 | ;; | |
f35db108 | 11298 | |
c915a581 JJ |
11299 | irix5* | irix6* | nonstopux*) |
11300 | case $host_os in | |
11301 | nonstopux*) version_type=nonstopux ;; | |
11302 | *) | |
11303 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11304 | version_type=linux | |
11305 | else | |
11306 | version_type=irix | |
11307 | fi ;; | |
11308 | esac | |
11309 | need_lib_prefix=no | |
11310 | need_version=no | |
11311 | soname_spec='${libname}${release}${shared_ext}$major' | |
11312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11313 | case $host_os in | |
11314 | irix5* | nonstopux*) | |
11315 | libsuff= shlibsuff= | |
11316 | ;; | |
11317 | *) | |
11318 | case $LD in # libtool.m4 will add one of these switches to LD | |
11319 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11320 | libsuff= shlibsuff= libmagic=32-bit;; | |
11321 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11322 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11323 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11324 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11325 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11326 | esac | |
11327 | ;; | |
11328 | esac | |
11329 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11330 | shlibpath_overrides_runpath=no | |
11331 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11332 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11333 | hardcode_into_libs=yes | |
11334 | ;; | |
f35db108 | 11335 | |
c915a581 JJ |
11336 | # No shared lib support for Linux oldld, aout, or coff. |
11337 | linux*oldld* | linux*aout* | linux*coff*) | |
11338 | dynamic_linker=no | |
11339 | ;; | |
f35db108 | 11340 | |
c915a581 JJ |
11341 | # This must be Linux ELF. |
11342 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11343 | version_type=linux | |
11344 | need_lib_prefix=no | |
11345 | need_version=no | |
11346 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11347 | soname_spec='${libname}${release}${shared_ext}$major' | |
11348 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11349 | shlibpath_var=LD_LIBRARY_PATH | |
11350 | shlibpath_overrides_runpath=no | |
f35db108 | 11351 | |
c915a581 JJ |
11352 | # Some binutils ld are patched to set DT_RUNPATH |
11353 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
11354 | $as_echo_n "(cached) " >&6 | |
11355 | else | |
11356 | lt_cv_shlibpath_overrides_runpath=no | |
11357 | save_LDFLAGS=$LDFLAGS | |
11358 | save_libdir=$libdir | |
11359 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11360 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11362 | /* end confdefs.h. */ | |
f35db108 | 11363 | |
c915a581 JJ |
11364 | int |
11365 | main () | |
11366 | { | |
f35db108 | 11367 | |
c915a581 JJ |
11368 | ; |
11369 | return 0; | |
11370 | } | |
11371 | _ACEOF | |
11372 | if ac_fn_c_try_link "$LINENO"; then : | |
11373 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11374 | lt_cv_shlibpath_overrides_runpath=yes | |
11375 | fi | |
11376 | fi | |
11377 | rm -f core conftest.err conftest.$ac_objext \ | |
11378 | conftest$ac_exeext conftest.$ac_ext | |
11379 | LDFLAGS=$save_LDFLAGS | |
11380 | libdir=$save_libdir | |
f35db108 | 11381 | |
c915a581 | 11382 | fi |
f35db108 | 11383 | |
c915a581 | 11384 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
f35db108 | 11385 | |
c915a581 JJ |
11386 | # This implies no fast_install, which is unacceptable. |
11387 | # Some rework will be needed to allow for fast_install | |
11388 | # before this can be enabled. | |
11389 | hardcode_into_libs=yes | |
f35db108 | 11390 | |
c915a581 JJ |
11391 | # Append ld.so.conf contents to the search path |
11392 | if test -f /etc/ld.so.conf; then | |
11393 | 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;s/"//g;/^$/d' | tr '\n' ' '` | |
11394 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11395 | fi | |
f35db108 | 11396 | |
c915a581 JJ |
11397 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11398 | # powerpc, because MkLinux only supported shared libraries with the | |
11399 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11400 | # most powerpc-linux boxes support dynamic linking these days and | |
11401 | # people can always --disable-shared, the test was removed, and we | |
11402 | # assume the GNU/Linux dynamic linker is in use. | |
11403 | dynamic_linker='GNU/Linux ld.so' | |
11404 | ;; | |
f35db108 | 11405 | |
c915a581 JJ |
11406 | netbsd*) |
11407 | version_type=sunos | |
11408 | need_lib_prefix=no | |
11409 | need_version=no | |
11410 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11413 | dynamic_linker='NetBSD (a.out) ld.so' | |
11414 | else | |
11415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11416 | soname_spec='${libname}${release}${shared_ext}$major' | |
11417 | dynamic_linker='NetBSD ld.elf_so' | |
11418 | fi | |
11419 | shlibpath_var=LD_LIBRARY_PATH | |
11420 | shlibpath_overrides_runpath=yes | |
11421 | hardcode_into_libs=yes | |
f35db108 WM |
11422 | ;; |
11423 | ||
c915a581 JJ |
11424 | newsos6) |
11425 | version_type=linux | |
11426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11427 | shlibpath_var=LD_LIBRARY_PATH | |
11428 | shlibpath_overrides_runpath=yes | |
11429 | ;; | |
f35db108 | 11430 | |
c915a581 JJ |
11431 | *nto* | *qnx*) |
11432 | version_type=qnx | |
11433 | need_lib_prefix=no | |
11434 | need_version=no | |
11435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11436 | soname_spec='${libname}${release}${shared_ext}$major' | |
11437 | shlibpath_var=LD_LIBRARY_PATH | |
11438 | shlibpath_overrides_runpath=no | |
11439 | hardcode_into_libs=yes | |
11440 | dynamic_linker='ldqnx.so' | |
11441 | ;; | |
f35db108 | 11442 | |
c915a581 JJ |
11443 | openbsd*) |
11444 | version_type=sunos | |
11445 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11446 | need_lib_prefix=no | |
11447 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11448 | case $host_os in | |
11449 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11450 | *) need_version=no ;; | |
f35db108 | 11451 | esac |
c915a581 JJ |
11452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11453 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11454 | shlibpath_var=LD_LIBRARY_PATH | |
11455 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11456 | case $host_os in | |
11457 | openbsd2.[89] | openbsd2.[89].*) | |
11458 | shlibpath_overrides_runpath=no | |
11459 | ;; | |
11460 | *) | |
11461 | shlibpath_overrides_runpath=yes | |
11462 | ;; | |
11463 | esac | |
11464 | else | |
11465 | shlibpath_overrides_runpath=yes | |
11466 | fi | |
11467 | ;; | |
11468 | ||
11469 | os2*) | |
11470 | libname_spec='$name' | |
11471 | shrext_cmds=".dll" | |
11472 | need_lib_prefix=no | |
11473 | library_names_spec='$libname${shared_ext} $libname.a' | |
11474 | dynamic_linker='OS/2 ld.exe' | |
11475 | shlibpath_var=LIBPATH | |
11476 | ;; | |
11477 | ||
11478 | osf3* | osf4* | osf5*) | |
11479 | version_type=osf | |
11480 | need_lib_prefix=no | |
11481 | need_version=no | |
11482 | soname_spec='${libname}${release}${shared_ext}$major' | |
11483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11484 | shlibpath_var=LD_LIBRARY_PATH | |
11485 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11486 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11487 | ;; | |
11488 | ||
11489 | rdos*) | |
11490 | dynamic_linker=no | |
f35db108 WM |
11491 | ;; |
11492 | ||
11493 | solaris*) | |
c915a581 JJ |
11494 | version_type=linux |
11495 | need_lib_prefix=no | |
11496 | need_version=no | |
11497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11498 | soname_spec='${libname}${release}${shared_ext}$major' | |
11499 | shlibpath_var=LD_LIBRARY_PATH | |
11500 | shlibpath_overrides_runpath=yes | |
11501 | hardcode_into_libs=yes | |
11502 | # ldd complains unless libraries are executable | |
11503 | postinstall_cmds='chmod +x $lib' | |
11504 | ;; | |
11505 | ||
11506 | sunos4*) | |
11507 | version_type=sunos | |
11508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11509 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11510 | shlibpath_var=LD_LIBRARY_PATH | |
11511 | shlibpath_overrides_runpath=yes | |
11512 | if test "$with_gnu_ld" = yes; then | |
11513 | need_lib_prefix=no | |
11514 | fi | |
11515 | need_version=yes | |
11516 | ;; | |
11517 | ||
11518 | sysv4 | sysv4.3*) | |
11519 | version_type=linux | |
11520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11521 | soname_spec='${libname}${release}${shared_ext}$major' | |
11522 | shlibpath_var=LD_LIBRARY_PATH | |
11523 | case $host_vendor in | |
11524 | sni) | |
11525 | shlibpath_overrides_runpath=no | |
11526 | need_lib_prefix=no | |
11527 | runpath_var=LD_RUN_PATH | |
11528 | ;; | |
11529 | siemens) | |
11530 | need_lib_prefix=no | |
11531 | ;; | |
11532 | motorola) | |
11533 | need_lib_prefix=no | |
11534 | need_version=no | |
11535 | shlibpath_overrides_runpath=no | |
11536 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
f35db108 | 11537 | ;; |
c915a581 JJ |
11538 | esac |
11539 | ;; | |
11540 | ||
11541 | sysv4*MP*) | |
11542 | if test -d /usr/nec ;then | |
11543 | version_type=linux | |
11544 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11545 | soname_spec='$libname${shared_ext}.$major' | |
11546 | shlibpath_var=LD_LIBRARY_PATH | |
11547 | fi | |
11548 | ;; | |
11549 | ||
11550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11551 | version_type=freebsd-elf | |
11552 | need_lib_prefix=no | |
11553 | need_version=no | |
11554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11555 | soname_spec='${libname}${release}${shared_ext}$major' | |
11556 | shlibpath_var=LD_LIBRARY_PATH | |
11557 | shlibpath_overrides_runpath=yes | |
11558 | hardcode_into_libs=yes | |
11559 | if test "$with_gnu_ld" = yes; then | |
11560 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11561 | else | |
11562 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11563 | case $host_os in | |
11564 | sco3.2v5*) | |
11565 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11566 | ;; | |
f35db108 | 11567 | esac |
c915a581 JJ |
11568 | fi |
11569 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11570 | ;; | |
f35db108 | 11571 | |
c915a581 JJ |
11572 | tpf*) |
11573 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11574 | version_type=linux | |
11575 | need_lib_prefix=no | |
11576 | need_version=no | |
11577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11578 | shlibpath_var=LD_LIBRARY_PATH | |
11579 | shlibpath_overrides_runpath=no | |
11580 | hardcode_into_libs=yes | |
f35db108 | 11581 | ;; |
f35db108 | 11582 | |
c915a581 JJ |
11583 | uts4*) |
11584 | version_type=linux | |
11585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11586 | soname_spec='${libname}${release}${shared_ext}$major' | |
11587 | shlibpath_var=LD_LIBRARY_PATH | |
11588 | ;; | |
f35db108 | 11589 | |
c915a581 JJ |
11590 | *) |
11591 | dynamic_linker=no | |
11592 | ;; | |
f35db108 | 11593 | esac |
c915a581 JJ |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11595 | $as_echo "$dynamic_linker" >&6; } | |
11596 | test "$dynamic_linker" = no && can_build_shared=no | |
11597 | ||
11598 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11599 | if test "$GCC" = yes; then | |
11600 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
f35db108 WM |
11601 | fi |
11602 | ||
c915a581 JJ |
11603 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11604 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11605 | fi | |
11606 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11607 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11608 | fi | |
f35db108 WM |
11609 | |
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
f35db108 WM |
11639 | |
11640 | ||
c915a581 JJ |
11641 | |
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11702 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11703 | hardcode_action= | |
11704 | if test -n "$hardcode_libdir_flag_spec" || | |
11705 | test -n "$runpath_var" || | |
11706 | test "X$hardcode_automatic" = "Xyes" ; then | |
11707 | ||
11708 | # We can hardcode non-existent directories. | |
11709 | if test "$hardcode_direct" != no && | |
11710 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11711 | # have to relink, otherwise we might link with an installed library | |
11712 | # when we should be linking with a yet-to-be-installed one | |
11713 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11714 | test "$hardcode_minus_L" != no; then | |
11715 | # Linking always hardcodes the temporary library directory. | |
11716 | hardcode_action=relink | |
11717 | else | |
11718 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11719 | hardcode_action=immediate | |
11720 | fi | |
11721 | else | |
11722 | # We cannot hardcode anything, or else we can only hardcode existing | |
11723 | # directories. | |
11724 | hardcode_action=unsupported | |
11725 | fi | |
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11727 | $as_echo "$hardcode_action" >&6; } | |
11728 | ||
11729 | if test "$hardcode_action" = relink || | |
11730 | test "$inherit_rpath" = yes; then | |
11731 | # Fast installation is not supported | |
11732 | enable_fast_install=no | |
11733 | elif test "$shlibpath_overrides_runpath" = yes || | |
11734 | test "$enable_shared" = no; then | |
11735 | # Fast installation is not necessary | |
11736 | enable_fast_install=needless | |
11737 | fi | |
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | if test "x$enable_dlopen" != xyes; then | |
11745 | enable_dlopen=unknown | |
11746 | enable_dlopen_self=unknown | |
11747 | enable_dlopen_self_static=unknown | |
11748 | else | |
11749 | lt_cv_dlopen=no | |
11750 | lt_cv_dlopen_libs= | |
11751 | ||
11752 | case $host_os in | |
11753 | beos*) | |
11754 | lt_cv_dlopen="load_add_on" | |
11755 | lt_cv_dlopen_libs= | |
11756 | lt_cv_dlopen_self=yes | |
11757 | ;; | |
11758 | ||
11759 | mingw* | pw32* | cegcc*) | |
11760 | lt_cv_dlopen="LoadLibrary" | |
11761 | lt_cv_dlopen_libs= | |
11762 | ;; | |
11763 | ||
11764 | cygwin*) | |
11765 | lt_cv_dlopen="dlopen" | |
11766 | lt_cv_dlopen_libs= | |
11767 | ;; | |
11768 | ||
11769 | darwin*) | |
11770 | # if libdl is installed we need to link against it | |
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11772 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11773 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11774 | $as_echo_n "(cached) " >&6 | |
11775 | else | |
11776 | ac_check_lib_save_LIBS=$LIBS | |
11777 | LIBS="-ldl $LIBS" | |
11778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11779 | /* end confdefs.h. */ | |
11780 | ||
11781 | /* Override any GCC internal prototype to avoid an error. | |
11782 | Use char because int might match the return type of a GCC | |
11783 | builtin and then its argument prototype would still apply. */ | |
11784 | #ifdef __cplusplus | |
11785 | extern "C" | |
11786 | #endif | |
11787 | char dlopen (); | |
11788 | int | |
11789 | main () | |
11790 | { | |
11791 | return dlopen (); | |
11792 | ; | |
11793 | return 0; | |
11794 | } | |
11795 | _ACEOF | |
11796 | if ac_fn_c_try_link "$LINENO"; then : | |
11797 | ac_cv_lib_dl_dlopen=yes | |
11798 | else | |
11799 | ac_cv_lib_dl_dlopen=no | |
11800 | fi | |
11801 | rm -f core conftest.err conftest.$ac_objext \ | |
11802 | conftest$ac_exeext conftest.$ac_ext | |
11803 | LIBS=$ac_check_lib_save_LIBS | |
11804 | fi | |
11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11806 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11807 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
11808 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11809 | else | |
11810 | ||
11811 | lt_cv_dlopen="dyld" | |
11812 | lt_cv_dlopen_libs= | |
11813 | lt_cv_dlopen_self=yes | |
11814 | ||
11815 | fi | |
11816 | ||
11817 | ;; | |
11818 | ||
11819 | *) | |
11820 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11821 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
11822 | lt_cv_dlopen="shl_load" | |
11823 | else | |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11825 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11826 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
11827 | $as_echo_n "(cached) " >&6 | |
11828 | else | |
11829 | ac_check_lib_save_LIBS=$LIBS | |
11830 | LIBS="-ldld $LIBS" | |
11831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11832 | /* end confdefs.h. */ | |
11833 | ||
11834 | /* Override any GCC internal prototype to avoid an error. | |
11835 | Use char because int might match the return type of a GCC | |
11836 | builtin and then its argument prototype would still apply. */ | |
11837 | #ifdef __cplusplus | |
11838 | extern "C" | |
11839 | #endif | |
11840 | char shl_load (); | |
11841 | int | |
11842 | main () | |
11843 | { | |
11844 | return shl_load (); | |
11845 | ; | |
11846 | return 0; | |
11847 | } | |
11848 | _ACEOF | |
11849 | if ac_fn_c_try_link "$LINENO"; then : | |
11850 | ac_cv_lib_dld_shl_load=yes | |
11851 | else | |
11852 | ac_cv_lib_dld_shl_load=no | |
11853 | fi | |
11854 | rm -f core conftest.err conftest.$ac_objext \ | |
11855 | conftest$ac_exeext conftest.$ac_ext | |
11856 | LIBS=$ac_check_lib_save_LIBS | |
11857 | fi | |
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11859 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11860 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
11861 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11862 | else | |
11863 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11864 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
11865 | lt_cv_dlopen="dlopen" | |
11866 | else | |
11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11868 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11869 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
11870 | $as_echo_n "(cached) " >&6 | |
11871 | else | |
11872 | ac_check_lib_save_LIBS=$LIBS | |
11873 | LIBS="-ldl $LIBS" | |
11874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11875 | /* end confdefs.h. */ | |
11876 | ||
11877 | /* Override any GCC internal prototype to avoid an error. | |
11878 | Use char because int might match the return type of a GCC | |
11879 | builtin and then its argument prototype would still apply. */ | |
11880 | #ifdef __cplusplus | |
11881 | extern "C" | |
11882 | #endif | |
11883 | char dlopen (); | |
11884 | int | |
11885 | main () | |
11886 | { | |
11887 | return dlopen (); | |
11888 | ; | |
11889 | return 0; | |
11890 | } | |
11891 | _ACEOF | |
11892 | if ac_fn_c_try_link "$LINENO"; then : | |
11893 | ac_cv_lib_dl_dlopen=yes | |
11894 | else | |
11895 | ac_cv_lib_dl_dlopen=no | |
11896 | fi | |
11897 | rm -f core conftest.err conftest.$ac_objext \ | |
11898 | conftest$ac_exeext conftest.$ac_ext | |
11899 | LIBS=$ac_check_lib_save_LIBS | |
11900 | fi | |
11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11902 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11903 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
11904 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11905 | else | |
11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11907 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11908 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
11909 | $as_echo_n "(cached) " >&6 | |
11910 | else | |
11911 | ac_check_lib_save_LIBS=$LIBS | |
11912 | LIBS="-lsvld $LIBS" | |
11913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11914 | /* end confdefs.h. */ | |
11915 | ||
11916 | /* Override any GCC internal prototype to avoid an error. | |
11917 | Use char because int might match the return type of a GCC | |
11918 | builtin and then its argument prototype would still apply. */ | |
11919 | #ifdef __cplusplus | |
11920 | extern "C" | |
11921 | #endif | |
11922 | char dlopen (); | |
11923 | int | |
11924 | main () | |
11925 | { | |
11926 | return dlopen (); | |
11927 | ; | |
11928 | return 0; | |
11929 | } | |
11930 | _ACEOF | |
11931 | if ac_fn_c_try_link "$LINENO"; then : | |
11932 | ac_cv_lib_svld_dlopen=yes | |
11933 | else | |
11934 | ac_cv_lib_svld_dlopen=no | |
11935 | fi | |
11936 | rm -f core conftest.err conftest.$ac_objext \ | |
11937 | conftest$ac_exeext conftest.$ac_ext | |
11938 | LIBS=$ac_check_lib_save_LIBS | |
11939 | fi | |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11941 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11942 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
11943 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11944 | else | |
11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11946 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11947 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11948 | $as_echo_n "(cached) " >&6 | |
11949 | else | |
11950 | ac_check_lib_save_LIBS=$LIBS | |
11951 | LIBS="-ldld $LIBS" | |
11952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11953 | /* end confdefs.h. */ | |
11954 | ||
11955 | /* Override any GCC internal prototype to avoid an error. | |
11956 | Use char because int might match the return type of a GCC | |
11957 | builtin and then its argument prototype would still apply. */ | |
11958 | #ifdef __cplusplus | |
11959 | extern "C" | |
11960 | #endif | |
11961 | char dld_link (); | |
11962 | int | |
11963 | main () | |
11964 | { | |
11965 | return dld_link (); | |
11966 | ; | |
11967 | return 0; | |
11968 | } | |
11969 | _ACEOF | |
11970 | if ac_fn_c_try_link "$LINENO"; then : | |
11971 | ac_cv_lib_dld_dld_link=yes | |
11972 | else | |
11973 | ac_cv_lib_dld_dld_link=no | |
11974 | fi | |
11975 | rm -f core conftest.err conftest.$ac_objext \ | |
11976 | conftest$ac_exeext conftest.$ac_ext | |
11977 | LIBS=$ac_check_lib_save_LIBS | |
11978 | fi | |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11980 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11981 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
11982 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11983 | fi | |
11984 | ||
11985 | ||
11986 | fi | |
11987 | ||
11988 | ||
11989 | fi | |
11990 | ||
11991 | ||
11992 | fi | |
11993 | ||
11994 | ||
11995 | fi | |
11996 | ||
11997 | ||
11998 | fi | |
11999 | ||
12000 | ;; | |
12001 | esac | |
12002 | ||
12003 | if test "x$lt_cv_dlopen" != xno; then | |
12004 | enable_dlopen=yes | |
12005 | else | |
12006 | enable_dlopen=no | |
12007 | fi | |
12008 | ||
12009 | case $lt_cv_dlopen in | |
12010 | dlopen) | |
12011 | save_CPPFLAGS="$CPPFLAGS" | |
12012 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12013 | ||
12014 | save_LDFLAGS="$LDFLAGS" | |
12015 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12016 | ||
12017 | save_LIBS="$LIBS" | |
12018 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12019 | ||
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12021 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12022 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
12023 | $as_echo_n "(cached) " >&6 | |
12024 | else | |
12025 | if test "$cross_compiling" = yes; then : | |
12026 | lt_cv_dlopen_self=cross | |
12027 | else | |
12028 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12029 | lt_status=$lt_dlunknown | |
12030 | cat > conftest.$ac_ext <<_LT_EOF | |
10189819 | 12031 | #line 12031 "configure" |
c915a581 JJ |
12032 | #include "confdefs.h" |
12033 | ||
12034 | #if HAVE_DLFCN_H | |
12035 | #include <dlfcn.h> | |
12036 | #endif | |
12037 | ||
12038 | #include <stdio.h> | |
12039 | ||
12040 | #ifdef RTLD_GLOBAL | |
12041 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12042 | #else | |
12043 | # ifdef DL_GLOBAL | |
12044 | # define LT_DLGLOBAL DL_GLOBAL | |
12045 | # else | |
12046 | # define LT_DLGLOBAL 0 | |
12047 | # endif | |
12048 | #endif | |
12049 | ||
12050 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12051 | find out it does not work in some platform. */ | |
12052 | #ifndef LT_DLLAZY_OR_NOW | |
12053 | # ifdef RTLD_LAZY | |
12054 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12055 | # else | |
12056 | # ifdef DL_LAZY | |
12057 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12058 | # else | |
12059 | # ifdef RTLD_NOW | |
12060 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12061 | # else | |
12062 | # ifdef DL_NOW | |
12063 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12064 | # else | |
12065 | # define LT_DLLAZY_OR_NOW 0 | |
12066 | # endif | |
12067 | # endif | |
12068 | # endif | |
12069 | # endif | |
12070 | #endif | |
12071 | ||
12072 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12073 | correspondingly for the symbols needed. */ | |
12074 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12075 | void fnord () __attribute__((visibility("default"))); | |
12076 | #endif | |
12077 | ||
12078 | void fnord () { int i=42; } | |
12079 | int main () | |
12080 | { | |
12081 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12082 | int status = $lt_dlunknown; | |
12083 | ||
12084 | if (self) | |
12085 | { | |
12086 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12087 | else | |
12088 | { | |
12089 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12090 | else puts (dlerror ()); | |
12091 | } | |
12092 | /* dlclose (self); */ | |
12093 | } | |
12094 | else | |
12095 | puts (dlerror ()); | |
12096 | ||
12097 | return status; | |
12098 | } | |
12099 | _LT_EOF | |
12100 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12101 | (eval $ac_link) 2>&5 | |
12102 | ac_status=$? | |
12103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12104 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12105 | (./conftest; exit; ) >&5 2>/dev/null | |
12106 | lt_status=$? | |
12107 | case x$lt_status in | |
12108 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12109 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12110 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12111 | esac | |
12112 | else : | |
12113 | # compilation failed | |
12114 | lt_cv_dlopen_self=no | |
12115 | fi | |
12116 | fi | |
12117 | rm -fr conftest* | |
12118 | ||
12119 | ||
12120 | fi | |
12121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12122 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12123 | ||
12124 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12125 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12127 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12128 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
12129 | $as_echo_n "(cached) " >&6 | |
12130 | else | |
12131 | if test "$cross_compiling" = yes; then : | |
12132 | lt_cv_dlopen_self_static=cross | |
12133 | else | |
12134 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12135 | lt_status=$lt_dlunknown | |
12136 | cat > conftest.$ac_ext <<_LT_EOF | |
10189819 | 12137 | #line 12137 "configure" |
c915a581 JJ |
12138 | #include "confdefs.h" |
12139 | ||
12140 | #if HAVE_DLFCN_H | |
12141 | #include <dlfcn.h> | |
12142 | #endif | |
12143 | ||
12144 | #include <stdio.h> | |
12145 | ||
12146 | #ifdef RTLD_GLOBAL | |
12147 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12148 | #else | |
12149 | # ifdef DL_GLOBAL | |
12150 | # define LT_DLGLOBAL DL_GLOBAL | |
12151 | # else | |
12152 | # define LT_DLGLOBAL 0 | |
12153 | # endif | |
12154 | #endif | |
12155 | ||
12156 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12157 | find out it does not work in some platform. */ | |
12158 | #ifndef LT_DLLAZY_OR_NOW | |
12159 | # ifdef RTLD_LAZY | |
12160 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12161 | # else | |
12162 | # ifdef DL_LAZY | |
12163 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12164 | # else | |
12165 | # ifdef RTLD_NOW | |
12166 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12167 | # else | |
12168 | # ifdef DL_NOW | |
12169 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12170 | # else | |
12171 | # define LT_DLLAZY_OR_NOW 0 | |
12172 | # endif | |
12173 | # endif | |
12174 | # endif | |
12175 | # endif | |
12176 | #endif | |
12177 | ||
12178 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12179 | correspondingly for the symbols needed. */ | |
12180 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12181 | void fnord () __attribute__((visibility("default"))); | |
12182 | #endif | |
12183 | ||
12184 | void fnord () { int i=42; } | |
12185 | int main () | |
12186 | { | |
12187 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12188 | int status = $lt_dlunknown; | |
12189 | ||
12190 | if (self) | |
12191 | { | |
12192 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12193 | else | |
12194 | { | |
12195 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12196 | else puts (dlerror ()); | |
12197 | } | |
12198 | /* dlclose (self); */ | |
12199 | } | |
12200 | else | |
12201 | puts (dlerror ()); | |
12202 | ||
12203 | return status; | |
12204 | } | |
12205 | _LT_EOF | |
12206 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12207 | (eval $ac_link) 2>&5 | |
12208 | ac_status=$? | |
12209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12210 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12211 | (./conftest; exit; ) >&5 2>/dev/null | |
12212 | lt_status=$? | |
12213 | case x$lt_status in | |
12214 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12215 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12216 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12217 | esac | |
12218 | else : | |
12219 | # compilation failed | |
12220 | lt_cv_dlopen_self_static=no | |
12221 | fi | |
12222 | fi | |
12223 | rm -fr conftest* | |
12224 | ||
12225 | ||
12226 | fi | |
12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12228 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12229 | fi | |
12230 | ||
12231 | CPPFLAGS="$save_CPPFLAGS" | |
12232 | LDFLAGS="$save_LDFLAGS" | |
12233 | LIBS="$save_LIBS" | |
12234 | ;; | |
12235 | esac | |
12236 | ||
12237 | case $lt_cv_dlopen_self in | |
12238 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12239 | *) enable_dlopen_self=unknown ;; | |
12240 | esac | |
12241 | ||
12242 | case $lt_cv_dlopen_self_static in | |
12243 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12244 | *) enable_dlopen_self_static=unknown ;; | |
12245 | esac | |
12246 | fi | |
12247 | ||
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | striplib= | |
12265 | old_striplib= | |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12267 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12268 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12269 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12270 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12272 | $as_echo "yes" >&6; } | |
12273 | else | |
12274 | # FIXME - insert some real tests, host_os isn't really good enough | |
12275 | case $host_os in | |
12276 | darwin*) | |
12277 | if test -n "$STRIP" ; then | |
12278 | striplib="$STRIP -x" | |
12279 | old_striplib="$STRIP -S" | |
12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12281 | $as_echo "yes" >&6; } | |
12282 | else | |
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12284 | $as_echo "no" >&6; } | |
12285 | fi | |
12286 | ;; | |
12287 | *) | |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12289 | $as_echo "no" >&6; } | |
12290 | ;; | |
12291 | esac | |
12292 | fi | |
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | # Report which library types will actually be built | |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12307 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12309 | $as_echo "$can_build_shared" >&6; } | |
12310 | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12312 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12313 | test "$can_build_shared" = "no" && enable_shared=no | |
12314 | ||
12315 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12316 | # are all built from PIC. | |
12317 | case $host_os in | |
12318 | aix3*) | |
12319 | test "$enable_shared" = yes && enable_static=no | |
12320 | if test -n "$RANLIB"; then | |
12321 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12322 | postinstall_cmds='$RANLIB $lib' | |
12323 | fi | |
12324 | ;; | |
12325 | ||
12326 | aix[4-9]*) | |
12327 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12328 | test "$enable_shared" = yes && enable_static=no | |
12329 | fi | |
12330 | ;; | |
12331 | esac | |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12333 | $as_echo "$enable_shared" >&6; } | |
12334 | ||
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12336 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12337 | # Make sure either enable_shared or enable_static is yes. | |
12338 | test "$enable_shared" = yes || enable_static=yes | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12340 | $as_echo "$enable_static" >&6; } | |
12341 | ||
12342 | ||
12343 | ||
12344 | ||
12345 | fi | |
12346 | ac_ext=c | |
12347 | ac_cpp='$CPP $CPPFLAGS' | |
12348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12351 | ||
12352 | CC="$lt_save_CC" | |
12353 | ||
12354 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12355 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12356 | (test "X$CXX" != "Xg++"))) ; then | |
12357 | ac_ext=cpp | |
12358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12363 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12364 | if test -z "$CXXCPP"; then | |
12365 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12366 | $as_echo_n "(cached) " >&6 | |
12367 | else | |
12368 | # Double quotes because CXXCPP needs to be expanded | |
12369 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12370 | do | |
12371 | ac_preproc_ok=false | |
12372 | for ac_cxx_preproc_warn_flag in '' yes | |
12373 | do | |
12374 | # Use a header file that comes with gcc, so configuring glibc | |
12375 | # with a fresh cross-compiler works. | |
12376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12377 | # <limits.h> exists even on freestanding compilers. | |
12378 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12379 | # not just through cpp. "Syntax error" is here to catch this case. | |
12380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12381 | /* end confdefs.h. */ | |
12382 | #ifdef __STDC__ | |
12383 | # include <limits.h> | |
12384 | #else | |
12385 | # include <assert.h> | |
12386 | #endif | |
12387 | Syntax error | |
12388 | _ACEOF | |
12389 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12390 | ||
12391 | else | |
12392 | # Broken: fails on valid input. | |
12393 | continue | |
12394 | fi | |
12395 | rm -f conftest.err conftest.$ac_ext | |
12396 | ||
12397 | # OK, works on sane cases. Now check whether nonexistent headers | |
12398 | # can be detected and how. | |
12399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12400 | /* end confdefs.h. */ | |
12401 | #include <ac_nonexistent.h> | |
12402 | _ACEOF | |
12403 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12404 | # Broken: success on invalid input. | |
12405 | continue | |
12406 | else | |
12407 | # Passes both tests. | |
12408 | ac_preproc_ok=: | |
12409 | break | |
12410 | fi | |
12411 | rm -f conftest.err conftest.$ac_ext | |
12412 | ||
12413 | done | |
12414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12415 | rm -f conftest.err conftest.$ac_ext | |
12416 | if $ac_preproc_ok; then : | |
12417 | break | |
12418 | fi | |
12419 | ||
12420 | done | |
12421 | ac_cv_prog_CXXCPP=$CXXCPP | |
12422 | ||
12423 | fi | |
12424 | CXXCPP=$ac_cv_prog_CXXCPP | |
12425 | else | |
12426 | ac_cv_prog_CXXCPP=$CXXCPP | |
12427 | fi | |
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12429 | $as_echo "$CXXCPP" >&6; } | |
12430 | ac_preproc_ok=false | |
12431 | for ac_cxx_preproc_warn_flag in '' yes | |
12432 | do | |
12433 | # Use a header file that comes with gcc, so configuring glibc | |
12434 | # with a fresh cross-compiler works. | |
12435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12436 | # <limits.h> exists even on freestanding compilers. | |
12437 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12438 | # not just through cpp. "Syntax error" is here to catch this case. | |
12439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12440 | /* end confdefs.h. */ | |
12441 | #ifdef __STDC__ | |
12442 | # include <limits.h> | |
12443 | #else | |
12444 | # include <assert.h> | |
12445 | #endif | |
12446 | Syntax error | |
12447 | _ACEOF | |
12448 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12449 | ||
12450 | else | |
12451 | # Broken: fails on valid input. | |
12452 | continue | |
12453 | fi | |
12454 | rm -f conftest.err conftest.$ac_ext | |
12455 | ||
12456 | # OK, works on sane cases. Now check whether nonexistent headers | |
12457 | # can be detected and how. | |
12458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12459 | /* end confdefs.h. */ | |
12460 | #include <ac_nonexistent.h> | |
12461 | _ACEOF | |
12462 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12463 | # Broken: success on invalid input. | |
12464 | continue | |
12465 | else | |
12466 | # Passes both tests. | |
12467 | ac_preproc_ok=: | |
12468 | break | |
12469 | fi | |
12470 | rm -f conftest.err conftest.$ac_ext | |
12471 | ||
12472 | done | |
12473 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12474 | rm -f conftest.err conftest.$ac_ext | |
12475 | if $ac_preproc_ok; then : | |
12476 | ||
12477 | else | |
12478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12480 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12481 | See \`config.log' for more details." "$LINENO" 5; } | |
12482 | fi | |
12483 | ||
12484 | ac_ext=c | |
12485 | ac_cpp='$CPP $CPPFLAGS' | |
12486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12489 | ||
12490 | else | |
12491 | _lt_caught_CXX_error=yes | |
12492 | fi | |
12493 | ||
12494 | ac_ext=cpp | |
12495 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12496 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12497 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12498 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12499 | ||
12500 | archive_cmds_need_lc_CXX=no | |
12501 | allow_undefined_flag_CXX= | |
12502 | always_export_symbols_CXX=no | |
12503 | archive_expsym_cmds_CXX= | |
12504 | compiler_needs_object_CXX=no | |
12505 | export_dynamic_flag_spec_CXX= | |
12506 | hardcode_direct_CXX=no | |
12507 | hardcode_direct_absolute_CXX=no | |
12508 | hardcode_libdir_flag_spec_CXX= | |
12509 | hardcode_libdir_flag_spec_ld_CXX= | |
12510 | hardcode_libdir_separator_CXX= | |
12511 | hardcode_minus_L_CXX=no | |
12512 | hardcode_shlibpath_var_CXX=unsupported | |
12513 | hardcode_automatic_CXX=no | |
12514 | inherit_rpath_CXX=no | |
12515 | module_cmds_CXX= | |
12516 | module_expsym_cmds_CXX= | |
12517 | link_all_deplibs_CXX=unknown | |
12518 | old_archive_cmds_CXX=$old_archive_cmds | |
12519 | reload_flag_CXX=$reload_flag | |
12520 | reload_cmds_CXX=$reload_cmds | |
12521 | no_undefined_flag_CXX= | |
12522 | whole_archive_flag_spec_CXX= | |
12523 | enable_shared_with_static_runtimes_CXX=no | |
12524 | ||
12525 | # Source file extension for C++ test sources. | |
12526 | ac_ext=cpp | |
12527 | ||
12528 | # Object file extension for compiled C++ test sources. | |
12529 | objext=o | |
12530 | objext_CXX=$objext | |
12531 | ||
12532 | # No sense in running all these tests if we already determined that | |
12533 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12534 | # are currently assumed to apply to all compilers on this platform, | |
12535 | # and will be corrupted by setting them based on a non-working compiler. | |
12536 | if test "$_lt_caught_CXX_error" != yes; then | |
12537 | # Code to be used in simple compile tests | |
12538 | lt_simple_compile_test_code="int some_variable = 0;" | |
12539 | ||
12540 | # Code to be used in simple link tests | |
12541 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12542 | ||
12543 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12544 | ||
12545 | ||
12546 | ||
12547 | ||
12548 | ||
12549 | ||
12550 | # If no C compiler was specified, use CC. | |
12551 | LTCC=${LTCC-"$CC"} | |
12552 | ||
12553 | # If no C compiler flags were specified, use CFLAGS. | |
12554 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12555 | ||
12556 | # Allow CC to be a program name with arguments. | |
12557 | compiler=$CC | |
12558 | ||
12559 | ||
12560 | # save warnings/boilerplate of simple test code | |
12561 | ac_outfile=conftest.$ac_objext | |
12562 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12563 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12564 | _lt_compiler_boilerplate=`cat conftest.err` | |
12565 | $RM conftest* | |
12566 | ||
12567 | ac_outfile=conftest.$ac_objext | |
12568 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12569 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12570 | _lt_linker_boilerplate=`cat conftest.err` | |
12571 | $RM -r conftest* | |
12572 | ||
12573 | ||
12574 | # Allow CC to be a program name with arguments. | |
12575 | lt_save_CC=$CC | |
12576 | lt_save_LD=$LD | |
12577 | lt_save_GCC=$GCC | |
12578 | GCC=$GXX | |
12579 | lt_save_with_gnu_ld=$with_gnu_ld | |
12580 | lt_save_path_LD=$lt_cv_path_LD | |
12581 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12582 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12583 | else | |
12584 | $as_unset lt_cv_prog_gnu_ld | |
12585 | fi | |
12586 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12587 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12588 | else | |
12589 | $as_unset lt_cv_path_LD | |
12590 | fi | |
12591 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12592 | CC=${CXX-"c++"} | |
12593 | compiler=$CC | |
12594 | compiler_CXX=$CC | |
12595 | for cc_temp in $compiler""; do | |
12596 | case $cc_temp in | |
12597 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12598 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12599 | \-*) ;; | |
12600 | *) break;; | |
12601 | esac | |
12602 | done | |
12603 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12604 | ||
12605 | ||
12606 | if test -n "$compiler"; then | |
12607 | # We don't want -fno-exception when compiling C++ code, so set the | |
12608 | # no_builtin_flag separately | |
12609 | if test "$GXX" = yes; then | |
12610 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12611 | else | |
12612 | lt_prog_compiler_no_builtin_flag_CXX= | |
12613 | fi | |
12614 | ||
12615 | if test "$GXX" = yes; then | |
12616 | # Set up default GNU C++ configuration | |
12617 | ||
12618 | ||
12619 | ||
12620 | # Check whether --with-gnu-ld was given. | |
12621 | if test "${with_gnu_ld+set}" = set; then : | |
12622 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12623 | else | |
12624 | with_gnu_ld=no | |
12625 | fi | |
12626 | ||
12627 | ac_prog=ld | |
12628 | if test "$GCC" = yes; then | |
12629 | # Check if gcc -print-prog-name=ld gives a path. | |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12631 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
12632 | case $host in | |
12633 | *-*-mingw*) | |
12634 | # gcc leaves a trailing carriage return which upsets mingw | |
12635 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12636 | *) | |
12637 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12638 | esac | |
12639 | case $ac_prog in | |
12640 | # Accept absolute paths. | |
12641 | [\\/]* | ?:[\\/]*) | |
12642 | re_direlt='/[^/][^/]*/\.\./' | |
12643 | # Canonicalize the pathname of ld | |
12644 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12645 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12646 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12647 | done | |
12648 | test -z "$LD" && LD="$ac_prog" | |
12649 | ;; | |
12650 | "") | |
12651 | # If it fails, then pretend we aren't using GCC. | |
12652 | ac_prog=ld | |
12653 | ;; | |
12654 | *) | |
12655 | # If it is relative, then search for the first ld in PATH. | |
12656 | with_gnu_ld=unknown | |
12657 | ;; | |
12658 | esac | |
12659 | elif test "$with_gnu_ld" = yes; then | |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12661 | $as_echo_n "checking for GNU ld... " >&6; } | |
12662 | else | |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12664 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
12665 | fi | |
12666 | if test "${lt_cv_path_LD+set}" = set; then : | |
12667 | $as_echo_n "(cached) " >&6 | |
12668 | else | |
12669 | if test -z "$LD"; then | |
12670 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12671 | for ac_dir in $PATH; do | |
12672 | IFS="$lt_save_ifs" | |
12673 | test -z "$ac_dir" && ac_dir=. | |
12674 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12675 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12676 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12677 | # but apparently some variants of GNU ld only accept -v. | |
12678 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12679 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12680 | *GNU* | *'with BFD'*) | |
12681 | test "$with_gnu_ld" != no && break | |
12682 | ;; | |
12683 | *) | |
12684 | test "$with_gnu_ld" != yes && break | |
12685 | ;; | |
12686 | esac | |
12687 | fi | |
12688 | done | |
12689 | IFS="$lt_save_ifs" | |
12690 | else | |
12691 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12692 | fi | |
12693 | fi | |
12694 | ||
12695 | LD="$lt_cv_path_LD" | |
12696 | if test -n "$LD"; then | |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12698 | $as_echo "$LD" >&6; } | |
12699 | else | |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12701 | $as_echo "no" >&6; } | |
12702 | fi | |
12703 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12705 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12706 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
12707 | $as_echo_n "(cached) " >&6 | |
12708 | else | |
12709 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12710 | case `$LD -v 2>&1 </dev/null` in | |
12711 | *GNU* | *'with BFD'*) | |
12712 | lt_cv_prog_gnu_ld=yes | |
12713 | ;; | |
12714 | *) | |
12715 | lt_cv_prog_gnu_ld=no | |
12716 | ;; | |
12717 | esac | |
12718 | fi | |
12719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12720 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12721 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12722 | ||
12723 | ||
12724 | ||
12725 | ||
12726 | ||
12727 | ||
12728 | ||
12729 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12730 | # archiving commands below assume that GNU ld is being used. | |
12731 | if test "$with_gnu_ld" = yes; then | |
a699d672 L |
12732 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
12733 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
c915a581 JJ |
12734 | |
12735 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12736 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12737 | ||
12738 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12739 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12740 | # investigate it a little bit more. (MM) | |
12741 | wlarc='${wl}' | |
12742 | ||
12743 | # ancient GNU ld didn't support --whole-archive et. al. | |
12744 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12745 | $GREP 'no-whole-archive' > /dev/null; then | |
12746 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12747 | else | |
12748 | whole_archive_flag_spec_CXX= | |
12749 | fi | |
12750 | else | |
12751 | with_gnu_ld=no | |
12752 | wlarc= | |
12753 | ||
12754 | # A generic and very simple default shared library creation | |
12755 | # command for GNU C++ for the case where it uses the native | |
12756 | # linker, instead of GNU ld. If possible, this setting should | |
12757 | # overridden to take advantage of the native linker features on | |
12758 | # the platform it is being used on. | |
12759 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12760 | fi | |
12761 | ||
12762 | # Commands to make compiler produce verbose output that lists | |
12763 | # what "hidden" libraries, object files and flags are used when | |
12764 | # linking a shared library. | |
12765 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12766 | ||
12767 | else | |
12768 | GXX=no | |
12769 | with_gnu_ld=no | |
12770 | wlarc= | |
12771 | fi | |
12772 | ||
12773 | # PORTME: fill in a description of your system's C++ link characteristics | |
12774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12775 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12776 | ld_shlibs_CXX=yes | |
12777 | case $host_os in | |
12778 | aix3*) | |
12779 | # FIXME: insert proper C++ library support | |
12780 | ld_shlibs_CXX=no | |
12781 | ;; | |
12782 | aix[4-9]*) | |
12783 | if test "$host_cpu" = ia64; then | |
12784 | # On IA64, the linker does run time linking by default, so we don't | |
12785 | # have to do anything special. | |
12786 | aix_use_runtimelinking=no | |
12787 | exp_sym_flag='-Bexport' | |
12788 | no_entry_flag="" | |
12789 | else | |
12790 | aix_use_runtimelinking=no | |
12791 | ||
12792 | # Test if we are trying to use run time linking or normal | |
12793 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12794 | # need to do runtime linking. | |
12795 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12796 | for ld_flag in $LDFLAGS; do | |
12797 | case $ld_flag in | |
12798 | *-brtl*) | |
12799 | aix_use_runtimelinking=yes | |
12800 | break | |
12801 | ;; | |
12802 | esac | |
12803 | done | |
12804 | ;; | |
12805 | esac | |
12806 | ||
12807 | exp_sym_flag='-bexport' | |
12808 | no_entry_flag='-bnoentry' | |
12809 | fi | |
12810 | ||
12811 | # When large executables or shared objects are built, AIX ld can | |
12812 | # have problems creating the table of contents. If linking a library | |
12813 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12814 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12815 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12816 | ||
12817 | archive_cmds_CXX='' | |
12818 | hardcode_direct_CXX=yes | |
12819 | hardcode_direct_absolute_CXX=yes | |
12820 | hardcode_libdir_separator_CXX=':' | |
12821 | link_all_deplibs_CXX=yes | |
12822 | file_list_spec_CXX='${wl}-f,' | |
12823 | ||
12824 | if test "$GXX" = yes; then | |
12825 | case $host_os in aix4.[012]|aix4.[012].*) | |
12826 | # We only want to do this on AIX 4.2 and lower, the check | |
12827 | # below for broken collect2 doesn't work under 4.3+ | |
12828 | collect2name=`${CC} -print-prog-name=collect2` | |
12829 | if test -f "$collect2name" && | |
12830 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12831 | then | |
12832 | # We have reworked collect2 | |
12833 | : | |
12834 | else | |
12835 | # We have old collect2 | |
12836 | hardcode_direct_CXX=unsupported | |
12837 | # It fails to find uninstalled libraries when the uninstalled | |
12838 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12839 | # to unsupported forces relinking | |
12840 | hardcode_minus_L_CXX=yes | |
12841 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12842 | hardcode_libdir_separator_CXX= | |
12843 | fi | |
12844 | esac | |
12845 | shared_flag='-shared' | |
12846 | if test "$aix_use_runtimelinking" = yes; then | |
12847 | shared_flag="$shared_flag "'${wl}-G' | |
12848 | fi | |
12849 | else | |
12850 | # not using gcc | |
12851 | if test "$host_cpu" = ia64; then | |
12852 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12853 | # chokes on -Wl,-G. The following line is correct: | |
12854 | shared_flag='-G' | |
12855 | else | |
12856 | if test "$aix_use_runtimelinking" = yes; then | |
12857 | shared_flag='${wl}-G' | |
12858 | else | |
12859 | shared_flag='${wl}-bM:SRE' | |
12860 | fi | |
12861 | fi | |
12862 | fi | |
12863 | ||
12864 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12865 | # It seems that -bexpall does not export symbols beginning with | |
12866 | # underscore (_), so it is better to generate a list of symbols to | |
12867 | # export. | |
12868 | always_export_symbols_CXX=yes | |
12869 | if test "$aix_use_runtimelinking" = yes; then | |
12870 | # Warning - without using the other runtime loading flags (-brtl), | |
12871 | # -berok will link without error, but may produce a broken library. | |
12872 | allow_undefined_flag_CXX='-berok' | |
12873 | # Determine the default libpath from the value encoded in an empty | |
12874 | # executable. | |
12875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12876 | /* end confdefs.h. */ | |
12877 | ||
12878 | int | |
12879 | main () | |
12880 | { | |
12881 | ||
12882 | ; | |
12883 | return 0; | |
12884 | } | |
12885 | _ACEOF | |
12886 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12887 | ||
12888 | lt_aix_libpath_sed=' | |
12889 | /Import File Strings/,/^$/ { | |
12890 | /^0/ { | |
12891 | s/^0 *\(.*\)$/\1/ | |
12892 | p | |
12893 | } | |
12894 | }' | |
12895 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12896 | # Check for a 64-bit object if we didn't find anything. | |
12897 | if test -z "$aix_libpath"; then | |
12898 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12899 | fi | |
12900 | fi | |
12901 | rm -f core conftest.err conftest.$ac_objext \ | |
12902 | conftest$ac_exeext conftest.$ac_ext | |
12903 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12904 | ||
12905 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12906 | ||
12907 | 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12908 | else | |
12909 | if test "$host_cpu" = ia64; then | |
12910 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12911 | allow_undefined_flag_CXX="-z nodefs" | |
12912 | 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" | |
12913 | else | |
12914 | # Determine the default libpath from the value encoded in an | |
12915 | # empty executable. | |
12916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12917 | /* end confdefs.h. */ | |
12918 | ||
12919 | int | |
12920 | main () | |
12921 | { | |
12922 | ||
12923 | ; | |
12924 | return 0; | |
12925 | } | |
12926 | _ACEOF | |
12927 | if ac_fn_cxx_try_link "$LINENO"; then : | |
12928 | ||
12929 | lt_aix_libpath_sed=' | |
12930 | /Import File Strings/,/^$/ { | |
12931 | /^0/ { | |
12932 | s/^0 *\(.*\)$/\1/ | |
12933 | p | |
12934 | } | |
12935 | }' | |
12936 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12937 | # Check for a 64-bit object if we didn't find anything. | |
12938 | if test -z "$aix_libpath"; then | |
12939 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12940 | fi | |
12941 | fi | |
12942 | rm -f core conftest.err conftest.$ac_objext \ | |
12943 | conftest$ac_exeext conftest.$ac_ext | |
12944 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12945 | ||
12946 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12947 | # Warning - without using the other run time loading flags, | |
12948 | # -berok will link without error, but may produce a broken library. | |
12949 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12950 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12951 | if test "$with_gnu_ld" = yes; then | |
12952 | # We only use this code for GNU lds that support --whole-archive. | |
12953 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12954 | else | |
12955 | # Exported symbols can be pulled into shared objects from archives | |
12956 | whole_archive_flag_spec_CXX='$convenience' | |
12957 | fi | |
12958 | archive_cmds_need_lc_CXX=yes | |
12959 | # This is similar to how AIX traditionally builds its shared | |
12960 | # libraries. | |
12961 | 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' | |
12962 | fi | |
12963 | fi | |
12964 | ;; | |
12965 | ||
12966 | beos*) | |
12967 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12968 | allow_undefined_flag_CXX=unsupported | |
12969 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12970 | # support --undefined. This deserves some investigation. FIXME | |
12971 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12972 | else | |
12973 | ld_shlibs_CXX=no | |
12974 | fi | |
12975 | ;; | |
12976 | ||
12977 | chorus*) | |
12978 | case $cc_basename in | |
12979 | *) | |
12980 | # FIXME: insert proper C++ library support | |
12981 | ld_shlibs_CXX=no | |
12982 | ;; | |
12983 | esac | |
12984 | ;; | |
12985 | ||
12986 | cygwin* | mingw* | pw32* | cegcc*) | |
12987 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12988 | # as there is no search path for DLLs. | |
12989 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12990 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12991 | allow_undefined_flag_CXX=unsupported | |
12992 | always_export_symbols_CXX=no | |
12993 | enable_shared_with_static_runtimes_CXX=yes | |
12994 | ||
12995 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12996 | 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' | |
12997 | # If the export-symbols file already is a .def file (1st line | |
12998 | # is EXPORTS), use it as is; otherwise, prepend... | |
12999 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13000 | cp $export_symbols $output_objdir/$soname.def; | |
13001 | else | |
13002 | echo EXPORTS > $output_objdir/$soname.def; | |
13003 | cat $export_symbols >> $output_objdir/$soname.def; | |
13004 | fi~ | |
13005 | $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' | |
13006 | else | |
13007 | ld_shlibs_CXX=no | |
13008 | fi | |
13009 | ;; | |
13010 | darwin* | rhapsody*) | |
13011 | ||
13012 | ||
13013 | archive_cmds_need_lc_CXX=no | |
13014 | hardcode_direct_CXX=no | |
13015 | hardcode_automatic_CXX=yes | |
13016 | hardcode_shlibpath_var_CXX=unsupported | |
13017 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13018 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13019 | else | |
13020 | whole_archive_flag_spec_CXX='' | |
13021 | fi | |
13022 | link_all_deplibs_CXX=yes | |
13023 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13024 | case $cc_basename in | |
13025 | ifort*) _lt_dar_can_shared=yes ;; | |
13026 | *) _lt_dar_can_shared=$GCC ;; | |
13027 | esac | |
13028 | if test "$_lt_dar_can_shared" = "yes"; then | |
13029 | output_verbose_link_cmd=func_echo_all | |
13030 | 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}" | |
13031 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13032 | 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}" | |
13033 | 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}" | |
13034 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
13035 | 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}" | |
13036 | 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}" | |
13037 | fi | |
13038 | ||
13039 | else | |
13040 | ld_shlibs_CXX=no | |
13041 | fi | |
13042 | ||
13043 | ;; | |
13044 | ||
13045 | dgux*) | |
13046 | case $cc_basename in | |
13047 | ec++*) | |
13048 | # FIXME: insert proper C++ library support | |
13049 | ld_shlibs_CXX=no | |
13050 | ;; | |
13051 | ghcx*) | |
13052 | # Green Hills C++ Compiler | |
13053 | # FIXME: insert proper C++ library support | |
13054 | ld_shlibs_CXX=no | |
13055 | ;; | |
13056 | *) | |
13057 | # FIXME: insert proper C++ library support | |
13058 | ld_shlibs_CXX=no | |
13059 | ;; | |
13060 | esac | |
13061 | ;; | |
13062 | ||
13063 | freebsd2.*) | |
13064 | # C++ shared libraries reported to be fairly broken before | |
13065 | # switch to ELF | |
13066 | ld_shlibs_CXX=no | |
13067 | ;; | |
13068 | ||
13069 | freebsd-elf*) | |
13070 | archive_cmds_need_lc_CXX=no | |
13071 | ;; | |
13072 | ||
13073 | freebsd* | dragonfly*) | |
13074 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13075 | # conventions | |
13076 | ld_shlibs_CXX=yes | |
13077 | ;; | |
13078 | ||
13079 | gnu*) | |
13080 | ;; | |
13081 | ||
13082 | haiku*) | |
13083 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13084 | link_all_deplibs_CXX=yes | |
13085 | ;; | |
13086 | ||
13087 | hpux9*) | |
13088 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13089 | hardcode_libdir_separator_CXX=: | |
13090 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13091 | hardcode_direct_CXX=yes | |
13092 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13093 | # but as the default | |
13094 | # location of the library. | |
13095 | ||
13096 | case $cc_basename in | |
13097 | CC*) | |
13098 | # FIXME: insert proper C++ library support | |
13099 | ld_shlibs_CXX=no | |
13100 | ;; | |
13101 | aCC*) | |
13102 | 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' | |
13103 | # Commands to make compiler produce verbose output that lists | |
13104 | # what "hidden" libraries, object files and flags are used when | |
13105 | # linking a shared library. | |
13106 | # | |
13107 | # There doesn't appear to be a way to prevent this compiler from | |
13108 | # explicitly linking system object files so we need to strip them | |
13109 | # from the output so that they don't get included in the library | |
13110 | # dependencies. | |
13111 | 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; func_echo_all "$list"' | |
13112 | ;; | |
13113 | *) | |
13114 | if test "$GXX" = yes; then | |
13115 | 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' | |
13116 | else | |
13117 | # FIXME: insert proper C++ library support | |
13118 | ld_shlibs_CXX=no | |
13119 | fi | |
13120 | ;; | |
13121 | esac | |
13122 | ;; | |
13123 | ||
13124 | hpux10*|hpux11*) | |
13125 | if test $with_gnu_ld = no; then | |
13126 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13127 | hardcode_libdir_separator_CXX=: | |
13128 | ||
13129 | case $host_cpu in | |
13130 | hppa*64*|ia64*) | |
13131 | ;; | |
13132 | *) | |
13133 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13134 | ;; | |
13135 | esac | |
13136 | fi | |
13137 | case $host_cpu in | |
13138 | hppa*64*|ia64*) | |
13139 | hardcode_direct_CXX=no | |
13140 | hardcode_shlibpath_var_CXX=no | |
13141 | ;; | |
13142 | *) | |
13143 | hardcode_direct_CXX=yes | |
13144 | hardcode_direct_absolute_CXX=yes | |
13145 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13146 | # but as the default | |
13147 | # location of the library. | |
13148 | ;; | |
13149 | esac | |
13150 | ||
13151 | case $cc_basename in | |
13152 | CC*) | |
13153 | # FIXME: insert proper C++ library support | |
13154 | ld_shlibs_CXX=no | |
13155 | ;; | |
13156 | aCC*) | |
13157 | case $host_cpu in | |
13158 | hppa*64*) | |
13159 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13160 | ;; | |
13161 | ia64*) | |
13162 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13163 | ;; | |
13164 | *) | |
13165 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13166 | ;; | |
13167 | esac | |
13168 | # Commands to make compiler produce verbose output that lists | |
13169 | # what "hidden" libraries, object files and flags are used when | |
13170 | # linking a shared library. | |
13171 | # | |
13172 | # There doesn't appear to be a way to prevent this compiler from | |
13173 | # explicitly linking system object files so we need to strip them | |
13174 | # from the output so that they don't get included in the library | |
13175 | # dependencies. | |
13176 | 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; func_echo_all "$list"' | |
13177 | ;; | |
13178 | *) | |
13179 | if test "$GXX" = yes; then | |
13180 | if test $with_gnu_ld = no; then | |
13181 | case $host_cpu in | |
13182 | hppa*64*) | |
13183 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13184 | ;; | |
13185 | ia64*) | |
13186 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13187 | ;; | |
13188 | *) | |
13189 | 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' | |
13190 | ;; | |
13191 | esac | |
13192 | fi | |
13193 | else | |
13194 | # FIXME: insert proper C++ library support | |
13195 | ld_shlibs_CXX=no | |
13196 | fi | |
13197 | ;; | |
13198 | esac | |
13199 | ;; | |
13200 | ||
13201 | interix[3-9]*) | |
13202 | hardcode_direct_CXX=no | |
13203 | hardcode_shlibpath_var_CXX=no | |
13204 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13205 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13206 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13207 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13208 | # default) and relocated if they conflict, which is a slow very memory | |
13209 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13210 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13211 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13212 | 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' | |
13213 | 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' | |
13214 | ;; | |
13215 | irix5* | irix6*) | |
13216 | case $cc_basename in | |
13217 | CC*) | |
13218 | # SGI C++ | |
13219 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13220 | ||
13221 | # Archives containing C++ object files must be created using | |
13222 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13223 | # necessary to make sure instantiated templates are included | |
13224 | # in the archive. | |
13225 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13226 | ;; | |
13227 | *) | |
13228 | if test "$GXX" = yes; then | |
13229 | if test "$with_gnu_ld" = no; then | |
13230 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13231 | else | |
13232 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13233 | fi | |
13234 | fi | |
13235 | link_all_deplibs_CXX=yes | |
13236 | ;; | |
13237 | esac | |
13238 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13239 | hardcode_libdir_separator_CXX=: | |
13240 | inherit_rpath_CXX=yes | |
13241 | ;; | |
13242 | ||
13243 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13244 | case $cc_basename in | |
13245 | KCC*) | |
13246 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13247 | ||
13248 | # KCC will only create a shared library if the output file | |
13249 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13250 | # to its proper name (with version) after linking. | |
13251 | 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' | |
13252 | 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' | |
13253 | # Commands to make compiler produce verbose output that lists | |
13254 | # what "hidden" libraries, object files and flags are used when | |
13255 | # linking a shared library. | |
13256 | # | |
13257 | # There doesn't appear to be a way to prevent this compiler from | |
13258 | # explicitly linking system object files so we need to strip them | |
13259 | # from the output so that they don't get included in the library | |
13260 | # dependencies. | |
13261 | 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; func_echo_all "$list"' | |
13262 | ||
13263 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13264 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13265 | ||
13266 | # Archives containing C++ object files must be created using | |
13267 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13268 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13269 | ;; | |
13270 | icpc* | ecpc* ) | |
13271 | # Intel C++ | |
13272 | with_gnu_ld=yes | |
13273 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13274 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13275 | # earlier do not add the objects themselves. | |
13276 | case `$CC -V 2>&1` in | |
13277 | *"Version 7."*) | |
13278 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13279 | 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' | |
13280 | ;; | |
13281 | *) # Version 8.0 or newer | |
13282 | tmp_idyn= | |
13283 | case $host_cpu in | |
13284 | ia64*) tmp_idyn=' -i_dynamic';; | |
13285 | esac | |
13286 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13287 | 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' | |
13288 | ;; | |
13289 | esac | |
13290 | archive_cmds_need_lc_CXX=no | |
13291 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13292 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13293 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13294 | ;; | |
13295 | pgCC* | pgcpp*) | |
13296 | # Portland Group C++ compiler | |
13297 | case `$CC -V` in | |
13298 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13299 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13300 | rm -rf $tpldir~ | |
13301 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13302 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
13303 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
13304 | rm -rf $tpldir~ | |
13305 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13306 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
13307 | $RANLIB $oldlib' | |
13308 | archive_cmds_CXX='tpldir=Template.dir~ | |
13309 | rm -rf $tpldir~ | |
13310 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13311 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13312 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13313 | rm -rf $tpldir~ | |
13314 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13315 | $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' | |
13316 | ;; | |
13317 | *) # Version 6 and above use weak symbols | |
13318 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13319 | 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' | |
13320 | ;; | |
13321 | esac | |
13322 | ||
13323 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13324 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13325 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13326 | ;; | |
13327 | cxx*) | |
13328 | # Compaq C++ | |
13329 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13330 | 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' | |
13331 | ||
13332 | runpath_var=LD_RUN_PATH | |
13333 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13334 | hardcode_libdir_separator_CXX=: | |
13335 | ||
13336 | # Commands to make compiler produce verbose output that lists | |
13337 | # what "hidden" libraries, object files and flags are used when | |
13338 | # linking a shared library. | |
13339 | # | |
13340 | # There doesn't appear to be a way to prevent this compiler from | |
13341 | # explicitly linking system object files so we need to strip them | |
13342 | # from the output so that they don't get included in the library | |
13343 | # dependencies. | |
13344 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
13345 | ;; | |
13346 | xl* | mpixl* | bgxl*) | |
13347 | # IBM XL 8.0 on PPC, with GNU ld | |
13348 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13349 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13350 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13351 | if test "x$supports_anon_versioning" = xyes; then | |
13352 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13353 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13354 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13355 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13356 | fi | |
13357 | ;; | |
13358 | *) | |
13359 | case `$CC -V 2>&1 | sed 5q` in | |
13360 | *Sun\ C*) | |
13361 | # Sun C++ 5.9 | |
13362 | no_undefined_flag_CXX=' -zdefs' | |
13363 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13364 | 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' | |
13365 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13366 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13367 | compiler_needs_object_CXX=yes | |
13368 | ||
13369 | # Not sure whether something based on | |
13370 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13371 | # would be better. | |
13372 | output_verbose_link_cmd='func_echo_all' | |
13373 | ||
13374 | # Archives containing C++ object files must be created using | |
13375 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13376 | # necessary to make sure instantiated templates are included | |
13377 | # in the archive. | |
13378 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13379 | ;; | |
13380 | esac | |
13381 | ;; | |
13382 | esac | |
13383 | ;; | |
13384 | ||
13385 | lynxos*) | |
13386 | # FIXME: insert proper C++ library support | |
13387 | ld_shlibs_CXX=no | |
13388 | ;; | |
13389 | ||
13390 | m88k*) | |
13391 | # FIXME: insert proper C++ library support | |
13392 | ld_shlibs_CXX=no | |
13393 | ;; | |
13394 | ||
13395 | mvs*) | |
13396 | case $cc_basename in | |
13397 | cxx*) | |
13398 | # FIXME: insert proper C++ library support | |
13399 | ld_shlibs_CXX=no | |
13400 | ;; | |
13401 | *) | |
13402 | # FIXME: insert proper C++ library support | |
13403 | ld_shlibs_CXX=no | |
13404 | ;; | |
13405 | esac | |
13406 | ;; | |
13407 | ||
13408 | netbsd*) | |
13409 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13410 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13411 | wlarc= | |
13412 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13413 | hardcode_direct_CXX=yes | |
13414 | hardcode_shlibpath_var_CXX=no | |
13415 | fi | |
13416 | # Workaround some broken pre-1.5 toolchains | |
13417 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13418 | ;; | |
13419 | ||
13420 | *nto* | *qnx*) | |
13421 | ld_shlibs_CXX=yes | |
13422 | ;; | |
13423 | ||
13424 | openbsd2*) | |
13425 | # C++ shared libraries are fairly broken | |
13426 | ld_shlibs_CXX=no | |
13427 | ;; | |
13428 | ||
13429 | openbsd*) | |
13430 | if test -f /usr/libexec/ld.so; then | |
13431 | hardcode_direct_CXX=yes | |
13432 | hardcode_shlibpath_var_CXX=no | |
13433 | hardcode_direct_absolute_CXX=yes | |
13434 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13435 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13436 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13437 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13438 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13439 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13440 | fi | |
13441 | output_verbose_link_cmd=func_echo_all | |
13442 | else | |
13443 | ld_shlibs_CXX=no | |
13444 | fi | |
13445 | ;; | |
13446 | ||
13447 | osf3* | osf4* | osf5*) | |
13448 | case $cc_basename in | |
13449 | KCC*) | |
13450 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13451 | ||
13452 | # KCC will only create a shared library if the output file | |
13453 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13454 | # to its proper name (with version) after linking. | |
13455 | 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' | |
13456 | ||
13457 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13458 | hardcode_libdir_separator_CXX=: | |
13459 | ||
13460 | # Archives containing C++ object files must be created using | |
13461 | # the KAI C++ compiler. | |
13462 | case $host in | |
13463 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13464 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13465 | esac | |
13466 | ;; | |
13467 | RCC*) | |
13468 | # Rational C++ 2.4.1 | |
13469 | # FIXME: insert proper C++ library support | |
13470 | ld_shlibs_CXX=no | |
13471 | ;; | |
13472 | cxx*) | |
13473 | case $host in | |
13474 | osf3*) | |
13475 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13476 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13477 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13478 | ;; | |
13479 | *) | |
13480 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13481 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13482 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13483 | echo "-hidden">> $lib.exp~ | |
13484 | $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13485 | $RM $lib.exp' | |
13486 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13487 | ;; | |
13488 | esac | |
13489 | ||
13490 | hardcode_libdir_separator_CXX=: | |
13491 | ||
13492 | # Commands to make compiler produce verbose output that lists | |
13493 | # what "hidden" libraries, object files and flags are used when | |
13494 | # linking a shared library. | |
13495 | # | |
13496 | # There doesn't appear to be a way to prevent this compiler from | |
13497 | # explicitly linking system object files so we need to strip them | |
13498 | # from the output so that they don't get included in the library | |
13499 | # dependencies. | |
13500 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13501 | ;; | |
13502 | *) | |
13503 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13504 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13505 | case $host in | |
13506 | osf3*) | |
13507 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13508 | ;; | |
13509 | *) | |
13510 | 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13511 | ;; | |
13512 | esac | |
13513 | ||
13514 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13515 | hardcode_libdir_separator_CXX=: | |
13516 | ||
13517 | # Commands to make compiler produce verbose output that lists | |
13518 | # what "hidden" libraries, object files and flags are used when | |
13519 | # linking a shared library. | |
13520 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13521 | ||
13522 | else | |
13523 | # FIXME: insert proper C++ library support | |
13524 | ld_shlibs_CXX=no | |
13525 | fi | |
13526 | ;; | |
13527 | esac | |
13528 | ;; | |
13529 | ||
13530 | psos*) | |
13531 | # FIXME: insert proper C++ library support | |
13532 | ld_shlibs_CXX=no | |
13533 | ;; | |
13534 | ||
13535 | sunos4*) | |
13536 | case $cc_basename in | |
13537 | CC*) | |
13538 | # Sun C++ 4.x | |
13539 | # FIXME: insert proper C++ library support | |
13540 | ld_shlibs_CXX=no | |
13541 | ;; | |
13542 | lcc*) | |
13543 | # Lucid | |
13544 | # FIXME: insert proper C++ library support | |
13545 | ld_shlibs_CXX=no | |
13546 | ;; | |
13547 | *) | |
13548 | # FIXME: insert proper C++ library support | |
13549 | ld_shlibs_CXX=no | |
13550 | ;; | |
13551 | esac | |
13552 | ;; | |
13553 | ||
13554 | solaris*) | |
13555 | case $cc_basename in | |
13556 | CC*) | |
13557 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13558 | archive_cmds_need_lc_CXX=yes | |
13559 | no_undefined_flag_CXX=' -zdefs' | |
13560 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13561 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13562 | $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' | |
13563 | ||
13564 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13565 | hardcode_shlibpath_var_CXX=no | |
13566 | case $host_os in | |
13567 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13568 | *) | |
13569 | # The compiler driver will combine and reorder linker options, | |
13570 | # but understands `-z linker_flag'. | |
13571 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13572 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13573 | ;; | |
13574 | esac | |
13575 | link_all_deplibs_CXX=yes | |
13576 | ||
13577 | output_verbose_link_cmd='func_echo_all' | |
13578 | ||
13579 | # Archives containing C++ object files must be created using | |
13580 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13581 | # necessary to make sure instantiated templates are included | |
13582 | # in the archive. | |
13583 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13584 | ;; | |
13585 | gcx*) | |
13586 | # Green Hills C++ Compiler | |
13587 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13588 | ||
13589 | # The C++ compiler must be used to create the archive. | |
13590 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13591 | ;; | |
13592 | *) | |
13593 | # GNU C++ compiler with Solaris linker | |
13594 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13595 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13596 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13597 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13598 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13599 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13600 | ||
13601 | # Commands to make compiler produce verbose output that lists | |
13602 | # what "hidden" libraries, object files and flags are used when | |
13603 | # linking a shared library. | |
13604 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13605 | else | |
13606 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13607 | # platform. | |
13608 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13609 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13610 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13611 | ||
13612 | # Commands to make compiler produce verbose output that lists | |
13613 | # what "hidden" libraries, object files and flags are used when | |
13614 | # linking a shared library. | |
13615 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13616 | fi | |
13617 | ||
13618 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13619 | case $host_os in | |
13620 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13621 | *) | |
13622 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13623 | ;; | |
13624 | esac | |
13625 | fi | |
13626 | ;; | |
13627 | esac | |
13628 | ;; | |
13629 | ||
13630 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13631 | no_undefined_flag_CXX='${wl}-z,text' | |
13632 | archive_cmds_need_lc_CXX=no | |
13633 | hardcode_shlibpath_var_CXX=no | |
13634 | runpath_var='LD_RUN_PATH' | |
13635 | ||
13636 | case $cc_basename in | |
13637 | CC*) | |
13638 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13639 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13640 | ;; | |
13641 | *) | |
13642 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13643 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13644 | ;; | |
13645 | esac | |
13646 | ;; | |
13647 | ||
13648 | sysv5* | sco3.2v5* | sco5v6*) | |
13649 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13650 | # link with -lc, and that would cause any symbols used from libc to | |
13651 | # always be unresolved, which means just about no library would | |
13652 | # ever link correctly. If we're not using GNU ld we use -z text | |
13653 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13654 | # as -z defs. | |
13655 | no_undefined_flag_CXX='${wl}-z,text' | |
13656 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13657 | archive_cmds_need_lc_CXX=no | |
13658 | hardcode_shlibpath_var_CXX=no | |
13659 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13660 | hardcode_libdir_separator_CXX=':' | |
13661 | link_all_deplibs_CXX=yes | |
13662 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13663 | runpath_var='LD_RUN_PATH' | |
13664 | ||
13665 | case $cc_basename in | |
13666 | CC*) | |
13667 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13668 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13669 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13670 | '"$old_archive_cmds_CXX" | |
13671 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13672 | '"$reload_cmds_CXX" | |
13673 | ;; | |
13674 | *) | |
13675 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13676 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13677 | ;; | |
13678 | esac | |
13679 | ;; | |
13680 | ||
13681 | tandem*) | |
13682 | case $cc_basename in | |
13683 | NCC*) | |
13684 | # NonStop-UX NCC 3.20 | |
13685 | # FIXME: insert proper C++ library support | |
13686 | ld_shlibs_CXX=no | |
13687 | ;; | |
13688 | *) | |
13689 | # FIXME: insert proper C++ library support | |
13690 | ld_shlibs_CXX=no | |
13691 | ;; | |
13692 | esac | |
13693 | ;; | |
13694 | ||
13695 | vxworks*) | |
13696 | # FIXME: insert proper C++ library support | |
13697 | ld_shlibs_CXX=no | |
13698 | ;; | |
13699 | ||
13700 | *) | |
13701 | # FIXME: insert proper C++ library support | |
13702 | ld_shlibs_CXX=no | |
13703 | ;; | |
13704 | esac | |
13705 | ||
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13707 | $as_echo "$ld_shlibs_CXX" >&6; } | |
13708 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13709 | ||
13710 | GCC_CXX="$GXX" | |
13711 | LD_CXX="$LD" | |
13712 | ||
13713 | ## CAVEAT EMPTOR: | |
13714 | ## There is no encapsulation within the following macros, do not change | |
13715 | ## the running order or otherwise move them around unless you know exactly | |
13716 | ## what you are doing... | |
13717 | # Dependencies to place before and after the object being linked: | |
13718 | predep_objects_CXX= | |
13719 | postdep_objects_CXX= | |
13720 | predeps_CXX= | |
13721 | postdeps_CXX= | |
13722 | compiler_lib_search_path_CXX= | |
13723 | ||
13724 | cat > conftest.$ac_ext <<_LT_EOF | |
13725 | class Foo | |
13726 | { | |
13727 | public: | |
13728 | Foo (void) { a = 0; } | |
13729 | private: | |
13730 | int a; | |
13731 | }; | |
13732 | _LT_EOF | |
13733 | ||
13734 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13735 | (eval $ac_compile) 2>&5 | |
13736 | ac_status=$? | |
13737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13738 | test $ac_status = 0; }; then | |
13739 | # Parse the compiler output and extract the necessary | |
13740 | # objects, libraries and library flags. | |
13741 | ||
13742 | # Sentinel used to keep track of whether or not we are before | |
13743 | # the conftest object file. | |
13744 | pre_test_object_deps_done=no | |
13745 | ||
13746 | for p in `eval "$output_verbose_link_cmd"`; do | |
13747 | case $p in | |
13748 | ||
13749 | -L* | -R* | -l*) | |
13750 | # Some compilers place space between "-{L,R}" and the path. | |
13751 | # Remove the space. | |
13752 | if test $p = "-L" || | |
13753 | test $p = "-R"; then | |
13754 | prev=$p | |
13755 | continue | |
13756 | else | |
13757 | prev= | |
13758 | fi | |
13759 | ||
13760 | if test "$pre_test_object_deps_done" = no; then | |
13761 | case $p in | |
13762 | -L* | -R*) | |
13763 | # Internal compiler library paths should come after those | |
13764 | # provided the user. The postdeps already come after the | |
13765 | # user supplied libs so there is no need to process them. | |
13766 | if test -z "$compiler_lib_search_path_CXX"; then | |
13767 | compiler_lib_search_path_CXX="${prev}${p}" | |
13768 | else | |
13769 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13770 | fi | |
13771 | ;; | |
13772 | # The "-l" case would never come before the object being | |
13773 | # linked, so don't bother handling this case. | |
13774 | esac | |
13775 | else | |
13776 | if test -z "$postdeps_CXX"; then | |
13777 | postdeps_CXX="${prev}${p}" | |
13778 | else | |
13779 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13780 | fi | |
13781 | fi | |
13782 | ;; | |
13783 | ||
13784 | *.$objext) | |
13785 | # This assumes that the test object file only shows up | |
13786 | # once in the compiler output. | |
13787 | if test "$p" = "conftest.$objext"; then | |
13788 | pre_test_object_deps_done=yes | |
13789 | continue | |
13790 | fi | |
13791 | ||
13792 | if test "$pre_test_object_deps_done" = no; then | |
13793 | if test -z "$predep_objects_CXX"; then | |
13794 | predep_objects_CXX="$p" | |
13795 | else | |
13796 | predep_objects_CXX="$predep_objects_CXX $p" | |
13797 | fi | |
13798 | else | |
13799 | if test -z "$postdep_objects_CXX"; then | |
13800 | postdep_objects_CXX="$p" | |
13801 | else | |
13802 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13803 | fi | |
13804 | fi | |
13805 | ;; | |
13806 | ||
13807 | *) ;; # Ignore the rest. | |
13808 | ||
13809 | esac | |
13810 | done | |
13811 | ||
13812 | # Clean up. | |
13813 | rm -f a.out a.exe | |
13814 | else | |
13815 | echo "libtool.m4: error: problem compiling CXX test program" | |
13816 | fi | |
13817 | ||
13818 | $RM -f confest.$objext | |
13819 | ||
13820 | # PORTME: override above test on systems where it is broken | |
13821 | case $host_os in | |
13822 | interix[3-9]*) | |
13823 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13824 | # hack all around it, let's just trust "g++" to DTRT. | |
13825 | predep_objects_CXX= | |
13826 | postdep_objects_CXX= | |
13827 | postdeps_CXX= | |
13828 | ;; | |
13829 | ||
13830 | linux*) | |
13831 | case `$CC -V 2>&1 | sed 5q` in | |
13832 | *Sun\ C*) | |
13833 | # Sun C++ 5.9 | |
13834 | ||
13835 | # The more standards-conforming stlport4 library is | |
13836 | # incompatible with the Cstd library. Avoid specifying | |
13837 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13838 | # -library=stlport4 depends on it. | |
13839 | case " $CXX $CXXFLAGS " in | |
13840 | *" -library=stlport4 "*) | |
13841 | solaris_use_stlport4=yes | |
13842 | ;; | |
13843 | esac | |
13844 | ||
13845 | if test "$solaris_use_stlport4" != yes; then | |
13846 | postdeps_CXX='-library=Cstd -library=Crun' | |
13847 | fi | |
13848 | ;; | |
13849 | esac | |
13850 | ;; | |
13851 | ||
13852 | solaris*) | |
13853 | case $cc_basename in | |
13854 | CC*) | |
13855 | # The more standards-conforming stlport4 library is | |
13856 | # incompatible with the Cstd library. Avoid specifying | |
13857 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13858 | # -library=stlport4 depends on it. | |
13859 | case " $CXX $CXXFLAGS " in | |
13860 | *" -library=stlport4 "*) | |
13861 | solaris_use_stlport4=yes | |
13862 | ;; | |
13863 | esac | |
13864 | ||
13865 | # Adding this requires a known-good setup of shared libraries for | |
13866 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13867 | # archive will be linked into the output, leading to subtle bugs. | |
13868 | if test "$solaris_use_stlport4" != yes; then | |
13869 | postdeps_CXX='-library=Cstd -library=Crun' | |
13870 | fi | |
13871 | ;; | |
13872 | esac | |
13873 | ;; | |
13874 | esac | |
13875 | ||
13876 | ||
13877 | case " $postdeps_CXX " in | |
13878 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13879 | esac | |
13880 | compiler_lib_search_dirs_CXX= | |
13881 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13882 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13883 | fi | |
13884 | ||
13885 | ||
13886 | ||
13887 | ||
13888 | ||
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | ||
13914 | ||
13915 | lt_prog_compiler_wl_CXX= | |
13916 | lt_prog_compiler_pic_CXX= | |
13917 | lt_prog_compiler_static_CXX= | |
13918 | ||
13919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
13920 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
13921 | ||
13922 | # C++ specific cases for pic, static, wl, etc. | |
13923 | if test "$GXX" = yes; then | |
13924 | lt_prog_compiler_wl_CXX='-Wl,' | |
13925 | lt_prog_compiler_static_CXX='-static' | |
f35db108 WM |
13926 | |
13927 | case $host_os in | |
13928 | aix*) | |
13929 | # All AIX code is PIC. | |
13930 | if test "$host_cpu" = ia64; then | |
13931 | # AIX 5 now supports IA64 processor | |
13932 | lt_prog_compiler_static_CXX='-Bstatic' | |
13933 | fi | |
a2479b3d | 13934 | lt_prog_compiler_pic_CXX='-fPIC' |
f35db108 WM |
13935 | ;; |
13936 | ||
c915a581 JJ |
13937 | amigaos*) |
13938 | case $host_cpu in | |
13939 | powerpc) | |
13940 | # see comment about AmigaOS4 .so support | |
13941 | lt_prog_compiler_pic_CXX='-fPIC' | |
13942 | ;; | |
13943 | m68k) | |
13944 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13945 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13946 | # like `-m68040'. | |
13947 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13948 | ;; | |
13949 | esac | |
13950 | ;; | |
13951 | ||
13952 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13953 | # PIC is the default for these OSes. | |
13954 | ;; | |
13955 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13956 | # This hack is so that the source file can tell whether it is being | |
13957 | # built for inclusion in a dll (and should export symbols for example). | |
13958 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13959 | # (--disable-auto-import) libraries | |
13960 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13961 | ;; | |
13962 | darwin* | rhapsody*) | |
13963 | # PIC is the default on this platform | |
13964 | # Common symbols not allowed in MH_DYLIB files | |
13965 | lt_prog_compiler_pic_CXX='-fno-common' | |
13966 | ;; | |
13967 | *djgpp*) | |
13968 | # DJGPP does not support shared libraries at all | |
13969 | lt_prog_compiler_pic_CXX= | |
13970 | ;; | |
13971 | haiku*) | |
13972 | # PIC is the default for Haiku. | |
13973 | # The "-static" flag exists, but is broken. | |
13974 | lt_prog_compiler_static_CXX= | |
13975 | ;; | |
13976 | interix[3-9]*) | |
13977 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13978 | # Instead, we relocate shared libraries at runtime. | |
13979 | ;; | |
13980 | sysv4*MP*) | |
13981 | if test -d /usr/nec; then | |
13982 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13983 | fi | |
13984 | ;; | |
13985 | hpux*) | |
13986 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13987 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13988 | # sets the default TLS model and affects inlining. | |
13989 | case $host_cpu in | |
13990 | hppa*64*) | |
13991 | ;; | |
13992 | *) | |
13993 | lt_prog_compiler_pic_CXX='-fPIC' | |
13994 | ;; | |
13995 | esac | |
13996 | ;; | |
13997 | *qnx* | *nto*) | |
13998 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13999 | # it will coredump. | |
14000 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14001 | ;; | |
14002 | *) | |
14003 | lt_prog_compiler_pic_CXX='-fPIC' | |
14004 | ;; | |
14005 | esac | |
14006 | else | |
14007 | case $host_os in | |
14008 | aix[4-9]*) | |
14009 | # All AIX code is PIC. | |
14010 | if test "$host_cpu" = ia64; then | |
14011 | # AIX 5 now supports IA64 processor | |
14012 | lt_prog_compiler_static_CXX='-Bstatic' | |
14013 | else | |
14014 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14015 | fi | |
14016 | ;; | |
14017 | chorus*) | |
14018 | case $cc_basename in | |
14019 | cxch68*) | |
14020 | # Green Hills C++ Compiler | |
14021 | # _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" | |
14022 | ;; | |
14023 | esac | |
14024 | ;; | |
14025 | dgux*) | |
14026 | case $cc_basename in | |
14027 | ec++*) | |
14028 | lt_prog_compiler_pic_CXX='-KPIC' | |
14029 | ;; | |
14030 | ghcx*) | |
14031 | # Green Hills C++ Compiler | |
14032 | lt_prog_compiler_pic_CXX='-pic' | |
14033 | ;; | |
14034 | *) | |
14035 | ;; | |
14036 | esac | |
14037 | ;; | |
14038 | freebsd* | dragonfly*) | |
14039 | # FreeBSD uses GNU C++ | |
14040 | ;; | |
14041 | hpux9* | hpux10* | hpux11*) | |
14042 | case $cc_basename in | |
14043 | CC*) | |
14044 | lt_prog_compiler_wl_CXX='-Wl,' | |
14045 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14046 | if test "$host_cpu" != ia64; then | |
14047 | lt_prog_compiler_pic_CXX='+Z' | |
14048 | fi | |
14049 | ;; | |
14050 | aCC*) | |
14051 | lt_prog_compiler_wl_CXX='-Wl,' | |
14052 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14053 | case $host_cpu in | |
14054 | hppa*64*|ia64*) | |
14055 | # +Z the default | |
14056 | ;; | |
14057 | *) | |
14058 | lt_prog_compiler_pic_CXX='+Z' | |
14059 | ;; | |
14060 | esac | |
14061 | ;; | |
14062 | *) | |
14063 | ;; | |
14064 | esac | |
14065 | ;; | |
14066 | interix*) | |
14067 | # This is c89, which is MS Visual C++ (no shared libs) | |
14068 | # Anyone wants to do a port? | |
14069 | ;; | |
14070 | irix5* | irix6* | nonstopux*) | |
14071 | case $cc_basename in | |
14072 | CC*) | |
14073 | lt_prog_compiler_wl_CXX='-Wl,' | |
14074 | lt_prog_compiler_static_CXX='-non_shared' | |
14075 | # CC pic flag -KPIC is the default. | |
14076 | ;; | |
14077 | *) | |
14078 | ;; | |
14079 | esac | |
14080 | ;; | |
14081 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14082 | case $cc_basename in | |
14083 | KCC*) | |
14084 | # KAI C++ Compiler | |
14085 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14086 | lt_prog_compiler_pic_CXX='-fPIC' | |
14087 | ;; | |
14088 | ecpc* ) | |
14089 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14090 | lt_prog_compiler_wl_CXX='-Wl,' | |
14091 | lt_prog_compiler_pic_CXX='-KPIC' | |
14092 | lt_prog_compiler_static_CXX='-static' | |
14093 | ;; | |
14094 | icpc* ) | |
14095 | # Intel C++, used to be incompatible with GCC. | |
14096 | # ICC 10 doesn't accept -KPIC any more. | |
14097 | lt_prog_compiler_wl_CXX='-Wl,' | |
14098 | lt_prog_compiler_pic_CXX='-fPIC' | |
14099 | lt_prog_compiler_static_CXX='-static' | |
14100 | ;; | |
14101 | pgCC* | pgcpp*) | |
14102 | # Portland Group C++ compiler | |
14103 | lt_prog_compiler_wl_CXX='-Wl,' | |
14104 | lt_prog_compiler_pic_CXX='-fpic' | |
14105 | lt_prog_compiler_static_CXX='-Bstatic' | |
14106 | ;; | |
14107 | cxx*) | |
14108 | # Compaq C++ | |
14109 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14110 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14111 | lt_prog_compiler_pic_CXX= | |
14112 | lt_prog_compiler_static_CXX='-non_shared' | |
14113 | ;; | |
14114 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14115 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14116 | lt_prog_compiler_wl_CXX='-Wl,' | |
14117 | lt_prog_compiler_pic_CXX='-qpic' | |
14118 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14119 | ;; | |
14120 | *) | |
14121 | case `$CC -V 2>&1 | sed 5q` in | |
14122 | *Sun\ C*) | |
14123 | # Sun C++ 5.9 | |
14124 | lt_prog_compiler_pic_CXX='-KPIC' | |
14125 | lt_prog_compiler_static_CXX='-Bstatic' | |
14126 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14127 | ;; | |
14128 | esac | |
14129 | ;; | |
14130 | esac | |
14131 | ;; | |
14132 | lynxos*) | |
14133 | ;; | |
14134 | m88k*) | |
14135 | ;; | |
14136 | mvs*) | |
14137 | case $cc_basename in | |
14138 | cxx*) | |
14139 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14140 | ;; | |
14141 | *) | |
14142 | ;; | |
14143 | esac | |
14144 | ;; | |
14145 | netbsd*) | |
14146 | ;; | |
14147 | *qnx* | *nto*) | |
14148 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14149 | # it will coredump. | |
14150 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14151 | ;; | |
14152 | osf3* | osf4* | osf5*) | |
14153 | case $cc_basename in | |
14154 | KCC*) | |
14155 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14156 | ;; | |
14157 | RCC*) | |
14158 | # Rational C++ 2.4.1 | |
14159 | lt_prog_compiler_pic_CXX='-pic' | |
14160 | ;; | |
14161 | cxx*) | |
14162 | # Digital/Compaq C++ | |
14163 | lt_prog_compiler_wl_CXX='-Wl,' | |
14164 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14165 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14166 | lt_prog_compiler_pic_CXX= | |
14167 | lt_prog_compiler_static_CXX='-non_shared' | |
14168 | ;; | |
14169 | *) | |
14170 | ;; | |
14171 | esac | |
14172 | ;; | |
14173 | psos*) | |
14174 | ;; | |
14175 | solaris*) | |
14176 | case $cc_basename in | |
14177 | CC*) | |
14178 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14179 | lt_prog_compiler_pic_CXX='-KPIC' | |
14180 | lt_prog_compiler_static_CXX='-Bstatic' | |
14181 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14182 | ;; | |
14183 | gcx*) | |
14184 | # Green Hills C++ Compiler | |
14185 | lt_prog_compiler_pic_CXX='-PIC' | |
14186 | ;; | |
14187 | *) | |
14188 | ;; | |
14189 | esac | |
14190 | ;; | |
14191 | sunos4*) | |
14192 | case $cc_basename in | |
14193 | CC*) | |
14194 | # Sun C++ 4.x | |
14195 | lt_prog_compiler_pic_CXX='-pic' | |
14196 | lt_prog_compiler_static_CXX='-Bstatic' | |
14197 | ;; | |
14198 | lcc*) | |
14199 | # Lucid | |
14200 | lt_prog_compiler_pic_CXX='-pic' | |
14201 | ;; | |
14202 | *) | |
14203 | ;; | |
14204 | esac | |
14205 | ;; | |
14206 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14207 | case $cc_basename in | |
14208 | CC*) | |
14209 | lt_prog_compiler_wl_CXX='-Wl,' | |
14210 | lt_prog_compiler_pic_CXX='-KPIC' | |
14211 | lt_prog_compiler_static_CXX='-Bstatic' | |
14212 | ;; | |
14213 | esac | |
14214 | ;; | |
14215 | tandem*) | |
14216 | case $cc_basename in | |
14217 | NCC*) | |
14218 | # NonStop-UX NCC 3.20 | |
14219 | lt_prog_compiler_pic_CXX='-KPIC' | |
14220 | ;; | |
14221 | *) | |
14222 | ;; | |
14223 | esac | |
14224 | ;; | |
14225 | vxworks*) | |
14226 | ;; | |
14227 | *) | |
14228 | lt_prog_compiler_can_build_shared_CXX=no | |
14229 | ;; | |
14230 | esac | |
14231 | fi | |
14232 | ||
14233 | case $host_os in | |
14234 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14235 | *djgpp*) | |
14236 | lt_prog_compiler_pic_CXX= | |
14237 | ;; | |
14238 | *) | |
14239 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14240 | ;; | |
14241 | esac | |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14243 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14244 | ||
14245 | ||
14246 | ||
14247 | # | |
14248 | # Check to make sure the PIC flag actually works. | |
14249 | # | |
14250 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14252 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
14253 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : | |
14254 | $as_echo_n "(cached) " >&6 | |
14255 | else | |
14256 | lt_cv_prog_compiler_pic_works_CXX=no | |
14257 | ac_outfile=conftest.$ac_objext | |
14258 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14259 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14260 | # Insert the option either (1) after the last *FLAGS variable, or | |
14261 | # (2) before a word containing "conftest.", or (3) at the end. | |
14262 | # Note that $ac_compile itself does not contain backslashes and begins | |
14263 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14264 | # The option is referenced via a variable to avoid confusing sed. | |
14265 | lt_compile=`echo "$ac_compile" | $SED \ | |
14266 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14267 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14268 | -e 's:$: $lt_compiler_flag:'` | |
14269 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14270 | (eval "$lt_compile" 2>conftest.err) | |
14271 | ac_status=$? | |
14272 | cat conftest.err >&5 | |
14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14274 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14275 | # The compiler can only warn and ignore the option if not recognized | |
14276 | # So say no if there are warnings other than the usual output. | |
14277 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14278 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14279 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14280 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14281 | fi | |
14282 | fi | |
14283 | $RM conftest* | |
14284 | ||
14285 | fi | |
14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14287 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14288 | ||
14289 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14290 | case $lt_prog_compiler_pic_CXX in | |
14291 | "" | " "*) ;; | |
14292 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14293 | esac | |
14294 | else | |
14295 | lt_prog_compiler_pic_CXX= | |
14296 | lt_prog_compiler_can_build_shared_CXX=no | |
14297 | fi | |
14298 | ||
14299 | fi | |
14300 | ||
14301 | ||
14302 | ||
14303 | # | |
14304 | # Check to make sure the static flag actually works. | |
14305 | # | |
14306 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14308 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
14309 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : | |
14310 | $as_echo_n "(cached) " >&6 | |
14311 | else | |
14312 | lt_cv_prog_compiler_static_works_CXX=no | |
14313 | save_LDFLAGS="$LDFLAGS" | |
14314 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14315 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14316 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14317 | # The linker can only warn and ignore the option if not recognized | |
14318 | # So say no if there are warnings | |
14319 | if test -s conftest.err; then | |
14320 | # Append any errors to the config.log. | |
14321 | cat conftest.err 1>&5 | |
14322 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14323 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14324 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14325 | lt_cv_prog_compiler_static_works_CXX=yes | |
14326 | fi | |
14327 | else | |
14328 | lt_cv_prog_compiler_static_works_CXX=yes | |
14329 | fi | |
14330 | fi | |
14331 | $RM -r conftest* | |
14332 | LDFLAGS="$save_LDFLAGS" | |
14333 | ||
14334 | fi | |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14336 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14337 | ||
14338 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14339 | : | |
14340 | else | |
14341 | lt_prog_compiler_static_CXX= | |
14342 | fi | |
14343 | ||
14344 | ||
14345 | ||
14346 | ||
14347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14348 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14349 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14350 | $as_echo_n "(cached) " >&6 | |
14351 | else | |
14352 | lt_cv_prog_compiler_c_o_CXX=no | |
14353 | $RM -r conftest 2>/dev/null | |
14354 | mkdir conftest | |
14355 | cd conftest | |
14356 | mkdir out | |
14357 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14358 | ||
14359 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14360 | # Insert the option either (1) after the last *FLAGS variable, or | |
14361 | # (2) before a word containing "conftest.", or (3) at the end. | |
14362 | # Note that $ac_compile itself does not contain backslashes and begins | |
14363 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14364 | lt_compile=`echo "$ac_compile" | $SED \ | |
14365 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14366 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14367 | -e 's:$: $lt_compiler_flag:'` | |
14368 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14369 | (eval "$lt_compile" 2>out/conftest.err) | |
14370 | ac_status=$? | |
14371 | cat out/conftest.err >&5 | |
14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14373 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14374 | then | |
14375 | # The compiler can only warn and ignore the option if not recognized | |
14376 | # So say no if there are warnings | |
14377 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14378 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14379 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14380 | lt_cv_prog_compiler_c_o_CXX=yes | |
14381 | fi | |
14382 | fi | |
14383 | chmod u+w . 2>&5 | |
14384 | $RM conftest* | |
14385 | # SGI C++ compiler will create directory out/ii_files/ for | |
14386 | # template instantiation | |
14387 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14388 | $RM out/* && rmdir out | |
14389 | cd .. | |
14390 | $RM -r conftest | |
14391 | $RM conftest* | |
14392 | ||
14393 | fi | |
14394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14395 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14396 | ||
14397 | ||
14398 | ||
14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14400 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14401 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : | |
14402 | $as_echo_n "(cached) " >&6 | |
14403 | else | |
14404 | lt_cv_prog_compiler_c_o_CXX=no | |
14405 | $RM -r conftest 2>/dev/null | |
14406 | mkdir conftest | |
14407 | cd conftest | |
14408 | mkdir out | |
14409 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14410 | ||
14411 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14412 | # Insert the option either (1) after the last *FLAGS variable, or | |
14413 | # (2) before a word containing "conftest.", or (3) at the end. | |
14414 | # Note that $ac_compile itself does not contain backslashes and begins | |
14415 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14416 | lt_compile=`echo "$ac_compile" | $SED \ | |
14417 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14418 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14419 | -e 's:$: $lt_compiler_flag:'` | |
14420 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14421 | (eval "$lt_compile" 2>out/conftest.err) | |
14422 | ac_status=$? | |
14423 | cat out/conftest.err >&5 | |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14425 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14426 | then | |
14427 | # The compiler can only warn and ignore the option if not recognized | |
14428 | # So say no if there are warnings | |
14429 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14430 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14431 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14432 | lt_cv_prog_compiler_c_o_CXX=yes | |
14433 | fi | |
14434 | fi | |
14435 | chmod u+w . 2>&5 | |
14436 | $RM conftest* | |
14437 | # SGI C++ compiler will create directory out/ii_files/ for | |
14438 | # template instantiation | |
14439 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14440 | $RM out/* && rmdir out | |
14441 | cd .. | |
14442 | $RM -r conftest | |
14443 | $RM conftest* | |
14444 | ||
14445 | fi | |
14446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14447 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14448 | ||
14449 | ||
14450 | ||
14451 | ||
14452 | hard_links="nottested" | |
14453 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14454 | # do not overwrite the value of need_locks provided by the user | |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14456 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14457 | hard_links=yes | |
14458 | $RM conftest* | |
14459 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14460 | touch conftest.a | |
14461 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14462 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14464 | $as_echo "$hard_links" >&6; } | |
14465 | if test "$hard_links" = no; then | |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14467 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14468 | need_locks=warn | |
14469 | fi | |
14470 | else | |
14471 | need_locks=no | |
14472 | fi | |
14473 | ||
14474 | ||
14475 | ||
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14477 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14478 | ||
14479 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14480 | case $host_os in | |
14481 | aix[4-9]*) | |
14482 | # If we're using GNU nm, then we don't want the "-C" option. | |
14483 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14484 | # Also, AIX nm treats weak defined symbols like other global defined | |
14485 | # symbols, whereas GNU nm marks them as "W". | |
14486 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14487 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14488 | else | |
bf93d543 | 14489 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
c915a581 JJ |
14490 | fi |
14491 | ;; | |
14492 | pw32*) | |
14493 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14494 | ;; | |
14495 | cygwin* | mingw* | cegcc*) | |
14496 | 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' | |
14497 | ;; | |
14498 | *) | |
14499 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14500 | ;; | |
14501 | esac | |
14502 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14503 | ||
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14505 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14506 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14507 | ||
14508 | with_gnu_ld_CXX=$with_gnu_ld | |
14509 | ||
14510 | ||
14511 | ||
14512 | ||
14513 | ||
14514 | ||
14515 | # | |
14516 | # Do we need to explicitly link libc? | |
14517 | # | |
14518 | case "x$archive_cmds_need_lc_CXX" in | |
14519 | x|xyes) | |
14520 | # Assume -lc should be added | |
14521 | archive_cmds_need_lc_CXX=yes | |
14522 | ||
14523 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14524 | case $archive_cmds_CXX in | |
14525 | *'~'*) | |
14526 | # FIXME: we may have to deal with multi-command sequences. | |
14527 | ;; | |
14528 | '$CC '*) | |
14529 | # Test whether the compiler implicitly links with -lc since on some | |
14530 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14531 | # to ld, don't add -lc before -lgcc. | |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14533 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14534 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14535 | $as_echo_n "(cached) " >&6 | |
14536 | else | |
14537 | $RM conftest* | |
14538 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14539 | ||
14540 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14541 | (eval $ac_compile) 2>&5 | |
14542 | ac_status=$? | |
14543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14544 | test $ac_status = 0; } 2>conftest.err; then | |
14545 | soname=conftest | |
14546 | lib=conftest | |
14547 | libobjs=conftest.$ac_objext | |
14548 | deplibs= | |
14549 | wl=$lt_prog_compiler_wl_CXX | |
14550 | pic_flag=$lt_prog_compiler_pic_CXX | |
14551 | compiler_flags=-v | |
14552 | linker_flags=-v | |
14553 | verstring= | |
14554 | output_objdir=. | |
14555 | libname=conftest | |
14556 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14557 | allow_undefined_flag_CXX= | |
14558 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14559 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14560 | ac_status=$? | |
14561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14562 | test $ac_status = 0; } | |
14563 | then | |
14564 | lt_cv_archive_cmds_need_lc_CXX=no | |
14565 | else | |
14566 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14567 | fi | |
14568 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14569 | else | |
14570 | cat conftest.err 1>&5 | |
14571 | fi | |
14572 | $RM conftest* | |
14573 | ||
14574 | fi | |
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14576 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14577 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14578 | ;; | |
14579 | esac | |
14580 | fi | |
14581 | ;; | |
14582 | esac | |
14583 | ||
f35db108 | 14584 | |
c915a581 JJ |
14585 | |
14586 | ||
14587 | ||
14588 | ||
14589 | ||
14590 | ||
14591 | ||
14592 | ||
14593 | ||
14594 | ||
14595 | ||
14596 | ||
14597 | ||
14598 | ||
14599 | ||
14600 | ||
14601 | ||
14602 | ||
14603 | ||
14604 | ||
14605 | ||
14606 | ||
14607 | ||
14608 | ||
14609 | ||
14610 | ||
14611 | ||
14612 | ||
14613 | ||
14614 | ||
14615 | ||
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | ||
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | ||
14629 | ||
14630 | ||
14631 | ||
14632 | ||
14633 | ||
14634 | ||
14635 | ||
14636 | ||
14637 | ||
14638 | ||
14639 | ||
14640 | ||
14641 | ||
14642 | ||
14643 | ||
14644 | ||
14645 | ||
14646 | ||
14647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14648 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14649 | ||
14650 | library_names_spec= | |
14651 | libname_spec='lib$name' | |
14652 | soname_spec= | |
14653 | shrext_cmds=".so" | |
14654 | postinstall_cmds= | |
14655 | postuninstall_cmds= | |
14656 | finish_cmds= | |
14657 | finish_eval= | |
14658 | shlibpath_var= | |
14659 | shlibpath_overrides_runpath=unknown | |
14660 | version_type=none | |
14661 | dynamic_linker="$host_os ld.so" | |
14662 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14663 | need_lib_prefix=unknown | |
14664 | hardcode_into_libs=no | |
14665 | ||
14666 | # when you set need_version to no, make sure it does not cause -set_version | |
14667 | # flags to be left without arguments | |
14668 | need_version=unknown | |
14669 | ||
14670 | case $host_os in | |
14671 | aix3*) | |
14672 | version_type=linux | |
14673 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14674 | shlibpath_var=LIBPATH | |
14675 | ||
14676 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14677 | soname_spec='${libname}${release}${shared_ext}$major' | |
14678 | ;; | |
14679 | ||
14680 | aix[4-9]*) | |
14681 | version_type=linux | |
14682 | need_lib_prefix=no | |
14683 | need_version=no | |
14684 | hardcode_into_libs=yes | |
14685 | if test "$host_cpu" = ia64; then | |
14686 | # AIX 5 supports IA64 | |
14687 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14688 | shlibpath_var=LD_LIBRARY_PATH | |
14689 | else | |
14690 | # With GCC up to 2.95.x, collect2 would create an import file | |
14691 | # for dependence libraries. The import file would start with | |
14692 | # the line `#! .'. This would cause the generated library to | |
14693 | # depend on `.', always an invalid library. This was fixed in | |
14694 | # development snapshots of GCC prior to 3.0. | |
14695 | case $host_os in | |
14696 | aix4 | aix4.[01] | aix4.[01].*) | |
14697 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14698 | echo ' yes ' | |
14699 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14700 | : | |
14701 | else | |
14702 | can_build_shared=no | |
f35db108 WM |
14703 | fi |
14704 | ;; | |
c915a581 JJ |
14705 | esac |
14706 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14707 | # soname into executable. Probably we can add versioning support to | |
14708 | # collect2, so additional links can be useful in future. | |
14709 | if test "$aix_use_runtimelinking" = yes; then | |
14710 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14711 | # instead of lib<name>.a to let people know that these are not | |
14712 | # typical AIX shared libraries. | |
14713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14714 | else | |
14715 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14716 | # and later when we are not doing run time linking. | |
14717 | library_names_spec='${libname}${release}.a $libname.a' | |
14718 | soname_spec='${libname}${release}${shared_ext}$major' | |
14719 | fi | |
14720 | shlibpath_var=LIBPATH | |
14721 | fi | |
14722 | ;; | |
14723 | ||
14724 | amigaos*) | |
14725 | case $host_cpu in | |
14726 | powerpc) | |
14727 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14728 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14730 | ;; | |
14731 | m68k) | |
14732 | library_names_spec='$libname.ixlibrary $libname.a' | |
14733 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14734 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
14735 | ;; | |
14736 | esac | |
14737 | ;; | |
14738 | ||
14739 | beos*) | |
14740 | library_names_spec='${libname}${shared_ext}' | |
14741 | dynamic_linker="$host_os ld.so" | |
14742 | shlibpath_var=LIBRARY_PATH | |
14743 | ;; | |
14744 | ||
14745 | bsdi[45]*) | |
14746 | version_type=linux | |
14747 | need_version=no | |
14748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14749 | soname_spec='${libname}${release}${shared_ext}$major' | |
14750 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14751 | shlibpath_var=LD_LIBRARY_PATH | |
14752 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14753 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14754 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14755 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14756 | # libtool to hard-code these into programs | |
14757 | ;; | |
14758 | ||
14759 | cygwin* | mingw* | pw32* | cegcc*) | |
14760 | version_type=windows | |
14761 | shrext_cmds=".dll" | |
14762 | need_version=no | |
14763 | need_lib_prefix=no | |
14764 | ||
14765 | case $GCC,$host_os in | |
14766 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
14767 | library_names_spec='$libname.dll.a' | |
14768 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14769 | postinstall_cmds='base_file=`basename \${file}`~ | |
14770 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14771 | dldir=$destdir/`dirname \$dlpath`~ | |
14772 | test -d \$dldir || mkdir -p \$dldir~ | |
14773 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14774 | chmod a+x \$dldir/$dlname~ | |
14775 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14776 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14777 | fi' | |
14778 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14779 | dlpath=$dir/\$dldll~ | |
14780 | $RM \$dlpath' | |
14781 | shlibpath_overrides_runpath=yes | |
14782 | ||
14783 | case $host_os in | |
14784 | cygwin*) | |
14785 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14786 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14787 | ||
f35db108 | 14788 | ;; |
c915a581 JJ |
14789 | mingw* | cegcc*) |
14790 | # MinGW DLLs use traditional 'lib' prefix | |
14791 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 | 14792 | ;; |
c915a581 JJ |
14793 | pw32*) |
14794 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14795 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 WM |
14796 | ;; |
14797 | esac | |
c915a581 JJ |
14798 | ;; |
14799 | ||
14800 | *) | |
14801 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14802 | ;; | |
14803 | esac | |
14804 | dynamic_linker='Win32 ld.exe' | |
14805 | # FIXME: first we should search . and the directory the executable is in | |
14806 | shlibpath_var=PATH | |
14807 | ;; | |
14808 | ||
14809 | darwin* | rhapsody*) | |
14810 | dynamic_linker="$host_os dyld" | |
14811 | version_type=darwin | |
14812 | need_lib_prefix=no | |
14813 | need_version=no | |
14814 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14815 | soname_spec='${libname}${release}${major}$shared_ext' | |
14816 | shlibpath_overrides_runpath=yes | |
14817 | shlibpath_var=DYLD_LIBRARY_PATH | |
14818 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14819 | ||
14820 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14821 | ;; | |
14822 | ||
14823 | dgux*) | |
14824 | version_type=linux | |
14825 | need_lib_prefix=no | |
14826 | need_version=no | |
14827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14828 | soname_spec='${libname}${release}${shared_ext}$major' | |
14829 | shlibpath_var=LD_LIBRARY_PATH | |
14830 | ;; | |
14831 | ||
14832 | freebsd* | dragonfly*) | |
14833 | # DragonFly does not have aout. When/if they implement a new | |
14834 | # versioning mechanism, adjust this. | |
14835 | if test -x /usr/bin/objformat; then | |
14836 | objformat=`/usr/bin/objformat` | |
14837 | else | |
14838 | case $host_os in | |
14839 | freebsd[23].*) objformat=aout ;; | |
14840 | *) objformat=elf ;; | |
f35db108 WM |
14841 | esac |
14842 | fi | |
c915a581 JJ |
14843 | version_type=freebsd-$objformat |
14844 | case $version_type in | |
14845 | freebsd-elf*) | |
14846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14847 | need_version=no | |
14848 | need_lib_prefix=no | |
14849 | ;; | |
14850 | freebsd-*) | |
14851 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14852 | need_version=yes | |
14853 | ;; | |
14854 | esac | |
14855 | shlibpath_var=LD_LIBRARY_PATH | |
14856 | case $host_os in | |
14857 | freebsd2.*) | |
14858 | shlibpath_overrides_runpath=yes | |
14859 | ;; | |
14860 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14861 | shlibpath_overrides_runpath=yes | |
14862 | hardcode_into_libs=yes | |
14863 | ;; | |
14864 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14865 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14866 | shlibpath_overrides_runpath=no | |
14867 | hardcode_into_libs=yes | |
14868 | ;; | |
14869 | *) # from 4.6 on, and DragonFly | |
14870 | shlibpath_overrides_runpath=yes | |
14871 | hardcode_into_libs=yes | |
14872 | ;; | |
14873 | esac | |
14874 | ;; | |
f35db108 | 14875 | |
c915a581 JJ |
14876 | gnu*) |
14877 | version_type=linux | |
14878 | need_lib_prefix=no | |
14879 | need_version=no | |
14880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14881 | soname_spec='${libname}${release}${shared_ext}$major' | |
14882 | shlibpath_var=LD_LIBRARY_PATH | |
14883 | hardcode_into_libs=yes | |
14884 | ;; | |
14885 | ||
14886 | haiku*) | |
14887 | version_type=linux | |
14888 | need_lib_prefix=no | |
14889 | need_version=no | |
14890 | dynamic_linker="$host_os runtime_loader" | |
14891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14892 | soname_spec='${libname}${release}${shared_ext}$major' | |
14893 | shlibpath_var=LIBRARY_PATH | |
14894 | shlibpath_overrides_runpath=yes | |
14895 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
14896 | hardcode_into_libs=yes | |
14897 | ;; | |
14898 | ||
14899 | hpux9* | hpux10* | hpux11*) | |
14900 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14901 | # link against other versions. | |
14902 | version_type=sunos | |
14903 | need_lib_prefix=no | |
14904 | need_version=no | |
14905 | case $host_cpu in | |
14906 | ia64*) | |
14907 | shrext_cmds='.so' | |
14908 | hardcode_into_libs=yes | |
14909 | dynamic_linker="$host_os dld.so" | |
14910 | shlibpath_var=LD_LIBRARY_PATH | |
14911 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14913 | soname_spec='${libname}${release}${shared_ext}$major' | |
14914 | if test "X$HPUX_IA64_MODE" = X32; then | |
14915 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14916 | else | |
14917 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14918 | fi | |
14919 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14920 | ;; | |
14921 | hppa*64*) | |
14922 | shrext_cmds='.sl' | |
14923 | hardcode_into_libs=yes | |
14924 | dynamic_linker="$host_os dld.sl" | |
14925 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14926 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14928 | soname_spec='${libname}${release}${shared_ext}$major' | |
14929 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14930 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
f35db108 WM |
14931 | ;; |
14932 | *) | |
c915a581 JJ |
14933 | shrext_cmds='.sl' |
14934 | dynamic_linker="$host_os dld.sl" | |
14935 | shlibpath_var=SHLIB_PATH | |
14936 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14938 | soname_spec='${libname}${release}${shared_ext}$major' | |
f35db108 | 14939 | ;; |
c915a581 JJ |
14940 | esac |
14941 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14942 | postinstall_cmds='chmod 555 $lib' | |
14943 | # or fails outright, so override atomically: | |
14944 | install_override_mode=555 | |
14945 | ;; | |
a2479b3d | 14946 | |
c915a581 JJ |
14947 | interix[3-9]*) |
14948 | version_type=linux | |
14949 | need_lib_prefix=no | |
14950 | need_version=no | |
14951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14952 | soname_spec='${libname}${release}${shared_ext}$major' | |
14953 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14954 | shlibpath_var=LD_LIBRARY_PATH | |
14955 | shlibpath_overrides_runpath=no | |
14956 | hardcode_into_libs=yes | |
14957 | ;; | |
f35db108 | 14958 | |
c915a581 JJ |
14959 | irix5* | irix6* | nonstopux*) |
14960 | case $host_os in | |
14961 | nonstopux*) version_type=nonstopux ;; | |
14962 | *) | |
14963 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14964 | version_type=linux | |
14965 | else | |
14966 | version_type=irix | |
14967 | fi ;; | |
14968 | esac | |
14969 | need_lib_prefix=no | |
14970 | need_version=no | |
14971 | soname_spec='${libname}${release}${shared_ext}$major' | |
14972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14973 | case $host_os in | |
14974 | irix5* | nonstopux*) | |
14975 | libsuff= shlibsuff= | |
14976 | ;; | |
14977 | *) | |
14978 | case $LD in # libtool.m4 will add one of these switches to LD | |
14979 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14980 | libsuff= shlibsuff= libmagic=32-bit;; | |
14981 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14982 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14983 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14984 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14985 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14986 | esac | |
14987 | ;; | |
14988 | esac | |
14989 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14990 | shlibpath_overrides_runpath=no | |
14991 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14992 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14993 | hardcode_into_libs=yes | |
14994 | ;; | |
f35db108 | 14995 | |
c915a581 JJ |
14996 | # No shared lib support for Linux oldld, aout, or coff. |
14997 | linux*oldld* | linux*aout* | linux*coff*) | |
14998 | dynamic_linker=no | |
14999 | ;; | |
15000 | ||
15001 | # This must be Linux ELF. | |
15002 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15003 | version_type=linux | |
15004 | need_lib_prefix=no | |
15005 | need_version=no | |
15006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15007 | soname_spec='${libname}${release}${shared_ext}$major' | |
15008 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15009 | shlibpath_var=LD_LIBRARY_PATH | |
15010 | shlibpath_overrides_runpath=no | |
15011 | ||
15012 | # Some binutils ld are patched to set DT_RUNPATH | |
15013 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
f35db108 WM |
15014 | $as_echo_n "(cached) " >&6 |
15015 | else | |
c915a581 JJ |
15016 | lt_cv_shlibpath_overrides_runpath=no |
15017 | save_LDFLAGS=$LDFLAGS | |
15018 | save_libdir=$libdir | |
15019 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15020 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15022 | /* end confdefs.h. */ | |
15023 | ||
15024 | int | |
15025 | main () | |
15026 | { | |
f35db108 | 15027 | |
c915a581 JJ |
15028 | ; |
15029 | return 0; | |
15030 | } | |
15031 | _ACEOF | |
15032 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15033 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15034 | lt_cv_shlibpath_overrides_runpath=yes | |
15035 | fi | |
f35db108 | 15036 | fi |
c915a581 JJ |
15037 | rm -f core conftest.err conftest.$ac_objext \ |
15038 | conftest$ac_exeext conftest.$ac_ext | |
15039 | LDFLAGS=$save_LDFLAGS | |
15040 | libdir=$save_libdir | |
f35db108 | 15041 | |
f35db108 WM |
15042 | fi |
15043 | ||
c915a581 | 15044 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
f35db108 | 15045 | |
c915a581 JJ |
15046 | # This implies no fast_install, which is unacceptable. |
15047 | # Some rework will be needed to allow for fast_install | |
15048 | # before this can be enabled. | |
15049 | hardcode_into_libs=yes | |
f35db108 | 15050 | |
c915a581 JJ |
15051 | # Append ld.so.conf contents to the search path |
15052 | if test -f /etc/ld.so.conf; then | |
15053 | 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;s/"//g;/^$/d' | tr '\n' ' '` | |
15054 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15055 | fi | |
f35db108 | 15056 | |
c915a581 JJ |
15057 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15058 | # powerpc, because MkLinux only supported shared libraries with the | |
15059 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15060 | # most powerpc-linux boxes support dynamic linking these days and | |
15061 | # people can always --disable-shared, the test was removed, and we | |
15062 | # assume the GNU/Linux dynamic linker is in use. | |
15063 | dynamic_linker='GNU/Linux ld.so' | |
15064 | ;; | |
f35db108 | 15065 | |
c915a581 JJ |
15066 | netbsd*) |
15067 | version_type=sunos | |
15068 | need_lib_prefix=no | |
15069 | need_version=no | |
15070 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15072 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15073 | dynamic_linker='NetBSD (a.out) ld.so' | |
15074 | else | |
15075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15076 | soname_spec='${libname}${release}${shared_ext}$major' | |
15077 | dynamic_linker='NetBSD ld.elf_so' | |
15078 | fi | |
15079 | shlibpath_var=LD_LIBRARY_PATH | |
15080 | shlibpath_overrides_runpath=yes | |
15081 | hardcode_into_libs=yes | |
15082 | ;; | |
f35db108 | 15083 | |
c915a581 JJ |
15084 | newsos6) |
15085 | version_type=linux | |
15086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15087 | shlibpath_var=LD_LIBRARY_PATH | |
15088 | shlibpath_overrides_runpath=yes | |
15089 | ;; | |
15090 | ||
15091 | *nto* | *qnx*) | |
15092 | version_type=qnx | |
15093 | need_lib_prefix=no | |
15094 | need_version=no | |
15095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15096 | soname_spec='${libname}${release}${shared_ext}$major' | |
15097 | shlibpath_var=LD_LIBRARY_PATH | |
15098 | shlibpath_overrides_runpath=no | |
15099 | hardcode_into_libs=yes | |
15100 | dynamic_linker='ldqnx.so' | |
15101 | ;; | |
15102 | ||
15103 | openbsd*) | |
15104 | version_type=sunos | |
15105 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15106 | need_lib_prefix=no | |
15107 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15108 | case $host_os in | |
15109 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15110 | *) need_version=no ;; | |
15111 | esac | |
15112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15113 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15114 | shlibpath_var=LD_LIBRARY_PATH | |
15115 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15116 | case $host_os in | |
15117 | openbsd2.[89] | openbsd2.[89].*) | |
15118 | shlibpath_overrides_runpath=no | |
15119 | ;; | |
15120 | *) | |
15121 | shlibpath_overrides_runpath=yes | |
15122 | ;; | |
15123 | esac | |
15124 | else | |
15125 | shlibpath_overrides_runpath=yes | |
15126 | fi | |
15127 | ;; | |
f35db108 | 15128 | |
c915a581 JJ |
15129 | os2*) |
15130 | libname_spec='$name' | |
15131 | shrext_cmds=".dll" | |
15132 | need_lib_prefix=no | |
15133 | library_names_spec='$libname${shared_ext} $libname.a' | |
15134 | dynamic_linker='OS/2 ld.exe' | |
15135 | shlibpath_var=LIBPATH | |
15136 | ;; | |
f35db108 | 15137 | |
c915a581 JJ |
15138 | osf3* | osf4* | osf5*) |
15139 | version_type=osf | |
15140 | need_lib_prefix=no | |
15141 | need_version=no | |
15142 | soname_spec='${libname}${release}${shared_ext}$major' | |
15143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15144 | shlibpath_var=LD_LIBRARY_PATH | |
15145 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15146 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15147 | ;; | |
f35db108 | 15148 | |
c915a581 JJ |
15149 | rdos*) |
15150 | dynamic_linker=no | |
15151 | ;; | |
f35db108 | 15152 | |
c915a581 JJ |
15153 | solaris*) |
15154 | version_type=linux | |
15155 | need_lib_prefix=no | |
15156 | need_version=no | |
15157 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15158 | soname_spec='${libname}${release}${shared_ext}$major' | |
15159 | shlibpath_var=LD_LIBRARY_PATH | |
15160 | shlibpath_overrides_runpath=yes | |
15161 | hardcode_into_libs=yes | |
15162 | # ldd complains unless libraries are executable | |
15163 | postinstall_cmds='chmod +x $lib' | |
15164 | ;; | |
f35db108 | 15165 | |
c915a581 JJ |
15166 | sunos4*) |
15167 | version_type=sunos | |
15168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15169 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15170 | shlibpath_var=LD_LIBRARY_PATH | |
15171 | shlibpath_overrides_runpath=yes | |
15172 | if test "$with_gnu_ld" = yes; then | |
15173 | need_lib_prefix=no | |
15174 | fi | |
15175 | need_version=yes | |
15176 | ;; | |
f35db108 | 15177 | |
c915a581 JJ |
15178 | sysv4 | sysv4.3*) |
15179 | version_type=linux | |
15180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15181 | soname_spec='${libname}${release}${shared_ext}$major' | |
15182 | shlibpath_var=LD_LIBRARY_PATH | |
15183 | case $host_vendor in | |
15184 | sni) | |
15185 | shlibpath_overrides_runpath=no | |
15186 | need_lib_prefix=no | |
15187 | runpath_var=LD_RUN_PATH | |
15188 | ;; | |
15189 | siemens) | |
15190 | need_lib_prefix=no | |
15191 | ;; | |
15192 | motorola) | |
15193 | need_lib_prefix=no | |
15194 | need_version=no | |
15195 | shlibpath_overrides_runpath=no | |
15196 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15197 | ;; | |
15198 | esac | |
15199 | ;; | |
15200 | ||
15201 | sysv4*MP*) | |
15202 | if test -d /usr/nec ;then | |
15203 | version_type=linux | |
15204 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15205 | soname_spec='$libname${shared_ext}.$major' | |
15206 | shlibpath_var=LD_LIBRARY_PATH | |
15207 | fi | |
15208 | ;; | |
f35db108 | 15209 | |
c915a581 JJ |
15210 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15211 | version_type=freebsd-elf | |
15212 | need_lib_prefix=no | |
15213 | need_version=no | |
15214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15215 | soname_spec='${libname}${release}${shared_ext}$major' | |
15216 | shlibpath_var=LD_LIBRARY_PATH | |
15217 | shlibpath_overrides_runpath=yes | |
15218 | hardcode_into_libs=yes | |
15219 | if test "$with_gnu_ld" = yes; then | |
15220 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15221 | else | |
15222 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15223 | case $host_os in | |
15224 | sco3.2v5*) | |
15225 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15226 | ;; | |
15227 | esac | |
15228 | fi | |
15229 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15230 | ;; | |
f35db108 | 15231 | |
c915a581 JJ |
15232 | tpf*) |
15233 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15234 | version_type=linux | |
15235 | need_lib_prefix=no | |
15236 | need_version=no | |
15237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15238 | shlibpath_var=LD_LIBRARY_PATH | |
15239 | shlibpath_overrides_runpath=no | |
15240 | hardcode_into_libs=yes | |
15241 | ;; | |
f35db108 | 15242 | |
c915a581 JJ |
15243 | uts4*) |
15244 | version_type=linux | |
15245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15246 | soname_spec='${libname}${release}${shared_ext}$major' | |
15247 | shlibpath_var=LD_LIBRARY_PATH | |
15248 | ;; | |
f35db108 | 15249 | |
c915a581 JJ |
15250 | *) |
15251 | dynamic_linker=no | |
15252 | ;; | |
15253 | esac | |
15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15255 | $as_echo "$dynamic_linker" >&6; } | |
15256 | test "$dynamic_linker" = no && can_build_shared=no | |
f35db108 | 15257 | |
c915a581 JJ |
15258 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15259 | if test "$GCC" = yes; then | |
15260 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
f35db108 | 15261 | fi |
f35db108 | 15262 | |
c915a581 JJ |
15263 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15264 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15265 | fi | |
15266 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15267 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15268 | fi | |
f35db108 WM |
15269 | |
15270 | ||
f35db108 WM |
15271 | |
15272 | ||
15273 | ||
f35db108 | 15274 | |
f35db108 | 15275 | |
f35db108 | 15276 | |
f35db108 WM |
15277 | |
15278 | ||
15279 | ||
15280 | ||
15281 | ||
15282 | ||
f35db108 | 15283 | |
f35db108 | 15284 | |
f35db108 | 15285 | |
f35db108 WM |
15286 | |
15287 | ||
15288 | ||
15289 | ||
15290 | ||
15291 | ||
15292 | ||
15293 | ||
15294 | ||
15295 | ||
15296 | ||
15297 | ||
15298 | ||
15299 | ||
15300 | ||
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | ||
15306 | ||
c915a581 JJ |
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15308 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15309 | hardcode_action_CXX= | |
15310 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15311 | test -n "$runpath_var_CXX" || | |
15312 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
f35db108 | 15313 | |
c915a581 JJ |
15314 | # We can hardcode non-existent directories. |
15315 | if test "$hardcode_direct_CXX" != no && | |
15316 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15317 | # have to relink, otherwise we might link with an installed library | |
15318 | # when we should be linking with a yet-to-be-installed one | |
15319 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15320 | test "$hardcode_minus_L_CXX" != no; then | |
15321 | # Linking always hardcodes the temporary library directory. | |
15322 | hardcode_action_CXX=relink | |
15323 | else | |
15324 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15325 | hardcode_action_CXX=immediate | |
15326 | fi | |
15327 | else | |
15328 | # We cannot hardcode anything, or else we can only hardcode existing | |
15329 | # directories. | |
15330 | hardcode_action_CXX=unsupported | |
15331 | fi | |
15332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15333 | $as_echo "$hardcode_action_CXX" >&6; } | |
f35db108 | 15334 | |
c915a581 JJ |
15335 | if test "$hardcode_action_CXX" = relink || |
15336 | test "$inherit_rpath_CXX" = yes; then | |
15337 | # Fast installation is not supported | |
15338 | enable_fast_install=no | |
15339 | elif test "$shlibpath_overrides_runpath" = yes || | |
15340 | test "$enable_shared" = no; then | |
15341 | # Fast installation is not necessary | |
15342 | enable_fast_install=needless | |
15343 | fi | |
f35db108 WM |
15344 | |
15345 | ||
15346 | ||
15347 | ||
15348 | ||
15349 | ||
15350 | ||
c915a581 | 15351 | fi # test -n "$compiler" |
f35db108 | 15352 | |
c915a581 JJ |
15353 | CC=$lt_save_CC |
15354 | LDCXX=$LD | |
15355 | LD=$lt_save_LD | |
15356 | GCC=$lt_save_GCC | |
15357 | with_gnu_ld=$lt_save_with_gnu_ld | |
15358 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15359 | lt_cv_path_LD=$lt_save_path_LD | |
15360 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15361 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15362 | fi # test "$_lt_caught_CXX_error" != yes | |
f35db108 | 15363 | |
c915a581 JJ |
15364 | ac_ext=c |
15365 | ac_cpp='$CPP $CPPFLAGS' | |
15366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 WM |
15369 | |
15370 | ||
15371 | ||
15372 | ||
15373 | ||
15374 | ||
15375 | ||
15376 | ||
15377 | ||
15378 | ||
15379 | ||
15380 | ||
15381 | ||
c915a581 | 15382 | ac_config_commands="$ac_config_commands libtool" |
f35db108 WM |
15383 | |
15384 | ||
15385 | ||
15386 | ||
c915a581 | 15387 | # Only expand once: |
f35db108 WM |
15388 | |
15389 | ||
15390 | ||
c915a581 JJ |
15391 | for ac_prog in gawk mawk nawk awk |
15392 | do | |
15393 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15394 | set dummy $ac_prog; ac_word=$2 | |
15395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15396 | $as_echo_n "checking for $ac_word... " >&6; } | |
15397 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
15398 | $as_echo_n "(cached) " >&6 | |
15399 | else | |
15400 | if test -n "$AWK"; then | |
15401 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
15402 | else | |
15403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15404 | for as_dir in $PATH | |
15405 | do | |
15406 | IFS=$as_save_IFS | |
15407 | test -z "$as_dir" && as_dir=. | |
15408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
15410 | ac_cv_prog_AWK="$ac_prog" | |
15411 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15412 | break 2 | |
15413 | fi | |
15414 | done | |
15415 | done | |
15416 | IFS=$as_save_IFS | |
f35db108 | 15417 | |
c915a581 JJ |
15418 | fi |
15419 | fi | |
15420 | AWK=$ac_cv_prog_AWK | |
15421 | if test -n "$AWK"; then | |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
15423 | $as_echo "$AWK" >&6; } | |
15424 | else | |
15425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15426 | $as_echo "no" >&6; } | |
15427 | fi | |
f35db108 WM |
15428 | |
15429 | ||
c915a581 JJ |
15430 | test -n "$AWK" && break |
15431 | done | |
f35db108 | 15432 | |
c915a581 JJ |
15433 | case "$AWK" in |
15434 | "") as_fn_error "can't build without awk" "$LINENO" 5 ;; | |
15435 | esac | |
f35db108 WM |
15436 | |
15437 | ||
15438 | ||
a2479b3d | 15439 | |
c915a581 JJ |
15440 | # The cast to long int works around a bug in the HP C Compiler |
15441 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15442 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15443 | # This bug is HP SR number 8606223364. | |
15444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15445 | $as_echo_n "checking size of void *... " >&6; } | |
15446 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
15447 | $as_echo_n "(cached) " >&6 | |
15448 | else | |
15449 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
a2479b3d | 15450 | |
c915a581 JJ |
15451 | else |
15452 | if test "$ac_cv_type_void_p" = yes; then | |
15453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15455 | { as_fn_set_status 77 | |
15456 | as_fn_error "cannot compute sizeof (void *) | |
15457 | See \`config.log' for more details." "$LINENO" 5; }; } | |
15458 | else | |
15459 | ac_cv_sizeof_void_p=0 | |
15460 | fi | |
15461 | fi | |
f35db108 | 15462 | |
c915a581 JJ |
15463 | fi |
15464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15465 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
f35db108 WM |
15466 | |
15467 | ||
f35db108 | 15468 | |
c915a581 JJ |
15469 | cat >>confdefs.h <<_ACEOF |
15470 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15471 | _ACEOF | |
f35db108 | 15472 | |
f35db108 | 15473 | |
f35db108 | 15474 | |
c915a581 JJ |
15475 | if test "${multilib}" = "yes"; then |
15476 | multilib_arg="--enable-multilib" | |
15477 | else | |
15478 | multilib_arg= | |
15479 | fi | |
f35db108 | 15480 | |
c915a581 JJ |
15481 | # Get target configury. |
15482 | unset TSAN_SUPPORTED | |
15483 | unset LSAN_SUPPORTED | |
15484 | . ${srcdir}/configure.tgt | |
15485 | if test "x$TSAN_SUPPORTED" = "xyes"; then | |
15486 | TSAN_SUPPORTED_TRUE= | |
15487 | TSAN_SUPPORTED_FALSE='#' | |
15488 | else | |
15489 | TSAN_SUPPORTED_TRUE='#' | |
15490 | TSAN_SUPPORTED_FALSE= | |
15491 | fi | |
f35db108 | 15492 | |
c915a581 JJ |
15493 | if test "x$LSAN_SUPPORTED" = "xyes"; then |
15494 | LSAN_SUPPORTED_TRUE= | |
15495 | LSAN_SUPPORTED_FALSE='#' | |
15496 | else | |
15497 | LSAN_SUPPORTED_TRUE='#' | |
15498 | LSAN_SUPPORTED_FALSE= | |
15499 | fi | |
f35db108 | 15500 | |
f35db108 | 15501 | |
c915a581 JJ |
15502 | # Check for functions needed. |
15503 | for ac_func in clock_getres clock_gettime clock_settime | |
15504 | do : | |
15505 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15506 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15507 | eval as_val=\$$as_ac_var | |
15508 | if test "x$as_val" = x""yes; then : | |
15509 | cat >>confdefs.h <<_ACEOF | |
15510 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15511 | _ACEOF | |
f35db108 | 15512 | |
c915a581 JJ |
15513 | fi |
15514 | done | |
f35db108 | 15515 | |
f35db108 | 15516 | |
c915a581 | 15517 | # Common libraries that we need to link against for all sanitizer libs. |
bf93d543 | 15518 | link_sanitizer_common='-lpthread -lm' |
692b1131 MO |
15519 | |
15520 | # At least for glibc, shm_open is in librt. But don't pull that | |
15521 | # in if it still doesn't give us the function we want. This | |
15522 | # test is copied from libgomp. | |
15523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 | |
15524 | $as_echo_n "checking for shm_open in -lrt... " >&6; } | |
15525 | if test "${ac_cv_lib_rt_shm_open+set}" = set; then : | |
15526 | $as_echo_n "(cached) " >&6 | |
15527 | else | |
15528 | ac_check_lib_save_LIBS=$LIBS | |
15529 | LIBS="-lrt $LIBS" | |
15530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15531 | /* end confdefs.h. */ | |
15532 | ||
15533 | /* Override any GCC internal prototype to avoid an error. | |
15534 | Use char because int might match the return type of a GCC | |
15535 | builtin and then its argument prototype would still apply. */ | |
15536 | #ifdef __cplusplus | |
15537 | extern "C" | |
15538 | #endif | |
15539 | char shm_open (); | |
15540 | int | |
15541 | main () | |
15542 | { | |
15543 | return shm_open (); | |
15544 | ; | |
15545 | return 0; | |
15546 | } | |
15547 | _ACEOF | |
15548 | if ac_fn_c_try_link "$LINENO"; then : | |
15549 | ac_cv_lib_rt_shm_open=yes | |
15550 | else | |
15551 | ac_cv_lib_rt_shm_open=no | |
15552 | fi | |
15553 | rm -f core conftest.err conftest.$ac_objext \ | |
15554 | conftest$ac_exeext conftest.$ac_ext | |
15555 | LIBS=$ac_check_lib_save_LIBS | |
15556 | fi | |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 | |
15558 | $as_echo "$ac_cv_lib_rt_shm_open" >&6; } | |
15559 | if test "x$ac_cv_lib_rt_shm_open" = x""yes; then : | |
15560 | link_sanitizer_common="-lrt $link_sanitizer_common" | |
15561 | fi | |
15562 | ||
f35db108 | 15563 | |
bf93d543 AT |
15564 | # Do a configure time check for -ldl |
15565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | |
15566 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | |
15567 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then : | |
15568 | $as_echo_n "(cached) " >&6 | |
15569 | else | |
15570 | ac_check_lib_save_LIBS=$LIBS | |
15571 | LIBS="-ldl $LIBS" | |
15572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15573 | /* end confdefs.h. */ | |
15574 | ||
15575 | /* Override any GCC internal prototype to avoid an error. | |
15576 | Use char because int might match the return type of a GCC | |
15577 | builtin and then its argument prototype would still apply. */ | |
15578 | #ifdef __cplusplus | |
15579 | extern "C" | |
15580 | #endif | |
15581 | char dlsym (); | |
15582 | int | |
15583 | main () | |
15584 | { | |
15585 | return dlsym (); | |
15586 | ; | |
15587 | return 0; | |
15588 | } | |
15589 | _ACEOF | |
15590 | if ac_fn_c_try_link "$LINENO"; then : | |
15591 | ac_cv_lib_dl_dlsym=yes | |
15592 | else | |
15593 | ac_cv_lib_dl_dlsym=no | |
15594 | fi | |
15595 | rm -f core conftest.err conftest.$ac_objext \ | |
15596 | conftest$ac_exeext conftest.$ac_ext | |
15597 | LIBS=$ac_check_lib_save_LIBS | |
15598 | fi | |
15599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | |
15600 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | |
15601 | if test "x$ac_cv_lib_dl_dlsym" = x""yes; then : | |
15602 | link_sanitizer_common="-ldl $link_sanitizer_common" | |
15603 | fi | |
15604 | ||
15605 | ||
c915a581 JJ |
15606 | # Set up the set of additional libraries that we need to link against for libasan. |
15607 | link_libasan=$link_sanitizer_common | |
f35db108 | 15608 | |
f35db108 | 15609 | |
c915a581 JJ |
15610 | # Set up the set of additional libraries that we need to link against for libtsan. |
15611 | link_libtsan=$link_sanitizer_common | |
f35db108 | 15612 | |
f35db108 | 15613 | |
c915a581 JJ |
15614 | # Set up the set of additional libraries that we need to link against for libubsan. |
15615 | link_libubsan=$link_sanitizer_common | |
f35db108 | 15616 | |
f35db108 | 15617 | |
c915a581 JJ |
15618 | # Set up the set of additional libraries that we need to link against for liblsan. |
15619 | link_liblsan=$link_sanitizer_common | |
f35db108 | 15620 | |
f35db108 | 15621 | |
692b1131 MO |
15622 | |
15623 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
15624 | # in if it still doesn't give us the function we want. This | |
15625 | # test is copied from libgomp. | |
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
15627 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
15628 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
15629 | $as_echo_n "(cached) " >&6 | |
15630 | else | |
15631 | ac_check_lib_save_LIBS=$LIBS | |
15632 | LIBS="-lrt $LIBS" | |
15633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15634 | /* end confdefs.h. */ | |
15635 | ||
15636 | /* Override any GCC internal prototype to avoid an error. | |
15637 | Use char because int might match the return type of a GCC | |
15638 | builtin and then its argument prototype would still apply. */ | |
15639 | #ifdef __cplusplus | |
15640 | extern "C" | |
15641 | #endif | |
15642 | char clock_gettime (); | |
15643 | int | |
15644 | main () | |
15645 | { | |
15646 | return clock_gettime (); | |
15647 | ; | |
15648 | return 0; | |
15649 | } | |
15650 | _ACEOF | |
15651 | if ac_fn_c_try_link "$LINENO"; then : | |
15652 | ac_cv_lib_rt_clock_gettime=yes | |
15653 | else | |
15654 | ac_cv_lib_rt_clock_gettime=no | |
15655 | fi | |
15656 | rm -f core conftest.err conftest.$ac_objext \ | |
15657 | conftest$ac_exeext conftest.$ac_ext | |
15658 | LIBS=$ac_check_lib_save_LIBS | |
15659 | fi | |
15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
15661 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
15662 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
15663 | link_libasan="-lrt $link_libasan" | |
15664 | link_libtsan="-lrt $link_libtsan" | |
15665 | # Other sanitizers do not override clock_* API | |
15666 | ||
15667 | fi | |
15668 | ||
15669 | ||
c915a581 | 15670 | case "$host" in |
692b1131 MO |
15671 | *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;; |
15672 | *) MAC_INTERPOSE=false ;; | |
c915a581 JJ |
15673 | esac |
15674 | if $MAC_INTERPOSE; then | |
15675 | USING_MAC_INTERPOSE_TRUE= | |
15676 | USING_MAC_INTERPOSE_FALSE='#' | |
15677 | else | |
15678 | USING_MAC_INTERPOSE_TRUE='#' | |
15679 | USING_MAC_INTERPOSE_FALSE= | |
15680 | fi | |
f35db108 | 15681 | |
c915a581 JJ |
15682 | |
15683 | backtrace_supported=yes | |
15684 | ||
4a7eaf5f YG |
15685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5 |
15686 | $as_echo_n "checking for necessary platform features... " >&6; } | |
15687 | case "$target" in | |
15688 | *-*-linux*) | |
15689 | # Some old Linux distributions miss required syscalls. | |
15690 | sanitizer_supported=no | |
15691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15692 | /* end confdefs.h. */ | |
15693 | #include <sys/syscall.h> | |
15694 | int | |
15695 | main () | |
15696 | { | |
15697 | ||
15698 | syscall (__NR_gettid); | |
15699 | syscall (__NR_futex); | |
15700 | syscall (__NR_exit_group); | |
15701 | ||
15702 | ; | |
15703 | return 0; | |
15704 | } | |
15705 | _ACEOF | |
15706 | if ac_fn_c_try_compile "$LINENO"; then : | |
15707 | sanitizer_supported=yes | |
15708 | fi | |
15709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15710 | ;; | |
15711 | *) | |
15712 | sanitizer_supported=yes | |
15713 | ;; | |
15714 | esac | |
15715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5 | |
15716 | $as_echo "$sanitizer_supported" >&6; } | |
15717 | if test "$sanitizer_supported" = yes; then | |
15718 | SANITIZER_SUPPORTED_TRUE= | |
15719 | SANITIZER_SUPPORTED_FALSE='#' | |
15720 | else | |
15721 | SANITIZER_SUPPORTED_TRUE='#' | |
15722 | SANITIZER_SUPPORTED_FALSE= | |
15723 | fi | |
15724 | ||
15725 | ||
c915a581 JJ |
15726 | # Test for __sync support. |
15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
15728 | $as_echo_n "checking __sync extensions... " >&6; } | |
15729 | if test "${libsanitizer_cv_sys_sync+set}" = set; then : | |
f35db108 WM |
15730 | $as_echo_n "(cached) " >&6 |
15731 | else | |
c915a581 JJ |
15732 | if test -n "${with_target_subdir}"; then |
15733 | libsanitizer_cv_sys_sync=yes | |
15734 | else | |
15735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f35db108 | 15736 | /* end confdefs.h. */ |
c915a581 | 15737 | int i; |
f35db108 WM |
15738 | int |
15739 | main () | |
15740 | { | |
c915a581 JJ |
15741 | __sync_bool_compare_and_swap (&i, i, i); |
15742 | __sync_lock_test_and_set (&i, 1); | |
15743 | __sync_lock_release (&i); | |
f35db108 WM |
15744 | ; |
15745 | return 0; | |
15746 | } | |
15747 | _ACEOF | |
c915a581 JJ |
15748 | if ac_fn_c_try_link "$LINENO"; then : |
15749 | libsanitizer_cv_sys_sync=yes | |
15750 | else | |
15751 | libsanitizer_cv_sys_sync=no | |
f35db108 WM |
15752 | fi |
15753 | rm -f core conftest.err conftest.$ac_objext \ | |
15754 | conftest$ac_exeext conftest.$ac_ext | |
c915a581 | 15755 | fi |
f35db108 | 15756 | fi |
c915a581 JJ |
15757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5 |
15758 | $as_echo "$libsanitizer_cv_sys_sync" >&6; } | |
15759 | if test "$libsanitizer_cv_sys_sync" = "yes"; then | |
f35db108 | 15760 | |
c915a581 | 15761 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h |
f35db108 | 15762 | |
f35db108 WM |
15763 | fi |
15764 | ||
c915a581 JJ |
15765 | # Test for __atomic support. |
15766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 | |
15767 | $as_echo_n "checking __atomic extensions... " >&6; } | |
15768 | if test "${libsanitizer_cv_sys_atomic+set}" = set; then : | |
15769 | $as_echo_n "(cached) " >&6 | |
15770 | else | |
15771 | if test -n "${with_target_subdir}"; then | |
15772 | libsanitizer_cv_sys_atomic=yes | |
15773 | else | |
15774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15775 | /* end confdefs.h. */ | |
15776 | int i; | |
15777 | int | |
15778 | main () | |
15779 | { | |
15780 | __atomic_load_n (&i, __ATOMIC_ACQUIRE); | |
15781 | __atomic_store_n (&i, 1, __ATOMIC_RELEASE); | |
15782 | ; | |
15783 | return 0; | |
15784 | } | |
15785 | _ACEOF | |
15786 | if ac_fn_c_try_link "$LINENO"; then : | |
15787 | libsanitizer_cv_sys_atomic=yes | |
15788 | else | |
15789 | libsanitizer_cv_sys_atomic=no | |
f35db108 | 15790 | fi |
c915a581 JJ |
15791 | rm -f core conftest.err conftest.$ac_objext \ |
15792 | conftest$ac_exeext conftest.$ac_ext | |
15793 | fi | |
f35db108 | 15794 | fi |
c915a581 JJ |
15795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5 |
15796 | $as_echo "$libsanitizer_cv_sys_atomic" >&6; } | |
15797 | if test "$libsanitizer_cv_sys_atomic" = "yes"; then | |
f35db108 | 15798 | |
c915a581 | 15799 | $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h |
f35db108 | 15800 | |
c915a581 | 15801 | fi |
f35db108 | 15802 | |
c915a581 JJ |
15803 | # The library needs to be able to read the executable itself. Compile |
15804 | # a file to determine the executable format. The awk script | |
15805 | # filetype.awk prints out the file type. | |
15806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
15807 | $as_echo_n "checking output filetype... " >&6; } | |
15808 | if test "${libsanitizer_cv_sys_filetype+set}" = set; then : | |
15809 | $as_echo_n "(cached) " >&6 | |
15810 | else | |
15811 | filetype= | |
15812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15813 | /* end confdefs.h. */ | |
15814 | int i; | |
15815 | int | |
15816 | main () | |
15817 | { | |
15818 | int j; | |
15819 | ; | |
15820 | return 0; | |
15821 | } | |
15822 | _ACEOF | |
15823 | if ac_fn_c_try_compile "$LINENO"; then : | |
15824 | filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext` | |
15825 | else | |
15826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15828 | as_fn_error "compiler failed | |
15829 | See \`config.log' for more details." "$LINENO" 5; } | |
15830 | fi | |
15831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15832 | libsanitizer_cv_sys_filetype=$filetype | |
15833 | fi | |
15834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5 | |
15835 | $as_echo "$libsanitizer_cv_sys_filetype" >&6; } | |
15836 | ||
15837 | # Match the file type to decide what files to compile. | |
15838 | FORMAT_FILE= | |
15839 | case "$libsanitizer_cv_sys_filetype" in | |
15840 | elf*) FORMAT_FILE="elf.lo" ;; | |
15841 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 | |
15842 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
15843 | FORMAT_FILE="unknown.lo" | |
15844 | backtrace_supported=no | |
15845 | ;; | |
15846 | esac | |
f35db108 WM |
15847 | |
15848 | ||
c915a581 JJ |
15849 | # ELF defines. |
15850 | elfsize= | |
15851 | case "$libsanitizer_cv_sys_filetype" in | |
15852 | elf32) elfsize=32 ;; | |
15853 | elf64) elfsize=64 ;; | |
15854 | esac | |
f35db108 | 15855 | |
c915a581 JJ |
15856 | cat >>confdefs.h <<_ACEOF |
15857 | #define BACKTRACE_ELF_SIZE $elfsize | |
15858 | _ACEOF | |
f35db108 WM |
15859 | |
15860 | ||
c915a581 JJ |
15861 | BACKTRACE_SUPPORTED=0 |
15862 | if test "$backtrace_supported" = "yes"; then | |
15863 | BACKTRACE_SUPPORTED=1 | |
15864 | fi | |
f35db108 WM |
15865 | |
15866 | ||
15867 | ||
15868 | ||
c915a581 | 15869 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
f35db108 | 15870 | |
c915a581 JJ |
15871 | acx_cv_header_stdint=stddef.h |
15872 | acx_cv_header_stdint_kind="(already complete)" | |
15873 | for i in stdint.h $inttype_headers; do | |
15874 | unset ac_cv_type_uintptr_t | |
15875 | unset ac_cv_type_uintmax_t | |
15876 | unset ac_cv_type_int_least32_t | |
15877 | unset ac_cv_type_int_fast32_t | |
15878 | unset ac_cv_type_uint64_t | |
15879 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
15880 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
15881 | #include <$i> | |
15882 | " | |
15883 | if test "x$ac_cv_type_uintmax_t" = x""yes; then : | |
15884 | acx_cv_header_stdint=$i | |
15885 | else | |
15886 | continue | |
15887 | fi | |
f35db108 | 15888 | |
c915a581 JJ |
15889 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
15890 | #include <$i> | |
15891 | " | |
15892 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
f35db108 | 15893 | |
c915a581 JJ |
15894 | else |
15895 | acx_cv_header_stdint_kind="(mostly complete)" | |
15896 | fi | |
f35db108 | 15897 | |
c915a581 JJ |
15898 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
15899 | #include <$i> | |
15900 | " | |
15901 | if test "x$ac_cv_type_int_least32_t" = x""yes; then : | |
f35db108 | 15902 | |
c915a581 JJ |
15903 | else |
15904 | acx_cv_header_stdint_kind="(mostly complete)" | |
15905 | fi | |
f35db108 | 15906 | |
c915a581 JJ |
15907 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
15908 | #include <$i> | |
15909 | " | |
15910 | if test "x$ac_cv_type_int_fast32_t" = x""yes; then : | |
f35db108 | 15911 | |
c915a581 JJ |
15912 | else |
15913 | acx_cv_header_stdint_kind="(mostly complete)" | |
15914 | fi | |
f35db108 | 15915 | |
c915a581 JJ |
15916 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
15917 | #include <$i> | |
15918 | " | |
15919 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
f35db108 | 15920 | |
c915a581 JJ |
15921 | else |
15922 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
15923 | fi | |
f35db108 | 15924 | |
c915a581 JJ |
15925 | break |
15926 | done | |
15927 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15928 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
15929 | for i in stdint.h $inttype_headers; do | |
15930 | unset ac_cv_type_uintptr_t | |
15931 | unset ac_cv_type_uint32_t | |
15932 | unset ac_cv_type_uint64_t | |
15933 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
15934 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
15935 | #include <$i> | |
15936 | " | |
15937 | if test "x$ac_cv_type_uint32_t" = x""yes; then : | |
15938 | acx_cv_header_stdint=$i | |
15939 | else | |
15940 | continue | |
15941 | fi | |
f35db108 | 15942 | |
c915a581 JJ |
15943 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
15944 | #include <$i> | |
15945 | " | |
15946 | if test "x$ac_cv_type_uint64_t" = x""yes; then : | |
f35db108 | 15947 | |
c915a581 | 15948 | fi |
f35db108 | 15949 | |
c915a581 JJ |
15950 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
15951 | #include <$i> | |
15952 | " | |
15953 | if test "x$ac_cv_type_uintptr_t" = x""yes; then : | |
f35db108 | 15954 | |
c915a581 | 15955 | fi |
f35db108 | 15956 | |
c915a581 JJ |
15957 | break |
15958 | done | |
15959 | fi | |
15960 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15961 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
15962 | for i in sys/types.h $inttype_headers; do | |
15963 | unset ac_cv_type_u_int32_t | |
15964 | unset ac_cv_type_u_int64_t | |
15965 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
15966 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
15967 | #include <$i> | |
15968 | " | |
15969 | if test "x$ac_cv_type_u_int32_t" = x""yes; then : | |
15970 | acx_cv_header_stdint=$i | |
15971 | else | |
15972 | continue | |
15973 | fi | |
f35db108 | 15974 | |
c915a581 JJ |
15975 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
15976 | #include <$i> | |
15977 | " | |
15978 | if test "x$ac_cv_type_u_int64_t" = x""yes; then : | |
f35db108 | 15979 | |
c915a581 | 15980 | fi |
f35db108 | 15981 | |
c915a581 JJ |
15982 | break |
15983 | done | |
15984 | fi | |
15985 | if test "$acx_cv_header_stdint" = stddef.h; then | |
15986 | acx_cv_header_stdint_kind="(using manual detection)" | |
15987 | fi | |
f35db108 | 15988 | |
c915a581 JJ |
15989 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
15990 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
15991 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
15992 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
15993 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
f35db108 | 15994 | |
c915a581 | 15995 | # ----------------- Summarize what we found so far |
f35db108 | 15996 | |
c915a581 JJ |
15997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
15998 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
f35db108 | 15999 | |
c915a581 JJ |
16000 | case `$as_basename -- gstdint.h || |
16001 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16002 | Xgstdint.h : 'X\(//\)$' \| \ | |
16003 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16004 | $as_echo X/gstdint.h | | |
16005 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16006 | s//\1/ | |
16007 | q | |
16008 | } | |
16009 | /^X\/\(\/\/\)$/{ | |
16010 | s//\1/ | |
16011 | q | |
16012 | } | |
16013 | /^X\/\(\/\).*/{ | |
16014 | s//\1/ | |
16015 | q | |
16016 | } | |
16017 | s/.*/./; q'` in | |
16018 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16019 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16020 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16021 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16022 | *) ;; | |
16023 | esac | |
f35db108 | 16024 | |
c915a581 JJ |
16025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16026 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
f35db108 | 16027 | |
c915a581 | 16028 | # ----------------- done included file, check C basic types -------- |
f35db108 | 16029 | |
c915a581 JJ |
16030 | # Lacking an uintptr_t? Test size of void * |
16031 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16032 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16033 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16034 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16035 | # This bug is HP SR number 8606223364. | |
16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16037 | $as_echo_n "checking size of void *... " >&6; } | |
16038 | if test "${ac_cv_sizeof_void_p+set}" = set; then : | |
16039 | $as_echo_n "(cached) " >&6 | |
16040 | else | |
16041 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
f35db108 | 16042 | |
f35db108 | 16043 | else |
c915a581 JJ |
16044 | if test "$ac_cv_type_void_p" = yes; then |
16045 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16046 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16047 | { as_fn_set_status 77 | |
16048 | as_fn_error "cannot compute sizeof (void *) | |
16049 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16050 | else | |
16051 | ac_cv_sizeof_void_p=0 | |
16052 | fi | |
f35db108 | 16053 | fi |
f35db108 | 16054 | |
f35db108 | 16055 | fi |
c915a581 JJ |
16056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
16057 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
f35db108 WM |
16058 | |
16059 | ||
16060 | ||
c915a581 JJ |
16061 | cat >>confdefs.h <<_ACEOF |
16062 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16063 | _ACEOF | |
f35db108 | 16064 | |
c915a581 JJ |
16065 | ;; |
16066 | esac | |
f35db108 | 16067 | |
c915a581 JJ |
16068 | # Lacking an uint64_t? Test size of long |
16069 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16070 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16073 | # This bug is HP SR number 8606223364. | |
16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16075 | $as_echo_n "checking size of long... " >&6; } | |
16076 | if test "${ac_cv_sizeof_long+set}" = set; then : | |
16077 | $as_echo_n "(cached) " >&6 | |
16078 | else | |
16079 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
f35db108 | 16080 | |
c915a581 JJ |
16081 | else |
16082 | if test "$ac_cv_type_long" = yes; then | |
16083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16085 | { as_fn_set_status 77 | |
16086 | as_fn_error "cannot compute sizeof (long) | |
16087 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16088 | else | |
16089 | ac_cv_sizeof_long=0 | |
16090 | fi | |
16091 | fi | |
f35db108 | 16092 | |
c915a581 JJ |
16093 | fi |
16094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16095 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
f35db108 WM |
16096 | |
16097 | ||
16098 | ||
c915a581 JJ |
16099 | cat >>confdefs.h <<_ACEOF |
16100 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16101 | _ACEOF | |
f35db108 | 16102 | |
c915a581 JJ |
16103 | ;; |
16104 | esac | |
f35db108 | 16105 | |
c915a581 JJ |
16106 | if test $acx_cv_header_stdint = stddef.h; then |
16107 | # Lacking a good header? Test size of everything and deduce all types. | |
16108 | # The cast to long int works around a bug in the HP C Compiler | |
16109 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16110 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16111 | # This bug is HP SR number 8606223364. | |
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16113 | $as_echo_n "checking size of int... " >&6; } | |
16114 | if test "${ac_cv_sizeof_int+set}" = set; then : | |
16115 | $as_echo_n "(cached) " >&6 | |
16116 | else | |
16117 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
f35db108 | 16118 | |
c915a581 JJ |
16119 | else |
16120 | if test "$ac_cv_type_int" = yes; then | |
16121 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16122 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16123 | { as_fn_set_status 77 | |
16124 | as_fn_error "cannot compute sizeof (int) | |
16125 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16126 | else | |
16127 | ac_cv_sizeof_int=0 | |
16128 | fi | |
16129 | fi | |
f35db108 | 16130 | |
c915a581 JJ |
16131 | fi |
16132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16133 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
f35db108 WM |
16134 | |
16135 | ||
f35db108 | 16136 | |
c915a581 JJ |
16137 | cat >>confdefs.h <<_ACEOF |
16138 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16139 | _ACEOF | |
f35db108 WM |
16140 | |
16141 | ||
c915a581 JJ |
16142 | # The cast to long int works around a bug in the HP C Compiler |
16143 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16144 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16145 | # This bug is HP SR number 8606223364. | |
16146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16147 | $as_echo_n "checking size of short... " >&6; } | |
16148 | if test "${ac_cv_sizeof_short+set}" = set; then : | |
16149 | $as_echo_n "(cached) " >&6 | |
16150 | else | |
16151 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
f35db108 | 16152 | |
c915a581 JJ |
16153 | else |
16154 | if test "$ac_cv_type_short" = yes; then | |
16155 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16157 | { as_fn_set_status 77 | |
16158 | as_fn_error "cannot compute sizeof (short) | |
16159 | See \`config.log' for more details." "$LINENO" 5; }; } | |
16160 | else | |
16161 | ac_cv_sizeof_short=0 | |
16162 | fi | |
16163 | fi | |
f35db108 | 16164 | |
c915a581 JJ |
16165 | fi |
16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16167 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
f35db108 WM |
16168 | |
16169 | ||
16170 | ||
c915a581 JJ |
16171 | cat >>confdefs.h <<_ACEOF |
16172 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16173 | _ACEOF | |
f35db108 WM |
16174 | |
16175 | ||
c915a581 | 16176 | # The cast to long int works around a bug in the HP C Compiler |
64548f3b JJ |
16177 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16178 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16179 | # This bug is HP SR number 8606223364. | |
c915a581 JJ |
16180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
16181 | $as_echo_n "checking size of char... " >&6; } | |
16182 | if test "${ac_cv_sizeof_char+set}" = set; then : | |
64548f3b JJ |
16183 | $as_echo_n "(cached) " >&6 |
16184 | else | |
c915a581 | 16185 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
64548f3b JJ |
16186 | |
16187 | else | |
c915a581 | 16188 | if test "$ac_cv_type_char" = yes; then |
64548f3b JJ |
16189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16191 | { as_fn_set_status 77 | |
c915a581 | 16192 | as_fn_error "cannot compute sizeof (char) |
64548f3b JJ |
16193 | See \`config.log' for more details." "$LINENO" 5; }; } |
16194 | else | |
c915a581 | 16195 | ac_cv_sizeof_char=0 |
64548f3b JJ |
16196 | fi |
16197 | fi | |
16198 | ||
16199 | fi | |
c915a581 JJ |
16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
16201 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
16202 | ||
16203 | ||
16204 | ||
16205 | cat >>confdefs.h <<_ACEOF | |
16206 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16207 | _ACEOF | |
16208 | ||
16209 | ||
16210 | ||
16211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
16212 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16213 | case "$ac_cv_sizeof_char" in | |
16214 | 1) acx_cv_type_int8_t=char ;; | |
16215 | *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 | |
16216 | esac | |
16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16218 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16219 | ||
16220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16221 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16222 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16223 | 2:*) acx_cv_type_int16_t=int ;; | |
16224 | *:2) acx_cv_type_int16_t=short ;; | |
16225 | *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 | |
16226 | esac | |
16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16228 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16229 | ||
16230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16231 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16232 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16233 | 4:*) acx_cv_type_int32_t=int ;; | |
16234 | *:4) acx_cv_type_int32_t=long ;; | |
16235 | *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 | |
16236 | esac | |
16237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16238 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
16239 | fi | |
16240 | ||
16241 | # These tests are here to make the output prettier | |
16242 | ||
16243 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
16244 | case "$ac_cv_sizeof_long" in | |
16245 | 8) acx_cv_type_int64_t=long ;; | |
16246 | esac | |
16247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16248 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16250 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16251 | fi | |
16252 | ||
16253 | # Now we can use the above types | |
16254 | ||
16255 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16257 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16258 | case $ac_cv_sizeof_void_p in | |
16259 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16260 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16261 | 8) acx_cv_type_intptr_t=int64_t ;; | |
16262 | *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 | |
16263 | esac | |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16265 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16266 | fi | |
16267 | ||
16268 | # ----------------- done all checks, emit header ------------- | |
16269 | ac_config_commands="$ac_config_commands gstdint.h" | |
16270 | ||
16271 | ||
16272 | ||
16273 | ||
b5f58ba3 | 16274 | for ac_header in sys/mman.h alloca.h |
c915a581 | 16275 | do : |
b5f58ba3 JJ |
16276 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16277 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16278 | eval as_val=\$$as_ac_Header | |
16279 | if test "x$as_val" = x""yes; then : | |
c915a581 | 16280 | cat >>confdefs.h <<_ACEOF |
b5f58ba3 | 16281 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c915a581 JJ |
16282 | _ACEOF |
16283 | ||
16284 | fi | |
16285 | ||
16286 | done | |
16287 | ||
16288 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
16289 | have_mmap=no | |
16290 | else | |
16291 | if test -n "${with_target_subdir}"; then | |
16292 | # When built as a GCC target library, we can't do a link test. We | |
16293 | # simply assume that if we have mman.h, we have mmap. | |
16294 | have_mmap=yes | |
16295 | else | |
16296 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
16297 | if test "x$ac_cv_func_mmap" = x""yes; then : | |
16298 | have_mmap=yes | |
16299 | else | |
16300 | have_mmap=no | |
16301 | fi | |
16302 | ||
16303 | fi | |
16304 | fi | |
16305 | if test "$have_mmap" = "no"; then | |
16306 | VIEW_FILE=read.lo | |
16307 | ALLOC_FILE=alloc.lo | |
16308 | else | |
16309 | VIEW_FILE=mmapio.lo | |
16310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16311 | /* end confdefs.h. */ | |
64548f3b | 16312 | |
c915a581 JJ |
16313 | #include <sys/mman.h> |
16314 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
16315 | #error no MAP_ANONYMOUS | |
16316 | #endif | |
64548f3b | 16317 | |
64548f3b | 16318 | _ACEOF |
c915a581 JJ |
16319 | if ac_fn_c_try_cpp "$LINENO"; then : |
16320 | ALLOC_FILE=mmap.lo | |
16321 | else | |
16322 | ALLOC_FILE=alloc.lo | |
16323 | fi | |
16324 | rm -f conftest.err conftest.$ac_ext | |
16325 | fi | |
64548f3b JJ |
16326 | |
16327 | ||
16328 | ||
c915a581 JJ |
16329 | BACKTRACE_USES_MALLOC=0 |
16330 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
16331 | BACKTRACE_USES_MALLOC=1 | |
2a6346c4 | 16332 | fi |
64548f3b | 16333 | |
cd0be65c | 16334 | |
c915a581 JJ |
16335 | # Don't care about thread support |
16336 | BACKTRACE_SUPPORTS_THREADS=0 | |
9065ada9 | 16337 | |
f35db108 | 16338 | |
c915a581 JJ |
16339 | # Check for dl_iterate_phdr. |
16340 | for ac_header in link.h | |
35814b03 | 16341 | do : |
c915a581 JJ |
16342 | ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" |
16343 | if test "x$ac_cv_header_link_h" = x""yes; then : | |
35814b03 | 16344 | cat >>confdefs.h <<_ACEOF |
c915a581 | 16345 | #define HAVE_LINK_H 1 |
35814b03 JJ |
16346 | _ACEOF |
16347 | ||
16348 | fi | |
35814b03 | 16349 | |
c915a581 | 16350 | done |
35814b03 | 16351 | |
c915a581 JJ |
16352 | if test "$ac_cv_header_link_h" = "no"; then |
16353 | have_dl_iterate_phdr=no | |
16354 | else | |
16355 | # When built as a GCC target library, we can't do a link test. | |
16356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16357 | /* end confdefs.h. */ | |
16358 | #include <link.h> | |
35814b03 | 16359 | |
c915a581 JJ |
16360 | _ACEOF |
16361 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16362 | $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : | |
16363 | have_dl_iterate_phdr=yes | |
16364 | else | |
16365 | have_dl_iterate_phdr=no | |
16366 | fi | |
16367 | rm -f conftest* | |
35814b03 | 16368 | |
c915a581 JJ |
16369 | case "${host}" in |
16370 | *-*-solaris2.10*) | |
16371 | # Avoid dl_iterate_phdr on Solaris 10, where it is in the | |
16372 | # header file but is only in -ldl. | |
16373 | have_dl_iterate_phdr=no ;; | |
16374 | esac | |
16375 | fi | |
16376 | if test "$have_dl_iterate_phdr" = "yes"; then | |
35814b03 | 16377 | |
c915a581 | 16378 | $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h |
35814b03 | 16379 | |
c915a581 | 16380 | fi |
35814b03 | 16381 | |
c915a581 JJ |
16382 | # Check for the fcntl function. |
16383 | if test -n "${with_target_subdir}"; then | |
16384 | case "${host}" in | |
16385 | *-*-mingw*) have_fcntl=no ;; | |
16386 | *) have_fcntl=yes ;; | |
16387 | esac | |
16388 | else | |
16389 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
16390 | if test "x$ac_cv_func_fcntl" = x""yes; then : | |
16391 | have_fcntl=yes | |
16392 | else | |
16393 | have_fcntl=no | |
16394 | fi | |
35814b03 | 16395 | |
c915a581 JJ |
16396 | fi |
16397 | if test "$have_fcntl" = "yes"; then | |
35814b03 | 16398 | |
c915a581 | 16399 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h |
35814b03 | 16400 | |
c915a581 | 16401 | fi |
35814b03 | 16402 | |
c915a581 JJ |
16403 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
16404 | if test "x$ac_cv_have_decl_strnlen" = x""yes; then : | |
16405 | ac_have_decl=1 | |
35814b03 | 16406 | else |
c915a581 JJ |
16407 | ac_have_decl=0 |
16408 | fi | |
35814b03 | 16409 | |
c915a581 JJ |
16410 | cat >>confdefs.h <<_ACEOF |
16411 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
35814b03 | 16412 | _ACEOF |
c915a581 JJ |
16413 | |
16414 | ||
16415 | # Check for getexecname function. | |
16416 | if test -n "${with_target_subdir}"; then | |
16417 | case "${host}" in | |
16418 | *-*-solaris2*) have_getexecname=yes ;; | |
16419 | *) have_getexecname=no ;; | |
16420 | esac | |
35814b03 | 16421 | else |
c915a581 JJ |
16422 | ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" |
16423 | if test "x$ac_cv_func_getexecname" = x""yes; then : | |
16424 | have_getexecname=yes | |
16425 | else | |
16426 | have_getexecname=no | |
35814b03 | 16427 | fi |
35814b03 JJ |
16428 | |
16429 | fi | |
c915a581 JJ |
16430 | if test "$have_getexecname" = "yes"; then |
16431 | ||
16432 | $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h | |
35814b03 JJ |
16433 | |
16434 | fi | |
16435 | ||
d041a6fc YG |
16436 | # Check for rpc/xdr.h |
16437 | for ac_header in rpc/xdr.h | |
16438 | do : | |
16439 | ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default" | |
16440 | if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then : | |
16441 | cat >>confdefs.h <<_ACEOF | |
16442 | #define HAVE_RPC_XDR_H 1 | |
16443 | _ACEOF | |
16444 | ||
16445 | fi | |
16446 | ||
16447 | done | |
16448 | ||
16449 | if test x"$ac_cv_header_rpc_xdr_h" = xyes; then | |
16450 | rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1" | |
16451 | else | |
16452 | rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0" | |
16453 | fi | |
16454 | ||
16455 | # Check for tirpc/rpc/xdr.h | |
16456 | for ac_header in tirpc/rpc/xdr.h | |
16457 | do : | |
16458 | ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default" | |
16459 | if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then : | |
16460 | cat >>confdefs.h <<_ACEOF | |
16461 | #define HAVE_TIRPC_RPC_XDR_H 1 | |
16462 | _ACEOF | |
16463 | ||
16464 | fi | |
16465 | ||
16466 | done | |
16467 | ||
16468 | if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then | |
16469 | rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1" | |
16470 | else | |
16471 | rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0" | |
16472 | fi | |
16473 | ||
16474 | RPC_DEFS=$rpc_defs | |
16475 | ||
16476 | ||
c915a581 JJ |
16477 | if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then |
16478 | LIBBACKTRACE_SUPPORTED_TRUE= | |
16479 | LIBBACKTRACE_SUPPORTED_FALSE='#' | |
f246eadc | 16480 | else |
c915a581 JJ |
16481 | LIBBACKTRACE_SUPPORTED_TRUE='#' |
16482 | LIBBACKTRACE_SUPPORTED_FALSE= | |
f246eadc JH |
16483 | fi |
16484 | ||
16485 | ||
f35db108 | 16486 | |
c915a581 JJ |
16487 | ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h" |
16488 | ||
16489 | ac_config_headers="$ac_config_headers config.h" | |
f35db108 | 16490 | |
c915a581 JJ |
16491 | |
16492 | ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile" | |
f35db108 WM |
16493 | |
16494 | ||
64548f3b | 16495 | if test "x$TSAN_SUPPORTED" = "xyes"; then |
cd0be65c WM |
16496 | ac_config_files="$ac_config_files tsan/Makefile" |
16497 | ||
16498 | fi | |
16499 | ||
b0edd457 VK |
16500 | |
16501 | ||
10189819 | 16502 | |
f35db108 WM |
16503 | cat >confcache <<\_ACEOF |
16504 | # This file is a shell script that caches the results of configure | |
16505 | # tests run on this system so they can be shared between configure | |
16506 | # scripts and configure runs, see configure's option --config-cache. | |
16507 | # It is not useful on other systems. If it contains results you don't | |
16508 | # want to keep, you may remove or edit it. | |
16509 | # | |
16510 | # config.status only pays attention to the cache file if you give it | |
16511 | # the --recheck option to rerun configure. | |
16512 | # | |
16513 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16514 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16515 | # following values. | |
16516 | ||
16517 | _ACEOF | |
16518 | ||
16519 | # The following way of writing the cache mishandles newlines in values, | |
16520 | # but we know of no workaround that is simple, portable, and efficient. | |
16521 | # So, we kill variables containing newlines. | |
16522 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16523 | # and sets the high bit in the cache file unless we assign to the vars. | |
16524 | ( | |
16525 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16526 | eval ac_val=\$$ac_var | |
16527 | case $ac_val in #( | |
16528 | *${as_nl}*) | |
16529 | case $ac_var in #( | |
16530 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16531 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16532 | esac | |
16533 | case $ac_var in #( | |
16534 | _ | IFS | as_nl) ;; #( | |
16535 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16536 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16537 | esac ;; | |
16538 | esac | |
16539 | done | |
16540 | ||
16541 | (set) 2>&1 | | |
16542 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16543 | *${as_nl}ac_space=\ *) | |
16544 | # `set' does not quote correctly, so add quotes: double-quote | |
16545 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16546 | sed -n \ | |
16547 | "s/'/'\\\\''/g; | |
16548 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16549 | ;; #( | |
16550 | *) | |
16551 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16552 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16553 | ;; | |
16554 | esac | | |
16555 | sort | |
16556 | ) | | |
16557 | sed ' | |
16558 | /^ac_cv_env_/b end | |
16559 | t clear | |
16560 | :clear | |
16561 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16562 | t end | |
16563 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16564 | :end' >>confcache | |
16565 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16566 | if test -w "$cache_file"; then | |
a2479b3d | 16567 | test "x$cache_file" != "x/dev/null" && |
f35db108 WM |
16568 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16569 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
a2479b3d | 16570 | cat confcache >$cache_file |
f35db108 WM |
16571 | else |
16572 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16573 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16574 | fi | |
16575 | fi | |
16576 | rm -f confcache | |
16577 | ||
16578 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16579 | # Let make expand exec_prefix. | |
16580 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16581 | ||
c915a581 | 16582 | DEFS=-DHAVE_CONFIG_H |
f35db108 WM |
16583 | |
16584 | ac_libobjs= | |
16585 | ac_ltlibobjs= | |
f35db108 WM |
16586 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16587 | # 1. Remove the extension, and $U if already installed. | |
16588 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16589 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16590 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16591 | # will be set to the directory where LIBOBJS objects are built. | |
16592 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16593 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16594 | done | |
16595 | LIBOBJS=$ac_libobjs | |
16596 | ||
16597 | LTLIBOBJS=$ac_ltlibobjs | |
16598 | ||
16599 | ||
c915a581 JJ |
16600 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
16601 | as_fn_error "conditional \"AMDEP\" was never defined. | |
16602 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16603 | fi | |
16604 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
16605 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
16606 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16607 | fi | |
f35db108 WM |
16608 | if test -n "$EXEEXT"; then |
16609 | am__EXEEXT_TRUE= | |
16610 | am__EXEEXT_FALSE='#' | |
16611 | else | |
16612 | am__EXEEXT_TRUE='#' | |
16613 | am__EXEEXT_FALSE= | |
16614 | fi | |
16615 | ||
2b723e21 TT |
16616 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
16617 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
16618 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16619 | fi | |
f35db108 | 16620 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
a2479b3d | 16621 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
f35db108 WM |
16622 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16623 | fi | |
16624 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
a2479b3d | 16625 | as_fn_error "conditional \"am__fastdepCCAS\" was never defined. |
f35db108 WM |
16626 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16627 | fi | |
64548f3b JJ |
16628 | if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then |
16629 | as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined. | |
cd0be65c WM |
16630 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16631 | fi | |
9065ada9 JJ |
16632 | if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then |
16633 | as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined. | |
16634 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16635 | fi | |
8c4d267c KS |
16636 | if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then |
16637 | as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined. | |
f246eadc JH |
16638 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
16639 | fi | |
4a7eaf5f YG |
16640 | if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then |
16641 | as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined. | |
16642 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16643 | fi | |
c915a581 JJ |
16644 | if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then |
16645 | as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined. | |
16646 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16647 | fi | |
f35db108 | 16648 | |
a2479b3d | 16649 | : ${CONFIG_STATUS=./config.status} |
f35db108 WM |
16650 | ac_write_fail=0 |
16651 | ac_clean_files_save=$ac_clean_files | |
16652 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16653 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16654 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16655 | as_write_fail=0 | |
16656 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16657 | #! $SHELL | |
16658 | # Generated by $as_me. | |
16659 | # Run this file to recreate the current configuration. | |
16660 | # Compiler output produced by configure, useful for debugging | |
16661 | # configure, is in config.log if it exists. | |
16662 | ||
16663 | debug=false | |
16664 | ac_cs_recheck=false | |
16665 | ac_cs_silent=false | |
16666 | ||
16667 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16668 | export SHELL | |
16669 | _ASEOF | |
16670 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16671 | ## -------------------- ## | |
16672 | ## M4sh Initialization. ## | |
16673 | ## -------------------- ## | |
16674 | ||
16675 | # Be more Bourne compatible | |
16676 | DUALCASE=1; export DUALCASE # for MKS sh | |
16677 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
16678 | emulate sh | |
16679 | NULLCMD=: | |
16680 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16681 | # is contrary to our usage. Disable this feature. | |
16682 | alias -g '${1+"$@"}'='"$@"' | |
16683 | setopt NO_GLOB_SUBST | |
16684 | else | |
16685 | case `(set -o) 2>/dev/null` in #( | |
16686 | *posix*) : | |
16687 | set -o posix ;; #( | |
16688 | *) : | |
16689 | ;; | |
16690 | esac | |
16691 | fi | |
16692 | ||
16693 | ||
16694 | as_nl=' | |
16695 | ' | |
16696 | export as_nl | |
16697 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16698 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16699 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16700 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16701 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16702 | # but without wasting forks for bash or zsh. | |
16703 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16704 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16705 | as_echo='print -r --' | |
16706 | as_echo_n='print -rn --' | |
16707 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16708 | as_echo='printf %s\n' | |
16709 | as_echo_n='printf %s' | |
16710 | else | |
16711 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16712 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16713 | as_echo_n='/usr/ucb/echo -n' | |
16714 | else | |
16715 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16716 | as_echo_n_body='eval | |
16717 | arg=$1; | |
16718 | case $arg in #( | |
16719 | *"$as_nl"*) | |
16720 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16721 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16722 | esac; | |
16723 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16724 | ' | |
16725 | export as_echo_n_body | |
16726 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16727 | fi | |
16728 | export as_echo_body | |
16729 | as_echo='sh -c $as_echo_body as_echo' | |
16730 | fi | |
16731 | ||
16732 | # The user is always right. | |
16733 | if test "${PATH_SEPARATOR+set}" != set; then | |
16734 | PATH_SEPARATOR=: | |
16735 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16736 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16737 | PATH_SEPARATOR=';' | |
16738 | } | |
16739 | fi | |
16740 | ||
16741 | ||
16742 | # IFS | |
16743 | # We need space, tab and new line, in precisely that order. Quoting is | |
16744 | # there to prevent editors from complaining about space-tab. | |
16745 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16746 | # splitting by setting IFS to empty value.) | |
16747 | IFS=" "" $as_nl" | |
16748 | ||
16749 | # Find who we are. Look in the path if we contain no directory separator. | |
f35db108 WM |
16750 | case $0 in #(( |
16751 | *[\\/]* ) as_myself=$0 ;; | |
16752 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16753 | for as_dir in $PATH | |
16754 | do | |
16755 | IFS=$as_save_IFS | |
16756 | test -z "$as_dir" && as_dir=. | |
16757 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16758 | done | |
16759 | IFS=$as_save_IFS | |
16760 | ||
16761 | ;; | |
16762 | esac | |
16763 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16764 | # in which case we are not to be found in the path. | |
16765 | if test "x$as_myself" = x; then | |
16766 | as_myself=$0 | |
16767 | fi | |
16768 | if test ! -f "$as_myself"; then | |
16769 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16770 | exit 1 | |
16771 | fi | |
16772 | ||
16773 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16774 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16775 | # suppresses any "Segmentation fault" message there. '((' could | |
16776 | # trigger a bug in pdksh 5.2.14. | |
16777 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16778 | do eval test x\${$as_var+set} = xset \ | |
16779 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16780 | done | |
16781 | PS1='$ ' | |
16782 | PS2='> ' | |
16783 | PS4='+ ' | |
16784 | ||
16785 | # NLS nuisances. | |
16786 | LC_ALL=C | |
16787 | export LC_ALL | |
16788 | LANGUAGE=C | |
16789 | export LANGUAGE | |
16790 | ||
16791 | # CDPATH. | |
16792 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16793 | ||
16794 | ||
a2479b3d L |
16795 | # as_fn_error ERROR [LINENO LOG_FD] |
16796 | # --------------------------------- | |
f35db108 WM |
16797 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16798 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
a2479b3d | 16799 | # script with status $?, using 1 if that was 0. |
f35db108 WM |
16800 | as_fn_error () |
16801 | { | |
a2479b3d L |
16802 | as_status=$?; test $as_status -eq 0 && as_status=1 |
16803 | if test "$3"; then | |
16804 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16805 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
f35db108 | 16806 | fi |
a2479b3d | 16807 | $as_echo "$as_me: error: $1" >&2 |
f35db108 WM |
16808 | as_fn_exit $as_status |
16809 | } # as_fn_error | |
16810 | ||
16811 | ||
16812 | # as_fn_set_status STATUS | |
16813 | # ----------------------- | |
16814 | # Set $? to STATUS, without forking. | |
16815 | as_fn_set_status () | |
16816 | { | |
16817 | return $1 | |
16818 | } # as_fn_set_status | |
16819 | ||
16820 | # as_fn_exit STATUS | |
16821 | # ----------------- | |
16822 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16823 | as_fn_exit () | |
16824 | { | |
16825 | set +e | |
16826 | as_fn_set_status $1 | |
16827 | exit $1 | |
16828 | } # as_fn_exit | |
16829 | ||
16830 | # as_fn_unset VAR | |
16831 | # --------------- | |
16832 | # Portably unset VAR. | |
16833 | as_fn_unset () | |
16834 | { | |
16835 | { eval $1=; unset $1;} | |
16836 | } | |
16837 | as_unset=as_fn_unset | |
16838 | # as_fn_append VAR VALUE | |
16839 | # ---------------------- | |
16840 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16841 | # advantage of any shell optimizations that allow amortized linear growth over | |
16842 | # repeated appends, instead of the typical quadratic growth present in naive | |
16843 | # implementations. | |
16844 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16845 | eval 'as_fn_append () | |
16846 | { | |
16847 | eval $1+=\$2 | |
16848 | }' | |
16849 | else | |
16850 | as_fn_append () | |
16851 | { | |
16852 | eval $1=\$$1\$2 | |
16853 | } | |
16854 | fi # as_fn_append | |
16855 | ||
16856 | # as_fn_arith ARG... | |
16857 | # ------------------ | |
16858 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16859 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16860 | # must be portable across $(()) and expr. | |
16861 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16862 | eval 'as_fn_arith () | |
16863 | { | |
16864 | as_val=$(( $* )) | |
16865 | }' | |
16866 | else | |
16867 | as_fn_arith () | |
16868 | { | |
16869 | as_val=`expr "$@" || test $? -eq 1` | |
16870 | } | |
16871 | fi # as_fn_arith | |
16872 | ||
16873 | ||
16874 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16875 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16876 | as_expr=expr | |
16877 | else | |
16878 | as_expr=false | |
16879 | fi | |
16880 | ||
16881 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16882 | as_basename=basename | |
16883 | else | |
16884 | as_basename=false | |
16885 | fi | |
16886 | ||
16887 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16888 | as_dirname=dirname | |
16889 | else | |
16890 | as_dirname=false | |
16891 | fi | |
16892 | ||
16893 | as_me=`$as_basename -- "$0" || | |
16894 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16895 | X"$0" : 'X\(//\)$' \| \ | |
16896 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16897 | $as_echo X/"$0" | | |
16898 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16899 | s//\1/ | |
16900 | q | |
16901 | } | |
16902 | /^X\/\(\/\/\)$/{ | |
16903 | s//\1/ | |
16904 | q | |
16905 | } | |
16906 | /^X\/\(\/\).*/{ | |
16907 | s//\1/ | |
16908 | q | |
16909 | } | |
16910 | s/.*/./; q'` | |
16911 | ||
16912 | # Avoid depending upon Character Ranges. | |
16913 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16914 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16915 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16916 | as_cr_digits='0123456789' | |
16917 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16918 | ||
16919 | ECHO_C= ECHO_N= ECHO_T= | |
16920 | case `echo -n x` in #((((( | |
16921 | -n*) | |
16922 | case `echo 'xy\c'` in | |
16923 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16924 | xy) ECHO_C='\c';; | |
16925 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16926 | ECHO_T=' ';; | |
16927 | esac;; | |
16928 | *) | |
16929 | ECHO_N='-n';; | |
16930 | esac | |
16931 | ||
16932 | rm -f conf$$ conf$$.exe conf$$.file | |
16933 | if test -d conf$$.dir; then | |
16934 | rm -f conf$$.dir/conf$$.file | |
16935 | else | |
16936 | rm -f conf$$.dir | |
16937 | mkdir conf$$.dir 2>/dev/null | |
16938 | fi | |
16939 | if (echo >conf$$.file) 2>/dev/null; then | |
16940 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16941 | as_ln_s='ln -s' | |
16942 | # ... but there are two gotchas: | |
16943 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16944 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
16945 | # In both cases, we have to default to `cp -p'. | |
16946 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16947 | as_ln_s='cp -p' | |
16948 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16949 | as_ln_s=ln | |
16950 | else | |
16951 | as_ln_s='cp -p' | |
16952 | fi | |
16953 | else | |
16954 | as_ln_s='cp -p' | |
16955 | fi | |
16956 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16957 | rmdir conf$$.dir 2>/dev/null | |
16958 | ||
16959 | ||
16960 | # as_fn_mkdir_p | |
16961 | # ------------- | |
16962 | # Create "$as_dir" as a directory, including parents if necessary. | |
16963 | as_fn_mkdir_p () | |
16964 | { | |
16965 | ||
16966 | case $as_dir in #( | |
16967 | -*) as_dir=./$as_dir;; | |
16968 | esac | |
16969 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16970 | as_dirs= | |
16971 | while :; do | |
16972 | case $as_dir in #( | |
16973 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16974 | *) as_qdir=$as_dir;; | |
16975 | esac | |
16976 | as_dirs="'$as_qdir' $as_dirs" | |
16977 | as_dir=`$as_dirname -- "$as_dir" || | |
16978 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16979 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16980 | X"$as_dir" : 'X\(//\)$' \| \ | |
16981 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16982 | $as_echo X"$as_dir" | | |
16983 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16984 | s//\1/ | |
16985 | q | |
16986 | } | |
16987 | /^X\(\/\/\)[^/].*/{ | |
16988 | s//\1/ | |
16989 | q | |
16990 | } | |
16991 | /^X\(\/\/\)$/{ | |
16992 | s//\1/ | |
16993 | q | |
16994 | } | |
16995 | /^X\(\/\).*/{ | |
16996 | s//\1/ | |
16997 | q | |
16998 | } | |
16999 | s/.*/./; q'` | |
17000 | test -d "$as_dir" && break | |
17001 | done | |
17002 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
a2479b3d | 17003 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
f35db108 WM |
17004 | |
17005 | ||
17006 | } # as_fn_mkdir_p | |
17007 | if mkdir -p . 2>/dev/null; then | |
17008 | as_mkdir_p='mkdir -p "$as_dir"' | |
17009 | else | |
17010 | test -d ./-p && rmdir ./-p | |
17011 | as_mkdir_p=false | |
17012 | fi | |
17013 | ||
17014 | if test -x / >/dev/null 2>&1; then | |
17015 | as_test_x='test -x' | |
17016 | else | |
17017 | if ls -dL / >/dev/null 2>&1; then | |
17018 | as_ls_L_option=L | |
17019 | else | |
17020 | as_ls_L_option= | |
17021 | fi | |
17022 | as_test_x=' | |
17023 | eval sh -c '\'' | |
17024 | if test -d "$1"; then | |
17025 | test -d "$1/."; | |
17026 | else | |
17027 | case $1 in #( | |
17028 | -*)set "./$1";; | |
17029 | esac; | |
17030 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
17031 | ???[sx]*):;;*)false;;esac;fi | |
17032 | '\'' sh | |
17033 | ' | |
17034 | fi | |
17035 | as_executable_p=$as_test_x | |
17036 | ||
17037 | # Sed expression to map a string onto a valid CPP name. | |
17038 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17039 | ||
17040 | # Sed expression to map a string onto a valid variable name. | |
17041 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17042 | ||
17043 | ||
17044 | exec 6>&1 | |
17045 | ## ----------------------------------- ## | |
17046 | ## Main body of $CONFIG_STATUS script. ## | |
17047 | ## ----------------------------------- ## | |
17048 | _ASEOF | |
17049 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17050 | ||
17051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17052 | # Save the log message, to keep $0 and so on meaningful, and to | |
17053 | # report actual input values of CONFIG_FILES etc. instead of their | |
17054 | # values after options handling. | |
17055 | ac_log=" | |
17056 | This file was extended by package-unused $as_me version-unused, which was | |
a2479b3d | 17057 | generated by GNU Autoconf 2.64. Invocation command line was |
f35db108 WM |
17058 | |
17059 | CONFIG_FILES = $CONFIG_FILES | |
17060 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17061 | CONFIG_LINKS = $CONFIG_LINKS | |
17062 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17063 | $ $0 $@ | |
17064 | ||
17065 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17066 | " | |
17067 | ||
17068 | _ACEOF | |
17069 | ||
17070 | case $ac_config_files in *" | |
17071 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17072 | esac | |
17073 | ||
c915a581 JJ |
17074 | case $ac_config_headers in *" |
17075 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17076 | esac | |
f35db108 WM |
17077 | |
17078 | ||
17079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17080 | # Files that config.status was made for. | |
17081 | config_files="$ac_config_files" | |
c915a581 | 17082 | config_headers="$ac_config_headers" |
f35db108 WM |
17083 | config_commands="$ac_config_commands" |
17084 | ||
17085 | _ACEOF | |
17086 | ||
17087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17088 | ac_cs_usage="\ | |
17089 | \`$as_me' instantiates files and other configuration actions | |
17090 | from templates according to the current configuration. Unless the files | |
17091 | and actions are specified as TAGs, all are instantiated by default. | |
17092 | ||
17093 | Usage: $0 [OPTION]... [TAG]... | |
17094 | ||
17095 | -h, --help print this help, then exit | |
17096 | -V, --version print version number and configuration settings, then exit | |
f35db108 WM |
17097 | -q, --quiet, --silent |
17098 | do not print progress messages | |
17099 | -d, --debug don't remove temporary files | |
17100 | --recheck update $as_me by reconfiguring in the same conditions | |
17101 | --file=FILE[:TEMPLATE] | |
17102 | instantiate the configuration file FILE | |
c915a581 JJ |
17103 | --header=FILE[:TEMPLATE] |
17104 | instantiate the configuration header FILE | |
f35db108 WM |
17105 | |
17106 | Configuration files: | |
17107 | $config_files | |
17108 | ||
c915a581 JJ |
17109 | Configuration headers: |
17110 | $config_headers | |
17111 | ||
f35db108 WM |
17112 | Configuration commands: |
17113 | $config_commands | |
17114 | ||
17115 | Report bugs to <libsanitizer>." | |
17116 | ||
17117 | _ACEOF | |
17118 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f35db108 WM |
17119 | ac_cs_version="\\ |
17120 | package-unused config.status version-unused | |
a2479b3d L |
17121 | configured by $0, generated by GNU Autoconf 2.64, |
17122 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
f35db108 | 17123 | |
a2479b3d | 17124 | Copyright (C) 2009 Free Software Foundation, Inc. |
f35db108 WM |
17125 | This config.status script is free software; the Free Software Foundation |
17126 | gives unlimited permission to copy, distribute and modify it." | |
17127 | ||
17128 | ac_pwd='$ac_pwd' | |
17129 | srcdir='$srcdir' | |
17130 | INSTALL='$INSTALL' | |
17131 | MKDIR_P='$MKDIR_P' | |
17132 | AWK='$AWK' | |
17133 | test -n "\$AWK" || AWK=awk | |
17134 | _ACEOF | |
17135 | ||
17136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17137 | # The default lists apply if the user does not specify any file. | |
17138 | ac_need_defaults=: | |
17139 | while test $# != 0 | |
17140 | do | |
17141 | case $1 in | |
a2479b3d | 17142 | --*=*) |
f35db108 WM |
17143 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17144 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17145 | ac_shift=: | |
17146 | ;; | |
f35db108 WM |
17147 | *) |
17148 | ac_option=$1 | |
17149 | ac_optarg=$2 | |
17150 | ac_shift=shift | |
17151 | ;; | |
17152 | esac | |
17153 | ||
17154 | case $ac_option in | |
17155 | # Handling of the options. | |
17156 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17157 | ac_cs_recheck=: ;; | |
17158 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17159 | $as_echo "$ac_cs_version"; exit ;; | |
f35db108 WM |
17160 | --debug | --debu | --deb | --de | --d | -d ) |
17161 | debug=: ;; | |
17162 | --file | --fil | --fi | --f ) | |
17163 | $ac_shift | |
17164 | case $ac_optarg in | |
17165 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f35db108 WM |
17166 | esac |
17167 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17168 | ac_need_defaults=false;; | |
c915a581 JJ |
17169 | --header | --heade | --head | --hea ) |
17170 | $ac_shift | |
17171 | case $ac_optarg in | |
17172 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17173 | esac | |
17174 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
17175 | ac_need_defaults=false;; | |
17176 | --he | --h) | |
17177 | # Conflict between --help and --header | |
17178 | as_fn_error "ambiguous option: \`$1' | |
17179 | Try \`$0 --help' for more information.";; | |
17180 | --help | --hel | -h ) | |
f35db108 WM |
17181 | $as_echo "$ac_cs_usage"; exit ;; |
17182 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17183 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17184 | ac_cs_silent=: ;; | |
17185 | ||
17186 | # This is an error. | |
a2479b3d | 17187 | -*) as_fn_error "unrecognized option: \`$1' |
f35db108 WM |
17188 | Try \`$0 --help' for more information." ;; |
17189 | ||
17190 | *) as_fn_append ac_config_targets " $1" | |
17191 | ac_need_defaults=false ;; | |
17192 | ||
17193 | esac | |
17194 | shift | |
17195 | done | |
17196 | ||
17197 | ac_configure_extra_args= | |
17198 | ||
17199 | if $ac_cs_silent; then | |
17200 | exec 6>/dev/null | |
17201 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17202 | fi | |
17203 | ||
17204 | _ACEOF | |
17205 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17206 | if \$ac_cs_recheck; then | |
17207 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17208 | shift | |
17209 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17210 | CONFIG_SHELL='$SHELL' | |
17211 | export CONFIG_SHELL | |
17212 | exec "\$@" | |
17213 | fi | |
17214 | ||
17215 | _ACEOF | |
17216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17217 | exec 5>>config.log | |
17218 | { | |
17219 | echo | |
17220 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17221 | ## Running $as_me. ## | |
17222 | _ASBOX | |
17223 | $as_echo "$ac_log" | |
17224 | } >&5 | |
17225 | ||
17226 | _ACEOF | |
17227 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17228 | # | |
17229 | # INIT-COMMANDS | |
17230 | # | |
2a6346c4 L |
17231 | |
17232 | srcdir="$srcdir" | |
17233 | host="$host" | |
17234 | target="$target" | |
17235 | with_multisubdir="$with_multisubdir" | |
17236 | with_multisrctop="$with_multisrctop" | |
17237 | with_target_subdir="$with_target_subdir" | |
17238 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
17239 | multi_basedir="$multi_basedir" | |
17240 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
17241 | CC="$CC" | |
17242 | CXX="$CXX" | |
17243 | GFORTRAN="$GFORTRAN" | |
94213c10 | 17244 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
f35db108 WM |
17245 | |
17246 | ||
17247 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17248 | # if CDPATH is set. | |
17249 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17250 | ||
17251 | sed_quote_subst='$sed_quote_subst' | |
17252 | double_quote_subst='$double_quote_subst' | |
17253 | delay_variable_subst='$delay_variable_subst' | |
17254 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
17255 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17256 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17257 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17258 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17259 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17260 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17261 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17262 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
17263 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17264 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17265 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17266 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17267 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17268 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17269 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17270 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17271 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17272 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17273 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17274 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17275 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17276 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17277 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17278 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17279 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17280 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17281 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17282 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
17283 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17284 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17285 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17286 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17287 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
17288 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17289 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
17290 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17291 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17292 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17293 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17294 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17295 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17296 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17297 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17298 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17299 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17300 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17301 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17302 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17303 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
17304 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17305 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
f35db108 | 17306 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
a2479b3d | 17307 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17308 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
17309 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17310 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17311 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
17312 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17313 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17314 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17315 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17316 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17317 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17318 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17319 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17320 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17321 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17322 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17323 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17324 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17325 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17326 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17327 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17328 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17329 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17330 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17331 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17332 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17333 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 17334 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17335 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
17336 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17337 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17338 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17339 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17340 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17341 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17342 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 17343 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17344 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
17345 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17346 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17347 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17348 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17349 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
17350 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17351 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17352 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17353 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17354 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17355 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17356 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17357 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17358 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17359 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17360 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17361 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17362 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17363 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17364 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17365 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17366 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17367 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17368 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17369 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17370 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17371 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17372 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17373 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
17374 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
17375 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
17376 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
17377 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
17378 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
17379 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
17380 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
17381 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17382 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17383 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17384 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
17385 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
17386 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
f35db108 | 17387 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
a2479b3d | 17388 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17389 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
17390 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
17391 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
17392 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
17393 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17394 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
17395 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
17396 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17397 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17398 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17399 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17400 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17401 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17402 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
17403 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17404 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
17405 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 17406 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17407 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
17408 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
17409 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
17410 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
17411 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
17412 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
17413 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
17414 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 17415 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
17416 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
17417 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
17418 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17419 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
17420 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
17421 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
17422 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
17423 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
17424 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17425 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
17426 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17427 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
17428 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
17429 | ||
17430 | LTCC='$LTCC' | |
17431 | LTCFLAGS='$LTCFLAGS' | |
17432 | compiler='$compiler_DEFAULT' | |
17433 | ||
17434 | # A function that is used when there is no print builtin or printf. | |
17435 | func_fallback_echo () | |
17436 | { | |
17437 | eval 'cat <<_LTECHO_EOF | |
17438 | \$1 | |
17439 | _LTECHO_EOF' | |
17440 | } | |
17441 | ||
17442 | # Quote evaled strings. | |
17443 | for var in SHELL \ | |
17444 | ECHO \ | |
f35db108 WM |
17445 | SED \ |
17446 | GREP \ | |
17447 | EGREP \ | |
17448 | FGREP \ | |
17449 | LD \ | |
17450 | NM \ | |
17451 | LN_S \ | |
17452 | lt_SP2NL \ | |
17453 | lt_NL2SP \ | |
17454 | reload_flag \ | |
17455 | OBJDUMP \ | |
17456 | deplibs_check_method \ | |
17457 | file_magic_cmd \ | |
f35db108 WM |
17458 | AR \ |
17459 | AR_FLAGS \ | |
f35db108 WM |
17460 | STRIP \ |
17461 | RANLIB \ | |
17462 | CC \ | |
17463 | CFLAGS \ | |
17464 | compiler \ | |
17465 | lt_cv_sys_global_symbol_pipe \ | |
17466 | lt_cv_sys_global_symbol_to_cdecl \ | |
17467 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17468 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
f35db108 | 17469 | lt_prog_compiler_no_builtin_flag \ |
f35db108 | 17470 | lt_prog_compiler_wl \ |
a2479b3d | 17471 | lt_prog_compiler_pic \ |
f35db108 WM |
17472 | lt_prog_compiler_static \ |
17473 | lt_cv_prog_compiler_c_o \ | |
17474 | need_locks \ | |
f35db108 WM |
17475 | DSYMUTIL \ |
17476 | NMEDIT \ | |
17477 | LIPO \ | |
17478 | OTOOL \ | |
17479 | OTOOL64 \ | |
17480 | shrext_cmds \ | |
17481 | export_dynamic_flag_spec \ | |
17482 | whole_archive_flag_spec \ | |
17483 | compiler_needs_object \ | |
17484 | with_gnu_ld \ | |
17485 | allow_undefined_flag \ | |
17486 | no_undefined_flag \ | |
17487 | hardcode_libdir_flag_spec \ | |
a2479b3d | 17488 | hardcode_libdir_flag_spec_ld \ |
f35db108 | 17489 | hardcode_libdir_separator \ |
a2479b3d | 17490 | fix_srcfile_path \ |
f35db108 WM |
17491 | exclude_expsyms \ |
17492 | include_expsyms \ | |
17493 | file_list_spec \ | |
17494 | variables_saved_for_relink \ | |
17495 | libname_spec \ | |
17496 | library_names_spec \ | |
17497 | soname_spec \ | |
17498 | install_override_mode \ | |
17499 | finish_eval \ | |
17500 | old_striplib \ | |
17501 | striplib \ | |
17502 | compiler_lib_search_dirs \ | |
17503 | predep_objects \ | |
17504 | postdep_objects \ | |
17505 | predeps \ | |
17506 | postdeps \ | |
17507 | compiler_lib_search_path \ | |
17508 | LD_CXX \ | |
17509 | reload_flag_CXX \ | |
17510 | compiler_CXX \ | |
17511 | lt_prog_compiler_no_builtin_flag_CXX \ | |
f35db108 | 17512 | lt_prog_compiler_wl_CXX \ |
a2479b3d | 17513 | lt_prog_compiler_pic_CXX \ |
f35db108 WM |
17514 | lt_prog_compiler_static_CXX \ |
17515 | lt_cv_prog_compiler_c_o_CXX \ | |
17516 | export_dynamic_flag_spec_CXX \ | |
17517 | whole_archive_flag_spec_CXX \ | |
17518 | compiler_needs_object_CXX \ | |
17519 | with_gnu_ld_CXX \ | |
17520 | allow_undefined_flag_CXX \ | |
17521 | no_undefined_flag_CXX \ | |
17522 | hardcode_libdir_flag_spec_CXX \ | |
a2479b3d | 17523 | hardcode_libdir_flag_spec_ld_CXX \ |
f35db108 | 17524 | hardcode_libdir_separator_CXX \ |
a2479b3d | 17525 | fix_srcfile_path_CXX \ |
f35db108 WM |
17526 | exclude_expsyms_CXX \ |
17527 | include_expsyms_CXX \ | |
17528 | file_list_spec_CXX \ | |
17529 | compiler_lib_search_dirs_CXX \ | |
17530 | predep_objects_CXX \ | |
17531 | postdep_objects_CXX \ | |
17532 | predeps_CXX \ | |
17533 | postdeps_CXX \ | |
17534 | compiler_lib_search_path_CXX; do | |
17535 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17536 | *[\\\\\\\`\\"\\\$]*) | |
17537 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17538 | ;; | |
17539 | *) | |
17540 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17541 | ;; | |
17542 | esac | |
17543 | done | |
17544 | ||
17545 | # Double-quote double-evaled strings. | |
17546 | for var in reload_cmds \ | |
17547 | old_postinstall_cmds \ | |
17548 | old_postuninstall_cmds \ | |
17549 | old_archive_cmds \ | |
17550 | extract_expsyms_cmds \ | |
17551 | old_archive_from_new_cmds \ | |
17552 | old_archive_from_expsyms_cmds \ | |
17553 | archive_cmds \ | |
17554 | archive_expsym_cmds \ | |
17555 | module_cmds \ | |
17556 | module_expsym_cmds \ | |
17557 | export_symbols_cmds \ | |
17558 | prelink_cmds \ | |
f35db108 WM |
17559 | postinstall_cmds \ |
17560 | postuninstall_cmds \ | |
17561 | finish_cmds \ | |
17562 | sys_lib_search_path_spec \ | |
17563 | sys_lib_dlsearch_path_spec \ | |
17564 | reload_cmds_CXX \ | |
17565 | old_archive_cmds_CXX \ | |
17566 | old_archive_from_new_cmds_CXX \ | |
17567 | old_archive_from_expsyms_cmds_CXX \ | |
17568 | archive_cmds_CXX \ | |
17569 | archive_expsym_cmds_CXX \ | |
17570 | module_cmds_CXX \ | |
17571 | module_expsym_cmds_CXX \ | |
17572 | export_symbols_cmds_CXX \ | |
a2479b3d | 17573 | prelink_cmds_CXX; do |
f35db108 WM |
17574 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
17575 | *[\\\\\\\`\\"\\\$]*) | |
17576 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17577 | ;; | |
17578 | *) | |
17579 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17580 | ;; | |
17581 | esac | |
17582 | done | |
17583 | ||
17584 | ac_aux_dir='$ac_aux_dir' | |
17585 | xsi_shell='$xsi_shell' | |
17586 | lt_shell_append='$lt_shell_append' | |
17587 | ||
17588 | # See if we are running on zsh, and set the options which allow our | |
17589 | # commands through without removal of \ escapes INIT. | |
17590 | if test -n "\${ZSH_VERSION+set}" ; then | |
17591 | setopt NO_GLOB_SUBST | |
17592 | fi | |
17593 | ||
17594 | ||
17595 | PACKAGE='$PACKAGE' | |
17596 | VERSION='$VERSION' | |
17597 | TIMESTAMP='$TIMESTAMP' | |
17598 | RM='$RM' | |
17599 | ofile='$ofile' | |
17600 | ||
17601 | ||
17602 | ||
17603 | ||
17604 | ||
17605 | ||
c915a581 JJ |
17606 | GCC="$GCC" |
17607 | CC="$CC" | |
17608 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
17609 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
17610 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
17611 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
17612 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
17613 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
17614 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
17615 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
17616 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
17617 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
17618 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
17619 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
17620 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
17621 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
17622 | ||
17623 | ||
f35db108 WM |
17624 | _ACEOF |
17625 | ||
17626 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17627 | ||
17628 | # Handling of arguments. | |
17629 | for ac_config_target in $ac_config_targets | |
17630 | do | |
17631 | case $ac_config_target in | |
c915a581 | 17632 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
94213c10 | 17633 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
f35db108 | 17634 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
c915a581 | 17635 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
f35db108 | 17636 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
35814b03 | 17637 | "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;; |
c915a581 JJ |
17638 | "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;; |
17639 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
f35db108 WM |
17640 | "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;; |
17641 | "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;; | |
c915a581 | 17642 | "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;; |
ef1b3fda | 17643 | "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;; |
f35db108 | 17644 | "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;; |
de5a5fa1 | 17645 | "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;; |
cd0be65c | 17646 | "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;; |
f35db108 | 17647 | |
a2479b3d | 17648 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
f35db108 WM |
17649 | esac |
17650 | done | |
17651 | ||
17652 | ||
17653 | # If the user did not use the arguments to specify the items to instantiate, | |
17654 | # then the envvar interface is used. Set only those that are not. | |
17655 | # We use the long form for the default assignment because of an extremely | |
17656 | # bizarre bug on SunOS 4.1.3. | |
17657 | if $ac_need_defaults; then | |
17658 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
c915a581 | 17659 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
f35db108 WM |
17660 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
17661 | fi | |
17662 | ||
17663 | # Have a temporary directory for convenience. Make it in the build tree | |
17664 | # simply because there is no reason against having it here, and in addition, | |
17665 | # creating and moving files from /tmp can sometimes cause problems. | |
17666 | # Hook for its removal unless debugging. | |
17667 | # Note that there is a small window in which the directory will not be cleaned: | |
17668 | # after its creation but before its name has been assigned to `$tmp'. | |
17669 | $debug || | |
17670 | { | |
a2479b3d | 17671 | tmp= |
f35db108 | 17672 | trap 'exit_status=$? |
a2479b3d | 17673 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
f35db108 WM |
17674 | ' 0 |
17675 | trap 'as_fn_exit 1' 1 2 13 15 | |
17676 | } | |
17677 | # Create a (secure) tmp directory for tmp files. | |
17678 | ||
17679 | { | |
17680 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
a2479b3d | 17681 | test -n "$tmp" && test -d "$tmp" |
f35db108 WM |
17682 | } || |
17683 | { | |
17684 | tmp=./conf$$-$RANDOM | |
17685 | (umask 077 && mkdir "$tmp") | |
a2479b3d | 17686 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
f35db108 WM |
17687 | |
17688 | # Set up the scripts for CONFIG_FILES section. | |
17689 | # No need to generate them if there are no CONFIG_FILES. | |
17690 | # This happens for instance with `./config.status config.h'. | |
17691 | if test -n "$CONFIG_FILES"; then | |
17692 | ||
17693 | ||
17694 | ac_cr=`echo X | tr X '\015'` | |
17695 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17696 | # But we know of no other shell where ac_cr would be empty at this | |
17697 | # point, so we can use a bashism as a fallback. | |
17698 | if test "x$ac_cr" = x; then | |
17699 | eval ac_cr=\$\'\\r\' | |
17700 | fi | |
17701 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17702 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
a2479b3d | 17703 | ac_cs_awk_cr='\r' |
f35db108 WM |
17704 | else |
17705 | ac_cs_awk_cr=$ac_cr | |
17706 | fi | |
17707 | ||
a2479b3d | 17708 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
f35db108 WM |
17709 | _ACEOF |
17710 | ||
17711 | ||
17712 | { | |
17713 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17714 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17715 | echo "_ACEOF" | |
17716 | } >conf$$subs.sh || | |
a2479b3d L |
17717 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
17718 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
f35db108 WM |
17719 | ac_delim='%!_!# ' |
17720 | for ac_last_try in false false false false false :; do | |
17721 | . ./conf$$subs.sh || | |
a2479b3d | 17722 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
17723 | |
17724 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17725 | if test $ac_delim_n = $ac_delim_num; then | |
17726 | break | |
17727 | elif $ac_last_try; then | |
a2479b3d | 17728 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
17729 | else |
17730 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17731 | fi | |
17732 | done | |
17733 | rm -f conf$$subs.sh | |
17734 | ||
17735 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
a2479b3d | 17736 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
f35db108 WM |
17737 | _ACEOF |
17738 | sed -n ' | |
17739 | h | |
17740 | s/^/S["/; s/!.*/"]=/ | |
17741 | p | |
17742 | g | |
17743 | s/^[^!]*!// | |
17744 | :repl | |
17745 | t repl | |
17746 | s/'"$ac_delim"'$// | |
17747 | t delim | |
17748 | :nl | |
17749 | h | |
a2479b3d | 17750 | s/\(.\{148\}\).*/\1/ |
f35db108 WM |
17751 | t more1 |
17752 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17753 | p | |
17754 | n | |
17755 | b repl | |
17756 | :more1 | |
17757 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17758 | p | |
17759 | g | |
17760 | s/.\{148\}// | |
17761 | t nl | |
17762 | :delim | |
17763 | h | |
a2479b3d | 17764 | s/\(.\{148\}\).*/\1/ |
f35db108 WM |
17765 | t more2 |
17766 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17767 | p | |
17768 | b | |
17769 | :more2 | |
17770 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17771 | p | |
17772 | g | |
17773 | s/.\{148\}// | |
17774 | t delim | |
17775 | ' <conf$$subs.awk | sed ' | |
17776 | /^[^""]/{ | |
17777 | N | |
17778 | s/\n// | |
17779 | } | |
17780 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17781 | rm -f conf$$subs.awk | |
17782 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17783 | _ACAWK | |
a2479b3d | 17784 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
f35db108 WM |
17785 | for (key in S) S_is_set[key] = 1 |
17786 | FS = "\a" | |
17787 | ||
17788 | } | |
17789 | { | |
17790 | line = $ 0 | |
17791 | nfields = split(line, field, "@") | |
17792 | substed = 0 | |
17793 | len = length(field[1]) | |
17794 | for (i = 2; i < nfields; i++) { | |
17795 | key = field[i] | |
17796 | keylen = length(key) | |
17797 | if (S_is_set[key]) { | |
17798 | value = S[key] | |
17799 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17800 | len += length(value) + length(field[++i]) | |
17801 | substed = 1 | |
17802 | } else | |
17803 | len += 1 + keylen | |
17804 | } | |
17805 | ||
17806 | print line | |
17807 | } | |
17808 | ||
17809 | _ACAWK | |
17810 | _ACEOF | |
17811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17812 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17813 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17814 | else | |
17815 | cat | |
a2479b3d L |
17816 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
17817 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
f35db108 WM |
17818 | _ACEOF |
17819 | ||
a2479b3d L |
17820 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
17821 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
f35db108 WM |
17822 | # trailing colons and then remove the whole line if VPATH becomes empty |
17823 | # (actually we leave an empty line to preserve line numbers). | |
17824 | if test "x$srcdir" = x.; then | |
a2479b3d L |
17825 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
17826 | s/:*\$(srcdir):*/:/ | |
17827 | s/:*\${srcdir}:*/:/ | |
17828 | s/:*@srcdir@:*/:/ | |
17829 | s/^\([^=]*=[ ]*\):*/\1/ | |
f35db108 | 17830 | s/:*$// |
f35db108 WM |
17831 | s/^[^=]*=[ ]*$// |
17832 | }' | |
17833 | fi | |
17834 | ||
17835 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17836 | fi # test -n "$CONFIG_FILES" | |
17837 | ||
c915a581 JJ |
17838 | # Set up the scripts for CONFIG_HEADERS section. |
17839 | # No need to generate them if there are no CONFIG_HEADERS. | |
17840 | # This happens for instance with `./config.status Makefile'. | |
17841 | if test -n "$CONFIG_HEADERS"; then | |
17842 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
17843 | BEGIN { | |
17844 | _ACEOF | |
17845 | ||
17846 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
17847 | # here-document in config.status, that substitutes the proper values into | |
17848 | # config.h.in to produce config.h. | |
17849 | ||
17850 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17851 | # handling of long lines. | |
17852 | ac_delim='%!_!# ' | |
17853 | for ac_last_try in false false :; do | |
17854 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
17855 | if test -z "$ac_t"; then | |
17856 | break | |
17857 | elif $ac_last_try; then | |
17858 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
17859 | else | |
17860 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17861 | fi | |
17862 | done | |
17863 | ||
17864 | # For the awk script, D is an array of macro values keyed by name, | |
17865 | # likewise P contains macro parameters if any. Preserve backslash | |
17866 | # newline sequences. | |
17867 | ||
17868 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17869 | sed -n ' | |
17870 | s/.\{148\}/&'"$ac_delim"'/g | |
17871 | t rset | |
17872 | :rset | |
17873 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17874 | t def | |
17875 | d | |
17876 | :def | |
17877 | s/\\$// | |
17878 | t bsnl | |
17879 | s/["\\]/\\&/g | |
17880 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17881 | D["\1"]=" \3"/p | |
17882 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17883 | d | |
17884 | :bsnl | |
17885 | s/["\\]/\\&/g | |
17886 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17887 | D["\1"]=" \3\\\\\\n"\\/p | |
17888 | t cont | |
17889 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17890 | t cont | |
17891 | d | |
17892 | :cont | |
17893 | n | |
17894 | s/.\{148\}/&'"$ac_delim"'/g | |
17895 | t clear | |
17896 | :clear | |
17897 | s/\\$// | |
17898 | t bsnlc | |
17899 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17900 | d | |
17901 | :bsnlc | |
17902 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17903 | b cont | |
17904 | ' <confdefs.h | sed ' | |
17905 | s/'"$ac_delim"'/"\\\ | |
17906 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17907 | ||
17908 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17909 | for (key in D) D_is_set[key] = 1 | |
17910 | FS = "\a" | |
17911 | } | |
17912 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17913 | line = \$ 0 | |
17914 | split(line, arg, " ") | |
17915 | if (arg[1] == "#") { | |
17916 | defundef = arg[2] | |
17917 | mac1 = arg[3] | |
17918 | } else { | |
17919 | defundef = substr(arg[1], 2) | |
17920 | mac1 = arg[2] | |
17921 | } | |
17922 | split(mac1, mac2, "(") #) | |
17923 | macro = mac2[1] | |
17924 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17925 | if (D_is_set[macro]) { | |
17926 | # Preserve the white space surrounding the "#". | |
17927 | print prefix "define", macro P[macro] D[macro] | |
17928 | next | |
17929 | } else { | |
17930 | # Replace #undef with comments. This is necessary, for example, | |
17931 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17932 | # on some systems where configure will not decide to define it. | |
17933 | if (defundef == "undef") { | |
17934 | print "/*", prefix defundef, macro, "*/" | |
17935 | next | |
17936 | } | |
17937 | } | |
17938 | } | |
17939 | { print } | |
17940 | _ACAWK | |
17941 | _ACEOF | |
17942 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17943 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
17944 | fi # test -n "$CONFIG_HEADERS" | |
17945 | ||
f35db108 | 17946 | |
c915a581 | 17947 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
f35db108 WM |
17948 | shift |
17949 | for ac_tag | |
17950 | do | |
17951 | case $ac_tag in | |
17952 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17953 | esac | |
17954 | case $ac_mode$ac_tag in | |
17955 | :[FHL]*:*);; | |
a2479b3d | 17956 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
f35db108 WM |
17957 | :[FH]-) ac_tag=-:-;; |
17958 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17959 | esac | |
17960 | ac_save_IFS=$IFS | |
17961 | IFS=: | |
17962 | set x $ac_tag | |
17963 | IFS=$ac_save_IFS | |
17964 | shift | |
17965 | ac_file=$1 | |
17966 | shift | |
17967 | ||
17968 | case $ac_mode in | |
17969 | :L) ac_source=$1;; | |
17970 | :[FH]) | |
17971 | ac_file_inputs= | |
17972 | for ac_f | |
17973 | do | |
17974 | case $ac_f in | |
a2479b3d | 17975 | -) ac_f="$tmp/stdin";; |
f35db108 WM |
17976 | *) # Look for the file first in the build tree, then in the source tree |
17977 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17978 | # because $ac_f cannot contain `:'. | |
17979 | test -f "$ac_f" || | |
17980 | case $ac_f in | |
17981 | [\\/$]*) false;; | |
17982 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17983 | esac || | |
a2479b3d | 17984 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
f35db108 WM |
17985 | esac |
17986 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17987 | as_fn_append ac_file_inputs " '$ac_f'" | |
17988 | done | |
17989 | ||
17990 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17991 | # use $as_me), people would be surprised to read: | |
17992 | # /* config.h. Generated by config.status. */ | |
17993 | configure_input='Generated from '` | |
17994 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17995 | `' by configure.' | |
17996 | if test x"$ac_file" != x-; then | |
17997 | configure_input="$ac_file. $configure_input" | |
17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17999 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18000 | fi | |
18001 | # Neutralize special characters interpreted by sed in replacement strings. | |
18002 | case $configure_input in #( | |
18003 | *\&* | *\|* | *\\* ) | |
18004 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18005 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18006 | *) ac_sed_conf_input=$configure_input;; | |
18007 | esac | |
18008 | ||
18009 | case $ac_tag in | |
a2479b3d L |
18010 | *:-:* | *:-) cat >"$tmp/stdin" \ |
18011 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
f35db108 WM |
18012 | esac |
18013 | ;; | |
18014 | esac | |
18015 | ||
18016 | ac_dir=`$as_dirname -- "$ac_file" || | |
18017 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18018 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18019 | X"$ac_file" : 'X\(//\)$' \| \ | |
18020 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
18021 | $as_echo X"$ac_file" | | |
18022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18023 | s//\1/ | |
18024 | q | |
18025 | } | |
18026 | /^X\(\/\/\)[^/].*/{ | |
18027 | s//\1/ | |
18028 | q | |
18029 | } | |
18030 | /^X\(\/\/\)$/{ | |
18031 | s//\1/ | |
18032 | q | |
18033 | } | |
18034 | /^X\(\/\).*/{ | |
18035 | s//\1/ | |
18036 | q | |
18037 | } | |
18038 | s/.*/./; q'` | |
18039 | as_dir="$ac_dir"; as_fn_mkdir_p | |
18040 | ac_builddir=. | |
18041 | ||
18042 | case "$ac_dir" in | |
18043 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18044 | *) | |
18045 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18046 | # A ".." for each directory in $ac_dir_suffix. | |
18047 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18048 | case $ac_top_builddir_sub in | |
18049 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18050 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18051 | esac ;; | |
18052 | esac | |
18053 | ac_abs_top_builddir=$ac_pwd | |
18054 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18055 | # for backward compatibility: | |
18056 | ac_top_builddir=$ac_top_build_prefix | |
18057 | ||
18058 | case $srcdir in | |
18059 | .) # We are building in place. | |
18060 | ac_srcdir=. | |
18061 | ac_top_srcdir=$ac_top_builddir_sub | |
18062 | ac_abs_top_srcdir=$ac_pwd ;; | |
18063 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
18064 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18065 | ac_top_srcdir=$srcdir | |
18066 | ac_abs_top_srcdir=$srcdir ;; | |
18067 | *) # Relative name. | |
18068 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18069 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18070 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18071 | esac | |
18072 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
18073 | ||
18074 | ||
18075 | case $ac_mode in | |
18076 | :F) | |
18077 | # | |
18078 | # CONFIG_FILE | |
18079 | # | |
18080 | ||
18081 | case $INSTALL in | |
18082 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18083 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
18084 | esac | |
18085 | ac_MKDIR_P=$MKDIR_P | |
18086 | case $MKDIR_P in | |
18087 | [\\/$]* | ?:[\\/]* ) ;; | |
18088 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18089 | esac | |
18090 | _ACEOF | |
18091 | ||
18092 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18093 | # If the template does not know about datarootdir, expand it. | |
18094 | # FIXME: This hack should be removed a few years after 2.60. | |
18095 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18096 | ac_sed_dataroot=' | |
18097 | /datarootdir/ { | |
18098 | p | |
18099 | q | |
18100 | } | |
18101 | /@datadir@/p | |
18102 | /@docdir@/p | |
18103 | /@infodir@/p | |
18104 | /@localedir@/p | |
18105 | /@mandir@/p' | |
18106 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18107 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18108 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18110 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18111 | _ACEOF | |
18112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18113 | ac_datarootdir_hack=' | |
18114 | s&@datadir@&$datadir&g | |
18115 | s&@docdir@&$docdir&g | |
18116 | s&@infodir@&$infodir&g | |
18117 | s&@localedir@&$localedir&g | |
18118 | s&@mandir@&$mandir&g | |
18119 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18120 | esac | |
18121 | _ACEOF | |
18122 | ||
18123 | # Neutralize VPATH when `$srcdir' = `.'. | |
18124 | # Shell code in configure.ac might set extrasub. | |
18125 | # FIXME: do we really want to maintain this feature? | |
18126 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18127 | ac_sed_extra="$ac_vpsub | |
18128 | $extrasub | |
18129 | _ACEOF | |
18130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18131 | :t | |
18132 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18133 | s|@configure_input@|$ac_sed_conf_input|;t t | |
18134 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18135 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18136 | s&@srcdir@&$ac_srcdir&;t t | |
18137 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18138 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18139 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18140 | s&@builddir@&$ac_builddir&;t t | |
18141 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18142 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18143 | s&@INSTALL@&$ac_INSTALL&;t t | |
18144 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18145 | $ac_datarootdir_hack | |
18146 | " | |
a2479b3d L |
18147 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
18148 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
f35db108 WM |
18149 | |
18150 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
a2479b3d L |
18151 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
18152 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f35db108 | 18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
a2479b3d | 18154 | which seems to be undefined. Please make sure it is defined." >&5 |
f35db108 | 18155 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
a2479b3d | 18156 | which seems to be undefined. Please make sure it is defined." >&2;} |
f35db108 | 18157 | |
a2479b3d | 18158 | rm -f "$tmp/stdin" |
f35db108 | 18159 | case $ac_file in |
a2479b3d L |
18160 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
18161 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
f35db108 | 18162 | esac \ |
a2479b3d | 18163 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
f35db108 | 18164 | ;; |
c915a581 JJ |
18165 | :H) |
18166 | # | |
18167 | # CONFIG_HEADER | |
18168 | # | |
18169 | if test x"$ac_file" != x-; then | |
18170 | { | |
18171 | $as_echo "/* $configure_input */" \ | |
18172 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
18173 | } >"$tmp/config.h" \ | |
18174 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18175 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
18176 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18177 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18178 | else | |
18179 | rm -f "$ac_file" | |
18180 | mv "$tmp/config.h" "$ac_file" \ | |
18181 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
18182 | fi | |
18183 | else | |
18184 | $as_echo "/* $configure_input */" \ | |
18185 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
18186 | || as_fn_error "could not create -" "$LINENO" 5 | |
18187 | fi | |
18188 | # Compute "$ac_file"'s index in $config_headers. | |
18189 | _am_arg="$ac_file" | |
18190 | _am_stamp_count=1 | |
18191 | for _am_header in $config_headers :; do | |
18192 | case $_am_header in | |
18193 | $_am_arg | $_am_arg:* ) | |
18194 | break ;; | |
18195 | * ) | |
18196 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18197 | esac | |
18198 | done | |
18199 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18200 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18201 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18202 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18203 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18204 | $as_echo X"$_am_arg" | | |
18205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18206 | s//\1/ | |
18207 | q | |
18208 | } | |
18209 | /^X\(\/\/\)[^/].*/{ | |
18210 | s//\1/ | |
18211 | q | |
18212 | } | |
18213 | /^X\(\/\/\)$/{ | |
18214 | s//\1/ | |
18215 | q | |
18216 | } | |
18217 | /^X\(\/\).*/{ | |
18218 | s//\1/ | |
18219 | q | |
18220 | } | |
18221 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18222 | ;; | |
f35db108 WM |
18223 | |
18224 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
18225 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18226 | ;; | |
18227 | esac | |
18228 | ||
18229 | ||
18230 | case $ac_file$ac_mode in | |
94213c10 MK |
18231 | "default-1":C) |
18232 | # Only add multilib support code if we just rebuilt the top-level | |
18233 | # Makefile. | |
18234 | case " $CONFIG_FILES " in | |
18235 | *" Makefile "*) | |
18236 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
18237 | ;; | |
18238 | esac ;; | |
f35db108 WM |
18239 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
18240 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
18241 | # are listed without --file. Let's play safe and only enable the eval | |
18242 | # if we detect the quoting. | |
18243 | case $CONFIG_FILES in | |
18244 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18245 | *) set x $CONFIG_FILES ;; | |
18246 | esac | |
18247 | shift | |
18248 | for mf | |
18249 | do | |
18250 | # Strip MF so we end up with the name of the file. | |
18251 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18252 | # Check whether this is an Automake generated Makefile or not. | |
18253 | # We used to match only the files named `Makefile.in', but | |
18254 | # some people rename them; so instead we look at the file content. | |
18255 | # Grep'ing the first line is not enough: some people post-process | |
18256 | # each Makefile.in and add a new line on top of each file to say so. | |
18257 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18258 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18259 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18260 | dirpart=`$as_dirname -- "$mf" || | |
18261 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18262 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18263 | X"$mf" : 'X\(//\)$' \| \ | |
18264 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
18265 | $as_echo X"$mf" | | |
18266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18267 | s//\1/ | |
18268 | q | |
18269 | } | |
18270 | /^X\(\/\/\)[^/].*/{ | |
18271 | s//\1/ | |
18272 | q | |
18273 | } | |
18274 | /^X\(\/\/\)$/{ | |
18275 | s//\1/ | |
18276 | q | |
18277 | } | |
18278 | /^X\(\/\).*/{ | |
18279 | s//\1/ | |
18280 | q | |
18281 | } | |
18282 | s/.*/./; q'` | |
18283 | else | |
18284 | continue | |
18285 | fi | |
18286 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18287 | # from the Makefile without running `make'. | |
18288 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18289 | test -z "$DEPDIR" && continue | |
18290 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18291 | test -z "am__include" && continue | |
18292 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18293 | # When using ansi2knr, U may be empty or an underscore; expand it | |
18294 | U=`sed -n 's/^U = //p' < "$mf"` | |
18295 | # Find all dependency output files, they are included files with | |
18296 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18297 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18298 | # expansion. | |
18299 | for file in `sed -n " | |
18300 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18301 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
18302 | # Make sure the directory exists. | |
18303 | test -f "$dirpart/$file" && continue | |
18304 | fdir=`$as_dirname -- "$file" || | |
18305 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18306 | X"$file" : 'X\(//\)[^/]' \| \ | |
18307 | X"$file" : 'X\(//\)$' \| \ | |
18308 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
18309 | $as_echo X"$file" | | |
18310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18311 | s//\1/ | |
18312 | q | |
18313 | } | |
18314 | /^X\(\/\/\)[^/].*/{ | |
18315 | s//\1/ | |
18316 | q | |
18317 | } | |
18318 | /^X\(\/\/\)$/{ | |
18319 | s//\1/ | |
18320 | q | |
18321 | } | |
18322 | /^X\(\/\).*/{ | |
18323 | s//\1/ | |
18324 | q | |
18325 | } | |
18326 | s/.*/./; q'` | |
18327 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18328 | # echo "creating $dirpart/$file" | |
18329 | echo '# dummy' > "$dirpart/$file" | |
18330 | done | |
18331 | done | |
18332 | } | |
18333 | ;; | |
18334 | "libtool":C) | |
18335 | ||
18336 | # See if we are running on zsh, and set the options which allow our | |
18337 | # commands through without removal of \ escapes. | |
18338 | if test -n "${ZSH_VERSION+set}" ; then | |
18339 | setopt NO_GLOB_SUBST | |
18340 | fi | |
18341 | ||
18342 | cfgfile="${ofile}T" | |
18343 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18344 | $RM "$cfgfile" | |
18345 | ||
18346 | cat <<_LT_EOF >> "$cfgfile" | |
18347 | #! $SHELL | |
18348 | ||
18349 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18350 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
18351 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18352 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18353 | # | |
18354 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
a2479b3d | 18355 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
f35db108 WM |
18356 | # Written by Gordon Matzigkeit, 1996 |
18357 | # | |
18358 | # This file is part of GNU Libtool. | |
18359 | # | |
18360 | # GNU Libtool is free software; you can redistribute it and/or | |
18361 | # modify it under the terms of the GNU General Public License as | |
18362 | # published by the Free Software Foundation; either version 2 of | |
18363 | # the License, or (at your option) any later version. | |
18364 | # | |
18365 | # As a special exception to the GNU General Public License, | |
18366 | # if you distribute this file as part of a program or library that | |
18367 | # is built using GNU Libtool, you may include this file under the | |
18368 | # same distribution terms that you use for the rest of that program. | |
18369 | # | |
18370 | # GNU Libtool is distributed in the hope that it will be useful, | |
18371 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18372 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18373 | # GNU General Public License for more details. | |
18374 | # | |
18375 | # You should have received a copy of the GNU General Public License | |
18376 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18377 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18378 | # obtained by writing to the Free Software Foundation, Inc., | |
18379 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18380 | ||
18381 | ||
18382 | # The names of the tagged configurations supported by this script. | |
18383 | available_tags="CXX " | |
18384 | ||
18385 | # ### BEGIN LIBTOOL CONFIG | |
18386 | ||
18387 | # Which release of libtool.m4 was used? | |
18388 | macro_version=$macro_version | |
18389 | macro_revision=$macro_revision | |
18390 | ||
18391 | # Whether or not to build shared libraries. | |
18392 | build_libtool_libs=$enable_shared | |
18393 | ||
18394 | # Whether or not to build static libraries. | |
18395 | build_old_libs=$enable_static | |
18396 | ||
18397 | # What type of objects to build. | |
18398 | pic_mode=$pic_mode | |
18399 | ||
18400 | # Whether or not to optimize for fast installation. | |
18401 | fast_install=$enable_fast_install | |
18402 | ||
18403 | # Shell to use when invoking shell scripts. | |
18404 | SHELL=$lt_SHELL | |
18405 | ||
18406 | # An echo program that protects backslashes. | |
18407 | ECHO=$lt_ECHO | |
18408 | ||
f35db108 WM |
18409 | # The host system. |
18410 | host_alias=$host_alias | |
18411 | host=$host | |
18412 | host_os=$host_os | |
18413 | ||
18414 | # The build system. | |
18415 | build_alias=$build_alias | |
18416 | build=$build | |
18417 | build_os=$build_os | |
18418 | ||
18419 | # A sed program that does not truncate output. | |
18420 | SED=$lt_SED | |
18421 | ||
18422 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18423 | Xsed="\$SED -e 1s/^X//" | |
18424 | ||
18425 | # A grep program that handles long lines. | |
18426 | GREP=$lt_GREP | |
18427 | ||
18428 | # An ERE matcher. | |
18429 | EGREP=$lt_EGREP | |
18430 | ||
18431 | # A literal string matcher. | |
18432 | FGREP=$lt_FGREP | |
18433 | ||
18434 | # A BSD- or MS-compatible name lister. | |
18435 | NM=$lt_NM | |
18436 | ||
18437 | # Whether we need soft or hard links. | |
18438 | LN_S=$lt_LN_S | |
18439 | ||
18440 | # What is the maximum length of a command? | |
18441 | max_cmd_len=$max_cmd_len | |
18442 | ||
18443 | # Object file suffix (normally "o"). | |
18444 | objext=$ac_objext | |
18445 | ||
18446 | # Executable file suffix (normally ""). | |
18447 | exeext=$exeext | |
18448 | ||
18449 | # whether the shell understands "unset". | |
18450 | lt_unset=$lt_unset | |
18451 | ||
18452 | # turn spaces into newlines. | |
18453 | SP2NL=$lt_lt_SP2NL | |
18454 | ||
18455 | # turn newlines into spaces. | |
18456 | NL2SP=$lt_lt_NL2SP | |
18457 | ||
f35db108 WM |
18458 | # An object symbol dumper. |
18459 | OBJDUMP=$lt_OBJDUMP | |
18460 | ||
18461 | # Method to check whether dependent libraries are shared objects. | |
18462 | deplibs_check_method=$lt_deplibs_check_method | |
18463 | ||
a2479b3d | 18464 | # Command to use when deplibs_check_method == "file_magic". |
f35db108 WM |
18465 | file_magic_cmd=$lt_file_magic_cmd |
18466 | ||
f35db108 WM |
18467 | # The archiver. |
18468 | AR=$lt_AR | |
f35db108 WM |
18469 | AR_FLAGS=$lt_AR_FLAGS |
18470 | ||
f35db108 WM |
18471 | # A symbol stripping program. |
18472 | STRIP=$lt_STRIP | |
18473 | ||
18474 | # Commands used to install an old-style archive. | |
18475 | RANLIB=$lt_RANLIB | |
18476 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18477 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18478 | ||
18479 | # Whether to use a lock for old archive extraction. | |
18480 | lock_old_archive_extraction=$lock_old_archive_extraction | |
18481 | ||
18482 | # A C compiler. | |
18483 | LTCC=$lt_CC | |
18484 | ||
18485 | # LTCC compiler flags. | |
18486 | LTCFLAGS=$lt_CFLAGS | |
18487 | ||
18488 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18489 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18490 | ||
18491 | # Transform the output of nm in a proper C declaration. | |
18492 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18493 | ||
18494 | # Transform the output of nm in a C name address pair. | |
18495 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18496 | ||
18497 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18498 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18499 | ||
f35db108 WM |
18500 | # The name of the directory that contains temporary libtool files. |
18501 | objdir=$objdir | |
18502 | ||
18503 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18504 | MAGIC_CMD=$MAGIC_CMD | |
18505 | ||
18506 | # Must we lock files when doing compilation? | |
18507 | need_locks=$lt_need_locks | |
18508 | ||
f35db108 WM |
18509 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
18510 | DSYMUTIL=$lt_DSYMUTIL | |
18511 | ||
18512 | # Tool to change global to local symbols on Mac OS X. | |
18513 | NMEDIT=$lt_NMEDIT | |
18514 | ||
18515 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18516 | LIPO=$lt_LIPO | |
18517 | ||
18518 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18519 | OTOOL=$lt_OTOOL | |
18520 | ||
18521 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18522 | OTOOL64=$lt_OTOOL64 | |
18523 | ||
18524 | # Old archive suffix (normally "a"). | |
18525 | libext=$libext | |
18526 | ||
18527 | # Shared library suffix (normally ".so"). | |
18528 | shrext_cmds=$lt_shrext_cmds | |
18529 | ||
18530 | # The commands to extract the exported symbol list from a shared archive. | |
18531 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18532 | ||
18533 | # Variables whose values should be saved in libtool wrapper scripts and | |
18534 | # restored at link time. | |
18535 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18536 | ||
18537 | # Do we need the "lib" prefix for modules? | |
18538 | need_lib_prefix=$need_lib_prefix | |
18539 | ||
18540 | # Do we need a version for libraries? | |
18541 | need_version=$need_version | |
18542 | ||
18543 | # Library versioning type. | |
18544 | version_type=$version_type | |
18545 | ||
18546 | # Shared library runtime path variable. | |
18547 | runpath_var=$runpath_var | |
18548 | ||
18549 | # Shared library path variable. | |
18550 | shlibpath_var=$shlibpath_var | |
18551 | ||
18552 | # Is shlibpath searched before the hard-coded library search path? | |
18553 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18554 | ||
18555 | # Format of library name prefix. | |
18556 | libname_spec=$lt_libname_spec | |
18557 | ||
18558 | # List of archive names. First name is the real one, the rest are links. | |
18559 | # The last name is the one that the linker finds with -lNAME | |
18560 | library_names_spec=$lt_library_names_spec | |
18561 | ||
18562 | # The coded name of the library, if different from the real name. | |
18563 | soname_spec=$lt_soname_spec | |
18564 | ||
18565 | # Permission mode override for installation of shared libraries. | |
18566 | install_override_mode=$lt_install_override_mode | |
18567 | ||
18568 | # Command to use after installation of a shared archive. | |
18569 | postinstall_cmds=$lt_postinstall_cmds | |
18570 | ||
18571 | # Command to use after uninstallation of a shared archive. | |
18572 | postuninstall_cmds=$lt_postuninstall_cmds | |
18573 | ||
18574 | # Commands used to finish a libtool library installation in a directory. | |
18575 | finish_cmds=$lt_finish_cmds | |
18576 | ||
18577 | # As "finish_cmds", except a single script fragment to be evaled but | |
18578 | # not shown. | |
18579 | finish_eval=$lt_finish_eval | |
18580 | ||
18581 | # Whether we should hardcode library paths into libraries. | |
18582 | hardcode_into_libs=$hardcode_into_libs | |
18583 | ||
18584 | # Compile-time system search path for libraries. | |
18585 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18586 | ||
18587 | # Run-time system search path for libraries. | |
18588 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18589 | ||
18590 | # Whether dlopen is supported. | |
18591 | dlopen_support=$enable_dlopen | |
18592 | ||
18593 | # Whether dlopen of programs is supported. | |
18594 | dlopen_self=$enable_dlopen_self | |
18595 | ||
18596 | # Whether dlopen of statically linked programs is supported. | |
18597 | dlopen_self_static=$enable_dlopen_self_static | |
18598 | ||
18599 | # Commands to strip libraries. | |
18600 | old_striplib=$lt_old_striplib | |
18601 | striplib=$lt_striplib | |
18602 | ||
18603 | ||
18604 | # The linker used to build libraries. | |
18605 | LD=$lt_LD | |
18606 | ||
18607 | # How to create reloadable object files. | |
18608 | reload_flag=$lt_reload_flag | |
18609 | reload_cmds=$lt_reload_cmds | |
18610 | ||
18611 | # Commands used to build an old-style archive. | |
18612 | old_archive_cmds=$lt_old_archive_cmds | |
18613 | ||
18614 | # A language specific compiler. | |
18615 | CC=$lt_compiler | |
18616 | ||
18617 | # Is the compiler the GNU compiler? | |
18618 | with_gcc=$GCC | |
18619 | ||
18620 | # Compiler flag to turn off builtin functions. | |
18621 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18622 | ||
f35db108 WM |
18623 | # How to pass a linker flag through the compiler. |
18624 | wl=$lt_lt_prog_compiler_wl | |
18625 | ||
a2479b3d L |
18626 | # Additional compiler flags for building library objects. |
18627 | pic_flag=$lt_lt_prog_compiler_pic | |
18628 | ||
f35db108 WM |
18629 | # Compiler flag to prevent dynamic linking. |
18630 | link_static_flag=$lt_lt_prog_compiler_static | |
18631 | ||
18632 | # Does compiler simultaneously support -c and -o options? | |
18633 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18634 | ||
18635 | # Whether or not to add -lc for building shared libraries. | |
18636 | build_libtool_need_lc=$archive_cmds_need_lc | |
18637 | ||
18638 | # Whether or not to disallow shared libs when runtime libs are static. | |
18639 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18640 | ||
18641 | # Compiler flag to allow reflexive dlopens. | |
18642 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18643 | ||
18644 | # Compiler flag to generate shared objects directly from archives. | |
18645 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18646 | ||
18647 | # Whether the compiler copes with passing no objects directly. | |
18648 | compiler_needs_object=$lt_compiler_needs_object | |
18649 | ||
18650 | # Create an old-style archive from a shared archive. | |
18651 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18652 | ||
18653 | # Create a temporary old-style archive to link instead of a shared archive. | |
18654 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18655 | ||
18656 | # Commands used to build a shared archive. | |
18657 | archive_cmds=$lt_archive_cmds | |
18658 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18659 | ||
18660 | # Commands used to build a loadable module if different from building | |
18661 | # a shared archive. | |
18662 | module_cmds=$lt_module_cmds | |
18663 | module_expsym_cmds=$lt_module_expsym_cmds | |
18664 | ||
18665 | # Whether we are building with GNU ld or not. | |
18666 | with_gnu_ld=$lt_with_gnu_ld | |
18667 | ||
18668 | # Flag that allows shared libraries with undefined symbols to be built. | |
18669 | allow_undefined_flag=$lt_allow_undefined_flag | |
18670 | ||
18671 | # Flag that enforces no undefined symbols. | |
18672 | no_undefined_flag=$lt_no_undefined_flag | |
18673 | ||
18674 | # Flag to hardcode \$libdir into a binary during linking. | |
18675 | # This must work even if \$libdir does not exist | |
18676 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18677 | ||
a2479b3d L |
18678 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
18679 | # during linking. This must work even if \$libdir does not exist. | |
18680 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18681 | ||
f35db108 WM |
18682 | # Whether we need a single "-rpath" flag with a separated argument. |
18683 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18684 | ||
18685 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18686 | # DIR into the resulting binary. | |
18687 | hardcode_direct=$hardcode_direct | |
18688 | ||
18689 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18690 | # DIR into the resulting binary and the resulting library dependency is | |
18691 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18692 | # library is relocated. | |
18693 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18694 | ||
18695 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18696 | # into the resulting binary. | |
18697 | hardcode_minus_L=$hardcode_minus_L | |
18698 | ||
18699 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18700 | # into the resulting binary. | |
18701 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18702 | ||
18703 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18704 | # into the library and all subsequent libraries and executables linked | |
18705 | # against it. | |
18706 | hardcode_automatic=$hardcode_automatic | |
18707 | ||
18708 | # Set to yes if linker adds runtime paths of dependent libraries | |
18709 | # to runtime path list. | |
18710 | inherit_rpath=$inherit_rpath | |
18711 | ||
18712 | # Whether libtool must link a program against all its dependency libraries. | |
18713 | link_all_deplibs=$link_all_deplibs | |
18714 | ||
a2479b3d L |
18715 | # Fix the shell variable \$srcfile for the compiler. |
18716 | fix_srcfile_path=$lt_fix_srcfile_path | |
18717 | ||
f35db108 WM |
18718 | # Set to "yes" if exported symbols are required. |
18719 | always_export_symbols=$always_export_symbols | |
18720 | ||
18721 | # The commands to list exported symbols. | |
18722 | export_symbols_cmds=$lt_export_symbols_cmds | |
18723 | ||
18724 | # Symbols that should not be listed in the preloaded symbols. | |
18725 | exclude_expsyms=$lt_exclude_expsyms | |
18726 | ||
18727 | # Symbols that must always be exported. | |
18728 | include_expsyms=$lt_include_expsyms | |
18729 | ||
18730 | # Commands necessary for linking programs (against libraries) with templates. | |
18731 | prelink_cmds=$lt_prelink_cmds | |
18732 | ||
f35db108 WM |
18733 | # Specify filename containing input files. |
18734 | file_list_spec=$lt_file_list_spec | |
18735 | ||
18736 | # How to hardcode a shared library path into an executable. | |
18737 | hardcode_action=$hardcode_action | |
18738 | ||
18739 | # The directories searched by this compiler when creating a shared library. | |
18740 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
18741 | ||
18742 | # Dependencies to place before and after the objects being linked to | |
18743 | # create a shared library. | |
18744 | predep_objects=$lt_predep_objects | |
18745 | postdep_objects=$lt_postdep_objects | |
18746 | predeps=$lt_predeps | |
18747 | postdeps=$lt_postdeps | |
18748 | ||
18749 | # The library search path used internally by the compiler when linking | |
18750 | # a shared library. | |
18751 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
18752 | ||
18753 | # ### END LIBTOOL CONFIG | |
18754 | ||
18755 | _LT_EOF | |
18756 | ||
18757 | case $host_os in | |
18758 | aix3*) | |
18759 | cat <<\_LT_EOF >> "$cfgfile" | |
18760 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18761 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18762 | # vanish in a puff of smoke. | |
18763 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18764 | COLLECT_NAMES= | |
18765 | export COLLECT_NAMES | |
18766 | fi | |
18767 | _LT_EOF | |
18768 | ;; | |
18769 | esac | |
18770 | ||
18771 | ||
18772 | ltmain="$ac_aux_dir/ltmain.sh" | |
18773 | ||
18774 | ||
18775 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18776 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18777 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18778 | # is reportedly fixed, but why not run on old versions too? | |
a2479b3d L |
18779 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
18780 | || (rm -f "$cfgfile"; exit 1) | |
18781 | ||
18782 | case $xsi_shell in | |
18783 | yes) | |
18784 | cat << \_LT_EOF >> "$cfgfile" | |
18785 | ||
18786 | # func_dirname file append nondir_replacement | |
18787 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18788 | # otherwise set result to NONDIR_REPLACEMENT. | |
18789 | func_dirname () | |
18790 | { | |
18791 | case ${1} in | |
18792 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18793 | * ) func_dirname_result="${3}" ;; | |
18794 | esac | |
18795 | } | |
18796 | ||
18797 | # func_basename file | |
18798 | func_basename () | |
18799 | { | |
18800 | func_basename_result="${1##*/}" | |
18801 | } | |
18802 | ||
18803 | # func_dirname_and_basename file append nondir_replacement | |
18804 | # perform func_basename and func_dirname in a single function | |
18805 | # call: | |
18806 | # dirname: Compute the dirname of FILE. If nonempty, | |
18807 | # add APPEND to the result, otherwise set result | |
18808 | # to NONDIR_REPLACEMENT. | |
18809 | # value returned in "$func_dirname_result" | |
18810 | # basename: Compute filename of FILE. | |
18811 | # value retuned in "$func_basename_result" | |
18812 | # Implementation must be kept synchronized with func_dirname | |
18813 | # and func_basename. For efficiency, we do not delegate to | |
18814 | # those functions but instead duplicate the functionality here. | |
18815 | func_dirname_and_basename () | |
18816 | { | |
18817 | case ${1} in | |
18818 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18819 | * ) func_dirname_result="${3}" ;; | |
18820 | esac | |
18821 | func_basename_result="${1##*/}" | |
18822 | } | |
18823 | ||
18824 | # func_stripname prefix suffix name | |
18825 | # strip PREFIX and SUFFIX off of NAME. | |
18826 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18827 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18828 | # dot (in which case that matches only a dot). | |
18829 | func_stripname () | |
18830 | { | |
18831 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18832 | # positional parameters, so assign one to ordinary parameter first. | |
18833 | func_stripname_result=${3} | |
18834 | func_stripname_result=${func_stripname_result#"${1}"} | |
18835 | func_stripname_result=${func_stripname_result%"${2}"} | |
18836 | } | |
18837 | ||
18838 | # func_opt_split | |
18839 | func_opt_split () | |
18840 | { | |
18841 | func_opt_split_opt=${1%%=*} | |
18842 | func_opt_split_arg=${1#*=} | |
18843 | } | |
18844 | ||
18845 | # func_lo2o object | |
18846 | func_lo2o () | |
18847 | { | |
18848 | case ${1} in | |
18849 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18850 | *) func_lo2o_result=${1} ;; | |
18851 | esac | |
18852 | } | |
18853 | ||
18854 | # func_xform libobj-or-source | |
18855 | func_xform () | |
18856 | { | |
18857 | func_xform_result=${1%.*}.lo | |
18858 | } | |
18859 | ||
18860 | # func_arith arithmetic-term... | |
18861 | func_arith () | |
18862 | { | |
18863 | func_arith_result=$(( $* )) | |
18864 | } | |
18865 | ||
18866 | # func_len string | |
18867 | # STRING may not start with a hyphen. | |
18868 | func_len () | |
18869 | { | |
18870 | func_len_result=${#1} | |
18871 | } | |
18872 | ||
18873 | _LT_EOF | |
18874 | ;; | |
18875 | *) # Bourne compatible functions. | |
18876 | cat << \_LT_EOF >> "$cfgfile" | |
18877 | ||
18878 | # func_dirname file append nondir_replacement | |
18879 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18880 | # otherwise set result to NONDIR_REPLACEMENT. | |
18881 | func_dirname () | |
18882 | { | |
18883 | # Extract subdirectory from the argument. | |
18884 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
18885 | if test "X$func_dirname_result" = "X${1}"; then | |
18886 | func_dirname_result="${3}" | |
18887 | else | |
18888 | func_dirname_result="$func_dirname_result${2}" | |
18889 | fi | |
18890 | } | |
18891 | ||
18892 | # func_basename file | |
18893 | func_basename () | |
18894 | { | |
18895 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
18896 | } | |
18897 | ||
18898 | ||
18899 | # func_stripname prefix suffix name | |
18900 | # strip PREFIX and SUFFIX off of NAME. | |
18901 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18902 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18903 | # dot (in which case that matches only a dot). | |
18904 | # func_strip_suffix prefix name | |
18905 | func_stripname () | |
18906 | { | |
18907 | case ${2} in | |
18908 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
18909 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
18910 | esac | |
18911 | } | |
18912 | ||
18913 | # sed scripts: | |
18914 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18915 | my_sed_long_arg='1s/^-[^=]*=//' | |
18916 | ||
18917 | # func_opt_split | |
18918 | func_opt_split () | |
18919 | { | |
18920 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
18921 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
18922 | } | |
18923 | ||
18924 | # func_lo2o object | |
18925 | func_lo2o () | |
18926 | { | |
18927 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
18928 | } | |
18929 | ||
18930 | # func_xform libobj-or-source | |
18931 | func_xform () | |
18932 | { | |
18933 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
18934 | } | |
18935 | ||
18936 | # func_arith arithmetic-term... | |
18937 | func_arith () | |
18938 | { | |
18939 | func_arith_result=`expr "$@"` | |
18940 | } | |
18941 | ||
18942 | # func_len string | |
18943 | # STRING may not start with a hyphen. | |
18944 | func_len () | |
18945 | { | |
18946 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18947 | } | |
18948 | ||
18949 | _LT_EOF | |
18950 | esac | |
18951 | ||
18952 | case $lt_shell_append in | |
18953 | yes) | |
18954 | cat << \_LT_EOF >> "$cfgfile" | |
18955 | ||
18956 | # func_append var value | |
18957 | # Append VALUE to the end of shell variable VAR. | |
18958 | func_append () | |
18959 | { | |
18960 | eval "$1+=\$2" | |
18961 | } | |
18962 | _LT_EOF | |
18963 | ;; | |
18964 | *) | |
18965 | cat << \_LT_EOF >> "$cfgfile" | |
18966 | ||
18967 | # func_append var value | |
18968 | # Append VALUE to the end of shell variable VAR. | |
18969 | func_append () | |
18970 | { | |
18971 | eval "$1=\$$1\$2" | |
18972 | } | |
18973 | ||
18974 | _LT_EOF | |
18975 | ;; | |
18976 | esac | |
18977 | ||
18978 | ||
18979 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18980 | || (rm -f "$cfgfile"; exit 1) | |
18981 | ||
18982 | mv -f "$cfgfile" "$ofile" || | |
f35db108 WM |
18983 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
18984 | chmod +x "$ofile" | |
18985 | ||
18986 | ||
18987 | cat <<_LT_EOF >> "$ofile" | |
18988 | ||
18989 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
18990 | ||
18991 | # The linker used to build libraries. | |
18992 | LD=$lt_LD_CXX | |
18993 | ||
18994 | # How to create reloadable object files. | |
18995 | reload_flag=$lt_reload_flag_CXX | |
18996 | reload_cmds=$lt_reload_cmds_CXX | |
18997 | ||
18998 | # Commands used to build an old-style archive. | |
18999 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19000 | ||
19001 | # A language specific compiler. | |
19002 | CC=$lt_compiler_CXX | |
19003 | ||
19004 | # Is the compiler the GNU compiler? | |
19005 | with_gcc=$GCC_CXX | |
19006 | ||
19007 | # Compiler flag to turn off builtin functions. | |
19008 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19009 | ||
f35db108 WM |
19010 | # How to pass a linker flag through the compiler. |
19011 | wl=$lt_lt_prog_compiler_wl_CXX | |
19012 | ||
a2479b3d L |
19013 | # Additional compiler flags for building library objects. |
19014 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19015 | ||
f35db108 WM |
19016 | # Compiler flag to prevent dynamic linking. |
19017 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19018 | ||
19019 | # Does compiler simultaneously support -c and -o options? | |
19020 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19021 | ||
19022 | # Whether or not to add -lc for building shared libraries. | |
19023 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19024 | ||
19025 | # Whether or not to disallow shared libs when runtime libs are static. | |
19026 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19027 | ||
19028 | # Compiler flag to allow reflexive dlopens. | |
19029 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19030 | ||
19031 | # Compiler flag to generate shared objects directly from archives. | |
19032 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19033 | ||
19034 | # Whether the compiler copes with passing no objects directly. | |
19035 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19036 | ||
19037 | # Create an old-style archive from a shared archive. | |
19038 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19039 | ||
19040 | # Create a temporary old-style archive to link instead of a shared archive. | |
19041 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19042 | ||
19043 | # Commands used to build a shared archive. | |
19044 | archive_cmds=$lt_archive_cmds_CXX | |
19045 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19046 | ||
19047 | # Commands used to build a loadable module if different from building | |
19048 | # a shared archive. | |
19049 | module_cmds=$lt_module_cmds_CXX | |
19050 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19051 | ||
19052 | # Whether we are building with GNU ld or not. | |
19053 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19054 | ||
19055 | # Flag that allows shared libraries with undefined symbols to be built. | |
19056 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19057 | ||
19058 | # Flag that enforces no undefined symbols. | |
19059 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19060 | ||
19061 | # Flag to hardcode \$libdir into a binary during linking. | |
19062 | # This must work even if \$libdir does not exist | |
19063 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19064 | ||
a2479b3d L |
19065 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19066 | # during linking. This must work even if \$libdir does not exist. | |
19067 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19068 | ||
f35db108 WM |
19069 | # Whether we need a single "-rpath" flag with a separated argument. |
19070 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19071 | ||
19072 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19073 | # DIR into the resulting binary. | |
19074 | hardcode_direct=$hardcode_direct_CXX | |
19075 | ||
19076 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19077 | # DIR into the resulting binary and the resulting library dependency is | |
19078 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19079 | # library is relocated. | |
19080 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19081 | ||
19082 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19083 | # into the resulting binary. | |
19084 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19085 | ||
19086 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19087 | # into the resulting binary. | |
19088 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19089 | ||
19090 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19091 | # into the library and all subsequent libraries and executables linked | |
19092 | # against it. | |
19093 | hardcode_automatic=$hardcode_automatic_CXX | |
19094 | ||
19095 | # Set to yes if linker adds runtime paths of dependent libraries | |
19096 | # to runtime path list. | |
19097 | inherit_rpath=$inherit_rpath_CXX | |
19098 | ||
19099 | # Whether libtool must link a program against all its dependency libraries. | |
19100 | link_all_deplibs=$link_all_deplibs_CXX | |
19101 | ||
a2479b3d L |
19102 | # Fix the shell variable \$srcfile for the compiler. |
19103 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19104 | ||
f35db108 WM |
19105 | # Set to "yes" if exported symbols are required. |
19106 | always_export_symbols=$always_export_symbols_CXX | |
19107 | ||
19108 | # The commands to list exported symbols. | |
19109 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19110 | ||
19111 | # Symbols that should not be listed in the preloaded symbols. | |
19112 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19113 | ||
19114 | # Symbols that must always be exported. | |
19115 | include_expsyms=$lt_include_expsyms_CXX | |
19116 | ||
19117 | # Commands necessary for linking programs (against libraries) with templates. | |
19118 | prelink_cmds=$lt_prelink_cmds_CXX | |
19119 | ||
f35db108 WM |
19120 | # Specify filename containing input files. |
19121 | file_list_spec=$lt_file_list_spec_CXX | |
19122 | ||
19123 | # How to hardcode a shared library path into an executable. | |
19124 | hardcode_action=$hardcode_action_CXX | |
19125 | ||
19126 | # The directories searched by this compiler when creating a shared library. | |
19127 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19128 | ||
19129 | # Dependencies to place before and after the objects being linked to | |
19130 | # create a shared library. | |
19131 | predep_objects=$lt_predep_objects_CXX | |
19132 | postdep_objects=$lt_postdep_objects_CXX | |
19133 | predeps=$lt_predeps_CXX | |
19134 | postdeps=$lt_postdeps_CXX | |
19135 | ||
19136 | # The library search path used internally by the compiler when linking | |
19137 | # a shared library. | |
19138 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19139 | ||
19140 | # ### END LIBTOOL TAG CONFIG: CXX | |
19141 | _LT_EOF | |
19142 | ||
c915a581 JJ |
19143 | ;; |
19144 | "gstdint.h":C) | |
19145 | if test "$GCC" = yes; then | |
19146 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
19147 | else | |
19148 | echo "/* generated for $CC */" > tmp-stdint.h | |
19149 | fi | |
19150 | ||
19151 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19152 | ||
19153 | #ifndef GCC_GENERATED_STDINT_H | |
19154 | #define GCC_GENERATED_STDINT_H 1 | |
19155 | ||
19156 | #include <sys/types.h> | |
19157 | EOF | |
19158 | ||
19159 | if test "$acx_cv_header_stdint" != stdint.h; then | |
19160 | echo "#include <stddef.h>" >> tmp-stdint.h | |
19161 | fi | |
19162 | if test "$acx_cv_header_stdint" != stddef.h; then | |
19163 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
19164 | fi | |
19165 | ||
19166 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19167 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
19168 | #ifdef __int8_t_defined | |
19169 | #define _INT8_T | |
19170 | #define _INT16_T | |
19171 | #define _INT32_T | |
19172 | #endif | |
19173 | #ifdef __uint32_t_defined | |
19174 | #define _UINT32_T | |
19175 | #endif | |
19176 | ||
19177 | EOF | |
19178 | ||
19179 | # ----------------- done header, emit basic int types ------------- | |
19180 | if test "$acx_cv_header_stdint" = stddef.h; then | |
19181 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19182 | ||
19183 | #ifndef _UINT8_T | |
19184 | #define _UINT8_T | |
19185 | #ifndef __uint8_t_defined | |
19186 | #define __uint8_t_defined | |
19187 | #ifndef uint8_t | |
19188 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
19189 | #endif | |
19190 | #endif | |
19191 | #endif | |
19192 | ||
19193 | #ifndef _UINT16_T | |
19194 | #define _UINT16_T | |
19195 | #ifndef __uint16_t_defined | |
19196 | #define __uint16_t_defined | |
19197 | #ifndef uint16_t | |
19198 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
19199 | #endif | |
19200 | #endif | |
19201 | #endif | |
19202 | ||
19203 | #ifndef _UINT32_T | |
19204 | #define _UINT32_T | |
19205 | #ifndef __uint32_t_defined | |
19206 | #define __uint32_t_defined | |
19207 | #ifndef uint32_t | |
19208 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
19209 | #endif | |
19210 | #endif | |
19211 | #endif | |
19212 | ||
19213 | #ifndef _INT8_T | |
19214 | #define _INT8_T | |
19215 | #ifndef __int8_t_defined | |
19216 | #define __int8_t_defined | |
19217 | #ifndef int8_t | |
19218 | typedef $acx_cv_type_int8_t int8_t; | |
19219 | #endif | |
19220 | #endif | |
19221 | #endif | |
19222 | ||
19223 | #ifndef _INT16_T | |
19224 | #define _INT16_T | |
19225 | #ifndef __int16_t_defined | |
19226 | #define __int16_t_defined | |
19227 | #ifndef int16_t | |
19228 | typedef $acx_cv_type_int16_t int16_t; | |
19229 | #endif | |
19230 | #endif | |
19231 | #endif | |
19232 | ||
19233 | #ifndef _INT32_T | |
19234 | #define _INT32_T | |
19235 | #ifndef __int32_t_defined | |
19236 | #define __int32_t_defined | |
19237 | #ifndef int32_t | |
19238 | typedef $acx_cv_type_int32_t int32_t; | |
19239 | #endif | |
19240 | #endif | |
19241 | #endif | |
19242 | EOF | |
19243 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
19244 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19245 | ||
19246 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
19247 | #ifndef _INT8_T | |
19248 | #define _INT8_T | |
19249 | #endif | |
19250 | #ifndef _INT16_T | |
19251 | #define _INT16_T | |
19252 | #endif | |
19253 | #ifndef _INT32_T | |
19254 | #define _INT32_T | |
19255 | #endif | |
19256 | ||
19257 | #ifndef _UINT8_T | |
19258 | #define _UINT8_T | |
19259 | #ifndef __uint8_t_defined | |
19260 | #define __uint8_t_defined | |
19261 | #ifndef uint8_t | |
19262 | typedef u_int8_t uint8_t; | |
19263 | #endif | |
19264 | #endif | |
19265 | #endif | |
19266 | ||
19267 | #ifndef _UINT16_T | |
19268 | #define _UINT16_T | |
19269 | #ifndef __uint16_t_defined | |
19270 | #define __uint16_t_defined | |
19271 | #ifndef uint16_t | |
19272 | typedef u_int16_t uint16_t; | |
19273 | #endif | |
19274 | #endif | |
19275 | #endif | |
19276 | ||
19277 | #ifndef _UINT32_T | |
19278 | #define _UINT32_T | |
19279 | #ifndef __uint32_t_defined | |
19280 | #define __uint32_t_defined | |
19281 | #ifndef uint32_t | |
19282 | typedef u_int32_t uint32_t; | |
19283 | #endif | |
19284 | #endif | |
19285 | #endif | |
19286 | EOF | |
19287 | else | |
19288 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19289 | ||
19290 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
19291 | #ifndef _INT8_T | |
19292 | #define _INT8_T | |
19293 | #endif | |
19294 | #ifndef _INT16_T | |
19295 | #define _INT16_T | |
19296 | #endif | |
19297 | #ifndef _INT32_T | |
19298 | #define _INT32_T | |
19299 | #endif | |
19300 | #ifndef _UINT8_T | |
19301 | #define _UINT8_T | |
19302 | #endif | |
19303 | #ifndef _UINT16_T | |
19304 | #define _UINT16_T | |
19305 | #endif | |
19306 | #ifndef _UINT32_T | |
19307 | #define _UINT32_T | |
19308 | #endif | |
19309 | EOF | |
19310 | fi | |
19311 | ||
19312 | # ------------- done basic int types, emit int64_t types ------------ | |
19313 | if test "$ac_cv_type_uint64_t" = yes; then | |
19314 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19315 | ||
19316 | /* system headers have good uint64_t and int64_t */ | |
19317 | #ifndef _INT64_T | |
19318 | #define _INT64_T | |
19319 | #endif | |
19320 | #ifndef _UINT64_T | |
19321 | #define _UINT64_T | |
19322 | #endif | |
19323 | EOF | |
19324 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
19325 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19326 | ||
19327 | /* system headers have an u_int64_t (and int64_t) */ | |
19328 | #ifndef _INT64_T | |
19329 | #define _INT64_T | |
19330 | #endif | |
19331 | #ifndef _UINT64_T | |
19332 | #define _UINT64_T | |
19333 | #ifndef __uint64_t_defined | |
19334 | #define __uint64_t_defined | |
19335 | #ifndef uint64_t | |
19336 | typedef u_int64_t uint64_t; | |
19337 | #endif | |
19338 | #endif | |
19339 | #endif | |
19340 | EOF | |
19341 | elif test -n "$acx_cv_type_int64_t"; then | |
19342 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19343 | ||
19344 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
19345 | #ifndef _INT64_T | |
19346 | #define _INT64_T | |
19347 | #ifndef int64_t | |
19348 | typedef $acx_cv_type_int64_t int64_t; | |
19349 | #endif | |
19350 | #endif | |
19351 | #ifndef _UINT64_T | |
19352 | #define _UINT64_T | |
19353 | #ifndef __uint64_t_defined | |
19354 | #define __uint64_t_defined | |
19355 | #ifndef uint64_t | |
19356 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
19357 | #endif | |
19358 | #endif | |
19359 | #endif | |
19360 | EOF | |
19361 | else | |
19362 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19363 | ||
19364 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
19365 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
19366 | #ifndef _INT64_T | |
19367 | #define _INT64_T | |
19368 | #ifndef __int64_t_defined | |
19369 | #ifndef int64_t | |
19370 | typedef long long int64_t; | |
19371 | #endif | |
19372 | #endif | |
19373 | #endif | |
19374 | #ifndef _UINT64_T | |
19375 | #define _UINT64_T | |
19376 | #ifndef uint64_t | |
19377 | typedef unsigned long long uint64_t; | |
19378 | #endif | |
19379 | #endif | |
19380 | ||
19381 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
19382 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
19383 | does not implement __extension__. But that compiler doesn't define | |
19384 | __GNUC_MINOR__. */ | |
19385 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
19386 | # define __extension__ | |
19387 | # endif | |
19388 | ||
19389 | # ifndef _INT64_T | |
19390 | # define _INT64_T | |
19391 | # ifndef int64_t | |
19392 | __extension__ typedef long long int64_t; | |
19393 | # endif | |
19394 | # endif | |
19395 | # ifndef _UINT64_T | |
19396 | # define _UINT64_T | |
19397 | # ifndef uint64_t | |
19398 | __extension__ typedef unsigned long long uint64_t; | |
19399 | # endif | |
19400 | # endif | |
19401 | ||
19402 | #elif !defined __STRICT_ANSI__ | |
19403 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
19404 | ||
19405 | # ifndef _INT64_T | |
19406 | # define _INT64_T | |
19407 | # ifndef int64_t | |
19408 | typedef __int64 int64_t; | |
19409 | # endif | |
19410 | # endif | |
19411 | # ifndef _UINT64_T | |
19412 | # define _UINT64_T | |
19413 | # ifndef uint64_t | |
19414 | typedef unsigned __int64 uint64_t; | |
19415 | # endif | |
19416 | # endif | |
19417 | # endif /* compiler */ | |
19418 | ||
19419 | #endif /* ANSI version */ | |
19420 | EOF | |
19421 | fi | |
19422 | ||
19423 | # ------------- done int64_t types, emit intptr types ------------ | |
19424 | if test "$ac_cv_type_uintptr_t" != yes; then | |
19425 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19426 | ||
19427 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
19428 | #ifndef __uintptr_t_defined | |
19429 | #ifndef uintptr_t | |
19430 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
19431 | #endif | |
19432 | #endif | |
19433 | #ifndef __intptr_t_defined | |
19434 | #ifndef intptr_t | |
19435 | typedef $acx_cv_type_intptr_t intptr_t; | |
19436 | #endif | |
19437 | #endif | |
19438 | EOF | |
19439 | fi | |
19440 | ||
19441 | # ------------- done intptr types, emit int_least types ------------ | |
19442 | if test "$ac_cv_type_int_least32_t" != yes; then | |
19443 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19444 | ||
19445 | /* Define int_least types */ | |
19446 | typedef int8_t int_least8_t; | |
19447 | typedef int16_t int_least16_t; | |
19448 | typedef int32_t int_least32_t; | |
19449 | #ifdef _INT64_T | |
19450 | typedef int64_t int_least64_t; | |
19451 | #endif | |
19452 | ||
19453 | typedef uint8_t uint_least8_t; | |
19454 | typedef uint16_t uint_least16_t; | |
19455 | typedef uint32_t uint_least32_t; | |
19456 | #ifdef _UINT64_T | |
19457 | typedef uint64_t uint_least64_t; | |
19458 | #endif | |
19459 | EOF | |
19460 | fi | |
19461 | ||
19462 | # ------------- done intptr types, emit int_fast types ------------ | |
19463 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
19464 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19465 | ||
19466 | /* Define int_fast types. short is often slow */ | |
19467 | typedef int8_t int_fast8_t; | |
19468 | typedef int int_fast16_t; | |
19469 | typedef int32_t int_fast32_t; | |
19470 | #ifdef _INT64_T | |
19471 | typedef int64_t int_fast64_t; | |
19472 | #endif | |
19473 | ||
19474 | typedef uint8_t uint_fast8_t; | |
19475 | typedef unsigned int uint_fast16_t; | |
19476 | typedef uint32_t uint_fast32_t; | |
19477 | #ifdef _UINT64_T | |
19478 | typedef uint64_t uint_fast64_t; | |
19479 | #endif | |
19480 | EOF | |
19481 | fi | |
19482 | ||
19483 | if test "$ac_cv_type_uintmax_t" != yes; then | |
19484 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19485 | ||
19486 | /* Define intmax based on what we found */ | |
19487 | #ifndef intmax_t | |
19488 | #ifdef _INT64_T | |
19489 | typedef int64_t intmax_t; | |
19490 | #else | |
19491 | typedef long intmax_t; | |
19492 | #endif | |
19493 | #endif | |
19494 | #ifndef uintmax_t | |
19495 | #ifdef _UINT64_T | |
19496 | typedef uint64_t uintmax_t; | |
19497 | #else | |
19498 | typedef unsigned long uintmax_t; | |
19499 | #endif | |
19500 | #endif | |
19501 | EOF | |
19502 | fi | |
19503 | ||
19504 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19505 | ||
19506 | #endif /* GCC_GENERATED_STDINT_H */ | |
19507 | EOF | |
19508 | ||
19509 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
19510 | rm -f tmp-stdint.h | |
19511 | else | |
19512 | mv -f tmp-stdint.h gstdint.h | |
19513 | fi | |
19514 | ||
f35db108 WM |
19515 | ;; |
19516 | "interception/Makefile":F) cat > vpsed$$ << \_EOF | |
19517 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
19518 | _EOF | |
19519 | sed -f vpsed$$ $ac_file > tmp$$ | |
19520 | mv tmp$$ $ac_file | |
19521 | rm vpsed$$ | |
19522 | echo 'MULTISUBDIR =' >> $ac_file | |
f64bcb29 L |
19523 | ml_norecursion=yes |
19524 | . ${multi_basedir}/config-ml.in | |
19525 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 WM |
19526 | ;; |
19527 | "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF | |
19528 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
c915a581 JJ |
19529 | _EOF |
19530 | sed -f vpsed$$ $ac_file > tmp$$ | |
19531 | mv tmp$$ $ac_file | |
19532 | rm vpsed$$ | |
19533 | echo 'MULTISUBDIR =' >> $ac_file | |
19534 | ml_norecursion=yes | |
19535 | . ${multi_basedir}/config-ml.in | |
19536 | { ml_norecursion=; unset ml_norecursion;} | |
19537 | ;; | |
19538 | "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF | |
19539 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
ef1b3fda KS |
19540 | _EOF |
19541 | sed -f vpsed$$ $ac_file > tmp$$ | |
19542 | mv tmp$$ $ac_file | |
19543 | rm vpsed$$ | |
19544 | echo 'MULTISUBDIR =' >> $ac_file | |
19545 | ml_norecursion=yes | |
19546 | . ${multi_basedir}/config-ml.in | |
19547 | { ml_norecursion=; unset ml_norecursion;} | |
19548 | ;; | |
19549 | "lsan/Makefile":F) cat > vpsed$$ << \_EOF | |
19550 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
f35db108 WM |
19551 | _EOF |
19552 | sed -f vpsed$$ $ac_file > tmp$$ | |
19553 | mv tmp$$ $ac_file | |
19554 | rm vpsed$$ | |
19555 | echo 'MULTISUBDIR =' >> $ac_file | |
f64bcb29 L |
19556 | ml_norecursion=yes |
19557 | . ${multi_basedir}/config-ml.in | |
19558 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 WM |
19559 | ;; |
19560 | "asan/Makefile":F) cat > vpsed$$ << \_EOF | |
19561 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
de5a5fa1 MP |
19562 | _EOF |
19563 | sed -f vpsed$$ $ac_file > tmp$$ | |
19564 | mv tmp$$ $ac_file | |
19565 | rm vpsed$$ | |
19566 | echo 'MULTISUBDIR =' >> $ac_file | |
19567 | ml_norecursion=yes | |
19568 | . ${multi_basedir}/config-ml.in | |
19569 | { ml_norecursion=; unset ml_norecursion;} | |
19570 | ;; | |
19571 | "ubsan/Makefile":F) cat > vpsed$$ << \_EOF | |
19572 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
f35db108 WM |
19573 | _EOF |
19574 | sed -f vpsed$$ $ac_file > tmp$$ | |
19575 | mv tmp$$ $ac_file | |
19576 | rm vpsed$$ | |
19577 | echo 'MULTISUBDIR =' >> $ac_file | |
f64bcb29 L |
19578 | ml_norecursion=yes |
19579 | . ${multi_basedir}/config-ml.in | |
19580 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 | 19581 | ;; |
cd0be65c WM |
19582 | "tsan/Makefile":F) cat > vpsed$$ << \_EOF |
19583 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
19584 | _EOF | |
19585 | sed -f vpsed$$ $ac_file > tmp$$ | |
19586 | mv tmp$$ $ac_file | |
19587 | rm vpsed$$ | |
19588 | echo 'MULTISUBDIR =' >> $ac_file | |
19589 | ml_norecursion=yes | |
19590 | . ${multi_basedir}/config-ml.in | |
19591 | { ml_norecursion=; unset ml_norecursion;} | |
19592 | ;; | |
f35db108 WM |
19593 | |
19594 | esac | |
19595 | done # for ac_tag | |
19596 | ||
19597 | ||
19598 | as_fn_exit 0 | |
19599 | _ACEOF | |
19600 | ac_clean_files=$ac_clean_files_save | |
19601 | ||
19602 | test $ac_write_fail = 0 || | |
a2479b3d | 19603 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
19604 | |
19605 | ||
19606 | # configure is writing to config.log, and then calls config.status. | |
19607 | # config.status does its own redirection, appending to config.log. | |
19608 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19609 | # by configure, so config.status won't be able to write to it; its | |
19610 | # output is simply discarded. So we exec the FD to /dev/null, | |
19611 | # effectively closing config.log, so it can be properly (re)opened and | |
19612 | # appended to by config.status. When coming back to configure, we | |
19613 | # need to make the FD available again. | |
19614 | if test "$no_create" != yes; then | |
19615 | ac_cs_success=: | |
19616 | ac_config_status_args= | |
19617 | test "$silent" = yes && | |
19618 | ac_config_status_args="$ac_config_status_args --quiet" | |
19619 | exec 5>/dev/null | |
19620 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19621 | exec 5>>config.log | |
19622 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19623 | # would make configure fail if this is the last instruction. | |
a2479b3d | 19624 | $ac_cs_success || as_fn_exit $? |
f35db108 WM |
19625 | fi |
19626 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
19627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19628 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19629 | fi | |
19630 |