]>
Commit | Line | Data |
---|---|---|
f35db108 WM |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 | 3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. |
f35db108 WM |
4 | # |
5 | # Report bugs to <libsanitizer>. | |
6 | # | |
22e05272 JM |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
f35db108 | 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. | |
22e05272 | 92 | as_myself= |
f35db108 WM |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
22e05272 JM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
f35db108 WM |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
22e05272 JM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
f35db108 WM |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
c915a581 | 201 | test \$(( 1 + 1 )) = 2 || exit 1 |
f35db108 WM |
202 | |
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
c915a581 | 209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
f35db108 WM |
210 | if (eval "$as_required") 2>/dev/null; then : |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
f35db108 WM |
268 | fi |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about | |
278 | $0: your system, including any error possibly output before | |
279 | $0: this message. Then install a modern shell, or manually | |
280 | $0: run the script under such a shell if you do have one." | |
281 | fi | |
282 | exit 1 | |
283 | fi | |
284 | fi | |
285 | fi | |
286 | SHELL=${CONFIG_SHELL-/bin/sh} | |
287 | export SHELL | |
288 | # Unset more variables known to interfere with behavior of common tools. | |
289 | CLICOLOR_FORCE= GREP_OPTIONS= | |
290 | unset CLICOLOR_FORCE GREP_OPTIONS | |
291 | ||
292 | ## --------------------- ## | |
293 | ## M4sh Shell Functions. ## | |
294 | ## --------------------- ## | |
295 | # as_fn_unset VAR | |
296 | # --------------- | |
297 | # Portably unset VAR. | |
298 | as_fn_unset () | |
299 | { | |
300 | { eval $1=; unset $1;} | |
301 | } | |
302 | as_unset=as_fn_unset | |
303 | ||
304 | # as_fn_set_status STATUS | |
305 | # ----------------------- | |
306 | # Set $? to STATUS, without forking. | |
307 | as_fn_set_status () | |
308 | { | |
309 | return $1 | |
310 | } # as_fn_set_status | |
311 | ||
312 | # as_fn_exit STATUS | |
313 | # ----------------- | |
314 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
315 | as_fn_exit () | |
316 | { | |
317 | set +e | |
318 | as_fn_set_status $1 | |
319 | exit $1 | |
320 | } # as_fn_exit | |
321 | ||
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
327 | ||
328 | case $as_dir in #( | |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
335 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
336 | *) as_qdir=$as_dir;; | |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
344 | $as_echo X"$as_dir" | | |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
f35db108 WM |
366 | |
367 | ||
368 | } # as_fn_mkdir_p | |
22e05272 JM |
369 | |
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
f35db108 WM |
377 | # as_fn_append VAR VALUE |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
384 | eval 'as_fn_append () | |
385 | { | |
386 | eval $1+=\$2 | |
387 | }' | |
388 | else | |
389 | as_fn_append () | |
390 | { | |
391 | eval $1=\$$1\$2 | |
392 | } | |
393 | fi # as_fn_append | |
394 | ||
395 | # as_fn_arith ARG... | |
396 | # ------------------ | |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
399 | # must be portable across $(()) and expr. | |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
401 | eval 'as_fn_arith () | |
402 | { | |
403 | as_val=$(( $* )) | |
404 | }' | |
405 | else | |
406 | as_fn_arith () | |
407 | { | |
408 | as_val=`expr "$@" || test $? -eq 1` | |
409 | } | |
410 | fi # as_fn_arith | |
411 | ||
412 | ||
22e05272 JM |
413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
414 | # ---------------------------------------- | |
f35db108 WM |
415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 417 | # script with STATUS, using 1 if that was 0. |
f35db108 WM |
418 | as_fn_error () |
419 | { | |
22e05272 JM |
420 | as_status=$1; test $as_status -eq 0 && as_status=1 |
421 | if test "$4"; then | |
422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
423 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
f35db108 | 424 | fi |
22e05272 | 425 | $as_echo "$as_me: error: $2" >&2 |
f35db108 WM |
426 | as_fn_exit $as_status |
427 | } # as_fn_error | |
428 | ||
429 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
431 | as_expr=expr | |
432 | else | |
433 | as_expr=false | |
434 | fi | |
435 | ||
436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
437 | as_basename=basename | |
438 | else | |
439 | as_basename=false | |
440 | fi | |
441 | ||
442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
443 | as_dirname=dirname | |
444 | else | |
445 | as_dirname=false | |
446 | fi | |
447 | ||
448 | as_me=`$as_basename -- "$0" || | |
449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
450 | X"$0" : 'X\(//\)$' \| \ | |
451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
452 | $as_echo X/"$0" | | |
453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | /^X\/\(\/\/\)$/{ | |
458 | s//\1/ | |
459 | q | |
460 | } | |
461 | /^X\/\(\/\).*/{ | |
462 | s//\1/ | |
463 | q | |
464 | } | |
465 | s/.*/./; q'` | |
466 | ||
467 | # Avoid depending upon Character Ranges. | |
468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
471 | as_cr_digits='0123456789' | |
472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
473 | ||
474 | ||
475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
480 | sed -n ' | |
481 | p | |
482 | /[$]LINENO/= | |
483 | ' <$as_myself | | |
484 | sed ' | |
485 | s/[$]LINENO.*/&-/ | |
486 | t lineno | |
487 | b | |
488 | :lineno | |
489 | N | |
490 | :loop | |
491 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
492 | t loop | |
493 | s/-\n.*// | |
494 | ' >$as_me.lineno && | |
495 | chmod +x "$as_me.lineno" || | |
496 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
497 | ||
22e05272 JM |
498 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
499 | # already done that, so ensure we don't try to do so again and fall | |
500 | # in an infinite loop. This has already happened in practice. | |
501 | _as_can_reexec=no; export _as_can_reexec | |
f35db108 WM |
502 | # Don't try to exec as it changes $[0], causing all sort of problems |
503 | # (the dirname of $[0] is not the place where we might find the | |
504 | # original and so on. Autoconf is especially sensitive to this). | |
505 | . "./$as_me.lineno" | |
506 | # Exit status is that of the last command. | |
507 | exit | |
508 | } | |
509 | ||
510 | ECHO_C= ECHO_N= ECHO_T= | |
511 | case `echo -n x` in #((((( | |
512 | -n*) | |
513 | case `echo 'xy\c'` in | |
514 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
515 | xy) ECHO_C='\c';; | |
516 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
517 | ECHO_T=' ';; | |
518 | esac;; | |
519 | *) | |
520 | ECHO_N='-n';; | |
521 | esac | |
522 | ||
523 | rm -f conf$$ conf$$.exe conf$$.file | |
524 | if test -d conf$$.dir; then | |
525 | rm -f conf$$.dir/conf$$.file | |
526 | else | |
527 | rm -f conf$$.dir | |
528 | mkdir conf$$.dir 2>/dev/null | |
529 | fi | |
530 | if (echo >conf$$.file) 2>/dev/null; then | |
531 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
532 | as_ln_s='ln -s' | |
533 | # ... but there are two gotchas: | |
534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
535 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 536 | # In both cases, we have to default to `cp -pR'. |
f35db108 | 537 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 538 | as_ln_s='cp -pR' |
f35db108 WM |
539 | elif ln conf$$.file conf$$ 2>/dev/null; then |
540 | as_ln_s=ln | |
541 | else | |
22e05272 | 542 | as_ln_s='cp -pR' |
f35db108 WM |
543 | fi |
544 | else | |
22e05272 | 545 | as_ln_s='cp -pR' |
f35db108 WM |
546 | fi |
547 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
548 | rmdir conf$$.dir 2>/dev/null | |
549 | ||
550 | if mkdir -p . 2>/dev/null; then | |
551 | as_mkdir_p='mkdir -p "$as_dir"' | |
552 | else | |
553 | test -d ./-p && rmdir ./-p | |
554 | as_mkdir_p=false | |
555 | fi | |
556 | ||
22e05272 JM |
557 | as_test_x='test -x' |
558 | as_executable_p=as_fn_executable_p | |
f35db108 WM |
559 | |
560 | # Sed expression to map a string onto a valid CPP name. | |
561 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
562 | ||
563 | # Sed expression to map a string onto a valid variable name. | |
564 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
565 | ||
566 | SHELL=${CONFIG_SHELL-/bin/sh} | |
567 | ||
568 | ||
22e05272 JM |
569 | test -n "$DJDIR" || exec 7<&0 </dev/null |
570 | exec 6>&1 | |
f35db108 WM |
571 | |
572 | # Name of the host. | |
22e05272 | 573 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
f35db108 WM |
574 | # so uname gets run too. |
575 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
576 | ||
577 | # | |
578 | # Initializations. | |
579 | # | |
580 | ac_default_prefix=/usr/local | |
581 | ac_clean_files= | |
582 | ac_config_libobj_dir=. | |
583 | LIBOBJS= | |
584 | cross_compiling=no | |
585 | subdirs= | |
586 | MFLAGS= | |
587 | MAKEFLAGS= | |
588 | ||
589 | # Identity of this package. | |
590 | PACKAGE_NAME='package-unused' | |
591 | PACKAGE_TARNAME='package-unused' | |
592 | PACKAGE_VERSION='version-unused' | |
593 | PACKAGE_STRING='package-unused version-unused' | |
594 | PACKAGE_BUGREPORT='libsanitizer' | |
595 | PACKAGE_URL='' | |
596 | ||
597 | ac_unique_file="include/sanitizer/common_interface_defs.h" | |
598 | # Factoring default headers for most tests. | |
599 | ac_includes_default="\ | |
600 | #include <stdio.h> | |
601 | #ifdef HAVE_SYS_TYPES_H | |
602 | # include <sys/types.h> | |
603 | #endif | |
604 | #ifdef HAVE_SYS_STAT_H | |
605 | # include <sys/stat.h> | |
606 | #endif | |
607 | #ifdef STDC_HEADERS | |
608 | # include <stdlib.h> | |
609 | # include <stddef.h> | |
610 | #else | |
611 | # ifdef HAVE_STDLIB_H | |
612 | # include <stdlib.h> | |
613 | # endif | |
614 | #endif | |
615 | #ifdef HAVE_STRING_H | |
616 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
617 | # include <memory.h> | |
618 | # endif | |
619 | # include <string.h> | |
620 | #endif | |
621 | #ifdef HAVE_STRINGS_H | |
622 | # include <strings.h> | |
623 | #endif | |
624 | #ifdef HAVE_INTTYPES_H | |
625 | # include <inttypes.h> | |
626 | #endif | |
627 | #ifdef HAVE_STDINT_H | |
628 | # include <stdint.h> | |
629 | #endif | |
630 | #ifdef HAVE_UNISTD_H | |
631 | # include <unistd.h> | |
632 | #endif" | |
633 | ||
634 | ac_subst_vars='am__EXEEXT_FALSE | |
635 | am__EXEEXT_TRUE | |
636 | LTLIBOBJS | |
637 | LIBOBJS | |
9069eb28 IT |
638 | EXTRA_CXXFLAGS |
639 | EXTRA_CFLAGS | |
640 | EXTRA_ASFLAGS | |
3c36aa6b | 641 | get_gcc_base_ver |
45ba6bf2 | 642 | WARN_FLAGS |
10189819 | 643 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS |
b0edd457 | 644 | TSAN_TARGET_DEPENDENT_OBJECTS |
c915a581 JJ |
645 | LIBBACKTRACE_SUPPORTED_FALSE |
646 | LIBBACKTRACE_SUPPORTED_TRUE | |
d041a6fc | 647 | RPC_DEFS |
c915a581 JJ |
648 | BACKTRACE_SUPPORTS_THREADS |
649 | BACKTRACE_USES_MALLOC | |
650 | ALLOC_FILE | |
651 | VIEW_FILE | |
652 | BACKTRACE_SUPPORTED | |
653 | FORMAT_FILE | |
088d3cbc | 654 | AS_SYM_ASSIGN_DEFS |
4a7eaf5f YG |
655 | SANITIZER_SUPPORTED_FALSE |
656 | SANITIZER_SUPPORTED_TRUE | |
8c4d267c KS |
657 | USING_MAC_INTERPOSE_FALSE |
658 | USING_MAC_INTERPOSE_TRUE | |
35814b03 JJ |
659 | link_liblsan |
660 | link_libubsan | |
661 | link_libtsan | |
edb07cb9 | 662 | link_libhwasan |
35814b03 | 663 | link_libasan |
8a769f81 MM |
664 | HWASAN_SUPPORTED_FALSE |
665 | HWASAN_SUPPORTED_TRUE | |
9065ada9 JJ |
666 | LSAN_SUPPORTED_FALSE |
667 | LSAN_SUPPORTED_TRUE | |
64548f3b JJ |
668 | TSAN_SUPPORTED_FALSE |
669 | TSAN_SUPPORTED_TRUE | |
6a6d3817 IS |
670 | ENABLE_DARWIN_AT_RPATH_FALSE |
671 | ENABLE_DARWIN_AT_RPATH_TRUE | |
f35db108 WM |
672 | enable_static |
673 | enable_shared | |
674 | CXXCPP | |
f35db108 WM |
675 | OTOOL64 |
676 | OTOOL | |
677 | LIPO | |
678 | NMEDIT | |
679 | DSYMUTIL | |
f35db108 | 680 | AR |
f35db108 WM |
681 | OBJDUMP |
682 | LN_S | |
683 | NM | |
684 | ac_ct_DUMPBIN | |
685 | DUMPBIN | |
686 | LD | |
687 | FGREP | |
f35db108 | 688 | SED |
f35db108 | 689 | LIBTOOL |
c915a581 | 690 | RANLIB |
f35db108 WM |
691 | am__fastdepCCAS_FALSE |
692 | am__fastdepCCAS_TRUE | |
693 | CCASDEPMODE | |
694 | CCASFLAGS | |
695 | CCAS | |
696 | am__fastdepCXX_FALSE | |
697 | am__fastdepCXX_TRUE | |
698 | CXXDEPMODE | |
699 | ac_ct_CXX | |
700 | CXXFLAGS | |
701 | CXX | |
c915a581 JJ |
702 | toolexeclibdir |
703 | toolexecdir | |
704 | MAINT | |
705 | MAINTAINER_MODE_FALSE | |
706 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
707 | AM_BACKSLASH |
708 | AM_DEFAULT_VERBOSITY | |
709 | AM_DEFAULT_V | |
710 | AM_V | |
f35db108 WM |
711 | am__fastdepCC_FALSE |
712 | am__fastdepCC_TRUE | |
713 | CCDEPMODE | |
f3915b42 | 714 | am__nodep |
f35db108 WM |
715 | AMDEPBACKSLASH |
716 | AMDEP_FALSE | |
717 | AMDEP_TRUE | |
8bc1fac7 | 718 | am__quote |
f35db108 WM |
719 | am__include |
720 | DEPDIR | |
f35db108 WM |
721 | am__untar |
722 | am__tar | |
723 | AMTAR | |
724 | am__leading_dot | |
725 | SET_MAKE | |
726 | AWK | |
727 | mkdir_p | |
728 | MKDIR_P | |
729 | INSTALL_STRIP_PROGRAM | |
730 | STRIP | |
731 | install_sh | |
732 | MAKEINFO | |
733 | AUTOHEADER | |
734 | AUTOMAKE | |
735 | AUTOCONF | |
736 | ACLOCAL | |
737 | VERSION | |
738 | PACKAGE | |
739 | CYGPATH_W | |
740 | am__isrc | |
741 | INSTALL_DATA | |
742 | INSTALL_SCRIPT | |
743 | INSTALL_PROGRAM | |
e1e953d9 | 744 | LIBSTDCXX_RAW_CXX_LDFLAGS |
d10a2df2 L |
745 | LIBSTDCXX_RAW_CXX_CXXFLAGS |
746 | target_noncanonical | |
2a6346c4 L |
747 | target_os |
748 | target_vendor | |
749 | target_cpu | |
750 | target | |
751 | host_os | |
752 | host_vendor | |
753 | host_cpu | |
754 | host | |
755 | build_os | |
756 | build_vendor | |
757 | build_cpu | |
758 | build | |
c915a581 JJ |
759 | EGREP |
760 | GREP | |
761 | CPP | |
762 | OBJEXT | |
763 | EXEEXT | |
764 | ac_ct_CC | |
765 | CPPFLAGS | |
766 | LDFLAGS | |
767 | CFLAGS | |
768 | CC | |
94213c10 | 769 | multi_basedir |
f35db108 WM |
770 | target_alias |
771 | host_alias | |
772 | build_alias | |
773 | LIBS | |
774 | ECHO_T | |
775 | ECHO_N | |
776 | ECHO_C | |
777 | DEFS | |
778 | mandir | |
779 | localedir | |
780 | libdir | |
781 | psdir | |
782 | pdfdir | |
783 | dvidir | |
784 | htmldir | |
785 | infodir | |
786 | docdir | |
787 | oldincludedir | |
788 | includedir | |
789 | localstatedir | |
790 | sharedstatedir | |
791 | sysconfdir | |
792 | datadir | |
793 | datarootdir | |
794 | libexecdir | |
795 | sbindir | |
796 | bindir | |
797 | program_transform_name | |
798 | prefix | |
799 | exec_prefix | |
800 | PACKAGE_URL | |
801 | PACKAGE_BUGREPORT | |
802 | PACKAGE_STRING | |
803 | PACKAGE_VERSION | |
804 | PACKAGE_TARNAME | |
805 | PACKAGE_NAME | |
806 | PATH_SEPARATOR | |
8bc1fac7 | 807 | SHELL' |
f35db108 WM |
808 | ac_subst_files='' |
809 | ac_user_opts=' | |
810 | enable_option_checking | |
94213c10 | 811 | enable_multilib |
2a6346c4 | 812 | enable_version_specific_runtime_libs |
c915a581 | 813 | enable_dependency_tracking |
22e05272 | 814 | enable_silent_rules |
2b723e21 | 815 | enable_maintainer_mode |
e8e66971 | 816 | with_toolexeclibdir |
f35db108 WM |
817 | enable_shared |
818 | enable_static | |
819 | with_pic | |
820 | enable_fast_install | |
821 | with_gnu_ld | |
f35db108 | 822 | enable_libtool_lock |
6a6d3817 | 823 | enable_darwin_at_rpath |
45ba6bf2 | 824 | enable_werror |
3c36aa6b | 825 | with_gcc_major_version_only |
9069eb28 | 826 | enable_cet |
f35db108 WM |
827 | ' |
828 | ac_precious_vars='build_alias | |
829 | host_alias | |
830 | target_alias | |
831 | CC | |
832 | CFLAGS | |
833 | LDFLAGS | |
834 | LIBS | |
835 | CPPFLAGS | |
c915a581 | 836 | CPP |
f35db108 WM |
837 | CXX |
838 | CXXFLAGS | |
839 | CCC | |
840 | CCAS | |
841 | CCASFLAGS | |
f35db108 WM |
842 | CXXCPP' |
843 | ||
844 | ||
845 | # Initialize some variables set by options. | |
846 | ac_init_help= | |
847 | ac_init_version=false | |
848 | ac_unrecognized_opts= | |
849 | ac_unrecognized_sep= | |
850 | # The variables have the same names as the options, with | |
851 | # dashes changed to underlines. | |
852 | cache_file=/dev/null | |
853 | exec_prefix=NONE | |
854 | no_create= | |
855 | no_recursion= | |
856 | prefix=NONE | |
857 | program_prefix=NONE | |
858 | program_suffix=NONE | |
859 | program_transform_name=s,x,x, | |
860 | silent= | |
861 | site= | |
862 | srcdir= | |
863 | verbose= | |
864 | x_includes=NONE | |
865 | x_libraries=NONE | |
866 | ||
867 | # Installation directory options. | |
868 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
869 | # and all the variables that are supposed to be based on exec_prefix | |
870 | # by default will actually change. | |
871 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
872 | # (The list follows the same order as the GNU Coding Standards.) | |
873 | bindir='${exec_prefix}/bin' | |
874 | sbindir='${exec_prefix}/sbin' | |
875 | libexecdir='${exec_prefix}/libexec' | |
876 | datarootdir='${prefix}/share' | |
877 | datadir='${datarootdir}' | |
878 | sysconfdir='${prefix}/etc' | |
879 | sharedstatedir='${prefix}/com' | |
880 | localstatedir='${prefix}/var' | |
881 | includedir='${prefix}/include' | |
882 | oldincludedir='/usr/include' | |
883 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
884 | infodir='${datarootdir}/info' | |
885 | htmldir='${docdir}' | |
886 | dvidir='${docdir}' | |
887 | pdfdir='${docdir}' | |
888 | psdir='${docdir}' | |
889 | libdir='${exec_prefix}/lib' | |
890 | localedir='${datarootdir}/locale' | |
891 | mandir='${datarootdir}/man' | |
892 | ||
893 | ac_prev= | |
894 | ac_dashdash= | |
895 | for ac_option | |
896 | do | |
897 | # If the previous option needs an argument, assign it. | |
898 | if test -n "$ac_prev"; then | |
899 | eval $ac_prev=\$ac_option | |
900 | ac_prev= | |
901 | continue | |
902 | fi | |
903 | ||
904 | case $ac_option in | |
22e05272 JM |
905 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
906 | *=) ac_optarg= ;; | |
907 | *) ac_optarg=yes ;; | |
f35db108 WM |
908 | esac |
909 | ||
910 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
911 | ||
912 | case $ac_dashdash$ac_option in | |
913 | --) | |
914 | ac_dashdash=yes ;; | |
915 | ||
916 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
917 | ac_prev=bindir ;; | |
918 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
919 | bindir=$ac_optarg ;; | |
920 | ||
921 | -build | --build | --buil | --bui | --bu) | |
922 | ac_prev=build_alias ;; | |
923 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
924 | build_alias=$ac_optarg ;; | |
925 | ||
926 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
927 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
928 | ac_prev=cache_file ;; | |
929 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
930 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
931 | cache_file=$ac_optarg ;; | |
932 | ||
933 | --config-cache | -C) | |
934 | cache_file=config.cache ;; | |
935 | ||
936 | -datadir | --datadir | --datadi | --datad) | |
937 | ac_prev=datadir ;; | |
938 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
939 | datadir=$ac_optarg ;; | |
940 | ||
941 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
942 | | --dataroo | --dataro | --datar) | |
943 | ac_prev=datarootdir ;; | |
944 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
945 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
946 | datarootdir=$ac_optarg ;; | |
947 | ||
948 | -disable-* | --disable-*) | |
949 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
950 | # Reject names that are not valid shell variable names. | |
951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 952 | as_fn_error $? "invalid feature name: $ac_useropt" |
f35db108 WM |
953 | ac_useropt_orig=$ac_useropt |
954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
955 | case $ac_user_opts in | |
956 | *" | |
957 | "enable_$ac_useropt" | |
958 | "*) ;; | |
959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
960 | ac_unrecognized_sep=', ';; | |
961 | esac | |
962 | eval enable_$ac_useropt=no ;; | |
963 | ||
964 | -docdir | --docdir | --docdi | --doc | --do) | |
965 | ac_prev=docdir ;; | |
966 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
967 | docdir=$ac_optarg ;; | |
968 | ||
969 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
970 | ac_prev=dvidir ;; | |
971 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
972 | dvidir=$ac_optarg ;; | |
973 | ||
974 | -enable-* | --enable-*) | |
975 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
976 | # Reject names that are not valid shell variable names. | |
977 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 978 | as_fn_error $? "invalid feature name: $ac_useropt" |
f35db108 WM |
979 | ac_useropt_orig=$ac_useropt |
980 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
981 | case $ac_user_opts in | |
982 | *" | |
983 | "enable_$ac_useropt" | |
984 | "*) ;; | |
985 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
986 | ac_unrecognized_sep=', ';; | |
987 | esac | |
988 | eval enable_$ac_useropt=\$ac_optarg ;; | |
989 | ||
990 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
991 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
992 | | --exec | --exe | --ex) | |
993 | ac_prev=exec_prefix ;; | |
994 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
995 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
996 | | --exec=* | --exe=* | --ex=*) | |
997 | exec_prefix=$ac_optarg ;; | |
998 | ||
999 | -gas | --gas | --ga | --g) | |
1000 | # Obsolete; use --with-gas. | |
1001 | with_gas=yes ;; | |
1002 | ||
1003 | -help | --help | --hel | --he | -h) | |
1004 | ac_init_help=long ;; | |
1005 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1006 | ac_init_help=recursive ;; | |
1007 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1008 | ac_init_help=short ;; | |
1009 | ||
1010 | -host | --host | --hos | --ho) | |
1011 | ac_prev=host_alias ;; | |
1012 | -host=* | --host=* | --hos=* | --ho=*) | |
1013 | host_alias=$ac_optarg ;; | |
1014 | ||
1015 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1016 | ac_prev=htmldir ;; | |
1017 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1018 | | --ht=*) | |
1019 | htmldir=$ac_optarg ;; | |
1020 | ||
1021 | -includedir | --includedir | --includedi | --included | --include \ | |
1022 | | --includ | --inclu | --incl | --inc) | |
1023 | ac_prev=includedir ;; | |
1024 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1025 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1026 | includedir=$ac_optarg ;; | |
1027 | ||
1028 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1029 | ac_prev=infodir ;; | |
1030 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1031 | infodir=$ac_optarg ;; | |
1032 | ||
1033 | -libdir | --libdir | --libdi | --libd) | |
1034 | ac_prev=libdir ;; | |
1035 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1036 | libdir=$ac_optarg ;; | |
1037 | ||
1038 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1039 | | --libexe | --libex | --libe) | |
1040 | ac_prev=libexecdir ;; | |
1041 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1042 | | --libexe=* | --libex=* | --libe=*) | |
1043 | libexecdir=$ac_optarg ;; | |
1044 | ||
1045 | -localedir | --localedir | --localedi | --localed | --locale) | |
1046 | ac_prev=localedir ;; | |
1047 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1048 | localedir=$ac_optarg ;; | |
1049 | ||
1050 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1051 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1052 | ac_prev=localstatedir ;; | |
1053 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1054 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1055 | localstatedir=$ac_optarg ;; | |
1056 | ||
1057 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1058 | ac_prev=mandir ;; | |
1059 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1060 | mandir=$ac_optarg ;; | |
1061 | ||
1062 | -nfp | --nfp | --nf) | |
1063 | # Obsolete; use --without-fp. | |
1064 | with_fp=no ;; | |
1065 | ||
1066 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1067 | | --no-cr | --no-c | -n) | |
1068 | no_create=yes ;; | |
1069 | ||
1070 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1071 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1072 | no_recursion=yes ;; | |
1073 | ||
1074 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1075 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1076 | | --oldin | --oldi | --old | --ol | --o) | |
1077 | ac_prev=oldincludedir ;; | |
1078 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1079 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1080 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1081 | oldincludedir=$ac_optarg ;; | |
1082 | ||
1083 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1084 | ac_prev=prefix ;; | |
1085 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1086 | prefix=$ac_optarg ;; | |
1087 | ||
1088 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1089 | | --program-pre | --program-pr | --program-p) | |
1090 | ac_prev=program_prefix ;; | |
1091 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1092 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1093 | program_prefix=$ac_optarg ;; | |
1094 | ||
1095 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1096 | | --program-suf | --program-su | --program-s) | |
1097 | ac_prev=program_suffix ;; | |
1098 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1099 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1100 | program_suffix=$ac_optarg ;; | |
1101 | ||
1102 | -program-transform-name | --program-transform-name \ | |
1103 | | --program-transform-nam | --program-transform-na \ | |
1104 | | --program-transform-n | --program-transform- \ | |
1105 | | --program-transform | --program-transfor \ | |
1106 | | --program-transfo | --program-transf \ | |
1107 | | --program-trans | --program-tran \ | |
1108 | | --progr-tra | --program-tr | --program-t) | |
1109 | ac_prev=program_transform_name ;; | |
1110 | -program-transform-name=* | --program-transform-name=* \ | |
1111 | | --program-transform-nam=* | --program-transform-na=* \ | |
1112 | | --program-transform-n=* | --program-transform-=* \ | |
1113 | | --program-transform=* | --program-transfor=* \ | |
1114 | | --program-transfo=* | --program-transf=* \ | |
1115 | | --program-trans=* | --program-tran=* \ | |
1116 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1117 | program_transform_name=$ac_optarg ;; | |
1118 | ||
1119 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1120 | ac_prev=pdfdir ;; | |
1121 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1122 | pdfdir=$ac_optarg ;; | |
1123 | ||
1124 | -psdir | --psdir | --psdi | --psd | --ps) | |
1125 | ac_prev=psdir ;; | |
1126 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1127 | psdir=$ac_optarg ;; | |
1128 | ||
1129 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1130 | | -silent | --silent | --silen | --sile | --sil) | |
1131 | silent=yes ;; | |
1132 | ||
1133 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1134 | ac_prev=sbindir ;; | |
1135 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1136 | | --sbi=* | --sb=*) | |
1137 | sbindir=$ac_optarg ;; | |
1138 | ||
1139 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1140 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1141 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1142 | | --sha | --sh) | |
1143 | ac_prev=sharedstatedir ;; | |
1144 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1145 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1146 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1147 | | --sha=* | --sh=*) | |
1148 | sharedstatedir=$ac_optarg ;; | |
1149 | ||
1150 | -site | --site | --sit) | |
1151 | ac_prev=site ;; | |
1152 | -site=* | --site=* | --sit=*) | |
1153 | site=$ac_optarg ;; | |
1154 | ||
1155 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1156 | ac_prev=srcdir ;; | |
1157 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1158 | srcdir=$ac_optarg ;; | |
1159 | ||
1160 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1161 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1162 | ac_prev=sysconfdir ;; | |
1163 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1164 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1165 | sysconfdir=$ac_optarg ;; | |
1166 | ||
1167 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1168 | ac_prev=target_alias ;; | |
1169 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1170 | target_alias=$ac_optarg ;; | |
1171 | ||
1172 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1173 | verbose=yes ;; | |
1174 | ||
1175 | -version | --version | --versio | --versi | --vers | -V) | |
1176 | ac_init_version=: ;; | |
1177 | ||
1178 | -with-* | --with-*) | |
1179 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1180 | # Reject names that are not valid shell variable names. | |
1181 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1182 | as_fn_error $? "invalid package name: $ac_useropt" |
f35db108 WM |
1183 | ac_useropt_orig=$ac_useropt |
1184 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1185 | case $ac_user_opts in | |
1186 | *" | |
1187 | "with_$ac_useropt" | |
1188 | "*) ;; | |
1189 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1190 | ac_unrecognized_sep=', ';; | |
1191 | esac | |
1192 | eval with_$ac_useropt=\$ac_optarg ;; | |
1193 | ||
1194 | -without-* | --without-*) | |
1195 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1196 | # Reject names that are not valid shell variable names. | |
1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1198 | as_fn_error $? "invalid package name: $ac_useropt" |
f35db108 WM |
1199 | ac_useropt_orig=$ac_useropt |
1200 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1201 | case $ac_user_opts in | |
1202 | *" | |
1203 | "with_$ac_useropt" | |
1204 | "*) ;; | |
1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1206 | ac_unrecognized_sep=', ';; | |
1207 | esac | |
1208 | eval with_$ac_useropt=no ;; | |
1209 | ||
1210 | --x) | |
1211 | # Obsolete; use --with-x. | |
1212 | with_x=yes ;; | |
1213 | ||
1214 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1215 | | --x-incl | --x-inc | --x-in | --x-i) | |
1216 | ac_prev=x_includes ;; | |
1217 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1218 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1219 | x_includes=$ac_optarg ;; | |
1220 | ||
1221 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1222 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1223 | ac_prev=x_libraries ;; | |
1224 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1225 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1226 | x_libraries=$ac_optarg ;; | |
1227 | ||
22e05272 JM |
1228 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1229 | Try \`$0 --help' for more information" | |
f35db108 WM |
1230 | ;; |
1231 | ||
1232 | *=*) | |
1233 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1234 | # Reject names that are not valid shell variable names. | |
1235 | case $ac_envvar in #( | |
1236 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1237 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
f35db108 WM |
1238 | esac |
1239 | eval $ac_envvar=\$ac_optarg | |
1240 | export $ac_envvar ;; | |
1241 | ||
1242 | *) | |
1243 | # FIXME: should be removed in autoconf 3.0. | |
1244 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1245 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1246 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
22e05272 | 1247 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
f35db108 WM |
1248 | ;; |
1249 | ||
1250 | esac | |
1251 | done | |
1252 | ||
1253 | if test -n "$ac_prev"; then | |
1254 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1255 | as_fn_error $? "missing argument to $ac_option" |
f35db108 WM |
1256 | fi |
1257 | ||
1258 | if test -n "$ac_unrecognized_opts"; then | |
1259 | case $enable_option_checking in | |
1260 | no) ;; | |
22e05272 | 1261 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
f35db108 WM |
1262 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1263 | esac | |
1264 | fi | |
1265 | ||
1266 | # Check all directory arguments for consistency. | |
1267 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1268 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1269 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1270 | libdir localedir mandir | |
1271 | do | |
1272 | eval ac_val=\$$ac_var | |
1273 | # Remove trailing slashes. | |
1274 | case $ac_val in | |
1275 | */ ) | |
1276 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1277 | eval $ac_var=\$ac_val;; | |
1278 | esac | |
1279 | # Be sure to have absolute directory names. | |
1280 | case $ac_val in | |
1281 | [\\/$]* | ?:[\\/]* ) continue;; | |
1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1283 | esac | |
22e05272 | 1284 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
f35db108 WM |
1285 | done |
1286 | ||
1287 | # There might be people who depend on the old broken behavior: `$host' | |
1288 | # used to hold the argument of --host etc. | |
1289 | # FIXME: To remove some day. | |
1290 | build=$build_alias | |
1291 | host=$host_alias | |
1292 | target=$target_alias | |
1293 | ||
1294 | # FIXME: To remove some day. | |
1295 | if test "x$host_alias" != x; then | |
1296 | if test "x$build_alias" = x; then | |
1297 | cross_compiling=maybe | |
f35db108 WM |
1298 | elif test "x$build_alias" != "x$host_alias"; then |
1299 | cross_compiling=yes | |
1300 | fi | |
1301 | fi | |
1302 | ||
1303 | ac_tool_prefix= | |
1304 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1305 | ||
1306 | test "$silent" = yes && exec 6>/dev/null | |
1307 | ||
1308 | ||
1309 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1310 | ac_ls_di=`ls -di .` && | |
1311 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1312 | as_fn_error $? "working directory cannot be determined" |
f35db108 | 1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1314 | as_fn_error $? "pwd does not report name of working directory" |
f35db108 WM |
1315 | |
1316 | ||
1317 | # Find the source files, if location was not specified. | |
1318 | if test -z "$srcdir"; then | |
1319 | ac_srcdir_defaulted=yes | |
1320 | # Try the directory containing this script, then the parent directory. | |
1321 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1324 | X"$as_myself" : 'X\(//\)$' \| \ | |
1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1326 | $as_echo X"$as_myself" | | |
1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)[^/].*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\).*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | s/.*/./; q'` | |
1344 | srcdir=$ac_confdir | |
1345 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1346 | srcdir=.. | |
1347 | fi | |
1348 | else | |
1349 | ac_srcdir_defaulted=no | |
1350 | fi | |
1351 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1353 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
f35db108 WM |
1354 | fi |
1355 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1356 | ac_abs_confdir=`( | |
22e05272 | 1357 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
f35db108 WM |
1358 | pwd)` |
1359 | # When building in place, set srcdir=. | |
1360 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1361 | srcdir=. | |
1362 | fi | |
1363 | # Remove unnecessary trailing slashes from srcdir. | |
1364 | # Double slashes in file names in object file debugging info | |
1365 | # mess up M-x gdb in Emacs. | |
1366 | case $srcdir in | |
1367 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1368 | esac | |
1369 | for ac_var in $ac_precious_vars; do | |
1370 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1372 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1374 | done | |
1375 | ||
1376 | # | |
1377 | # Report the --help message. | |
1378 | # | |
1379 | if test "$ac_init_help" = "long"; then | |
1380 | # Omit some internal or obsolete options to make the list less imposing. | |
1381 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1382 | cat <<_ACEOF | |
1383 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1384 | ||
1385 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1386 | ||
1387 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1388 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1389 | ||
1390 | Defaults for the options are specified in brackets. | |
1391 | ||
1392 | Configuration: | |
1393 | -h, --help display this help and exit | |
1394 | --help=short display options specific to this package | |
1395 | --help=recursive display the short help of all the included packages | |
1396 | -V, --version display version information and exit | |
22e05272 | 1397 | -q, --quiet, --silent do not print \`checking ...' messages |
f35db108 WM |
1398 | --cache-file=FILE cache test results in FILE [disabled] |
1399 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1400 | -n, --no-create do not create output files | |
1401 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1402 | ||
1403 | Installation directories: | |
1404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1405 | [$ac_default_prefix] | |
1406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1407 | [PREFIX] | |
1408 | ||
1409 | By default, \`make install' will install all the files in | |
1410 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1411 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1412 | for instance \`--prefix=\$HOME'. | |
1413 | ||
1414 | For better control, use the options below. | |
1415 | ||
1416 | Fine tuning of the installation directories: | |
1417 | --bindir=DIR user executables [EPREFIX/bin] | |
1418 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1419 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1420 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1421 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1422 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1423 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1424 | --includedir=DIR C header files [PREFIX/include] | |
1425 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1426 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1427 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1428 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1429 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1430 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1431 | --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused] | |
1432 | --htmldir=DIR html documentation [DOCDIR] | |
1433 | --dvidir=DIR dvi documentation [DOCDIR] | |
1434 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1435 | --psdir=DIR ps documentation [DOCDIR] | |
1436 | _ACEOF | |
1437 | ||
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Program names: | |
1441 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1442 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1443 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1444 | ||
1445 | System types: | |
1446 | --build=BUILD configure for building on BUILD [guessed] | |
1447 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2a6346c4 | 1448 | --target=TARGET configure for building compilers for TARGET [HOST] |
f35db108 WM |
1449 | _ACEOF |
1450 | fi | |
1451 | ||
1452 | if test -n "$ac_init_help"; then | |
1453 | case $ac_init_help in | |
1454 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1455 | esac | |
1456 | cat <<\_ACEOF | |
1457 | ||
1458 | Optional Features: | |
1459 | --disable-option-checking ignore unrecognized --enable/--with options | |
1460 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1461 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
94213c10 | 1462 | --enable-multilib build many library versions (default) |
2a6346c4 | 1463 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
22e05272 JM |
1464 | --enable-dependency-tracking |
1465 | do not reject slow dependency extractors | |
1466 | --disable-dependency-tracking | |
1467 | speeds up one-time build | |
1468 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1469 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1470 | --enable-maintainer-mode | |
1471 | enable make rules and dependencies not useful (and | |
1472 | sometimes confusing) to the casual installer | |
f35db108 WM |
1473 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1474 | --enable-static[=PKGS] build static libraries [default=yes] | |
1475 | --enable-fast-install[=PKGS] | |
1476 | optimize for fast installation [default=yes] | |
1477 | --disable-libtool-lock avoid locking (might break parallel builds) | |
6a6d3817 IS |
1478 | --enable-darwin-at-rpath |
1479 | install libraries with @rpath/library-name, requires | |
1480 | rpaths to be added to executables | |
45ba6bf2 | 1481 | --disable-werror disable building with -Werror |
8d286dd1 | 1482 | --enable-cet enable Intel CET in target libraries [default=auto] |
f35db108 WM |
1483 | |
1484 | Optional Packages: | |
1485 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1486 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
e8e66971 MR |
1487 | --with-toolexeclibdir=DIR |
1488 | install libraries built with a cross compiler within | |
1489 | DIR | |
a2479b3d | 1490 | --with-pic try to use only PIC/non-PIC objects [default=use |
f35db108 WM |
1491 | both] |
1492 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
3c36aa6b JJ |
1493 | --with-gcc-major-version-only |
1494 | use only GCC major number in filesystem paths | |
f35db108 WM |
1495 | |
1496 | Some influential environment variables: | |
1497 | CC C compiler command | |
1498 | CFLAGS C compiler flags | |
1499 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1500 | nonstandard directory <lib dir> | |
1501 | LIBS libraries to pass to the linker, e.g. -l<library> | |
22e05272 | 1502 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
f35db108 | 1503 | you have headers in a nonstandard directory <include dir> |
c915a581 | 1504 | CPP C preprocessor |
f35db108 WM |
1505 | CXX C++ compiler command |
1506 | CXXFLAGS C++ compiler flags | |
1507 | CCAS assembler compiler command (defaults to CC) | |
1508 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
f35db108 WM |
1509 | CXXCPP C++ preprocessor |
1510 | ||
1511 | Use these variables to override the choices made by `configure' or to help | |
1512 | it to find libraries and programs with nonstandard names/locations. | |
1513 | ||
1514 | Report bugs to <libsanitizer>. | |
1515 | _ACEOF | |
1516 | ac_status=$? | |
1517 | fi | |
1518 | ||
1519 | if test "$ac_init_help" = "recursive"; then | |
1520 | # If there are subdirs, report their specific --help. | |
1521 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1522 | test -d "$ac_dir" || | |
1523 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1524 | continue | |
1525 | ac_builddir=. | |
1526 | ||
1527 | case "$ac_dir" in | |
1528 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1529 | *) | |
1530 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1531 | # A ".." for each directory in $ac_dir_suffix. | |
1532 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1533 | case $ac_top_builddir_sub in | |
1534 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1535 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1536 | esac ;; | |
1537 | esac | |
1538 | ac_abs_top_builddir=$ac_pwd | |
1539 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1540 | # for backward compatibility: | |
1541 | ac_top_builddir=$ac_top_build_prefix | |
1542 | ||
1543 | case $srcdir in | |
1544 | .) # We are building in place. | |
1545 | ac_srcdir=. | |
1546 | ac_top_srcdir=$ac_top_builddir_sub | |
1547 | ac_abs_top_srcdir=$ac_pwd ;; | |
1548 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1549 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1550 | ac_top_srcdir=$srcdir | |
1551 | ac_abs_top_srcdir=$srcdir ;; | |
1552 | *) # Relative name. | |
1553 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1554 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1555 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1556 | esac | |
1557 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1558 | ||
1559 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1560 | # Check for guested configure. | |
1561 | if test -f "$ac_srcdir/configure.gnu"; then | |
1562 | echo && | |
1563 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1564 | elif test -f "$ac_srcdir/configure"; then | |
1565 | echo && | |
1566 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1567 | else | |
1568 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1569 | fi || ac_status=$? | |
1570 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1571 | done | |
1572 | fi | |
1573 | ||
1574 | test -n "$ac_init_help" && exit $ac_status | |
1575 | if $ac_init_version; then | |
1576 | cat <<\_ACEOF | |
1577 | package-unused configure version-unused | |
22e05272 | 1578 | generated by GNU Autoconf 2.69 |
f35db108 | 1579 | |
22e05272 | 1580 | Copyright (C) 2012 Free Software Foundation, Inc. |
f35db108 WM |
1581 | This configure script is free software; the Free Software Foundation |
1582 | gives unlimited permission to copy, distribute and modify it. | |
1583 | _ACEOF | |
1584 | exit | |
1585 | fi | |
1586 | ||
1587 | ## ------------------------ ## | |
1588 | ## Autoconf initialization. ## | |
1589 | ## ------------------------ ## | |
1590 | ||
1591 | # ac_fn_c_try_compile LINENO | |
1592 | # -------------------------- | |
1593 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1594 | ac_fn_c_try_compile () | |
1595 | { | |
1596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1597 | rm -f conftest.$ac_objext | |
1598 | if { { ac_try="$ac_compile" | |
1599 | case "(($ac_try" in | |
1600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1601 | *) ac_try_echo=$ac_try;; | |
1602 | esac | |
1603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1604 | $as_echo "$ac_try_echo"; } >&5 | |
1605 | (eval "$ac_compile") 2>conftest.err | |
1606 | ac_status=$? | |
1607 | if test -s conftest.err; then | |
1608 | grep -v '^ *+' conftest.err >conftest.er1 | |
1609 | cat conftest.er1 >&5 | |
1610 | mv -f conftest.er1 conftest.err | |
1611 | fi | |
1612 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1613 | test $ac_status = 0; } && { | |
1614 | test -z "$ac_c_werror_flag" || | |
1615 | test ! -s conftest.err | |
1616 | } && test -s conftest.$ac_objext; then : | |
1617 | ac_retval=0 | |
1618 | else | |
1619 | $as_echo "$as_me: failed program was:" >&5 | |
1620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1621 | ||
1622 | ac_retval=1 | |
1623 | fi | |
22e05272 JM |
1624 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1625 | as_fn_set_status $ac_retval | |
f35db108 WM |
1626 | |
1627 | } # ac_fn_c_try_compile | |
1628 | ||
c915a581 JJ |
1629 | # ac_fn_c_try_cpp LINENO |
1630 | # ---------------------- | |
1631 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1632 | ac_fn_c_try_cpp () | |
f35db108 WM |
1633 | { |
1634 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 | 1635 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
f35db108 WM |
1636 | case "(($ac_try" in |
1637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1638 | *) ac_try_echo=$ac_try;; | |
1639 | esac | |
1640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1641 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
f35db108 WM |
1643 | ac_status=$? |
1644 | if test -s conftest.err; then | |
1645 | grep -v '^ *+' conftest.err >conftest.er1 | |
1646 | cat conftest.er1 >&5 | |
1647 | mv -f conftest.er1 conftest.err | |
1648 | fi | |
1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1650 | test $ac_status = 0; } > conftest.i && { |
c915a581 | 1651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
f35db108 | 1652 | test ! -s conftest.err |
c915a581 | 1653 | }; then : |
f35db108 WM |
1654 | ac_retval=0 |
1655 | else | |
1656 | $as_echo "$as_me: failed program was:" >&5 | |
1657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1658 | ||
c915a581 | 1659 | ac_retval=1 |
f35db108 | 1660 | fi |
22e05272 JM |
1661 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1662 | as_fn_set_status $ac_retval | |
f35db108 | 1663 | |
c915a581 | 1664 | } # ac_fn_c_try_cpp |
f35db108 | 1665 | |
c915a581 JJ |
1666 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1667 | # ------------------------------------------------------- | |
1668 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1669 | # the include files in INCLUDES and setting the cache variable VAR | |
1670 | # accordingly. | |
1671 | ac_fn_c_check_header_mongrel () | |
1672 | { | |
1673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1674 | if eval \${$3+:} false; then : |
c915a581 JJ |
1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1676 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1677 | if eval \${$3+:} false; then : |
c915a581 JJ |
1678 | $as_echo_n "(cached) " >&6 |
1679 | fi | |
1680 | eval ac_res=\$$3 | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1682 | $as_echo "$ac_res" >&6; } | |
1683 | else | |
1684 | # Is the header compilable? | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1686 | $as_echo_n "checking $2 usability... " >&6; } | |
1687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1688 | /* end confdefs.h. */ | |
1689 | $4 | |
1690 | #include <$2> | |
1691 | _ACEOF | |
1692 | if ac_fn_c_try_compile "$LINENO"; then : | |
1693 | ac_header_compiler=yes | |
1694 | else | |
1695 | ac_header_compiler=no | |
1696 | fi | |
1697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1699 | $as_echo "$ac_header_compiler" >&6; } | |
1700 | ||
1701 | # Is the header present? | |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1703 | $as_echo_n "checking $2 presence... " >&6; } | |
1704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1705 | /* end confdefs.h. */ | |
1706 | #include <$2> | |
1707 | _ACEOF | |
1708 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1709 | ac_header_preproc=yes | |
1710 | else | |
1711 | ac_header_preproc=no | |
1712 | fi | |
22e05272 | 1713 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1715 | $as_echo "$ac_header_preproc" >&6; } | |
1716 | ||
1717 | # So? What about this header? | |
1718 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1719 | yes:no: ) | |
1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1721 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1723 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1724 | ;; | |
1725 | no:yes:* ) | |
1726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1727 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1729 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1731 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1733 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1735 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
22e05272 | 1736 | ( $as_echo "## --------------------------- ## |
c915a581 | 1737 | ## Report this to libsanitizer ## |
22e05272 | 1738 | ## --------------------------- ##" |
c915a581 JJ |
1739 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1740 | ;; | |
1741 | esac | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1743 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1744 | if eval \${$3+:} false; then : |
c915a581 JJ |
1745 | $as_echo_n "(cached) " >&6 |
1746 | else | |
1747 | eval "$3=\$ac_header_compiler" | |
1748 | fi | |
1749 | eval ac_res=\$$3 | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1751 | $as_echo "$ac_res" >&6; } | |
1752 | fi | |
22e05272 | 1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c915a581 JJ |
1754 | |
1755 | } # ac_fn_c_check_header_mongrel | |
1756 | ||
1757 | # ac_fn_c_try_run LINENO | |
1758 | # ---------------------- | |
1759 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1760 | # that executables *can* be run. | |
1761 | ac_fn_c_try_run () | |
f35db108 WM |
1762 | { |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
f35db108 WM |
1764 | if { { ac_try="$ac_link" |
1765 | case "(($ac_try" in | |
1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1767 | *) ac_try_echo=$ac_try;; | |
1768 | esac | |
1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1770 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1771 | (eval "$ac_link") 2>&5 |
f35db108 | 1772 | ac_status=$? |
f35db108 | 1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c915a581 JJ |
1774 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1775 | { { case "(($ac_try" in | |
1776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1777 | *) ac_try_echo=$ac_try;; | |
1778 | esac | |
1779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1780 | $as_echo "$ac_try_echo"; } >&5 | |
1781 | (eval "$ac_try") 2>&5 | |
1782 | ac_status=$? | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; }; }; then : | |
f35db108 WM |
1785 | ac_retval=0 |
1786 | else | |
c915a581 JJ |
1787 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1788 | $as_echo "$as_me: failed program was:" >&5 | |
f35db108 WM |
1789 | sed 's/^/| /' conftest.$ac_ext >&5 |
1790 | ||
c915a581 | 1791 | ac_retval=$ac_status |
f35db108 | 1792 | fi |
f35db108 | 1793 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
22e05272 JM |
1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1795 | as_fn_set_status $ac_retval | |
f35db108 | 1796 | |
c915a581 | 1797 | } # ac_fn_c_try_run |
f35db108 WM |
1798 | |
1799 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1800 | # ------------------------------------------------------- | |
1801 | # Tests whether HEADER exists and can be compiled using the include files in | |
1802 | # INCLUDES, setting the cache variable VAR accordingly. | |
1803 | ac_fn_c_check_header_compile () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1807 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1808 | if eval \${$3+:} false; then : |
f35db108 WM |
1809 | $as_echo_n "(cached) " >&6 |
1810 | else | |
1811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1812 | /* end confdefs.h. */ | |
1813 | $4 | |
1814 | #include <$2> | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_compile "$LINENO"; then : | |
1817 | eval "$3=yes" | |
1818 | else | |
1819 | eval "$3=no" | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1822 | fi | |
1823 | eval ac_res=\$$3 | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1825 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1826 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f35db108 WM |
1827 | |
1828 | } # ac_fn_c_check_header_compile | |
1829 | ||
c915a581 JJ |
1830 | # ac_fn_cxx_try_compile LINENO |
1831 | # ---------------------------- | |
1832 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1833 | ac_fn_cxx_try_compile () | |
f35db108 WM |
1834 | { |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 JJ |
1836 | rm -f conftest.$ac_objext |
1837 | if { { ac_try="$ac_compile" | |
f35db108 WM |
1838 | case "(($ac_try" in |
1839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1840 | *) ac_try_echo=$ac_try;; | |
1841 | esac | |
1842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1843 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1844 | (eval "$ac_compile") 2>conftest.err |
f35db108 WM |
1845 | ac_status=$? |
1846 | if test -s conftest.err; then | |
1847 | grep -v '^ *+' conftest.err >conftest.er1 | |
1848 | cat conftest.er1 >&5 | |
1849 | mv -f conftest.er1 conftest.err | |
1850 | fi | |
1851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c915a581 JJ |
1852 | test $ac_status = 0; } && { |
1853 | test -z "$ac_cxx_werror_flag" || | |
f35db108 | 1854 | test ! -s conftest.err |
c915a581 | 1855 | } && test -s conftest.$ac_objext; then : |
f35db108 WM |
1856 | ac_retval=0 |
1857 | else | |
1858 | $as_echo "$as_me: failed program was:" >&5 | |
1859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1860 | ||
c915a581 | 1861 | ac_retval=1 |
f35db108 | 1862 | fi |
22e05272 JM |
1863 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1864 | as_fn_set_status $ac_retval | |
f35db108 | 1865 | |
c915a581 | 1866 | } # ac_fn_cxx_try_compile |
f35db108 | 1867 | |
c915a581 JJ |
1868 | # ac_fn_c_try_link LINENO |
1869 | # ----------------------- | |
1870 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1871 | ac_fn_c_try_link () | |
f35db108 WM |
1872 | { |
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c915a581 | 1874 | rm -f conftest.$ac_objext conftest$ac_exeext |
f35db108 WM |
1875 | if { { ac_try="$ac_link" |
1876 | case "(($ac_try" in | |
1877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1878 | *) ac_try_echo=$ac_try;; | |
1879 | esac | |
1880 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1881 | $as_echo "$ac_try_echo"; } >&5 | |
c915a581 | 1882 | (eval "$ac_link") 2>conftest.err |
f35db108 | 1883 | ac_status=$? |
c915a581 JJ |
1884 | if test -s conftest.err; then |
1885 | grep -v '^ *+' conftest.err >conftest.er1 | |
1886 | cat conftest.er1 >&5 | |
1887 | mv -f conftest.er1 conftest.err | |
1888 | fi | |
f35db108 | 1889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c915a581 JJ |
1890 | test $ac_status = 0; } && { |
1891 | test -z "$ac_c_werror_flag" || | |
1892 | test ! -s conftest.err | |
1893 | } && test -s conftest$ac_exeext && { | |
1894 | test "$cross_compiling" = yes || | |
22e05272 | 1895 | test -x conftest$ac_exeext |
c915a581 | 1896 | }; then : |
f35db108 WM |
1897 | ac_retval=0 |
1898 | else | |
c915a581 | 1899 | $as_echo "$as_me: failed program was:" >&5 |
f35db108 WM |
1900 | sed 's/^/| /' conftest.$ac_ext >&5 |
1901 | ||
c915a581 | 1902 | ac_retval=1 |
f35db108 | 1903 | fi |
c915a581 JJ |
1904 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1905 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1906 | # interfere with the next link command; also delete a directory that is | |
1907 | # left behind by Apple's compiler. We do this before executing the actions. | |
f35db108 | 1908 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
22e05272 JM |
1909 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1910 | as_fn_set_status $ac_retval | |
f35db108 | 1911 | |
c915a581 | 1912 | } # ac_fn_c_try_link |
f35db108 WM |
1913 | |
1914 | # ac_fn_c_check_func LINENO FUNC VAR | |
1915 | # ---------------------------------- | |
1916 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1917 | ac_fn_c_check_func () | |
1918 | { | |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1921 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1922 | if eval \${$3+:} false; then : |
f35db108 WM |
1923 | $as_echo_n "(cached) " >&6 |
1924 | else | |
1925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1926 | /* end confdefs.h. */ | |
1927 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1929 | #define $2 innocuous_$2 | |
1930 | ||
1931 | /* System header to define __stub macros and hopefully few prototypes, | |
1932 | which can conflict with char $2 (); below. | |
1933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1934 | <limits.h> exists even on freestanding compilers. */ | |
1935 | ||
1936 | #ifdef __STDC__ | |
1937 | # include <limits.h> | |
1938 | #else | |
1939 | # include <assert.h> | |
1940 | #endif | |
1941 | ||
1942 | #undef $2 | |
1943 | ||
1944 | /* Override any GCC internal prototype to avoid an error. | |
1945 | Use char because int might match the return type of a GCC | |
1946 | builtin and then its argument prototype would still apply. */ | |
1947 | #ifdef __cplusplus | |
1948 | extern "C" | |
1949 | #endif | |
1950 | char $2 (); | |
1951 | /* The GNU C library defines this for functions which it implements | |
1952 | to always fail with ENOSYS. Some functions are actually named | |
1953 | something starting with __ and the normal name is an alias. */ | |
1954 | #if defined __stub_$2 || defined __stub___$2 | |
1955 | choke me | |
1956 | #endif | |
1957 | ||
1958 | int | |
1959 | main () | |
1960 | { | |
1961 | return $2 (); | |
1962 | ; | |
1963 | return 0; | |
1964 | } | |
1965 | _ACEOF | |
1966 | if ac_fn_c_try_link "$LINENO"; then : | |
1967 | eval "$3=yes" | |
1968 | else | |
1969 | eval "$3=no" | |
1970 | fi | |
1971 | rm -f core conftest.err conftest.$ac_objext \ | |
1972 | conftest$ac_exeext conftest.$ac_ext | |
1973 | fi | |
1974 | eval ac_res=\$$3 | |
1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1976 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1977 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f35db108 WM |
1978 | |
1979 | } # ac_fn_c_check_func | |
1980 | ||
1981 | # ac_fn_cxx_try_cpp LINENO | |
1982 | # ------------------------ | |
1983 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1984 | ac_fn_cxx_try_cpp () | |
1985 | { | |
1986 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1987 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1988 | case "(($ac_try" in | |
1989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1990 | *) ac_try_echo=$ac_try;; | |
1991 | esac | |
1992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1993 | $as_echo "$ac_try_echo"; } >&5 | |
1994 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1995 | ac_status=$? | |
1996 | if test -s conftest.err; then | |
1997 | grep -v '^ *+' conftest.err >conftest.er1 | |
1998 | cat conftest.er1 >&5 | |
1999 | mv -f conftest.er1 conftest.err | |
2000 | fi | |
2001 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 2002 | test $ac_status = 0; } > conftest.i && { |
f35db108 WM |
2003 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2004 | test ! -s conftest.err | |
2005 | }; then : | |
2006 | ac_retval=0 | |
2007 | else | |
2008 | $as_echo "$as_me: failed program was:" >&5 | |
2009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2010 | ||
2011 | ac_retval=1 | |
2012 | fi | |
22e05272 JM |
2013 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2014 | as_fn_set_status $ac_retval | |
f35db108 WM |
2015 | |
2016 | } # ac_fn_cxx_try_cpp | |
2017 | ||
2018 | # ac_fn_cxx_try_link LINENO | |
2019 | # ------------------------- | |
2020 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2021 | ac_fn_cxx_try_link () | |
2022 | { | |
2023 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2025 | if { { ac_try="$ac_link" | |
2026 | case "(($ac_try" in | |
2027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2028 | *) ac_try_echo=$ac_try;; | |
2029 | esac | |
2030 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2031 | $as_echo "$ac_try_echo"; } >&5 | |
2032 | (eval "$ac_link") 2>conftest.err | |
2033 | ac_status=$? | |
2034 | if test -s conftest.err; then | |
2035 | grep -v '^ *+' conftest.err >conftest.er1 | |
2036 | cat conftest.er1 >&5 | |
2037 | mv -f conftest.er1 conftest.err | |
2038 | fi | |
2039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2040 | test $ac_status = 0; } && { | |
2041 | test -z "$ac_cxx_werror_flag" || | |
2042 | test ! -s conftest.err | |
2043 | } && test -s conftest$ac_exeext && { | |
2044 | test "$cross_compiling" = yes || | |
22e05272 | 2045 | test -x conftest$ac_exeext |
f35db108 WM |
2046 | }; then : |
2047 | ac_retval=0 | |
2048 | else | |
2049 | $as_echo "$as_me: failed program was:" >&5 | |
2050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2051 | ||
2052 | ac_retval=1 | |
2053 | fi | |
2054 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2055 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2056 | # interfere with the next link command; also delete a directory that is | |
2057 | # left behind by Apple's compiler. We do this before executing the actions. | |
2058 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2059 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2060 | as_fn_set_status $ac_retval | |
f35db108 WM |
2061 | |
2062 | } # ac_fn_cxx_try_link | |
64548f3b JJ |
2063 | |
2064 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2065 | # -------------------------------------------- | |
2066 | # Tries to find the compile-time value of EXPR in a program that includes | |
2067 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2068 | # computed | |
2069 | ac_fn_c_compute_int () | |
2070 | { | |
2071 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2072 | if test "$cross_compiling" = yes; then | |
2073 | # Depending upon the size, compute the lo and hi bounds. | |
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2075 | /* end confdefs.h. */ | |
2076 | $4 | |
2077 | int | |
2078 | main () | |
2079 | { | |
2080 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
2081 | test_array [0] = 0; |
2082 | return test_array [0]; | |
64548f3b JJ |
2083 | |
2084 | ; | |
2085 | return 0; | |
2086 | } | |
2087 | _ACEOF | |
2088 | if ac_fn_c_try_compile "$LINENO"; then : | |
2089 | ac_lo=0 ac_mid=0 | |
2090 | while :; do | |
2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2092 | /* end confdefs.h. */ | |
2093 | $4 | |
2094 | int | |
2095 | main () | |
2096 | { | |
2097 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2098 | test_array [0] = 0; |
2099 | return test_array [0]; | |
64548f3b JJ |
2100 | |
2101 | ; | |
2102 | return 0; | |
2103 | } | |
2104 | _ACEOF | |
2105 | if ac_fn_c_try_compile "$LINENO"; then : | |
2106 | ac_hi=$ac_mid; break | |
2107 | else | |
2108 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2109 | if test $ac_lo -le $ac_mid; then | |
2110 | ac_lo= ac_hi= | |
2111 | break | |
2112 | fi | |
2113 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2114 | fi | |
2115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2116 | done | |
2117 | else | |
2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2119 | /* end confdefs.h. */ | |
2120 | $4 | |
2121 | int | |
2122 | main () | |
2123 | { | |
2124 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2125 | test_array [0] = 0; |
2126 | return test_array [0]; | |
64548f3b JJ |
2127 | |
2128 | ; | |
2129 | return 0; | |
2130 | } | |
2131 | _ACEOF | |
2132 | if ac_fn_c_try_compile "$LINENO"; then : | |
2133 | ac_hi=-1 ac_mid=-1 | |
2134 | while :; do | |
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2136 | /* end confdefs.h. */ | |
2137 | $4 | |
2138 | int | |
2139 | main () | |
2140 | { | |
2141 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2142 | test_array [0] = 0; |
2143 | return test_array [0]; | |
64548f3b JJ |
2144 | |
2145 | ; | |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | if ac_fn_c_try_compile "$LINENO"; then : | |
2150 | ac_lo=$ac_mid; break | |
2151 | else | |
2152 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2153 | if test $ac_mid -le $ac_hi; then | |
2154 | ac_lo= ac_hi= | |
2155 | break | |
2156 | fi | |
2157 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2158 | fi | |
2159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2160 | done | |
2161 | else | |
2162 | ac_lo= ac_hi= | |
2163 | fi | |
2164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2165 | fi | |
2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2167 | # Binary search between lo and hi bounds. | |
2168 | while test "x$ac_lo" != "x$ac_hi"; do | |
2169 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2171 | /* end confdefs.h. */ | |
2172 | $4 | |
2173 | int | |
2174 | main () | |
2175 | { | |
2176 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2177 | test_array [0] = 0; |
2178 | return test_array [0]; | |
64548f3b JJ |
2179 | |
2180 | ; | |
2181 | return 0; | |
2182 | } | |
2183 | _ACEOF | |
2184 | if ac_fn_c_try_compile "$LINENO"; then : | |
2185 | ac_hi=$ac_mid | |
2186 | else | |
2187 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2188 | fi | |
2189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2190 | done | |
2191 | case $ac_lo in #(( | |
2192 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2193 | '') ac_retval=1 ;; | |
2194 | esac | |
2195 | else | |
2196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2197 | /* end confdefs.h. */ | |
2198 | $4 | |
2199 | static long int longval () { return $2; } | |
2200 | static unsigned long int ulongval () { return $2; } | |
2201 | #include <stdio.h> | |
2202 | #include <stdlib.h> | |
2203 | int | |
2204 | main () | |
2205 | { | |
2206 | ||
2207 | FILE *f = fopen ("conftest.val", "w"); | |
2208 | if (! f) | |
2209 | return 1; | |
2210 | if (($2) < 0) | |
2211 | { | |
2212 | long int i = longval (); | |
2213 | if (i != ($2)) | |
2214 | return 1; | |
2215 | fprintf (f, "%ld", i); | |
2216 | } | |
2217 | else | |
2218 | { | |
2219 | unsigned long int i = ulongval (); | |
2220 | if (i != ($2)) | |
2221 | return 1; | |
2222 | fprintf (f, "%lu", i); | |
2223 | } | |
2224 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2225 | on some platforms. */ | |
2226 | return ferror (f) || fclose (f) != 0; | |
2227 | ||
2228 | ; | |
2229 | return 0; | |
2230 | } | |
2231 | _ACEOF | |
2232 | if ac_fn_c_try_run "$LINENO"; then : | |
2233 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2234 | else | |
2235 | ac_retval=1 | |
2236 | fi | |
2237 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2238 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2239 | rm -f conftest.val | |
2240 | ||
2241 | fi | |
22e05272 JM |
2242 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2243 | as_fn_set_status $ac_retval | |
64548f3b JJ |
2244 | |
2245 | } # ac_fn_c_compute_int | |
f35db108 | 2246 | |
c915a581 JJ |
2247 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2248 | # ------------------------------------------- | |
2249 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2250 | # variable VAR accordingly. | |
2251 | ac_fn_c_check_type () | |
f35db108 | 2252 | { |
c915a581 JJ |
2253 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2255 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2256 | if eval \${$3+:} false; then : |
c915a581 JJ |
2257 | $as_echo_n "(cached) " >&6 |
2258 | else | |
2259 | eval "$3=no" | |
2260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2261 | /* end confdefs.h. */ | |
2262 | $4 | |
2263 | int | |
2264 | main () | |
2265 | { | |
2266 | if (sizeof ($2)) | |
2267 | return 0; | |
2268 | ; | |
2269 | return 0; | |
2270 | } | |
2271 | _ACEOF | |
2272 | if ac_fn_c_try_compile "$LINENO"; then : | |
2273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2274 | /* end confdefs.h. */ | |
2275 | $4 | |
2276 | int | |
2277 | main () | |
2278 | { | |
2279 | if (sizeof (($2))) | |
2280 | return 0; | |
2281 | ; | |
2282 | return 0; | |
2283 | } | |
2284 | _ACEOF | |
2285 | if ac_fn_c_try_compile "$LINENO"; then : | |
2286 | ||
2287 | else | |
2288 | eval "$3=yes" | |
2289 | fi | |
2290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2291 | fi | |
2292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2293 | fi | |
2294 | eval ac_res=\$$3 | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2296 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2297 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c915a581 JJ |
2298 | |
2299 | } # ac_fn_c_check_type | |
2300 | ||
22e05272 JM |
2301 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2302 | # --------------------------------------------- | |
2303 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2304 | # accordingly. | |
c915a581 JJ |
2305 | ac_fn_c_check_decl () |
2306 | { | |
2307 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2308 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2309 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2311 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
22e05272 | 2312 | if eval \${$3+:} false; then : |
c915a581 JJ |
2313 | $as_echo_n "(cached) " >&6 |
2314 | else | |
2315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2316 | /* end confdefs.h. */ | |
2317 | $4 | |
2318 | int | |
2319 | main () | |
2320 | { | |
2321 | #ifndef $as_decl_name | |
2322 | #ifdef __cplusplus | |
2323 | (void) $as_decl_use; | |
2324 | #else | |
2325 | (void) $as_decl_name; | |
2326 | #endif | |
2327 | #endif | |
2328 | ||
2329 | ; | |
2330 | return 0; | |
2331 | } | |
2332 | _ACEOF | |
2333 | if ac_fn_c_try_compile "$LINENO"; then : | |
2334 | eval "$3=yes" | |
2335 | else | |
2336 | eval "$3=no" | |
2337 | fi | |
2338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2339 | fi | |
2340 | eval ac_res=\$$3 | |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2342 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2343 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
c915a581 JJ |
2344 | |
2345 | } # ac_fn_c_check_decl | |
2346 | cat >config.log <<_ACEOF | |
2347 | This file contains any messages produced by compilers while | |
2348 | running configure, to aid debugging if configure makes a mistake. | |
2349 | ||
2350 | It was created by package-unused $as_me version-unused, which was | |
22e05272 | 2351 | generated by GNU Autoconf 2.69. Invocation command line was |
c915a581 JJ |
2352 | |
2353 | $ $0 $@ | |
2354 | ||
2355 | _ACEOF | |
2356 | exec 5>>config.log | |
2357 | { | |
2358 | cat <<_ASUNAME | |
2359 | ## --------- ## | |
2360 | ## Platform. ## | |
2361 | ## --------- ## | |
2362 | ||
2363 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2364 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2365 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2366 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2367 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2368 | ||
2369 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2370 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2371 | ||
2372 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2373 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2374 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
f35db108 WM |
2375 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2376 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2377 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2378 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2379 | ||
2380 | _ASUNAME | |
2381 | ||
2382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2383 | for as_dir in $PATH | |
2384 | do | |
2385 | IFS=$as_save_IFS | |
2386 | test -z "$as_dir" && as_dir=. | |
2387 | $as_echo "PATH: $as_dir" | |
2388 | done | |
2389 | IFS=$as_save_IFS | |
2390 | ||
2391 | } >&5 | |
2392 | ||
2393 | cat >&5 <<_ACEOF | |
2394 | ||
2395 | ||
2396 | ## ----------- ## | |
2397 | ## Core tests. ## | |
2398 | ## ----------- ## | |
2399 | ||
2400 | _ACEOF | |
2401 | ||
2402 | ||
2403 | # Keep a trace of the command line. | |
2404 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2405 | # Strip out --silent because we don't want to record it for future runs. | |
2406 | # Also quote any args containing shell meta-characters. | |
2407 | # Make two passes to allow for proper duplicate-argument suppression. | |
2408 | ac_configure_args= | |
2409 | ac_configure_args0= | |
2410 | ac_configure_args1= | |
2411 | ac_must_keep_next=false | |
2412 | for ac_pass in 1 2 | |
2413 | do | |
2414 | for ac_arg | |
2415 | do | |
2416 | case $ac_arg in | |
2417 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2418 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2419 | | -silent | --silent | --silen | --sile | --sil) | |
2420 | continue ;; | |
2421 | *\'*) | |
2422 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2423 | esac | |
2424 | case $ac_pass in | |
2425 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2426 | 2) | |
2427 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2428 | if test $ac_must_keep_next = true; then | |
2429 | ac_must_keep_next=false # Got value, back to normal. | |
2430 | else | |
2431 | case $ac_arg in | |
2432 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2433 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2434 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2435 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2436 | case "$ac_configure_args0 " in | |
2437 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2438 | esac | |
2439 | ;; | |
2440 | -* ) ac_must_keep_next=true ;; | |
2441 | esac | |
2442 | fi | |
2443 | as_fn_append ac_configure_args " '$ac_arg'" | |
2444 | ;; | |
2445 | esac | |
2446 | done | |
2447 | done | |
2448 | { ac_configure_args0=; unset ac_configure_args0;} | |
2449 | { ac_configure_args1=; unset ac_configure_args1;} | |
2450 | ||
2451 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2452 | # config.log. We remove comments because anyway the quotes in there | |
2453 | # would cause problems or look ugly. | |
2454 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2455 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2456 | trap 'exit_status=$? | |
2457 | # Save into config.log some information that might help in debugging. | |
2458 | { | |
2459 | echo | |
2460 | ||
22e05272 | 2461 | $as_echo "## ---------------- ## |
f35db108 | 2462 | ## Cache variables. ## |
22e05272 | 2463 | ## ---------------- ##" |
f35db108 WM |
2464 | echo |
2465 | # The following way of writing the cache mishandles newlines in values, | |
2466 | ( | |
2467 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2468 | eval ac_val=\$$ac_var | |
2469 | case $ac_val in #( | |
2470 | *${as_nl}*) | |
2471 | case $ac_var in #( | |
2472 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2473 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2474 | esac | |
2475 | case $ac_var in #( | |
2476 | _ | IFS | as_nl) ;; #( | |
2477 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2478 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2479 | esac ;; | |
2480 | esac | |
2481 | done | |
2482 | (set) 2>&1 | | |
2483 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2484 | *${as_nl}ac_space=\ *) | |
2485 | sed -n \ | |
2486 | "s/'\''/'\''\\\\'\'''\''/g; | |
2487 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2488 | ;; #( | |
2489 | *) | |
2490 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2491 | ;; | |
2492 | esac | | |
2493 | sort | |
2494 | ) | |
2495 | echo | |
2496 | ||
22e05272 | 2497 | $as_echo "## ----------------- ## |
f35db108 | 2498 | ## Output variables. ## |
22e05272 | 2499 | ## ----------------- ##" |
f35db108 WM |
2500 | echo |
2501 | for ac_var in $ac_subst_vars | |
2502 | do | |
2503 | eval ac_val=\$$ac_var | |
2504 | case $ac_val in | |
2505 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2506 | esac | |
2507 | $as_echo "$ac_var='\''$ac_val'\''" | |
2508 | done | sort | |
2509 | echo | |
2510 | ||
2511 | if test -n "$ac_subst_files"; then | |
22e05272 | 2512 | $as_echo "## ------------------- ## |
f35db108 | 2513 | ## File substitutions. ## |
22e05272 | 2514 | ## ------------------- ##" |
f35db108 WM |
2515 | echo |
2516 | for ac_var in $ac_subst_files | |
2517 | do | |
2518 | eval ac_val=\$$ac_var | |
2519 | case $ac_val in | |
2520 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2521 | esac | |
2522 | $as_echo "$ac_var='\''$ac_val'\''" | |
2523 | done | sort | |
2524 | echo | |
2525 | fi | |
2526 | ||
2527 | if test -s confdefs.h; then | |
22e05272 | 2528 | $as_echo "## ----------- ## |
f35db108 | 2529 | ## confdefs.h. ## |
22e05272 | 2530 | ## ----------- ##" |
f35db108 WM |
2531 | echo |
2532 | cat confdefs.h | |
2533 | echo | |
2534 | fi | |
2535 | test "$ac_signal" != 0 && | |
2536 | $as_echo "$as_me: caught signal $ac_signal" | |
2537 | $as_echo "$as_me: exit $exit_status" | |
2538 | } >&5 | |
2539 | rm -f core *.core core.conftest.* && | |
2540 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2541 | exit $exit_status | |
2542 | ' 0 | |
2543 | for ac_signal in 1 2 13 15; do | |
2544 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2545 | done | |
2546 | ac_signal=0 | |
2547 | ||
2548 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2549 | rm -f -r conftest* confdefs.h | |
2550 | ||
2551 | $as_echo "/* confdefs.h */" > confdefs.h | |
2552 | ||
2553 | # Predefined preprocessor variables. | |
2554 | ||
2555 | cat >>confdefs.h <<_ACEOF | |
2556 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2557 | _ACEOF | |
2558 | ||
2559 | cat >>confdefs.h <<_ACEOF | |
2560 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2561 | _ACEOF | |
2562 | ||
2563 | cat >>confdefs.h <<_ACEOF | |
2564 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2565 | _ACEOF | |
2566 | ||
2567 | cat >>confdefs.h <<_ACEOF | |
2568 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2569 | _ACEOF | |
2570 | ||
2571 | cat >>confdefs.h <<_ACEOF | |
2572 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2573 | _ACEOF | |
2574 | ||
2575 | cat >>confdefs.h <<_ACEOF | |
2576 | #define PACKAGE_URL "$PACKAGE_URL" | |
2577 | _ACEOF | |
2578 | ||
2579 | ||
2580 | # Let the site file select an alternate cache file if it wants to. | |
2581 | # Prefer an explicitly selected file to automatically selected ones. | |
2582 | ac_site_file1=NONE | |
2583 | ac_site_file2=NONE | |
2584 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2585 | # We do not want a PATH search for config.site. |
2586 | case $CONFIG_SITE in #(( | |
2587 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2588 | */*) ac_site_file1=$CONFIG_SITE;; | |
2589 | *) ac_site_file1=./$CONFIG_SITE;; | |
2590 | esac | |
f35db108 WM |
2591 | elif test "x$prefix" != xNONE; then |
2592 | ac_site_file1=$prefix/share/config.site | |
2593 | ac_site_file2=$prefix/etc/config.site | |
2594 | else | |
2595 | ac_site_file1=$ac_default_prefix/share/config.site | |
2596 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2597 | fi | |
2598 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2599 | do | |
2600 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2601 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
f35db108 WM |
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2603 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2604 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2605 | . "$ac_site_file" \ |
2606 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2608 | as_fn_error $? "failed to load site script $ac_site_file | |
2609 | See \`config.log' for more details" "$LINENO" 5; } | |
f35db108 WM |
2610 | fi |
2611 | done | |
2612 | ||
2613 | if test -r "$cache_file"; then | |
22e05272 JM |
2614 | # Some versions of bash will fail to source /dev/null (special files |
2615 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2616 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
f35db108 WM |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2618 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2619 | case $cache_file in | |
2620 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2621 | *) . "./$cache_file";; | |
2622 | esac | |
2623 | fi | |
2624 | else | |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2626 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2627 | >$cache_file | |
2628 | fi | |
2629 | ||
2630 | # Check that the precious variables saved in the cache have kept the same | |
2631 | # value. | |
2632 | ac_cache_corrupted=false | |
2633 | for ac_var in $ac_precious_vars; do | |
2634 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2635 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2636 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2637 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2638 | case $ac_old_set,$ac_new_set in | |
2639 | set,) | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2641 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2642 | ac_cache_corrupted=: ;; | |
2643 | ,set) | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2645 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2646 | ac_cache_corrupted=: ;; | |
2647 | ,);; | |
2648 | *) | |
2649 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2650 | # differences in whitespace do not lead to failure. | |
2651 | ac_old_val_w=`echo x $ac_old_val` | |
2652 | ac_new_val_w=`echo x $ac_new_val` | |
2653 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2655 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2656 | ac_cache_corrupted=: | |
2657 | else | |
2658 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2659 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2660 | eval $ac_var=\$ac_old_val | |
2661 | fi | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2663 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2665 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2666 | fi;; | |
2667 | esac | |
2668 | # Pass precious variables to config.status. | |
2669 | if test "$ac_new_set" = set; then | |
2670 | case $ac_new_val in | |
2671 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2672 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2673 | esac | |
2674 | case " $ac_configure_args " in | |
2675 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2676 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2677 | esac | |
2678 | fi | |
2679 | done | |
2680 | if $ac_cache_corrupted; then | |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2684 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2685 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
f35db108 WM |
2686 | fi |
2687 | ## -------------------- ## | |
2688 | ## Main body of script. ## | |
2689 | ## -------------------- ## | |
2690 | ||
2691 | ac_ext=c | |
2692 | ac_cpp='$CPP $CPPFLAGS' | |
2693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2696 | ||
2697 | ||
2698 | ||
a2479b3d L |
2699 | |
2700 | ||
2701 | ||
4053ca2c | 2702 | |
94213c10 MK |
2703 | # Default to --enable-multilib |
2704 | # Check whether --enable-multilib was given. | |
2705 | if test "${enable_multilib+set}" = set; then : | |
2706 | enableval=$enable_multilib; case "$enableval" in | |
2707 | yes) multilib=yes ;; | |
2708 | no) multilib=no ;; | |
22e05272 | 2709 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
94213c10 MK |
2710 | esac |
2711 | else | |
2712 | multilib=yes | |
2713 | fi | |
2714 | ||
2715 | ||
2716 | # We may get other options which we leave undocumented: | |
2717 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2718 | # See config-ml.in if you want the gory details. | |
2719 | ||
2720 | if test "$srcdir" = "."; then | |
2721 | if test "$with_target_subdir" != "."; then | |
2722 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2723 | else | |
2724 | multi_basedir="$srcdir/$with_multisrctop.." | |
2725 | fi | |
2726 | else | |
2727 | multi_basedir="$srcdir/.." | |
2728 | fi | |
2729 | ||
2730 | ||
2731 | # Even if the default multilib is not a cross compilation, | |
2732 | # it may be that some of the other multilibs are. | |
2733 | if test $cross_compiling = no && test $multilib = yes \ | |
2734 | && test "x${with_multisubdir}" != x ; then | |
2735 | cross_compiling=maybe | |
2736 | fi | |
2737 | ||
2738 | ac_config_commands="$ac_config_commands default-1" | |
2739 | ||
2740 | ||
2a6346c4 L |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2742 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2743 | # Check whether --enable-version-specific-runtime-libs was given. | |
2744 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2745 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
2746 | yes) version_specific_libs=yes ;; | |
2747 | no) version_specific_libs=no ;; | |
22e05272 | 2748 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
2a6346c4 L |
2749 | esac |
2750 | else | |
2751 | version_specific_libs=no | |
2752 | fi | |
2753 | ||
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2755 | $as_echo "$version_specific_libs" >&6; } | |
2756 | ||
22e05272 JM |
2757 | ac_aux_dir= |
2758 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2759 | if test -f "$ac_dir/install-sh"; then | |
2760 | ac_aux_dir=$ac_dir | |
2761 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2762 | break | |
2763 | elif test -f "$ac_dir/install.sh"; then | |
2764 | ac_aux_dir=$ac_dir | |
2765 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2766 | break | |
2767 | elif test -f "$ac_dir/shtool"; then | |
2768 | ac_aux_dir=$ac_dir | |
2769 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2770 | break | |
2771 | fi | |
2772 | done | |
2773 | if test -z "$ac_aux_dir"; then | |
2774 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2775 | fi | |
2776 | ||
2777 | # These three variables are undocumented and unsupported, | |
2778 | # and are intended to be withdrawn in a future Autoconf release. | |
2779 | # They can cause serious problems if a builder's source tree is in a directory | |
2780 | # whose full name contains unusual characters. | |
2781 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2782 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2783 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2784 | ||
2785 | ||
2786 | # Expand $ac_aux_dir to an absolute path. | |
2787 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2788 | ||
c915a581 JJ |
2789 | ac_ext=c |
2790 | ac_cpp='$CPP $CPPFLAGS' | |
2791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2794 | if test -n "$ac_tool_prefix"; then | |
2795 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2796 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2798 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2799 | if ${ac_cv_prog_CC+:} false; then : |
2a6346c4 L |
2800 | $as_echo_n "(cached) " >&6 |
2801 | else | |
c915a581 JJ |
2802 | if test -n "$CC"; then |
2803 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2804 | else | |
2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2806 | for as_dir in $PATH | |
2807 | do | |
2808 | IFS=$as_save_IFS | |
2809 | test -z "$as_dir" && as_dir=. | |
2810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
2812 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2814 | break 2 | |
2815 | fi | |
2816 | done | |
2817 | done | |
2818 | IFS=$as_save_IFS | |
2a6346c4 L |
2819 | |
2820 | fi | |
c915a581 JJ |
2821 | fi |
2822 | CC=$ac_cv_prog_CC | |
2823 | if test -n "$CC"; then | |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2825 | $as_echo "$CC" >&6; } | |
2826 | else | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2828 | $as_echo "no" >&6; } | |
2829 | fi | |
2a6346c4 L |
2830 | |
2831 | ||
c915a581 JJ |
2832 | fi |
2833 | if test -z "$ac_cv_prog_CC"; then | |
2834 | ac_ct_CC=$CC | |
2835 | # Extract the first word of "gcc", so it can be a program name with args. | |
2836 | set dummy gcc; ac_word=$2 | |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2838 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2839 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2a6346c4 L |
2840 | $as_echo_n "(cached) " >&6 |
2841 | else | |
c915a581 JJ |
2842 | if test -n "$ac_ct_CC"; then |
2843 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2a6346c4 | 2844 | else |
c915a581 JJ |
2845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2846 | for as_dir in $PATH | |
2847 | do | |
2848 | IFS=$as_save_IFS | |
2849 | test -z "$as_dir" && as_dir=. | |
2850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
2852 | ac_cv_prog_ac_ct_CC="gcc" |
2853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2854 | break 2 | |
2855 | fi | |
2856 | done | |
2857 | done | |
2858 | IFS=$as_save_IFS | |
2a6346c4 L |
2859 | |
2860 | fi | |
c915a581 JJ |
2861 | fi |
2862 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2863 | if test -n "$ac_ct_CC"; then | |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2865 | $as_echo "$ac_ct_CC" >&6; } | |
2866 | else | |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2868 | $as_echo "no" >&6; } | |
2869 | fi | |
2870 | ||
2871 | if test "x$ac_ct_CC" = x; then | |
2872 | CC="" | |
2873 | else | |
2874 | case $cross_compiling:$ac_tool_warned in | |
2875 | yes:) | |
2876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2878 | ac_tool_warned=yes ;; | |
2a6346c4 | 2879 | esac |
c915a581 JJ |
2880 | CC=$ac_ct_CC |
2881 | fi | |
2882 | else | |
2883 | CC="$ac_cv_prog_CC" | |
2884 | fi | |
2a6346c4 | 2885 | |
c915a581 JJ |
2886 | if test -z "$CC"; then |
2887 | if test -n "$ac_tool_prefix"; then | |
2888 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2889 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2891 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2892 | if ${ac_cv_prog_CC+:} false; then : |
2a6346c4 L |
2893 | $as_echo_n "(cached) " >&6 |
2894 | else | |
c915a581 JJ |
2895 | if test -n "$CC"; then |
2896 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2a6346c4 | 2897 | else |
c915a581 JJ |
2898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2899 | for as_dir in $PATH | |
2900 | do | |
2901 | IFS=$as_save_IFS | |
2902 | test -z "$as_dir" && as_dir=. | |
2903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2904 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
2905 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2907 | break 2 | |
2908 | fi | |
2909 | done | |
2910 | done | |
2911 | IFS=$as_save_IFS | |
2a6346c4 L |
2912 | |
2913 | fi | |
c915a581 JJ |
2914 | fi |
2915 | CC=$ac_cv_prog_CC | |
2916 | if test -n "$CC"; then | |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2918 | $as_echo "$CC" >&6; } | |
2919 | else | |
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2921 | $as_echo "no" >&6; } | |
2922 | fi | |
e1e953d9 | 2923 | |
d10a2df2 | 2924 | |
c915a581 JJ |
2925 | fi |
2926 | fi | |
2927 | if test -z "$CC"; then | |
2928 | # Extract the first word of "cc", so it can be a program name with args. | |
2929 | set dummy cc; ac_word=$2 | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2931 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2932 | if ${ac_cv_prog_CC+:} false; then : |
c915a581 JJ |
2933 | $as_echo_n "(cached) " >&6 |
2934 | else | |
2935 | if test -n "$CC"; then | |
2936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2937 | else | |
2938 | ac_prog_rejected=no | |
2939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2940 | for as_dir in $PATH | |
2941 | do | |
2942 | IFS=$as_save_IFS | |
2943 | test -z "$as_dir" && as_dir=. | |
2944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
2946 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2947 | ac_prog_rejected=yes | |
2948 | continue | |
2949 | fi | |
2950 | ac_cv_prog_CC="cc" | |
2951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2952 | break 2 | |
2953 | fi | |
2954 | done | |
2955 | done | |
2956 | IFS=$as_save_IFS | |
d10a2df2 | 2957 | |
c915a581 JJ |
2958 | if test $ac_prog_rejected = yes; then |
2959 | # We found a bogon in the path, so make sure we never use it. | |
2960 | set dummy $ac_cv_prog_CC | |
2961 | shift | |
2962 | if test $# != 0; then | |
2963 | # We chose a different compiler from the bogus one. | |
2964 | # However, it has the same basename, so the bogon will be chosen | |
2965 | # first if we set CC to just the basename; use the full file name. | |
2966 | shift | |
2967 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2968 | fi | |
2969 | fi | |
2970 | fi | |
2971 | fi | |
2972 | CC=$ac_cv_prog_CC | |
2973 | if test -n "$CC"; then | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2975 | $as_echo "$CC" >&6; } | |
2976 | else | |
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2978 | $as_echo "no" >&6; } | |
2979 | fi | |
2a6346c4 | 2980 | |
2a6346c4 | 2981 | |
c915a581 JJ |
2982 | fi |
2983 | if test -z "$CC"; then | |
2984 | if test -n "$ac_tool_prefix"; then | |
2985 | for ac_prog in cl.exe | |
2986 | do | |
2987 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2988 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2990 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2991 | if ${ac_cv_prog_CC+:} false; then : |
f35db108 WM |
2992 | $as_echo_n "(cached) " >&6 |
2993 | else | |
c915a581 JJ |
2994 | if test -n "$CC"; then |
2995 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2996 | else | |
2997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
f35db108 WM |
2998 | for as_dir in $PATH |
2999 | do | |
3000 | IFS=$as_save_IFS | |
3001 | test -z "$as_dir" && as_dir=. | |
c915a581 | 3002 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3003 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
3004 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3006 | break 2 | |
3007 | fi | |
3008 | done | |
f35db108 WM |
3009 | done |
3010 | IFS=$as_save_IFS | |
3011 | ||
f35db108 | 3012 | fi |
f35db108 | 3013 | fi |
c915a581 JJ |
3014 | CC=$ac_cv_prog_CC |
3015 | if test -n "$CC"; then | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3017 | $as_echo "$CC" >&6; } | |
f35db108 | 3018 | else |
c915a581 JJ |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3020 | $as_echo "no" >&6; } | |
f35db108 | 3021 | fi |
f35db108 | 3022 | |
f35db108 | 3023 | |
c915a581 JJ |
3024 | test -n "$CC" && break |
3025 | done | |
f35db108 | 3026 | fi |
c915a581 JJ |
3027 | if test -z "$CC"; then |
3028 | ac_ct_CC=$CC | |
3029 | for ac_prog in cl.exe | |
3030 | do | |
3031 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3032 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3034 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3035 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
f35db108 WM |
3036 | $as_echo_n "(cached) " >&6 |
3037 | else | |
c915a581 JJ |
3038 | if test -n "$ac_ct_CC"; then |
3039 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f35db108 WM |
3040 | else |
3041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3042 | for as_dir in $PATH | |
3043 | do | |
3044 | IFS=$as_save_IFS | |
3045 | test -z "$as_dir" && as_dir=. | |
3046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3047 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 3048 | ac_cv_prog_ac_ct_CC="$ac_prog" |
f35db108 WM |
3049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3050 | break 2 | |
3051 | fi | |
3052 | done | |
3053 | done | |
3054 | IFS=$as_save_IFS | |
3055 | ||
3056 | fi | |
3057 | fi | |
c915a581 JJ |
3058 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3059 | if test -n "$ac_ct_CC"; then | |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3061 | $as_echo "$ac_ct_CC" >&6; } | |
f35db108 WM |
3062 | else |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3064 | $as_echo "no" >&6; } | |
3065 | fi | |
3066 | ||
3067 | ||
c915a581 | 3068 | test -n "$ac_ct_CC" && break |
f35db108 | 3069 | done |
f35db108 | 3070 | |
c915a581 JJ |
3071 | if test "x$ac_ct_CC" = x; then |
3072 | CC="" | |
f35db108 WM |
3073 | else |
3074 | case $cross_compiling:$ac_tool_warned in | |
3075 | yes:) | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3078 | ac_tool_warned=yes ;; | |
3079 | esac | |
c915a581 | 3080 | CC=$ac_ct_CC |
f35db108 | 3081 | fi |
f35db108 WM |
3082 | fi |
3083 | ||
3084 | fi | |
f35db108 | 3085 | |
f35db108 | 3086 | |
c915a581 JJ |
3087 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3088 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3089 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3090 | See \`config.log' for more details" "$LINENO" 5; } | |
f35db108 | 3091 | |
c915a581 JJ |
3092 | # Provide some information about the compiler. |
3093 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3094 | set X $ac_compile | |
3095 | ac_compiler=$2 | |
3096 | for ac_option in --version -v -V -qversion; do | |
3097 | { { ac_try="$ac_compiler $ac_option >&5" | |
3098 | case "(($ac_try" in | |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
3101 | esac | |
3102 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3103 | $as_echo "$ac_try_echo"; } >&5 | |
3104 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3105 | ac_status=$? | |
3106 | if test -s conftest.err; then | |
3107 | sed '10a\ | |
3108 | ... rest of stderr output deleted ... | |
3109 | 10q' conftest.err >conftest.er1 | |
3110 | cat conftest.er1 >&5 | |
f35db108 | 3111 | fi |
22e05272 | 3112 | rm -f conftest.er1 conftest.err |
c915a581 JJ |
3113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3114 | test $ac_status = 0; } | |
3115 | done | |
f35db108 | 3116 | |
c915a581 JJ |
3117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3118 | /* end confdefs.h. */ | |
f35db108 | 3119 | |
c915a581 JJ |
3120 | int |
3121 | main () | |
3122 | { | |
f35db108 | 3123 | |
c915a581 JJ |
3124 | ; |
3125 | return 0; | |
3126 | } | |
3127 | _ACEOF | |
3128 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3129 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
c915a581 JJ |
3130 | # Try to create an executable without -o first, disregard a.out. |
3131 | # It will help us diagnose broken compilers, and finding out an intuition | |
3132 | # of exeext. | |
22e05272 JM |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3134 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c915a581 | 3135 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
f35db108 | 3136 | |
c915a581 JJ |
3137 | # The possible output files: |
3138 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
f35db108 | 3139 | |
c915a581 JJ |
3140 | ac_rmfiles= |
3141 | for ac_file in $ac_files | |
3142 | do | |
3143 | case $ac_file in | |
3144 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3145 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3146 | esac | |
f35db108 | 3147 | done |
c915a581 | 3148 | rm -f $ac_rmfiles |
f35db108 | 3149 | |
c915a581 JJ |
3150 | if { { ac_try="$ac_link_default" |
3151 | case "(($ac_try" in | |
3152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3153 | *) ac_try_echo=$ac_try;; | |
f35db108 | 3154 | esac |
c915a581 JJ |
3155 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3156 | $as_echo "$ac_try_echo"; } >&5 | |
3157 | (eval "$ac_link_default") 2>&5 | |
3158 | ac_status=$? | |
3159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3160 | test $ac_status = 0; }; then : | |
3161 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3162 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3163 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3164 | # so that the user can short-circuit this test for compilers unknown to | |
3165 | # Autoconf. | |
3166 | for ac_file in $ac_files '' | |
3167 | do | |
3168 | test -f "$ac_file" || continue | |
3169 | case $ac_file in | |
3170 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3171 | ;; | |
3172 | [ab].out ) | |
3173 | # We found the default executable, but exeext='' is most | |
3174 | # certainly right. | |
3175 | break;; | |
3176 | *.* ) | |
3177 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3178 | then :; else | |
3179 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3180 | fi | |
3181 | # We set ac_cv_exeext here because the later test for it is not | |
3182 | # safe: cross compilers may not add the suffix if given an `-o' | |
3183 | # argument, so we may need to know it at that point already. | |
3184 | # Even if this section looks crufty: it has the advantage of | |
3185 | # actually working. | |
3186 | break;; | |
3187 | * ) | |
3188 | break;; | |
3189 | esac | |
3190 | done | |
3191 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
f35db108 | 3192 | |
f35db108 | 3193 | else |
c915a581 | 3194 | ac_file='' |
f35db108 | 3195 | fi |
c915a581 | 3196 | if test -z "$ac_file"; then : |
22e05272 JM |
3197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3198 | $as_echo "no" >&6; } | |
3199 | $as_echo "$as_me: failed program was:" >&5 | |
c915a581 | 3200 | sed 's/^/| /' conftest.$ac_ext >&5 |
f35db108 | 3201 | |
c915a581 JJ |
3202 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3203 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3204 | as_fn_error 77 "C compiler cannot create executables |
3205 | See \`config.log' for more details" "$LINENO" 5; } | |
3206 | else | |
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3208 | $as_echo "yes" >&6; } | |
f35db108 | 3209 | fi |
22e05272 JM |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3211 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3213 | $as_echo "$ac_file" >&6; } | |
c915a581 | 3214 | ac_exeext=$ac_cv_exeext |
f35db108 | 3215 | |
22e05272 | 3216 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
c915a581 | 3217 | ac_clean_files=$ac_clean_files_save |
c915a581 JJ |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3219 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3220 | if { { ac_try="$ac_link" | |
3221 | case "(($ac_try" in | |
3222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3223 | *) ac_try_echo=$ac_try;; | |
3224 | esac | |
3225 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3226 | $as_echo "$ac_try_echo"; } >&5 | |
3227 | (eval "$ac_link") 2>&5 | |
3228 | ac_status=$? | |
3229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3230 | test $ac_status = 0; }; then : | |
3231 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3232 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3233 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3234 | # `rm'. | |
3235 | for ac_file in conftest.exe conftest conftest.*; do | |
3236 | test -f "$ac_file" || continue | |
3237 | case $ac_file in | |
3238 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3239 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3240 | break;; | |
3241 | * ) break;; | |
3242 | esac | |
3243 | done | |
3244 | else | |
3245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3247 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3248 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 | 3249 | fi |
22e05272 | 3250 | rm -f conftest conftest$ac_cv_exeext |
c915a581 JJ |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3252 | $as_echo "$ac_cv_exeext" >&6; } | |
f35db108 | 3253 | |
c915a581 JJ |
3254 | rm -f conftest.$ac_ext |
3255 | EXEEXT=$ac_cv_exeext | |
3256 | ac_exeext=$EXEEXT | |
22e05272 JM |
3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3258 | /* end confdefs.h. */ | |
3259 | #include <stdio.h> | |
3260 | int | |
3261 | main () | |
3262 | { | |
3263 | FILE *f = fopen ("conftest.out", "w"); | |
3264 | return ferror (f) || fclose (f) != 0; | |
3265 | ||
3266 | ; | |
3267 | return 0; | |
3268 | } | |
3269 | _ACEOF | |
3270 | ac_clean_files="$ac_clean_files conftest.out" | |
3271 | # Check that the compiler produces executables we can run. If not, either | |
3272 | # the compiler is broken, or we cross compile. | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3274 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3275 | if test "$cross_compiling" != yes; then | |
3276 | { { ac_try="$ac_link" | |
3277 | case "(($ac_try" in | |
3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3279 | *) ac_try_echo=$ac_try;; | |
3280 | esac | |
3281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3282 | $as_echo "$ac_try_echo"; } >&5 | |
3283 | (eval "$ac_link") 2>&5 | |
3284 | ac_status=$? | |
3285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3286 | test $ac_status = 0; } | |
3287 | if { ac_try='./conftest$ac_cv_exeext' | |
3288 | { { case "(($ac_try" in | |
3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3290 | *) ac_try_echo=$ac_try;; | |
3291 | esac | |
3292 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3293 | $as_echo "$ac_try_echo"; } >&5 | |
3294 | (eval "$ac_try") 2>&5 | |
3295 | ac_status=$? | |
3296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3297 | test $ac_status = 0; }; }; then | |
3298 | cross_compiling=no | |
3299 | else | |
3300 | if test "$cross_compiling" = maybe; then | |
3301 | cross_compiling=yes | |
3302 | else | |
3303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3305 | as_fn_error $? "cannot run C compiled programs. | |
3306 | If you meant to cross compile, use \`--host'. | |
3307 | See \`config.log' for more details" "$LINENO" 5; } | |
3308 | fi | |
3309 | fi | |
3310 | fi | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3312 | $as_echo "$cross_compiling" >&6; } | |
3313 | ||
3314 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3315 | ac_clean_files=$ac_clean_files_save | |
c915a581 JJ |
3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3317 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3318 | if ${ac_cv_objext+:} false; then : |
c915a581 JJ |
3319 | $as_echo_n "(cached) " >&6 |
3320 | else | |
3321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3322 | /* end confdefs.h. */ | |
f35db108 | 3323 | |
c915a581 JJ |
3324 | int |
3325 | main () | |
3326 | { | |
f35db108 | 3327 | |
c915a581 JJ |
3328 | ; |
3329 | return 0; | |
3330 | } | |
3331 | _ACEOF | |
3332 | rm -f conftest.o conftest.obj | |
3333 | if { { ac_try="$ac_compile" | |
3334 | case "(($ac_try" in | |
3335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3336 | *) ac_try_echo=$ac_try;; | |
3337 | esac | |
3338 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3339 | $as_echo "$ac_try_echo"; } >&5 | |
3340 | (eval "$ac_compile") 2>&5 | |
3341 | ac_status=$? | |
3342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3343 | test $ac_status = 0; }; then : | |
3344 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3345 | test -f "$ac_file" || continue; | |
3346 | case $ac_file in | |
3347 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3348 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3349 | break;; | |
3350 | esac | |
3351 | done | |
2a6346c4 | 3352 | else |
c915a581 JJ |
3353 | $as_echo "$as_me: failed program was:" >&5 |
3354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2a6346c4 | 3355 | |
c915a581 JJ |
3356 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3358 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3359 | See \`config.log' for more details" "$LINENO" 5; } | |
2a6346c4 | 3360 | fi |
c915a581 | 3361 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2a6346c4 | 3362 | fi |
c915a581 JJ |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3364 | $as_echo "$ac_cv_objext" >&6; } | |
3365 | OBJEXT=$ac_cv_objext | |
3366 | ac_objext=$OBJEXT | |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3368 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3369 | if ${ac_cv_c_compiler_gnu+:} false; then : |
c915a581 JJ |
3370 | $as_echo_n "(cached) " >&6 |
3371 | else | |
3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 | /* end confdefs.h. */ | |
2a6346c4 | 3374 | |
c915a581 JJ |
3375 | int |
3376 | main () | |
3377 | { | |
3378 | #ifndef __GNUC__ | |
3379 | choke me | |
3380 | #endif | |
2a6346c4 | 3381 | |
c915a581 JJ |
3382 | ; |
3383 | return 0; | |
3384 | } | |
3385 | _ACEOF | |
3386 | if ac_fn_c_try_compile "$LINENO"; then : | |
3387 | ac_compiler_gnu=yes | |
2b723e21 | 3388 | else |
c915a581 | 3389 | ac_compiler_gnu=no |
2b723e21 | 3390 | fi |
c915a581 JJ |
3391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3392 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2b723e21 | 3393 | |
c915a581 JJ |
3394 | fi |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3396 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3397 | if test $ac_compiler_gnu = yes; then | |
3398 | GCC=yes | |
2b723e21 | 3399 | else |
c915a581 | 3400 | GCC= |
2b723e21 | 3401 | fi |
c915a581 JJ |
3402 | ac_test_CFLAGS=${CFLAGS+set} |
3403 | ac_save_CFLAGS=$CFLAGS | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3405 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3406 | if ${ac_cv_prog_cc_g+:} false; then : |
c915a581 JJ |
3407 | $as_echo_n "(cached) " >&6 |
3408 | else | |
3409 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3410 | ac_c_werror_flag=yes | |
3411 | ac_cv_prog_cc_g=no | |
3412 | CFLAGS="-g" | |
3413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3414 | /* end confdefs.h. */ | |
2b723e21 | 3415 | |
c915a581 JJ |
3416 | int |
3417 | main () | |
3418 | { | |
2b723e21 | 3419 | |
c915a581 JJ |
3420 | ; |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | if ac_fn_c_try_compile "$LINENO"; then : | |
3425 | ac_cv_prog_cc_g=yes | |
3426 | else | |
3427 | CFLAGS="" | |
3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3429 | /* end confdefs.h. */ | |
2a6346c4 | 3430 | |
c915a581 JJ |
3431 | int |
3432 | main () | |
3433 | { | |
2a6346c4 | 3434 | |
c915a581 JJ |
3435 | ; |
3436 | return 0; | |
3437 | } | |
3438 | _ACEOF | |
3439 | if ac_fn_c_try_compile "$LINENO"; then : | |
f35db108 | 3440 | |
f35db108 | 3441 | else |
c915a581 JJ |
3442 | ac_c_werror_flag=$ac_save_c_werror_flag |
3443 | CFLAGS="-g" | |
3444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3445 | /* end confdefs.h. */ | |
3446 | ||
3447 | int | |
3448 | main () | |
3449 | { | |
f35db108 | 3450 | |
c915a581 JJ |
3451 | ; |
3452 | return 0; | |
3453 | } | |
3454 | _ACEOF | |
3455 | if ac_fn_c_try_compile "$LINENO"; then : | |
3456 | ac_cv_prog_cc_g=yes | |
f35db108 | 3457 | fi |
c915a581 | 3458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 3459 | fi |
c915a581 | 3460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 3461 | fi |
c915a581 JJ |
3462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3463 | ac_c_werror_flag=$ac_save_c_werror_flag | |
f35db108 | 3464 | fi |
c915a581 JJ |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3466 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3467 | if test "$ac_test_CFLAGS" = set; then | |
3468 | CFLAGS=$ac_save_CFLAGS | |
3469 | elif test $ac_cv_prog_cc_g = yes; then | |
3470 | if test "$GCC" = yes; then | |
3471 | CFLAGS="-g -O2" | |
3472 | else | |
3473 | CFLAGS="-g" | |
f35db108 | 3474 | fi |
f35db108 | 3475 | else |
c915a581 JJ |
3476 | if test "$GCC" = yes; then |
3477 | CFLAGS="-O2" | |
f35db108 | 3478 | else |
c915a581 | 3479 | CFLAGS= |
f35db108 | 3480 | fi |
f35db108 | 3481 | fi |
c915a581 JJ |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3483 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3484 | if ${ac_cv_prog_cc_c89+:} false; then : |
f35db108 WM |
3485 | $as_echo_n "(cached) " >&6 |
3486 | else | |
c915a581 JJ |
3487 | ac_cv_prog_cc_c89=no |
3488 | ac_save_CC=$CC | |
3489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3490 | /* end confdefs.h. */ | |
3491 | #include <stdarg.h> | |
3492 | #include <stdio.h> | |
22e05272 | 3493 | struct stat; |
c915a581 JJ |
3494 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3495 | struct buf { int x; }; | |
3496 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3497 | static char *e (p, i) | |
3498 | char **p; | |
3499 | int i; | |
3500 | { | |
3501 | return p[i]; | |
3502 | } | |
3503 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3504 | { | |
3505 | char *s; | |
3506 | va_list v; | |
3507 | va_start (v,p); | |
3508 | s = g (p, va_arg (v,int)); | |
3509 | va_end (v); | |
3510 | return s; | |
3511 | } | |
f35db108 | 3512 | |
c915a581 JJ |
3513 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3514 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3515 | These don't provoke an error unfortunately, instead are silently treated | |
3516 | as 'x'. The following induces an error, until -std is added to get | |
3517 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3518 | array size at least. It's necessary to write '\x00'==0 to get something | |
3519 | that's true only with -std. */ | |
3520 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
f35db108 | 3521 | |
c915a581 JJ |
3522 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3523 | inside strings and character constants. */ | |
3524 | #define FOO(x) 'x' | |
3525 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
f35db108 | 3526 | |
c915a581 JJ |
3527 | int test (int i, double x); |
3528 | struct s1 {int (*f) (int a);}; | |
3529 | struct s2 {int (*f) (double a);}; | |
3530 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3531 | int argc; | |
3532 | char **argv; | |
3533 | int | |
3534 | main () | |
3535 | { | |
3536 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3537 | ; | |
3538 | return 0; | |
3539 | } | |
3540 | _ACEOF | |
3541 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3542 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
f35db108 | 3543 | do |
c915a581 JJ |
3544 | CC="$ac_save_CC $ac_arg" |
3545 | if ac_fn_c_try_compile "$LINENO"; then : | |
3546 | ac_cv_prog_cc_c89=$ac_arg | |
3547 | fi | |
3548 | rm -f core conftest.err conftest.$ac_objext | |
3549 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
f35db108 | 3550 | done |
c915a581 JJ |
3551 | rm -f conftest.$ac_ext |
3552 | CC=$ac_save_CC | |
f35db108 | 3553 | |
f35db108 | 3554 | fi |
c915a581 JJ |
3555 | # AC_CACHE_VAL |
3556 | case "x$ac_cv_prog_cc_c89" in | |
3557 | x) | |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3559 | $as_echo "none needed" >&6; } ;; | |
3560 | xno) | |
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3562 | $as_echo "unsupported" >&6; } ;; | |
3563 | *) | |
3564 | CC="$CC $ac_cv_prog_cc_c89" | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3566 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3567 | esac | |
3568 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3569 | ||
f35db108 WM |
3570 | fi |
3571 | ||
c915a581 JJ |
3572 | ac_ext=c |
3573 | ac_cpp='$CPP $CPPFLAGS' | |
3574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3577 | ||
22e05272 JM |
3578 | ac_ext=c |
3579 | ac_cpp='$CPP $CPPFLAGS' | |
3580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3584 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3585 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3586 | $as_echo_n "(cached) " >&6 | |
3587 | else | |
3588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3589 | /* end confdefs.h. */ | |
3590 | ||
3591 | int | |
3592 | main () | |
3593 | { | |
3594 | ||
3595 | ; | |
3596 | return 0; | |
3597 | } | |
3598 | _ACEOF | |
3599 | # Make sure it works both with $CC and with simple cc. | |
3600 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3601 | # compilers refuse to overwrite an existing .o file with -o, | |
3602 | # though they will create one. | |
3603 | am_cv_prog_cc_c_o=yes | |
3604 | for am_i in 1 2; do | |
3605 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3606 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3607 | ac_status=$? | |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3609 | (exit $ac_status); } \ | |
3610 | && test -f conftest2.$ac_objext; then | |
3611 | : OK | |
3612 | else | |
3613 | am_cv_prog_cc_c_o=no | |
3614 | break | |
3615 | fi | |
3616 | done | |
3617 | rm -f core conftest* | |
3618 | unset am_i | |
3619 | fi | |
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3621 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3622 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3623 | # Losing compiler, so override with the script. | |
3624 | # FIXME: It is wrong to rewrite CC. | |
3625 | # But if we don't then we get into trouble of one sort or another. | |
3626 | # A longer-term fix would be to have automake use am__CC in this case, | |
3627 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3628 | CC="$am_aux_dir/compile $CC" | |
3629 | fi | |
3630 | ac_ext=c | |
3631 | ac_cpp='$CPP $CPPFLAGS' | |
3632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3635 | ||
3636 | ||
f35db108 | 3637 | |
c915a581 JJ |
3638 | ac_ext=c |
3639 | ac_cpp='$CPP $CPPFLAGS' | |
3640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3644 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3645 | # On Suns, sometimes $CPP names a directory. | |
3646 | if test -n "$CPP" && test -d "$CPP"; then | |
3647 | CPP= | |
f35db108 | 3648 | fi |
c915a581 | 3649 | if test -z "$CPP"; then |
22e05272 | 3650 | if ${ac_cv_prog_CPP+:} false; then : |
f35db108 WM |
3651 | $as_echo_n "(cached) " >&6 |
3652 | else | |
c915a581 JJ |
3653 | # Double quotes because CPP needs to be expanded |
3654 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3655 | do | |
3656 | ac_preproc_ok=false | |
3657 | for ac_c_preproc_warn_flag in '' yes | |
f35db108 | 3658 | do |
c915a581 JJ |
3659 | # Use a header file that comes with gcc, so configuring glibc |
3660 | # with a fresh cross-compiler works. | |
3661 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3662 | # <limits.h> exists even on freestanding compilers. | |
3663 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3664 | # not just through cpp. "Syntax error" is here to catch this case. | |
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3666 | /* end confdefs.h. */ | |
3667 | #ifdef __STDC__ | |
3668 | # include <limits.h> | |
3669 | #else | |
3670 | # include <assert.h> | |
3671 | #endif | |
3672 | Syntax error | |
3673 | _ACEOF | |
3674 | if ac_fn_c_try_cpp "$LINENO"; then : | |
f35db108 | 3675 | |
c915a581 JJ |
3676 | else |
3677 | # Broken: fails on valid input. | |
3678 | continue | |
f35db108 | 3679 | fi |
22e05272 | 3680 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
3681 | |
3682 | # OK, works on sane cases. Now check whether nonexistent headers | |
3683 | # can be detected and how. | |
3684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3685 | /* end confdefs.h. */ | |
3686 | #include <ac_nonexistent.h> | |
3687 | _ACEOF | |
3688 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3689 | # Broken: success on invalid input. | |
3690 | continue | |
f35db108 | 3691 | else |
c915a581 JJ |
3692 | # Passes both tests. |
3693 | ac_preproc_ok=: | |
3694 | break | |
3695 | fi | |
22e05272 | 3696 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
3697 | |
3698 | done | |
3699 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3700 | rm -f conftest.i conftest.err conftest.$ac_ext |
c915a581 JJ |
3701 | if $ac_preproc_ok; then : |
3702 | break | |
f35db108 WM |
3703 | fi |
3704 | ||
c915a581 JJ |
3705 | done |
3706 | ac_cv_prog_CPP=$CPP | |
f35db108 | 3707 | |
f35db108 | 3708 | fi |
c915a581 | 3709 | CPP=$ac_cv_prog_CPP |
f35db108 | 3710 | else |
c915a581 JJ |
3711 | ac_cv_prog_CPP=$CPP |
3712 | fi | |
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3714 | $as_echo "$CPP" >&6; } | |
3715 | ac_preproc_ok=false | |
3716 | for ac_c_preproc_warn_flag in '' yes | |
f35db108 | 3717 | do |
c915a581 JJ |
3718 | # Use a header file that comes with gcc, so configuring glibc |
3719 | # with a fresh cross-compiler works. | |
3720 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3721 | # <limits.h> exists even on freestanding compilers. | |
3722 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3723 | # not just through cpp. "Syntax error" is here to catch this case. | |
3724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3725 | /* end confdefs.h. */ | |
3726 | #ifdef __STDC__ | |
3727 | # include <limits.h> | |
3728 | #else | |
3729 | # include <assert.h> | |
3730 | #endif | |
3731 | Syntax error | |
3732 | _ACEOF | |
3733 | if ac_fn_c_try_cpp "$LINENO"; then : | |
f35db108 | 3734 | |
c915a581 JJ |
3735 | else |
3736 | # Broken: fails on valid input. | |
3737 | continue | |
f35db108 | 3738 | fi |
22e05272 | 3739 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
3740 | |
3741 | # OK, works on sane cases. Now check whether nonexistent headers | |
3742 | # can be detected and how. | |
3743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3744 | /* end confdefs.h. */ | |
3745 | #include <ac_nonexistent.h> | |
3746 | _ACEOF | |
3747 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3748 | # Broken: success on invalid input. | |
3749 | continue | |
3750 | else | |
3751 | # Passes both tests. | |
3752 | ac_preproc_ok=: | |
3753 | break | |
f35db108 | 3754 | fi |
22e05272 | 3755 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
3756 | |
3757 | done | |
3758 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3759 | rm -f conftest.i conftest.err conftest.$ac_ext |
c915a581 JJ |
3760 | if $ac_preproc_ok; then : |
3761 | ||
f35db108 | 3762 | else |
c915a581 JJ |
3763 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3764 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3765 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3766 | See \`config.log' for more details" "$LINENO" 5; } | |
f35db108 WM |
3767 | fi |
3768 | ||
c915a581 JJ |
3769 | ac_ext=c |
3770 | ac_cpp='$CPP $CPPFLAGS' | |
3771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 3774 | |
f35db108 | 3775 | |
c915a581 JJ |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3777 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 3778 | if ${ac_cv_path_GREP+:} false; then : |
c915a581 JJ |
3779 | $as_echo_n "(cached) " >&6 |
3780 | else | |
3781 | if test -z "$GREP"; then | |
3782 | ac_path_GREP_found=false | |
3783 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3785 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3786 | do | |
3787 | IFS=$as_save_IFS | |
3788 | test -z "$as_dir" && as_dir=. | |
3789 | for ac_prog in grep ggrep; do | |
3790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3791 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3792 | as_fn_executable_p "$ac_path_GREP" || continue |
c915a581 JJ |
3793 | # Check for GNU ac_path_GREP and select it if it is found. |
3794 | # Check for GNU $ac_path_GREP | |
3795 | case `"$ac_path_GREP" --version 2>&1` in | |
3796 | *GNU*) | |
3797 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3798 | *) | |
3799 | ac_count=0 | |
3800 | $as_echo_n 0123456789 >"conftest.in" | |
3801 | while : | |
3802 | do | |
3803 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3804 | mv "conftest.tmp" "conftest.in" | |
3805 | cp "conftest.in" "conftest.nl" | |
3806 | $as_echo 'GREP' >> "conftest.nl" | |
3807 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3808 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3809 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3810 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3811 | # Best one so far, save it but keep looking for a better one | |
3812 | ac_cv_path_GREP="$ac_path_GREP" | |
3813 | ac_path_GREP_max=$ac_count | |
3814 | fi | |
3815 | # 10*(2^10) chars as input seems more than enough | |
3816 | test $ac_count -gt 10 && break | |
3817 | done | |
3818 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
f35db108 | 3819 | esac |
c915a581 JJ |
3820 | |
3821 | $ac_path_GREP_found && break 3 | |
3822 | done | |
3823 | done | |
3824 | done | |
3825 | IFS=$as_save_IFS | |
3826 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 3827 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
f35db108 | 3828 | fi |
c915a581 JJ |
3829 | else |
3830 | ac_cv_path_GREP=$GREP | |
f35db108 WM |
3831 | fi |
3832 | ||
3833 | fi | |
c915a581 JJ |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3835 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3836 | GREP="$ac_cv_path_GREP" | |
f35db108 WM |
3837 | |
3838 | ||
c915a581 JJ |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3840 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 3841 | if ${ac_cv_path_EGREP+:} false; then : |
c915a581 JJ |
3842 | $as_echo_n "(cached) " >&6 |
3843 | else | |
3844 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3845 | then ac_cv_path_EGREP="$GREP -E" | |
3846 | else | |
3847 | if test -z "$EGREP"; then | |
3848 | ac_path_EGREP_found=false | |
3849 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3851 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
f35db108 | 3852 | do |
c915a581 JJ |
3853 | IFS=$as_save_IFS |
3854 | test -z "$as_dir" && as_dir=. | |
3855 | for ac_prog in egrep; do | |
3856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3857 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3858 | as_fn_executable_p "$ac_path_EGREP" || continue |
c915a581 JJ |
3859 | # Check for GNU ac_path_EGREP and select it if it is found. |
3860 | # Check for GNU $ac_path_EGREP | |
3861 | case `"$ac_path_EGREP" --version 2>&1` in | |
3862 | *GNU*) | |
3863 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3864 | *) | |
3865 | ac_count=0 | |
3866 | $as_echo_n 0123456789 >"conftest.in" | |
3867 | while : | |
3868 | do | |
3869 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3870 | mv "conftest.tmp" "conftest.in" | |
3871 | cp "conftest.in" "conftest.nl" | |
3872 | $as_echo 'EGREP' >> "conftest.nl" | |
3873 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3874 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3875 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3876 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3877 | # Best one so far, save it but keep looking for a better one | |
3878 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3879 | ac_path_EGREP_max=$ac_count | |
3880 | fi | |
3881 | # 10*(2^10) chars as input seems more than enough | |
3882 | test $ac_count -gt 10 && break | |
3883 | done | |
3884 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
f35db108 | 3885 | esac |
f35db108 | 3886 | |
c915a581 JJ |
3887 | $ac_path_EGREP_found && break 3 |
3888 | done | |
3889 | done | |
3890 | done | |
3891 | IFS=$as_save_IFS | |
3892 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 3893 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
c915a581 | 3894 | fi |
f35db108 | 3895 | else |
c915a581 | 3896 | ac_cv_path_EGREP=$EGREP |
f35db108 | 3897 | fi |
f35db108 | 3898 | |
c915a581 | 3899 | fi |
a2479b3d | 3900 | fi |
c915a581 JJ |
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3902 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3903 | EGREP="$ac_cv_path_EGREP" | |
a2479b3d | 3904 | |
f35db108 | 3905 | |
c915a581 JJ |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3907 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 3908 | if ${ac_cv_header_stdc+:} false; then : |
f35db108 WM |
3909 | $as_echo_n "(cached) " >&6 |
3910 | else | |
3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3912 | /* end confdefs.h. */ | |
c915a581 JJ |
3913 | #include <stdlib.h> |
3914 | #include <stdarg.h> | |
3915 | #include <string.h> | |
3916 | #include <float.h> | |
f35db108 WM |
3917 | |
3918 | int | |
3919 | main () | |
3920 | { | |
3921 | ||
3922 | ; | |
3923 | return 0; | |
3924 | } | |
3925 | _ACEOF | |
c915a581 JJ |
3926 | if ac_fn_c_try_compile "$LINENO"; then : |
3927 | ac_cv_header_stdc=yes | |
f35db108 | 3928 | else |
c915a581 | 3929 | ac_cv_header_stdc=no |
f35db108 | 3930 | fi |
c915a581 JJ |
3931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3932 | ||
3933 | if test $ac_cv_header_stdc = yes; then | |
3934 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
f35db108 WM |
3935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3936 | /* end confdefs.h. */ | |
c915a581 | 3937 | #include <string.h> |
f35db108 | 3938 | |
f35db108 | 3939 | _ACEOF |
c915a581 JJ |
3940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3941 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3942 | ||
f35db108 | 3943 | else |
c915a581 | 3944 | ac_cv_header_stdc=no |
f35db108 | 3945 | fi |
c915a581 | 3946 | rm -f conftest* |
f35db108 WM |
3947 | |
3948 | fi | |
c915a581 JJ |
3949 | |
3950 | if test $ac_cv_header_stdc = yes; then | |
3951 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3953 | /* end confdefs.h. */ | |
3954 | #include <stdlib.h> | |
3955 | ||
3956 | _ACEOF | |
3957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3958 | $EGREP "free" >/dev/null 2>&1; then : | |
3959 | ||
f35db108 | 3960 | else |
c915a581 | 3961 | ac_cv_header_stdc=no |
f35db108 | 3962 | fi |
c915a581 | 3963 | rm -f conftest* |
f35db108 | 3964 | |
c915a581 | 3965 | fi |
f35db108 | 3966 | |
c915a581 JJ |
3967 | if test $ac_cv_header_stdc = yes; then |
3968 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3969 | if test "$cross_compiling" = yes; then : | |
3970 | : | |
f35db108 | 3971 | else |
c915a581 | 3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f35db108 | 3973 | /* end confdefs.h. */ |
c915a581 JJ |
3974 | #include <ctype.h> |
3975 | #include <stdlib.h> | |
3976 | #if ((' ' & 0x0FF) == 0x020) | |
3977 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3978 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3979 | #else | |
3980 | # define ISLOWER(c) \ | |
3981 | (('a' <= (c) && (c) <= 'i') \ | |
3982 | || ('j' <= (c) && (c) <= 'r') \ | |
3983 | || ('s' <= (c) && (c) <= 'z')) | |
3984 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3985 | #endif | |
f35db108 | 3986 | |
c915a581 | 3987 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
f35db108 WM |
3988 | int |
3989 | main () | |
3990 | { | |
c915a581 JJ |
3991 | int i; |
3992 | for (i = 0; i < 256; i++) | |
3993 | if (XOR (islower (i), ISLOWER (i)) | |
3994 | || toupper (i) != TOUPPER (i)) | |
3995 | return 2; | |
f35db108 WM |
3996 | return 0; |
3997 | } | |
3998 | _ACEOF | |
c915a581 | 3999 | if ac_fn_c_try_run "$LINENO"; then : |
f35db108 WM |
4000 | |
4001 | else | |
c915a581 JJ |
4002 | ac_cv_header_stdc=no |
4003 | fi | |
4004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4005 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4006 | fi | |
f35db108 | 4007 | |
f35db108 | 4008 | fi |
f35db108 | 4009 | fi |
c915a581 JJ |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4011 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4012 | if test $ac_cv_header_stdc = yes; then | |
4013 | ||
4014 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4015 | ||
f35db108 | 4016 | fi |
c915a581 JJ |
4017 | |
4018 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4019 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4020 | inttypes.h stdint.h unistd.h | |
4021 | do : | |
4022 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4023 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4024 | " | |
22e05272 | 4025 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
c915a581 JJ |
4026 | cat >>confdefs.h <<_ACEOF |
4027 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4028 | _ACEOF | |
4029 | ||
f35db108 | 4030 | fi |
c915a581 JJ |
4031 | |
4032 | done | |
4033 | ||
4034 | ||
4035 | ||
4036 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 4037 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
c915a581 | 4038 | MINIX=yes |
f35db108 | 4039 | else |
c915a581 | 4040 | MINIX= |
f35db108 | 4041 | fi |
c915a581 JJ |
4042 | |
4043 | ||
4044 | if test "$MINIX" = yes; then | |
4045 | ||
4046 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4047 | ||
4048 | ||
4049 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4050 | ||
4051 | ||
4052 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4053 | ||
4054 | fi | |
4055 | ||
4056 | ||
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4058 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 4059 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
f35db108 WM |
4060 | $as_echo_n "(cached) " >&6 |
4061 | else | |
c915a581 | 4062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f35db108 | 4063 | /* end confdefs.h. */ |
f35db108 | 4064 | |
22e05272 JM |
4065 | # define __EXTENSIONS__ 1 |
4066 | $ac_includes_default | |
f35db108 WM |
4067 | int |
4068 | main () | |
4069 | { | |
c915a581 | 4070 | |
f35db108 WM |
4071 | ; |
4072 | return 0; | |
4073 | } | |
4074 | _ACEOF | |
c915a581 JJ |
4075 | if ac_fn_c_try_compile "$LINENO"; then : |
4076 | ac_cv_safe_to_define___extensions__=yes | |
4077 | else | |
4078 | ac_cv_safe_to_define___extensions__=no | |
f35db108 | 4079 | fi |
c915a581 | 4080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 4081 | fi |
c915a581 JJ |
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4083 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4084 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4085 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
f35db108 | 4086 | |
c915a581 | 4087 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
f35db108 | 4088 | |
c915a581 | 4089 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
f35db108 | 4090 | |
c915a581 | 4091 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
f35db108 | 4092 | |
c915a581 | 4093 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
f35db108 | 4094 | |
f35db108 | 4095 | |
f35db108 | 4096 | |
c915a581 JJ |
4097 | # Do not delete or change the following two lines. For why, see |
4098 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
c915a581 JJ |
4099 | # Make sure we can run config.sub. |
4100 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 4101 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
f35db108 | 4102 | |
c915a581 JJ |
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4104 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 4105 | if ${ac_cv_build+:} false; then : |
f35db108 WM |
4106 | $as_echo_n "(cached) " >&6 |
4107 | else | |
c915a581 JJ |
4108 | ac_build_alias=$build_alias |
4109 | test "x$ac_build_alias" = x && | |
4110 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4111 | test "x$ac_build_alias" = x && | |
22e05272 | 4112 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c915a581 | 4113 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 4114 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
f35db108 | 4115 | |
c915a581 JJ |
4116 | fi |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4118 | $as_echo "$ac_cv_build" >&6; } | |
4119 | case $ac_cv_build in | |
4120 | *-*-*) ;; | |
22e05272 | 4121 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c915a581 JJ |
4122 | esac |
4123 | build=$ac_cv_build | |
4124 | ac_save_IFS=$IFS; IFS='-' | |
4125 | set x $ac_cv_build | |
4126 | shift | |
4127 | build_cpu=$1 | |
4128 | build_vendor=$2 | |
4129 | shift; shift | |
4130 | # Remember, the first character of IFS is used to create $*, | |
4131 | # except with old shells: | |
4132 | build_os=$* | |
4133 | IFS=$ac_save_IFS | |
4134 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f35db108 | 4135 | |
f35db108 | 4136 | |
c915a581 JJ |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4138 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 4139 | if ${ac_cv_host+:} false; then : |
c915a581 | 4140 | $as_echo_n "(cached) " >&6 |
f35db108 | 4141 | else |
c915a581 JJ |
4142 | if test "x$host_alias" = x; then |
4143 | ac_cv_host=$ac_cv_build | |
4144 | else | |
4145 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 4146 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
f35db108 WM |
4147 | fi |
4148 | ||
4149 | fi | |
c915a581 JJ |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4151 | $as_echo "$ac_cv_host" >&6; } | |
4152 | case $ac_cv_host in | |
4153 | *-*-*) ;; | |
22e05272 | 4154 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c915a581 JJ |
4155 | esac |
4156 | host=$ac_cv_host | |
4157 | ac_save_IFS=$IFS; IFS='-' | |
4158 | set x $ac_cv_host | |
4159 | shift | |
4160 | host_cpu=$1 | |
4161 | host_vendor=$2 | |
4162 | shift; shift | |
4163 | # Remember, the first character of IFS is used to create $*, | |
4164 | # except with old shells: | |
4165 | host_os=$* | |
4166 | IFS=$ac_save_IFS | |
4167 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
f35db108 WM |
4168 | |
4169 | ||
c915a581 JJ |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
4171 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 4172 | if ${ac_cv_target+:} false; then : |
f35db108 WM |
4173 | $as_echo_n "(cached) " >&6 |
4174 | else | |
c915a581 JJ |
4175 | if test "x$target_alias" = x; then |
4176 | ac_cv_target=$ac_cv_host | |
f35db108 | 4177 | else |
c915a581 | 4178 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
22e05272 | 4179 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
f35db108 WM |
4180 | fi |
4181 | ||
f35db108 | 4182 | fi |
c915a581 JJ |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
4184 | $as_echo "$ac_cv_target" >&6; } | |
4185 | case $ac_cv_target in | |
4186 | *-*-*) ;; | |
22e05272 | 4187 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
c915a581 JJ |
4188 | esac |
4189 | target=$ac_cv_target | |
4190 | ac_save_IFS=$IFS; IFS='-' | |
4191 | set x $ac_cv_target | |
4192 | shift | |
4193 | target_cpu=$1 | |
4194 | target_vendor=$2 | |
4195 | shift; shift | |
4196 | # Remember, the first character of IFS is used to create $*, | |
4197 | # except with old shells: | |
4198 | target_os=$* | |
4199 | IFS=$ac_save_IFS | |
4200 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
f35db108 | 4201 | |
f35db108 | 4202 | |
c915a581 JJ |
4203 | # The aliases save the names the user supplied, while $host etc. |
4204 | # will get canonicalized. | |
4205 | test -n "$target_alias" && | |
4206 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
4207 | NONENONEs,x,x, && | |
4208 | program_prefix=${target_alias}- | |
f35db108 | 4209 | |
c915a581 | 4210 | target_alias=${target_alias-$host_alias} |
f35db108 | 4211 | |
c915a581 JJ |
4212 | case ${build_alias} in |
4213 | "") build_noncanonical=${build} ;; | |
4214 | *) build_noncanonical=${build_alias} ;; | |
f35db108 | 4215 | esac |
f35db108 | 4216 | |
c915a581 JJ |
4217 | case ${host_alias} in |
4218 | "") host_noncanonical=${build_noncanonical} ;; | |
4219 | *) host_noncanonical=${host_alias} ;; | |
f35db108 | 4220 | esac |
f35db108 | 4221 | |
c915a581 JJ |
4222 | case ${target_alias} in |
4223 | "") target_noncanonical=${host_noncanonical} ;; | |
4224 | *) target_noncanonical=${target_alias} ;; | |
4225 | esac | |
f35db108 | 4226 | |
f35db108 | 4227 | |
f35db108 | 4228 | |
f35db108 | 4229 | |
f35db108 | 4230 | |
c915a581 JJ |
4231 | LIBSTDCXX_RAW_CXX_CXXFLAGS="\ |
4232 | -I\$(top_builddir)/../libstdc++-v3/include \ | |
4233 | -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \ | |
4234 | -I\$(top_srcdir)/../libstdc++-v3/libsupc++" | |
4235 | LIBSTDCXX_RAW_CXX_LDFLAGS="\ | |
4236 | \$(top_builddir)/../libstdc++-v3/src/libstdc++.la" | |
f35db108 | 4237 | |
f35db108 | 4238 | |
f35db108 | 4239 | |
f35db108 | 4240 | |
8bc1fac7 | 4241 | am__api_version='1.15' |
f35db108 | 4242 | |
c915a581 JJ |
4243 | # Find a good install program. We prefer a C program (faster), |
4244 | # so one script is as good as another. But avoid the broken or | |
4245 | # incompatible versions: | |
4246 | # SysV /etc/install, /usr/sbin/install | |
4247 | # SunOS /usr/etc/install | |
4248 | # IRIX /sbin/install | |
4249 | # AIX /bin/install | |
4250 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4251 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4252 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4253 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4254 | # OS/2's system install, which has a completely different semantic | |
4255 | # ./install, which can be erroneously created by make from ./install.sh. | |
4256 | # Reject install programs that cannot install multiple files. | |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4258 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4259 | if test -z "$INSTALL"; then | |
22e05272 | 4260 | if ${ac_cv_path_install+:} false; then : |
f35db108 WM |
4261 | $as_echo_n "(cached) " >&6 |
4262 | else | |
c915a581 JJ |
4263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4264 | for as_dir in $PATH | |
4265 | do | |
4266 | IFS=$as_save_IFS | |
4267 | test -z "$as_dir" && as_dir=. | |
4268 | # Account for people who put trailing slashes in PATH elements. | |
4269 | case $as_dir/ in #(( | |
4270 | ./ | .// | /[cC]/* | \ | |
4271 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4272 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4273 | /usr/ucb/* ) ;; | |
4274 | *) | |
4275 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4276 | # Don't use installbsd from OSF since it installs stuff as root | |
4277 | # by default. | |
4278 | for ac_prog in ginstall scoinst install; do | |
4279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4280 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
c915a581 JJ |
4281 | if test $ac_prog = install && |
4282 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4283 | # AIX install. It has an incompatible calling convention. | |
4284 | : | |
4285 | elif test $ac_prog = install && | |
4286 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4287 | # program-specific install script used by HP pwplus--don't use. | |
4288 | : | |
4289 | else | |
4290 | rm -rf conftest.one conftest.two conftest.dir | |
4291 | echo one > conftest.one | |
4292 | echo two > conftest.two | |
4293 | mkdir conftest.dir | |
4294 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4295 | test -s conftest.one && test -s conftest.two && | |
4296 | test -s conftest.dir/conftest.one && | |
4297 | test -s conftest.dir/conftest.two | |
4298 | then | |
4299 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4300 | break 3 | |
4301 | fi | |
4302 | fi | |
4303 | fi | |
4304 | done | |
f35db108 | 4305 | done |
c915a581 JJ |
4306 | ;; |
4307 | esac | |
f35db108 | 4308 | |
f35db108 | 4309 | done |
c915a581 | 4310 | IFS=$as_save_IFS |
f35db108 | 4311 | |
c915a581 | 4312 | rm -rf conftest.one conftest.two conftest.dir |
f35db108 WM |
4313 | |
4314 | fi | |
c915a581 JJ |
4315 | if test "${ac_cv_path_install+set}" = set; then |
4316 | INSTALL=$ac_cv_path_install | |
4317 | else | |
4318 | # As a last resort, use the slow shell script. Don't cache a | |
4319 | # value for INSTALL within a source directory, because that will | |
4320 | # break other packages using the cache if that directory is | |
4321 | # removed, or if the value is a relative name. | |
4322 | INSTALL=$ac_install_sh | |
4323 | fi | |
f35db108 | 4324 | fi |
c915a581 JJ |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4326 | $as_echo "$INSTALL" >&6; } | |
f35db108 | 4327 | |
c915a581 JJ |
4328 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4329 | # It thinks the first close brace ends the variable substitution. | |
4330 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
f35db108 | 4331 | |
c915a581 | 4332 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f35db108 | 4333 | |
c915a581 | 4334 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
f35db108 | 4335 | |
c915a581 JJ |
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
4337 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
c915a581 JJ |
4338 | # Reject unsafe characters in $srcdir or the absolute working directory |
4339 | # name. Accept space and tab only in the latter. | |
4340 | am_lf=' | |
4341 | ' | |
4342 | case `pwd` in | |
4343 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 4344 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
c915a581 JJ |
4345 | esac |
4346 | case $srcdir in | |
4347 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 4348 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
c915a581 | 4349 | esac |
f35db108 | 4350 | |
22e05272 | 4351 | # Do 'set' in a subshell so we don't clobber the current shell's |
c915a581 JJ |
4352 | # arguments. Must try -L first in case configure is actually a |
4353 | # symlink; some systems play weird games with the mod time of symlinks | |
4354 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4355 | # directory). | |
4356 | if ( | |
22e05272 JM |
4357 | am_has_slept=no |
4358 | for am_try in 1 2; do | |
4359 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4360 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4361 | if test "$*" = "X"; then | |
4362 | # -L didn't work. | |
4363 | set X `ls -t "$srcdir/configure" conftest.file` | |
4364 | fi | |
4365 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4366 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4367 | ||
4368 | # If neither matched, then we have a broken ls. This can happen | |
4369 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4370 | # broken ls alias from the environment. This has actually | |
4371 | # happened. Such a system could not be considered "sane". | |
4372 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4373 | alias in your environment" "$LINENO" 5 | |
4374 | fi | |
4375 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4376 | break | |
4377 | fi | |
4378 | # Just in case. | |
4379 | sleep 1 | |
4380 | am_has_slept=yes | |
4381 | done | |
c915a581 JJ |
4382 | test "$2" = conftest.file |
4383 | ) | |
4384 | then | |
4385 | # Ok. | |
4386 | : | |
f35db108 | 4387 | else |
22e05272 | 4388 | as_fn_error $? "newly created file is older than distributed files! |
c915a581 | 4389 | Check your system clock" "$LINENO" 5 |
f35db108 | 4390 | fi |
c915a581 JJ |
4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4392 | $as_echo "yes" >&6; } | |
22e05272 JM |
4393 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
4394 | # generated files are strictly newer. | |
4395 | am_sleep_pid= | |
4396 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4397 | ( sleep 1 ) & | |
4398 | am_sleep_pid=$! | |
4399 | fi | |
4400 | ||
4401 | rm -f conftest.file | |
4402 | ||
c915a581 JJ |
4403 | test "$program_prefix" != NONE && |
4404 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4405 | # Use a double $ so make ignores it. | |
4406 | test "$program_suffix" != NONE && | |
4407 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4408 | # Double any \ or $. | |
4409 | # By default was `s,x,x', remove it if useless. | |
4410 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4411 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
f35db108 | 4412 | |
c915a581 JJ |
4413 | if test x"${MISSING+set}" != xset; then |
4414 | case $am_aux_dir in | |
4415 | *\ * | *\ *) | |
4416 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4417 | *) | |
4418 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4419 | esac | |
4420 | fi | |
4421 | # Use eval to expand $SHELL | |
22e05272 JM |
4422 | if eval "$MISSING --is-lightweight"; then |
4423 | am_missing_run="$MISSING " | |
f35db108 | 4424 | else |
c915a581 | 4425 | am_missing_run= |
22e05272 JM |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
4427 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
f35db108 WM |
4428 | fi |
4429 | ||
22e05272 | 4430 | if test x"${install_sh+set}" != xset; then |
c915a581 | 4431 | case $am_aux_dir in |
f35db108 | 4432 | *\ * | *\ *) |
c915a581 JJ |
4433 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
4434 | *) | |
4435 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4436 | esac | |
4437 | fi | |
f35db108 | 4438 | |
22e05272 JM |
4439 | # Installed binaries are usually stripped using 'strip' when the user |
4440 | # run "make install-strip". However 'strip' might not be the right | |
c915a581 | 4441 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 4442 | # will honor the 'STRIP' environment variable to overrule this program. |
c915a581 JJ |
4443 | if test "$cross_compiling" != no; then |
4444 | if test -n "$ac_tool_prefix"; then | |
4445 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4446 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4448 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4449 | if ${ac_cv_prog_STRIP+:} false; then : |
c915a581 JJ |
4450 | $as_echo_n "(cached) " >&6 |
4451 | else | |
4452 | if test -n "$STRIP"; then | |
4453 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4454 | else | |
4455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4456 | for as_dir in $PATH | |
4457 | do | |
4458 | IFS=$as_save_IFS | |
4459 | test -z "$as_dir" && as_dir=. | |
4460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
4462 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
4463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4464 | break 2 | |
4465 | fi | |
4466 | done | |
4467 | done | |
4468 | IFS=$as_save_IFS | |
f35db108 | 4469 | |
c915a581 JJ |
4470 | fi |
4471 | fi | |
4472 | STRIP=$ac_cv_prog_STRIP | |
4473 | if test -n "$STRIP"; then | |
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4475 | $as_echo "$STRIP" >&6; } | |
4476 | else | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4478 | $as_echo "no" >&6; } | |
4479 | fi | |
f35db108 WM |
4480 | |
4481 | ||
c915a581 JJ |
4482 | fi |
4483 | if test -z "$ac_cv_prog_STRIP"; then | |
4484 | ac_ct_STRIP=$STRIP | |
4485 | # Extract the first word of "strip", so it can be a program name with args. | |
4486 | set dummy strip; ac_word=$2 | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4488 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4489 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c915a581 JJ |
4490 | $as_echo_n "(cached) " >&6 |
4491 | else | |
4492 | if test -n "$ac_ct_STRIP"; then | |
4493 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4494 | else | |
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4496 | for as_dir in $PATH | |
4497 | do | |
4498 | IFS=$as_save_IFS | |
4499 | test -z "$as_dir" && as_dir=. | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4501 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
4502 | ac_cv_prog_ac_ct_STRIP="strip" |
4503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4504 | break 2 | |
4505 | fi | |
4506 | done | |
4507 | done | |
4508 | IFS=$as_save_IFS | |
f35db108 | 4509 | |
c915a581 JJ |
4510 | fi |
4511 | fi | |
4512 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4513 | if test -n "$ac_ct_STRIP"; then | |
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4515 | $as_echo "$ac_ct_STRIP" >&6; } | |
f35db108 | 4516 | else |
c915a581 JJ |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4518 | $as_echo "no" >&6; } | |
f35db108 WM |
4519 | fi |
4520 | ||
c915a581 JJ |
4521 | if test "x$ac_ct_STRIP" = x; then |
4522 | STRIP=":" | |
4523 | else | |
4524 | case $cross_compiling:$ac_tool_warned in | |
4525 | yes:) | |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4527 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4528 | ac_tool_warned=yes ;; | |
f35db108 | 4529 | esac |
c915a581 JJ |
4530 | STRIP=$ac_ct_STRIP |
4531 | fi | |
4532 | else | |
4533 | STRIP="$ac_cv_prog_STRIP" | |
4534 | fi | |
f35db108 | 4535 | |
c915a581 JJ |
4536 | fi |
4537 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
f35db108 | 4538 | |
c915a581 JJ |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4540 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4541 | if test -z "$MKDIR_P"; then | |
22e05272 | 4542 | if ${ac_cv_path_mkdir+:} false; then : |
f35db108 WM |
4543 | $as_echo_n "(cached) " >&6 |
4544 | else | |
f35db108 | 4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c915a581 | 4546 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
f35db108 WM |
4547 | do |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
c915a581 JJ |
4550 | for ac_prog in mkdir gmkdir; do |
4551 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4552 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
c915a581 JJ |
4553 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
4554 | 'mkdir (GNU coreutils) '* | \ | |
4555 | 'mkdir (coreutils) '* | \ | |
4556 | 'mkdir (fileutils) '4.1*) | |
4557 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4558 | break 3;; | |
4559 | esac | |
4560 | done | |
4561 | done | |
f35db108 WM |
4562 | done |
4563 | IFS=$as_save_IFS | |
f35db108 WM |
4564 | |
4565 | fi | |
f35db108 | 4566 | |
22e05272 | 4567 | test -d ./--version && rmdir ./--version |
c915a581 JJ |
4568 | if test "${ac_cv_path_mkdir+set}" = set; then |
4569 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4570 | else | |
4571 | # As a last resort, use the slow shell script. Don't cache a | |
4572 | # value for MKDIR_P within a source directory, because that will | |
4573 | # break other packages using the cache if that directory is | |
4574 | # removed, or if the value is a relative name. | |
c915a581 JJ |
4575 | MKDIR_P="$ac_install_sh -d" |
4576 | fi | |
4577 | fi | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4579 | $as_echo "$MKDIR_P" >&6; } | |
f35db108 | 4580 | |
c915a581 JJ |
4581 | for ac_prog in gawk mawk nawk awk |
4582 | do | |
4583 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4584 | set dummy $ac_prog; ac_word=$2 | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4586 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4587 | if ${ac_cv_prog_AWK+:} false; then : |
f35db108 WM |
4588 | $as_echo_n "(cached) " >&6 |
4589 | else | |
c915a581 JJ |
4590 | if test -n "$AWK"; then |
4591 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4592 | else | |
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4594 | for as_dir in $PATH | |
f35db108 WM |
4595 | do |
4596 | IFS=$as_save_IFS | |
4597 | test -z "$as_dir" && as_dir=. | |
f35db108 | 4598 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 4599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
4600 | ac_cv_prog_AWK="$ac_prog" |
4601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4602 | break 2 | |
4603 | fi | |
4604 | done | |
f35db108 | 4605 | done |
c915a581 | 4606 | IFS=$as_save_IFS |
f35db108 | 4607 | |
c915a581 JJ |
4608 | fi |
4609 | fi | |
4610 | AWK=$ac_cv_prog_AWK | |
4611 | if test -n "$AWK"; then | |
4612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4613 | $as_echo "$AWK" >&6; } | |
f35db108 | 4614 | else |
c915a581 JJ |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4616 | $as_echo "no" >&6; } | |
f35db108 WM |
4617 | fi |
4618 | ||
f35db108 | 4619 | |
c915a581 JJ |
4620 | test -n "$AWK" && break |
4621 | done | |
f35db108 | 4622 | |
c915a581 JJ |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4624 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4625 | set x ${MAKE-make} | |
4626 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 4627 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
f35db108 WM |
4628 | $as_echo_n "(cached) " >&6 |
4629 | else | |
c915a581 JJ |
4630 | cat >conftest.make <<\_ACEOF |
4631 | SHELL = /bin/sh | |
4632 | all: | |
4633 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4634 | _ACEOF | |
22e05272 | 4635 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
c915a581 JJ |
4636 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4637 | *@@@%%%=?*=@@@%%%*) | |
4638 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4639 | *) | |
4640 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
f35db108 | 4641 | esac |
c915a581 JJ |
4642 | rm -f conftest.make |
4643 | fi | |
4644 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4646 | $as_echo "yes" >&6; } | |
4647 | SET_MAKE= | |
f35db108 | 4648 | else |
c915a581 JJ |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4650 | $as_echo "no" >&6; } | |
4651 | SET_MAKE="MAKE=${MAKE-make}" | |
f35db108 WM |
4652 | fi |
4653 | ||
c915a581 JJ |
4654 | rm -rf .tst 2>/dev/null |
4655 | mkdir .tst 2>/dev/null | |
4656 | if test -d .tst; then | |
4657 | am__leading_dot=. | |
4658 | else | |
4659 | am__leading_dot=_ | |
f35db108 | 4660 | fi |
c915a581 | 4661 | rmdir .tst 2>/dev/null |
f35db108 | 4662 | |
c915a581 | 4663 | DEPDIR="${am__leading_dot}deps" |
f35db108 | 4664 | |
c915a581 | 4665 | ac_config_commands="$ac_config_commands depfiles" |
f35db108 | 4666 | |
8bc1fac7 IS |
4667 | |
4668 | am_make=${MAKE-make} | |
4669 | cat > confinc << 'END' | |
c915a581 | 4670 | am__doit: |
8bc1fac7 | 4671 | @echo this is the am__doit target |
c915a581 JJ |
4672 | .PHONY: am__doit |
4673 | END | |
8bc1fac7 IS |
4674 | # If we don't find an include directive, just comment out the code. |
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4676 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
c915a581 JJ |
4677 | am__include="#" |
4678 | am__quote= | |
8bc1fac7 IS |
4679 | _am_result=none |
4680 | # First try GNU make style include. | |
4681 | echo "include confinc" > confmf | |
4682 | # Ignore all kinds of additional output from 'make'. | |
4683 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4684 | *the\ am__doit\ target*) | |
4685 | am__include=include | |
4686 | am__quote= | |
4687 | _am_result=GNU | |
4688 | ;; | |
b667dd70 | 4689 | esac |
8bc1fac7 IS |
4690 | # Now try BSD make style include. |
4691 | if test "$am__include" = "#"; then | |
4692 | echo '.include "confinc"' > confmf | |
4693 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4694 | *the\ am__doit\ target*) | |
4695 | am__include=.include | |
4696 | am__quote="\"" | |
4697 | _am_result=BSD | |
4698 | ;; | |
4699 | esac | |
4700 | fi | |
4701 | ||
4702 | ||
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4704 | $as_echo "$_am_result" >&6; } | |
4705 | rm -f confinc confmf | |
f35db108 | 4706 | |
c915a581 JJ |
4707 | # Check whether --enable-dependency-tracking was given. |
4708 | if test "${enable_dependency_tracking+set}" = set; then : | |
4709 | enableval=$enable_dependency_tracking; | |
4710 | fi | |
f35db108 | 4711 | |
c915a581 JJ |
4712 | if test "x$enable_dependency_tracking" != xno; then |
4713 | am_depcomp="$ac_aux_dir/depcomp" | |
4714 | AMDEPBACKSLASH='\' | |
f3915b42 | 4715 | am__nodep='_no' |
c915a581 JJ |
4716 | fi |
4717 | if test "x$enable_dependency_tracking" != xno; then | |
4718 | AMDEP_TRUE= | |
4719 | AMDEP_FALSE='#' | |
4720 | else | |
4721 | AMDEP_TRUE='#' | |
4722 | AMDEP_FALSE= | |
4723 | fi | |
f35db108 WM |
4724 | |
4725 | ||
22e05272 JM |
4726 | # Check whether --enable-silent-rules was given. |
4727 | if test "${enable_silent_rules+set}" = set; then : | |
4728 | enableval=$enable_silent_rules; | |
4729 | fi | |
4730 | ||
4731 | case $enable_silent_rules in # ((( | |
4732 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4733 | no) AM_DEFAULT_VERBOSITY=1;; | |
4734 | *) AM_DEFAULT_VERBOSITY=1;; | |
4735 | esac | |
4736 | am_make=${MAKE-make} | |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4738 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4739 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4740 | $as_echo_n "(cached) " >&6 | |
4741 | else | |
4742 | if $as_echo 'TRUE=$(BAR$(V)) | |
4743 | BAR0=false | |
4744 | BAR1=true | |
4745 | V=1 | |
4746 | am__doit: | |
4747 | @$(TRUE) | |
4748 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4749 | am_cv_make_support_nested_variables=yes | |
4750 | else | |
4751 | am_cv_make_support_nested_variables=no | |
4752 | fi | |
4753 | fi | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4755 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4756 | if test $am_cv_make_support_nested_variables = yes; then | |
4757 | AM_V='$(V)' | |
4758 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4759 | else | |
4760 | AM_V=$AM_DEFAULT_VERBOSITY | |
4761 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4762 | fi | |
4763 | AM_BACKSLASH='\' | |
4764 | ||
c915a581 JJ |
4765 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4766 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4767 | # is not polluted with repeated "-I." | |
4768 | am__isrc=' -I$(srcdir)' | |
4769 | # test to see if srcdir already configured | |
4770 | if test -f $srcdir/config.status; then | |
22e05272 | 4771 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
c915a581 JJ |
4772 | fi |
4773 | fi | |
f35db108 | 4774 | |
c915a581 JJ |
4775 | # test whether we have cygpath |
4776 | if test -z "$CYGPATH_W"; then | |
4777 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4778 | CYGPATH_W='cygpath -w' | |
4779 | else | |
4780 | CYGPATH_W=echo | |
4781 | fi | |
4782 | fi | |
f35db108 WM |
4783 | |
4784 | ||
c915a581 JJ |
4785 | # Define the identity of the package. |
4786 | PACKAGE='package-unused' | |
4787 | VERSION='version-unused' | |
f35db108 WM |
4788 | |
4789 | ||
c915a581 JJ |
4790 | cat >>confdefs.h <<_ACEOF |
4791 | #define PACKAGE "$PACKAGE" | |
4792 | _ACEOF | |
f35db108 WM |
4793 | |
4794 | ||
c915a581 JJ |
4795 | cat >>confdefs.h <<_ACEOF |
4796 | #define VERSION "$VERSION" | |
4797 | _ACEOF | |
f35db108 | 4798 | |
c915a581 | 4799 | # Some tools Automake needs. |
f35db108 | 4800 | |
c915a581 | 4801 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
f35db108 WM |
4802 | |
4803 | ||
c915a581 | 4804 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
f35db108 WM |
4805 | |
4806 | ||
c915a581 | 4807 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
f35db108 WM |
4808 | |
4809 | ||
c915a581 | 4810 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
f35db108 | 4811 | |
c915a581 JJ |
4812 | |
4813 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4814 | ||
22e05272 JM |
4815 | # For better backward compatibility. To be removed once Automake 1.9.x |
4816 | # dies out for good. For more background, see: | |
8bc1fac7 IS |
4817 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
4818 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
22e05272 JM |
4819 | mkdir_p='$(MKDIR_P)' |
4820 | ||
4821 | # We need awk for the "check" target (and possibly the TAP driver). The | |
4822 | # system "awk" is bad on some platforms. | |
f3915b42 MH |
4823 | # Always define AMTAR for backward compatibility. Yes, it's still used |
4824 | # in the wild :-( We should find a proper way to deprecate it ... | |
4825 | AMTAR='$${TAR-tar}' | |
c915a581 | 4826 | |
22e05272 JM |
4827 | |
4828 | # We'll loop over all known methods to create a tar archive until one works. | |
4829 | _am_tools='gnutar pax cpio none' | |
4830 | ||
f3915b42 | 4831 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c915a581 JJ |
4832 | |
4833 | ||
4834 | ||
4835 | ||
22e05272 | 4836 | |
c915a581 JJ |
4837 | depcc="$CC" am_compiler_list= |
4838 | ||
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4840 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4841 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
f35db108 WM |
4842 | $as_echo_n "(cached) " >&6 |
4843 | else | |
c915a581 JJ |
4844 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4845 | # We make a subdir and do the tests there. Otherwise we can end up | |
4846 | # making bogus files that we don't know about and never remove. For | |
4847 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4848 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4849 | # in D". | |
f3915b42 | 4850 | rm -rf conftest.dir |
c915a581 JJ |
4851 | mkdir conftest.dir |
4852 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4853 | # using a relative directory. | |
4854 | cp "$am_depcomp" conftest.dir | |
4855 | cd conftest.dir | |
4856 | # We will build objects and dependencies in a subdirectory because | |
4857 | # it helps to detect inapplicable dependency modes. For instance | |
4858 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4859 | # side effect of compilation, but ICC will put the dependencies in | |
4860 | # the current directory while Tru64 will put them in the object | |
4861 | # directory. | |
4862 | mkdir sub | |
4863 | ||
4864 | am_cv_CC_dependencies_compiler_type=none | |
4865 | if test "$am_compiler_list" = ""; then | |
4866 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4867 | fi | |
4868 | am__universal=false | |
4869 | case " $depcc " in #( | |
4870 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4871 | esac | |
4872 | ||
4873 | for depmode in $am_compiler_list; do | |
4874 | # Setup a source with many dependencies, because some compilers | |
4875 | # like to wrap large dependency lists on column 80 (with \), and | |
4876 | # we should not choose a depcomp mode which is confused by this. | |
4877 | # | |
4878 | # We need to recreate these files for each test, as the compiler may | |
4879 | # overwrite some of them when testing with obscure command lines. | |
4880 | # This happens at least with the AIX C compiler. | |
4881 | : > sub/conftest.c | |
4882 | for i in 1 2 3 4 5 6; do | |
4883 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4884 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4885 | # Solaris 10 /bin/sh. | |
4886 | echo '/* dummy */' > sub/conftst$i.h | |
c915a581 JJ |
4887 | done |
4888 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4889 | ||
22e05272 | 4890 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
c915a581 | 4891 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4892 | # handle '-M -o', and we need to detect this. Also, some Intel |
4893 | # versions had trouble with output in subdirs. | |
c915a581 JJ |
4894 | am__obj=sub/conftest.${OBJEXT-o} |
4895 | am__minus_obj="-o $am__obj" | |
4896 | case $depmode in | |
4897 | gcc) | |
4898 | # This depmode causes a compiler race in universal mode. | |
4899 | test "$am__universal" = false || continue | |
4900 | ;; | |
4901 | nosideeffect) | |
22e05272 JM |
4902 | # After this tag, mechanisms are not by side-effect, so they'll |
4903 | # only be used when explicitly requested. | |
c915a581 JJ |
4904 | if test "x$enable_dependency_tracking" = xyes; then |
4905 | continue | |
4906 | else | |
4907 | break | |
4908 | fi | |
4909 | ;; | |
f3915b42 | 4910 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4911 | # This compiler won't grok '-c -o', but also, the minuso test has |
c915a581 JJ |
4912 | # not run yet. These depmodes are late enough in the game, and |
4913 | # so weak that their functioning should not be impacted. | |
4914 | am__obj=conftest.${OBJEXT-o} | |
4915 | am__minus_obj= | |
4916 | ;; | |
4917 | none) break ;; | |
4918 | esac | |
4919 | if depmode=$depmode \ | |
4920 | source=sub/conftest.c object=$am__obj \ | |
4921 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4922 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4923 | >/dev/null 2>conftest.err && | |
4924 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4925 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4926 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4927 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4928 | # icc doesn't choke on unknown options, it will just issue warnings | |
4929 | # or remarks (even with -Werror). So we grep stderr for any message | |
4930 | # that says an option was ignored or not supported. | |
4931 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4932 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4933 | # The diagnosis changed in icc 8.0: | |
4934 | # icc: Command line remark: option '-MP' not supported | |
4935 | if (grep 'ignoring option' conftest.err || | |
4936 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4937 | am_cv_CC_dependencies_compiler_type=$depmode | |
4938 | break | |
4939 | fi | |
f35db108 WM |
4940 | fi |
4941 | done | |
c915a581 JJ |
4942 | |
4943 | cd .. | |
4944 | rm -rf conftest.dir | |
f35db108 | 4945 | else |
c915a581 | 4946 | am_cv_CC_dependencies_compiler_type=none |
f35db108 | 4947 | fi |
c915a581 | 4948 | |
f35db108 | 4949 | fi |
c915a581 JJ |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4951 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4952 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
f35db108 | 4953 | |
c915a581 JJ |
4954 | if |
4955 | test "x$enable_dependency_tracking" != xno \ | |
4956 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4957 | am__fastdepCC_TRUE= | |
4958 | am__fastdepCC_FALSE='#' | |
f35db108 | 4959 | else |
c915a581 JJ |
4960 | am__fastdepCC_TRUE='#' |
4961 | am__fastdepCC_FALSE= | |
f35db108 | 4962 | fi |
c915a581 JJ |
4963 | |
4964 | ||
4965 | ||
22e05272 JM |
4966 | # POSIX will say in a future version that running "rm -f" with no argument |
4967 | # is OK; and we want to be able to make that assumption in our Makefile | |
4968 | # recipes. So use an aggressive probe to check that the usage we want is | |
4969 | # actually supported "in the wild" to an acceptable degree. | |
4970 | # See automake bug#10828. | |
4971 | # To make any issue more visible, cause the running configure to be aborted | |
4972 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4973 | # user can still override this though. | |
4974 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4975 | cat >&2 <<'END' | |
4976 | Oops! | |
4977 | ||
4978 | Your 'rm' program seems unable to run without file operands specified | |
4979 | on the command line, even when the '-f' option is present. This is contrary | |
4980 | to the behaviour of most rm programs out there, and not conforming with | |
4981 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4982 | ||
4983 | Please tell bug-automake@gnu.org about your system, including the value | |
4984 | of your $PATH and any error possibly output before this message. This | |
4985 | can help us improve future automake versions. | |
4986 | ||
4987 | END | |
4988 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4989 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4990 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4991 | echo >&2 | |
4992 | else | |
4993 | cat >&2 <<'END' | |
4994 | Aborting the configuration process, to ensure you take notice of the issue. | |
4995 | ||
4996 | You can download and install GNU coreutils to get an 'rm' implementation | |
8bc1fac7 | 4997 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
22e05272 JM |
4998 | |
4999 | If you want to complete the configuration process using your problematic | |
5000 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
5001 | to "yes", and re-run configure. | |
5002 | ||
5003 | END | |
5004 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5005 | fi | |
5006 | fi | |
5007 | ||
f35db108 | 5008 | |
c915a581 JJ |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
5010 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5011 | # Check whether --enable-maintainer-mode was given. | |
5012 | if test "${enable_maintainer_mode+set}" = set; then : | |
5013 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
f35db108 | 5014 | else |
c915a581 | 5015 | USE_MAINTAINER_MODE=no |
f35db108 | 5016 | fi |
c915a581 JJ |
5017 | |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
5019 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5020 | if test $USE_MAINTAINER_MODE = yes; then | |
5021 | MAINTAINER_MODE_TRUE= | |
5022 | MAINTAINER_MODE_FALSE='#' | |
f35db108 | 5023 | else |
c915a581 JJ |
5024 | MAINTAINER_MODE_TRUE='#' |
5025 | MAINTAINER_MODE_FALSE= | |
5026 | fi | |
5027 | ||
5028 | MAINT=$MAINTAINER_MODE_TRUE | |
5029 | ||
5030 | ||
5031 | ||
e8e66971 MR |
5032 | |
5033 | # Check whether --with-toolexeclibdir was given. | |
5034 | if test "${with_toolexeclibdir+set}" = set; then : | |
5035 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
5036 | /) | |
5037 | ;; | |
5038 | */) | |
5039 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
5040 | ;; | |
5041 | esac | |
5042 | else | |
5043 | with_toolexeclibdir=no | |
5044 | fi | |
5045 | ||
5046 | ||
5047 | ||
c915a581 JJ |
5048 | # Calculate toolexeclibdir |
5049 | # Also toolexecdir, though it's only used in toolexeclibdir | |
5050 | case ${version_specific_libs} in | |
5051 | yes) | |
5052 | # Need the gcc compiler version to know where to install libraries | |
5053 | # and header files if --enable-version-specific-runtime-libs option | |
5054 | # is selected. | |
5055 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
5056 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
5057 | ;; | |
5058 | no) | |
5059 | if test -n "$with_cross_host" && | |
5060 | test x"$with_cross_host" != x"no"; then | |
5061 | # Install a library built with a cross compiler in tooldir, not libdir. | |
5062 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
5063 | case ${with_toolexeclibdir} in |
5064 | no) | |
5065 | toolexeclibdir='$(toolexecdir)/lib' | |
5066 | ;; | |
5067 | *) | |
5068 | toolexeclibdir=${with_toolexeclibdir} | |
5069 | ;; | |
5070 | esac | |
c915a581 JJ |
5071 | else |
5072 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
5073 | toolexeclibdir='$(libdir)' | |
5074 | fi | |
5075 | multi_os_directory=`$CC -print-multi-os-directory` | |
5076 | case $multi_os_directory in | |
5077 | .) ;; # Avoid trailing /. | |
5078 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
5079 | esac | |
5080 | ;; | |
5081 | esac | |
5082 | ||
5083 | ||
5084 | ||
5085 | # Checks for programs. | |
5086 | ac_ext=c | |
5087 | ac_cpp='$CPP $CPPFLAGS' | |
5088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5091 | if test -n "$ac_tool_prefix"; then | |
5092 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5093 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
f35db108 WM |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5095 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5096 | if ${ac_cv_prog_CC+:} false; then : |
f35db108 WM |
5097 | $as_echo_n "(cached) " >&6 |
5098 | else | |
c915a581 JJ |
5099 | if test -n "$CC"; then |
5100 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 WM |
5101 | else |
5102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5103 | for as_dir in $PATH | |
5104 | do | |
5105 | IFS=$as_save_IFS | |
5106 | test -z "$as_dir" && as_dir=. | |
5107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5108 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 5109 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
f35db108 WM |
5110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5111 | break 2 | |
5112 | fi | |
5113 | done | |
5114 | done | |
5115 | IFS=$as_save_IFS | |
5116 | ||
5117 | fi | |
5118 | fi | |
c915a581 JJ |
5119 | CC=$ac_cv_prog_CC |
5120 | if test -n "$CC"; then | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5122 | $as_echo "$CC" >&6; } | |
f35db108 WM |
5123 | else |
5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5125 | $as_echo "no" >&6; } | |
5126 | fi | |
5127 | ||
5128 | ||
f35db108 | 5129 | fi |
c915a581 JJ |
5130 | if test -z "$ac_cv_prog_CC"; then |
5131 | ac_ct_CC=$CC | |
5132 | # Extract the first word of "gcc", so it can be a program name with args. | |
5133 | set dummy gcc; ac_word=$2 | |
f35db108 WM |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5135 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5136 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
f35db108 WM |
5137 | $as_echo_n "(cached) " >&6 |
5138 | else | |
c915a581 JJ |
5139 | if test -n "$ac_ct_CC"; then |
5140 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
f35db108 WM |
5141 | else |
5142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5143 | for as_dir in $PATH | |
5144 | do | |
5145 | IFS=$as_save_IFS | |
5146 | test -z "$as_dir" && as_dir=. | |
5147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 5149 | ac_cv_prog_ac_ct_CC="gcc" |
f35db108 WM |
5150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5151 | break 2 | |
5152 | fi | |
5153 | done | |
5154 | done | |
5155 | IFS=$as_save_IFS | |
5156 | ||
5157 | fi | |
5158 | fi | |
c915a581 JJ |
5159 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5160 | if test -n "$ac_ct_CC"; then | |
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5162 | $as_echo "$ac_ct_CC" >&6; } | |
f35db108 WM |
5163 | else |
5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5165 | $as_echo "no" >&6; } | |
5166 | fi | |
5167 | ||
c915a581 JJ |
5168 | if test "x$ac_ct_CC" = x; then |
5169 | CC="" | |
f35db108 WM |
5170 | else |
5171 | case $cross_compiling:$ac_tool_warned in | |
5172 | yes:) | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5174 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5175 | ac_tool_warned=yes ;; | |
5176 | esac | |
c915a581 | 5177 | CC=$ac_ct_CC |
f35db108 | 5178 | fi |
c915a581 JJ |
5179 | else |
5180 | CC="$ac_cv_prog_CC" | |
f35db108 WM |
5181 | fi |
5182 | ||
c915a581 JJ |
5183 | if test -z "$CC"; then |
5184 | if test -n "$ac_tool_prefix"; then | |
5185 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5186 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5188 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5189 | if ${ac_cv_prog_CC+:} false; then : |
c915a581 JJ |
5190 | $as_echo_n "(cached) " >&6 |
5191 | else | |
5192 | if test -n "$CC"; then | |
5193 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5194 | else | |
5195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5196 | for as_dir in $PATH | |
5197 | do | |
5198 | IFS=$as_save_IFS | |
5199 | test -z "$as_dir" && as_dir=. | |
5200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
5202 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5204 | break 2 | |
f35db108 | 5205 | fi |
c915a581 JJ |
5206 | done |
5207 | done | |
5208 | IFS=$as_save_IFS | |
f35db108 | 5209 | |
f35db108 | 5210 | fi |
c915a581 JJ |
5211 | fi |
5212 | CC=$ac_cv_prog_CC | |
5213 | if test -n "$CC"; then | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5215 | $as_echo "$CC" >&6; } | |
5216 | else | |
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5218 | $as_echo "no" >&6; } | |
5219 | fi | |
f35db108 WM |
5220 | |
5221 | ||
f35db108 | 5222 | fi |
f35db108 | 5223 | fi |
c915a581 JJ |
5224 | if test -z "$CC"; then |
5225 | # Extract the first word of "cc", so it can be a program name with args. | |
5226 | set dummy cc; ac_word=$2 | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5228 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5229 | if ${ac_cv_prog_CC+:} false; then : |
c915a581 | 5230 | $as_echo_n "(cached) " >&6 |
f35db108 | 5231 | else |
c915a581 JJ |
5232 | if test -n "$CC"; then |
5233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 | 5234 | else |
c915a581 | 5235 | ac_prog_rejected=no |
f35db108 WM |
5236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5237 | for as_dir in $PATH | |
5238 | do | |
5239 | IFS=$as_save_IFS | |
5240 | test -z "$as_dir" && as_dir=. | |
5241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
5243 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5244 | ac_prog_rejected=yes | |
5245 | continue | |
5246 | fi | |
5247 | ac_cv_prog_CC="cc" | |
f35db108 WM |
5248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5249 | break 2 | |
5250 | fi | |
5251 | done | |
5252 | done | |
5253 | IFS=$as_save_IFS | |
5254 | ||
c915a581 JJ |
5255 | if test $ac_prog_rejected = yes; then |
5256 | # We found a bogon in the path, so make sure we never use it. | |
5257 | set dummy $ac_cv_prog_CC | |
5258 | shift | |
5259 | if test $# != 0; then | |
5260 | # We chose a different compiler from the bogus one. | |
5261 | # However, it has the same basename, so the bogon will be chosen | |
5262 | # first if we set CC to just the basename; use the full file name. | |
5263 | shift | |
5264 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5265 | fi | |
5266 | fi | |
5267 | fi | |
5268 | fi | |
5269 | CC=$ac_cv_prog_CC | |
5270 | if test -n "$CC"; then | |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5272 | $as_echo "$CC" >&6; } | |
f35db108 WM |
5273 | else |
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5275 | $as_echo "no" >&6; } | |
5276 | fi | |
5277 | ||
5278 | ||
5279 | fi | |
c915a581 JJ |
5280 | if test -z "$CC"; then |
5281 | if test -n "$ac_tool_prefix"; then | |
5282 | for ac_prog in cl.exe | |
5283 | do | |
5284 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5285 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
f35db108 WM |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5287 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5288 | if ${ac_cv_prog_CC+:} false; then : |
f35db108 WM |
5289 | $as_echo_n "(cached) " >&6 |
5290 | else | |
c915a581 JJ |
5291 | if test -n "$CC"; then |
5292 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
f35db108 WM |
5293 | else |
5294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5295 | for as_dir in $PATH | |
5296 | do | |
5297 | IFS=$as_save_IFS | |
5298 | test -z "$as_dir" && as_dir=. | |
5299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5300 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 5301 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
f35db108 WM |
5302 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5303 | break 2 | |
5304 | fi | |
5305 | done | |
5306 | done | |
5307 | IFS=$as_save_IFS | |
5308 | ||
5309 | fi | |
5310 | fi | |
c915a581 JJ |
5311 | CC=$ac_cv_prog_CC |
5312 | if test -n "$CC"; then | |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5314 | $as_echo "$CC" >&6; } | |
f35db108 WM |
5315 | else |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5317 | $as_echo "no" >&6; } | |
5318 | fi | |
5319 | ||
c915a581 JJ |
5320 | |
5321 | test -n "$CC" && break | |
5322 | done | |
5323 | fi | |
5324 | if test -z "$CC"; then | |
5325 | ac_ct_CC=$CC | |
5326 | for ac_prog in cl.exe | |
5327 | do | |
5328 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5329 | set dummy $ac_prog; ac_word=$2 | |
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5331 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5332 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
c915a581 JJ |
5333 | $as_echo_n "(cached) " >&6 |
5334 | else | |
5335 | if test -n "$ac_ct_CC"; then | |
5336 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5337 | else | |
5338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5339 | for as_dir in $PATH | |
5340 | do | |
5341 | IFS=$as_save_IFS | |
5342 | test -z "$as_dir" && as_dir=. | |
5343 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
5345 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5347 | break 2 | |
5348 | fi | |
5349 | done | |
5350 | done | |
5351 | IFS=$as_save_IFS | |
5352 | ||
5353 | fi | |
5354 | fi | |
5355 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5356 | if test -n "$ac_ct_CC"; then | |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5358 | $as_echo "$ac_ct_CC" >&6; } | |
5359 | else | |
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5361 | $as_echo "no" >&6; } | |
5362 | fi | |
5363 | ||
5364 | ||
5365 | test -n "$ac_ct_CC" && break | |
5366 | done | |
5367 | ||
5368 | if test "x$ac_ct_CC" = x; then | |
5369 | CC="" | |
f35db108 WM |
5370 | else |
5371 | case $cross_compiling:$ac_tool_warned in | |
5372 | yes:) | |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5374 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5375 | ac_tool_warned=yes ;; | |
5376 | esac | |
c915a581 | 5377 | CC=$ac_ct_CC |
f35db108 | 5378 | fi |
f35db108 WM |
5379 | fi |
5380 | ||
c915a581 | 5381 | fi |
f35db108 WM |
5382 | |
5383 | ||
c915a581 JJ |
5384 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5385 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
5386 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5387 | See \`config.log' for more details" "$LINENO" 5; } | |
f35db108 | 5388 | |
c915a581 JJ |
5389 | # Provide some information about the compiler. |
5390 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5391 | set X $ac_compile | |
5392 | ac_compiler=$2 | |
5393 | for ac_option in --version -v -V -qversion; do | |
5394 | { { ac_try="$ac_compiler $ac_option >&5" | |
5395 | case "(($ac_try" in | |
5396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5397 | *) ac_try_echo=$ac_try;; | |
5398 | esac | |
5399 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5400 | $as_echo "$ac_try_echo"; } >&5 | |
5401 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5402 | ac_status=$? | |
5403 | if test -s conftest.err; then | |
5404 | sed '10a\ | |
5405 | ... rest of stderr output deleted ... | |
5406 | 10q' conftest.err >conftest.er1 | |
5407 | cat conftest.er1 >&5 | |
c915a581 | 5408 | fi |
22e05272 | 5409 | rm -f conftest.er1 conftest.err |
c915a581 JJ |
5410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5411 | test $ac_status = 0; } | |
5412 | done | |
f35db108 | 5413 | |
c915a581 JJ |
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
5415 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 5416 | if ${ac_cv_c_compiler_gnu+:} false; then : |
c915a581 JJ |
5417 | $as_echo_n "(cached) " >&6 |
5418 | else | |
5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5420 | /* end confdefs.h. */ | |
f35db108 | 5421 | |
c915a581 JJ |
5422 | int |
5423 | main () | |
5424 | { | |
5425 | #ifndef __GNUC__ | |
5426 | choke me | |
5427 | #endif | |
f35db108 | 5428 | |
c915a581 JJ |
5429 | ; |
5430 | return 0; | |
5431 | } | |
5432 | _ACEOF | |
5433 | if ac_fn_c_try_compile "$LINENO"; then : | |
5434 | ac_compiler_gnu=yes | |
5435 | else | |
5436 | ac_compiler_gnu=no | |
5437 | fi | |
5438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5439 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
f35db108 | 5440 | |
c915a581 JJ |
5441 | fi |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5443 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5444 | if test $ac_compiler_gnu = yes; then | |
5445 | GCC=yes | |
5446 | else | |
5447 | GCC= | |
5448 | fi | |
5449 | ac_test_CFLAGS=${CFLAGS+set} | |
5450 | ac_save_CFLAGS=$CFLAGS | |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5452 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5453 | if ${ac_cv_prog_cc_g+:} false; then : |
f35db108 WM |
5454 | $as_echo_n "(cached) " >&6 |
5455 | else | |
c915a581 JJ |
5456 | ac_save_c_werror_flag=$ac_c_werror_flag |
5457 | ac_c_werror_flag=yes | |
5458 | ac_cv_prog_cc_g=no | |
5459 | CFLAGS="-g" | |
5460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5461 | /* end confdefs.h. */ | |
f35db108 | 5462 | |
c915a581 JJ |
5463 | int |
5464 | main () | |
5465 | { | |
f35db108 | 5466 | |
c915a581 JJ |
5467 | ; |
5468 | return 0; | |
5469 | } | |
5470 | _ACEOF | |
5471 | if ac_fn_c_try_compile "$LINENO"; then : | |
5472 | ac_cv_prog_cc_g=yes | |
5473 | else | |
5474 | CFLAGS="" | |
5475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5476 | /* end confdefs.h. */ | |
f35db108 | 5477 | |
c915a581 JJ |
5478 | int |
5479 | main () | |
5480 | { | |
f35db108 | 5481 | |
c915a581 JJ |
5482 | ; |
5483 | return 0; | |
5484 | } | |
5485 | _ACEOF | |
5486 | if ac_fn_c_try_compile "$LINENO"; then : | |
f35db108 | 5487 | |
c915a581 JJ |
5488 | else |
5489 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5490 | CFLAGS="-g" | |
5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5492 | /* end confdefs.h. */ | |
f35db108 | 5493 | |
c915a581 JJ |
5494 | int |
5495 | main () | |
5496 | { | |
f35db108 | 5497 | |
c915a581 JJ |
5498 | ; |
5499 | return 0; | |
5500 | } | |
5501 | _ACEOF | |
5502 | if ac_fn_c_try_compile "$LINENO"; then : | |
5503 | ac_cv_prog_cc_g=yes | |
5504 | fi | |
5505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5506 | fi | |
5507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5508 | fi | |
5509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5510 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5511 | fi | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5513 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5514 | if test "$ac_test_CFLAGS" = set; then | |
5515 | CFLAGS=$ac_save_CFLAGS | |
5516 | elif test $ac_cv_prog_cc_g = yes; then | |
5517 | if test "$GCC" = yes; then | |
5518 | CFLAGS="-g -O2" | |
f35db108 | 5519 | else |
c915a581 | 5520 | CFLAGS="-g" |
f35db108 | 5521 | fi |
c915a581 JJ |
5522 | else |
5523 | if test "$GCC" = yes; then | |
5524 | CFLAGS="-O2" | |
5525 | else | |
5526 | CFLAGS= | |
5527 | fi | |
5528 | fi | |
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5530 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5531 | if ${ac_cv_prog_cc_c89+:} false; then : |
c915a581 JJ |
5532 | $as_echo_n "(cached) " >&6 |
5533 | else | |
5534 | ac_cv_prog_cc_c89=no | |
5535 | ac_save_CC=$CC | |
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5537 | /* end confdefs.h. */ | |
5538 | #include <stdarg.h> | |
5539 | #include <stdio.h> | |
22e05272 | 5540 | struct stat; |
c915a581 JJ |
5541 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5542 | struct buf { int x; }; | |
5543 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5544 | static char *e (p, i) | |
5545 | char **p; | |
5546 | int i; | |
5547 | { | |
5548 | return p[i]; | |
5549 | } | |
5550 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5551 | { | |
5552 | char *s; | |
5553 | va_list v; | |
5554 | va_start (v,p); | |
5555 | s = g (p, va_arg (v,int)); | |
5556 | va_end (v); | |
5557 | return s; | |
5558 | } | |
f35db108 | 5559 | |
c915a581 JJ |
5560 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5561 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5562 | These don't provoke an error unfortunately, instead are silently treated | |
5563 | as 'x'. The following induces an error, until -std is added to get | |
5564 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5565 | array size at least. It's necessary to write '\x00'==0 to get something | |
5566 | that's true only with -std. */ | |
5567 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
f35db108 | 5568 | |
c915a581 JJ |
5569 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5570 | inside strings and character constants. */ | |
5571 | #define FOO(x) 'x' | |
5572 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
f35db108 | 5573 | |
c915a581 JJ |
5574 | int test (int i, double x); |
5575 | struct s1 {int (*f) (int a);}; | |
5576 | struct s2 {int (*f) (double a);}; | |
5577 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5578 | int argc; | |
5579 | char **argv; | |
5580 | int | |
5581 | main () | |
5582 | { | |
5583 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5584 | ; | |
5585 | return 0; | |
5586 | } | |
5587 | _ACEOF | |
5588 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5589 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5590 | do | |
5591 | CC="$ac_save_CC $ac_arg" | |
5592 | if ac_fn_c_try_compile "$LINENO"; then : | |
5593 | ac_cv_prog_cc_c89=$ac_arg | |
5594 | fi | |
5595 | rm -f core conftest.err conftest.$ac_objext | |
5596 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5597 | done | |
5598 | rm -f conftest.$ac_ext | |
5599 | CC=$ac_save_CC | |
f35db108 | 5600 | |
c915a581 JJ |
5601 | fi |
5602 | # AC_CACHE_VAL | |
5603 | case "x$ac_cv_prog_cc_c89" in | |
5604 | x) | |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5606 | $as_echo "none needed" >&6; } ;; | |
5607 | xno) | |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5609 | $as_echo "unsupported" >&6; } ;; | |
5610 | *) | |
5611 | CC="$CC $ac_cv_prog_cc_c89" | |
5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5613 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5614 | esac | |
5615 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
f35db108 | 5616 | |
c915a581 | 5617 | fi |
f35db108 | 5618 | |
c915a581 JJ |
5619 | ac_ext=c |
5620 | ac_cpp='$CPP $CPPFLAGS' | |
5621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 5624 | |
22e05272 JM |
5625 | ac_ext=c |
5626 | ac_cpp='$CPP $CPPFLAGS' | |
5627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5631 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5632 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5633 | $as_echo_n "(cached) " >&6 | |
5634 | else | |
5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5636 | /* end confdefs.h. */ | |
5637 | ||
5638 | int | |
5639 | main () | |
5640 | { | |
5641 | ||
5642 | ; | |
5643 | return 0; | |
5644 | } | |
5645 | _ACEOF | |
5646 | # Make sure it works both with $CC and with simple cc. | |
5647 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5648 | # compilers refuse to overwrite an existing .o file with -o, | |
5649 | # though they will create one. | |
5650 | am_cv_prog_cc_c_o=yes | |
5651 | for am_i in 1 2; do | |
5652 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5653 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5654 | ac_status=$? | |
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5656 | (exit $ac_status); } \ | |
5657 | && test -f conftest2.$ac_objext; then | |
5658 | : OK | |
5659 | else | |
5660 | am_cv_prog_cc_c_o=no | |
5661 | break | |
5662 | fi | |
5663 | done | |
5664 | rm -f core conftest* | |
5665 | unset am_i | |
5666 | fi | |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5668 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5669 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5670 | # Losing compiler, so override with the script. | |
5671 | # FIXME: It is wrong to rewrite CC. | |
5672 | # But if we don't then we get into trouble of one sort or another. | |
5673 | # A longer-term fix would be to have automake use am__CC in this case, | |
5674 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5675 | CC="$am_aux_dir/compile $CC" | |
5676 | fi | |
5677 | ac_ext=c | |
5678 | ac_cpp='$CPP $CPPFLAGS' | |
5679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5682 | ||
5683 | ||
c915a581 JJ |
5684 | ac_ext=cpp |
5685 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5689 | if test -z "$CXX"; then | |
5690 | if test -n "$CCC"; then | |
5691 | CXX=$CCC | |
f35db108 | 5692 | else |
c915a581 JJ |
5693 | if test -n "$ac_tool_prefix"; then |
5694 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5695 | do | |
5696 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5697 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5699 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5700 | if ${ac_cv_prog_CXX+:} false; then : |
c915a581 JJ |
5701 | $as_echo_n "(cached) " >&6 |
5702 | else | |
5703 | if test -n "$CXX"; then | |
5704 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5705 | else | |
5706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5707 | for as_dir in $PATH | |
5708 | do | |
5709 | IFS=$as_save_IFS | |
5710 | test -z "$as_dir" && as_dir=. | |
5711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5712 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
5713 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5715 | break 2 | |
f35db108 | 5716 | fi |
c915a581 JJ |
5717 | done |
5718 | done | |
5719 | IFS=$as_save_IFS | |
f35db108 | 5720 | |
c915a581 JJ |
5721 | fi |
5722 | fi | |
5723 | CXX=$ac_cv_prog_CXX | |
5724 | if test -n "$CXX"; then | |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5726 | $as_echo "$CXX" >&6; } | |
5727 | else | |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5729 | $as_echo "no" >&6; } | |
5730 | fi | |
f35db108 | 5731 | |
f35db108 | 5732 | |
c915a581 JJ |
5733 | test -n "$CXX" && break |
5734 | done | |
f35db108 | 5735 | fi |
c915a581 JJ |
5736 | if test -z "$CXX"; then |
5737 | ac_ct_CXX=$CXX | |
5738 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5739 | do | |
5740 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5741 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5743 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5744 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
f35db108 WM |
5745 | $as_echo_n "(cached) " >&6 |
5746 | else | |
c915a581 JJ |
5747 | if test -n "$ac_ct_CXX"; then |
5748 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
f35db108 WM |
5749 | else |
5750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5751 | for as_dir in $PATH | |
5752 | do | |
5753 | IFS=$as_save_IFS | |
5754 | test -z "$as_dir" && as_dir=. | |
5755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 5757 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
f35db108 WM |
5758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5759 | break 2 | |
5760 | fi | |
5761 | done | |
5762 | done | |
5763 | IFS=$as_save_IFS | |
5764 | ||
5765 | fi | |
5766 | fi | |
c915a581 JJ |
5767 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5768 | if test -n "$ac_ct_CXX"; then | |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5770 | $as_echo "$ac_ct_CXX" >&6; } | |
f35db108 WM |
5771 | else |
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5773 | $as_echo "no" >&6; } | |
5774 | fi | |
5775 | ||
5776 | ||
c915a581 | 5777 | test -n "$ac_ct_CXX" && break |
f35db108 | 5778 | done |
f35db108 | 5779 | |
c915a581 JJ |
5780 | if test "x$ac_ct_CXX" = x; then |
5781 | CXX="g++" | |
f35db108 WM |
5782 | else |
5783 | case $cross_compiling:$ac_tool_warned in | |
5784 | yes:) | |
5785 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5786 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5787 | ac_tool_warned=yes ;; | |
5788 | esac | |
c915a581 | 5789 | CXX=$ac_ct_CXX |
f35db108 | 5790 | fi |
f35db108 WM |
5791 | fi |
5792 | ||
f35db108 | 5793 | fi |
c915a581 JJ |
5794 | fi |
5795 | # Provide some information about the compiler. | |
5796 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5797 | set X $ac_compile | |
5798 | ac_compiler=$2 | |
5799 | for ac_option in --version -v -V -qversion; do | |
5800 | { { ac_try="$ac_compiler $ac_option >&5" | |
5801 | case "(($ac_try" in | |
5802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5803 | *) ac_try_echo=$ac_try;; | |
5804 | esac | |
5805 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5806 | $as_echo "$ac_try_echo"; } >&5 | |
5807 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5808 | ac_status=$? | |
5809 | if test -s conftest.err; then | |
5810 | sed '10a\ | |
5811 | ... rest of stderr output deleted ... | |
5812 | 10q' conftest.err >conftest.er1 | |
5813 | cat conftest.er1 >&5 | |
c915a581 | 5814 | fi |
22e05272 | 5815 | rm -f conftest.er1 conftest.err |
c915a581 JJ |
5816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5817 | test $ac_status = 0; } | |
f35db108 | 5818 | done |
f35db108 | 5819 | |
c915a581 JJ |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
5821 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
22e05272 | 5822 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
c915a581 | 5823 | $as_echo_n "(cached) " >&6 |
f35db108 | 5824 | else |
c915a581 JJ |
5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5826 | /* end confdefs.h. */ | |
f35db108 | 5827 | |
c915a581 JJ |
5828 | int |
5829 | main () | |
5830 | { | |
5831 | #ifndef __GNUC__ | |
5832 | choke me | |
5833 | #endif | |
f35db108 | 5834 | |
c915a581 JJ |
5835 | ; |
5836 | return 0; | |
5837 | } | |
5838 | _ACEOF | |
5839 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5840 | ac_compiler_gnu=yes | |
f35db108 | 5841 | else |
c915a581 | 5842 | ac_compiler_gnu=no |
f35db108 | 5843 | fi |
c915a581 JJ |
5844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5845 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5846 | ||
f35db108 | 5847 | fi |
c915a581 JJ |
5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5849 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5850 | if test $ac_compiler_gnu = yes; then | |
5851 | GXX=yes | |
f35db108 | 5852 | else |
c915a581 | 5853 | GXX= |
f35db108 | 5854 | fi |
c915a581 JJ |
5855 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5856 | ac_save_CXXFLAGS=$CXXFLAGS | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5858 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
22e05272 | 5859 | if ${ac_cv_prog_cxx_g+:} false; then : |
c915a581 | 5860 | $as_echo_n "(cached) " >&6 |
f35db108 | 5861 | else |
c915a581 JJ |
5862 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5863 | ac_cxx_werror_flag=yes | |
5864 | ac_cv_prog_cxx_g=no | |
5865 | CXXFLAGS="-g" | |
5866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5867 | /* end confdefs.h. */ | |
f35db108 | 5868 | |
c915a581 JJ |
5869 | int |
5870 | main () | |
5871 | { | |
f35db108 | 5872 | |
c915a581 JJ |
5873 | ; |
5874 | return 0; | |
5875 | } | |
5876 | _ACEOF | |
5877 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5878 | ac_cv_prog_cxx_g=yes | |
5879 | else | |
5880 | CXXFLAGS="" | |
5881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5882 | /* end confdefs.h. */ | |
f35db108 | 5883 | |
c915a581 JJ |
5884 | int |
5885 | main () | |
5886 | { | |
f35db108 | 5887 | |
c915a581 JJ |
5888 | ; |
5889 | return 0; | |
5890 | } | |
5891 | _ACEOF | |
5892 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
f35db108 | 5893 | |
f35db108 | 5894 | else |
c915a581 JJ |
5895 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5896 | CXXFLAGS="-g" | |
5897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5898 | /* end confdefs.h. */ | |
f35db108 | 5899 | |
c915a581 JJ |
5900 | int |
5901 | main () | |
5902 | { | |
f35db108 | 5903 | |
c915a581 JJ |
5904 | ; |
5905 | return 0; | |
5906 | } | |
5907 | _ACEOF | |
5908 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5909 | ac_cv_prog_cxx_g=yes | |
f35db108 | 5910 | fi |
c915a581 | 5911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 5912 | fi |
c915a581 | 5913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f35db108 | 5914 | fi |
c915a581 JJ |
5915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5916 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
f35db108 | 5917 | fi |
c915a581 JJ |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5919 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5920 | if test "$ac_test_CXXFLAGS" = set; then | |
5921 | CXXFLAGS=$ac_save_CXXFLAGS | |
5922 | elif test $ac_cv_prog_cxx_g = yes; then | |
5923 | if test "$GXX" = yes; then | |
5924 | CXXFLAGS="-g -O2" | |
f35db108 | 5925 | else |
c915a581 | 5926 | CXXFLAGS="-g" |
f35db108 WM |
5927 | fi |
5928 | else | |
c915a581 JJ |
5929 | if test "$GXX" = yes; then |
5930 | CXXFLAGS="-O2" | |
5931 | else | |
5932 | CXXFLAGS= | |
5933 | fi | |
f35db108 | 5934 | fi |
c915a581 JJ |
5935 | ac_ext=c |
5936 | ac_cpp='$CPP $CPPFLAGS' | |
5937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 5940 | |
c915a581 | 5941 | depcc="$CXX" am_compiler_list= |
f35db108 | 5942 | |
c915a581 JJ |
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
5944 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 5945 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
c915a581 JJ |
5946 | $as_echo_n "(cached) " >&6 |
5947 | else | |
5948 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5949 | # We make a subdir and do the tests there. Otherwise we can end up | |
5950 | # making bogus files that we don't know about and never remove. For | |
5951 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
5952 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5953 | # in D". | |
f3915b42 | 5954 | rm -rf conftest.dir |
c915a581 JJ |
5955 | mkdir conftest.dir |
5956 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5957 | # using a relative directory. | |
5958 | cp "$am_depcomp" conftest.dir | |
5959 | cd conftest.dir | |
5960 | # We will build objects and dependencies in a subdirectory because | |
5961 | # it helps to detect inapplicable dependency modes. For instance | |
5962 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5963 | # side effect of compilation, but ICC will put the dependencies in | |
5964 | # the current directory while Tru64 will put them in the object | |
5965 | # directory. | |
5966 | mkdir sub | |
f35db108 | 5967 | |
c915a581 JJ |
5968 | am_cv_CXX_dependencies_compiler_type=none |
5969 | if test "$am_compiler_list" = ""; then | |
5970 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5971 | fi | |
5972 | am__universal=false | |
5973 | case " $depcc " in #( | |
5974 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5975 | esac | |
f35db108 | 5976 | |
c915a581 JJ |
5977 | for depmode in $am_compiler_list; do |
5978 | # Setup a source with many dependencies, because some compilers | |
5979 | # like to wrap large dependency lists on column 80 (with \), and | |
5980 | # we should not choose a depcomp mode which is confused by this. | |
5981 | # | |
5982 | # We need to recreate these files for each test, as the compiler may | |
5983 | # overwrite some of them when testing with obscure command lines. | |
5984 | # This happens at least with the AIX C compiler. | |
5985 | : > sub/conftest.c | |
5986 | for i in 1 2 3 4 5 6; do | |
5987 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
5988 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5989 | # Solaris 10 /bin/sh. | |
5990 | echo '/* dummy */' > sub/conftst$i.h | |
c915a581 JJ |
5991 | done |
5992 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
f35db108 | 5993 | |
22e05272 | 5994 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
c915a581 | 5995 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
5996 | # handle '-M -o', and we need to detect this. Also, some Intel |
5997 | # versions had trouble with output in subdirs. | |
c915a581 JJ |
5998 | am__obj=sub/conftest.${OBJEXT-o} |
5999 | am__minus_obj="-o $am__obj" | |
6000 | case $depmode in | |
6001 | gcc) | |
6002 | # This depmode causes a compiler race in universal mode. | |
6003 | test "$am__universal" = false || continue | |
6004 | ;; | |
6005 | nosideeffect) | |
22e05272 JM |
6006 | # After this tag, mechanisms are not by side-effect, so they'll |
6007 | # only be used when explicitly requested. | |
c915a581 JJ |
6008 | if test "x$enable_dependency_tracking" = xyes; then |
6009 | continue | |
6010 | else | |
6011 | break | |
6012 | fi | |
6013 | ;; | |
f3915b42 | 6014 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 6015 | # This compiler won't grok '-c -o', but also, the minuso test has |
c915a581 JJ |
6016 | # not run yet. These depmodes are late enough in the game, and |
6017 | # so weak that their functioning should not be impacted. | |
6018 | am__obj=conftest.${OBJEXT-o} | |
6019 | am__minus_obj= | |
6020 | ;; | |
6021 | none) break ;; | |
6022 | esac | |
6023 | if depmode=$depmode \ | |
6024 | source=sub/conftest.c object=$am__obj \ | |
6025 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6026 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6027 | >/dev/null 2>conftest.err && | |
6028 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6029 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6030 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6031 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6032 | # icc doesn't choke on unknown options, it will just issue warnings | |
6033 | # or remarks (even with -Werror). So we grep stderr for any message | |
6034 | # that says an option was ignored or not supported. | |
6035 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6036 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6037 | # The diagnosis changed in icc 8.0: | |
6038 | # icc: Command line remark: option '-MP' not supported | |
6039 | if (grep 'ignoring option' conftest.err || | |
6040 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6041 | am_cv_CXX_dependencies_compiler_type=$depmode | |
6042 | break | |
6043 | fi | |
6044 | fi | |
6045 | done | |
f35db108 | 6046 | |
c915a581 JJ |
6047 | cd .. |
6048 | rm -rf conftest.dir | |
6049 | else | |
6050 | am_cv_CXX_dependencies_compiler_type=none | |
6051 | fi | |
f35db108 | 6052 | |
c915a581 JJ |
6053 | fi |
6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
6055 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
6056 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
f35db108 | 6057 | |
c915a581 JJ |
6058 | if |
6059 | test "x$enable_dependency_tracking" != xno \ | |
6060 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
6061 | am__fastdepCXX_TRUE= | |
6062 | am__fastdepCXX_FALSE='#' | |
6063 | else | |
6064 | am__fastdepCXX_TRUE='#' | |
6065 | am__fastdepCXX_FALSE= | |
6066 | fi | |
f35db108 WM |
6067 | |
6068 | ||
c915a581 | 6069 | # By default we simply use the C compiler to build assembly code. |
f35db108 | 6070 | |
c915a581 JJ |
6071 | test "${CCAS+set}" = set || CCAS=$CC |
6072 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
f35db108 WM |
6073 | |
6074 | ||
6075 | ||
c915a581 | 6076 | depcc="$CCAS" am_compiler_list= |
f35db108 | 6077 | |
c915a581 JJ |
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
6079 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 6080 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
c915a581 JJ |
6081 | $as_echo_n "(cached) " >&6 |
6082 | else | |
6083 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6084 | # We make a subdir and do the tests there. Otherwise we can end up | |
6085 | # making bogus files that we don't know about and never remove. For | |
6086 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
6087 | # making a dummy file named 'D' -- because '-MD' means "put the output |
6088 | # in D". | |
f3915b42 | 6089 | rm -rf conftest.dir |
c915a581 JJ |
6090 | mkdir conftest.dir |
6091 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6092 | # using a relative directory. | |
6093 | cp "$am_depcomp" conftest.dir | |
6094 | cd conftest.dir | |
6095 | # We will build objects and dependencies in a subdirectory because | |
6096 | # it helps to detect inapplicable dependency modes. For instance | |
6097 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6098 | # side effect of compilation, but ICC will put the dependencies in | |
6099 | # the current directory while Tru64 will put them in the object | |
6100 | # directory. | |
6101 | mkdir sub | |
f35db108 | 6102 | |
c915a581 JJ |
6103 | am_cv_CCAS_dependencies_compiler_type=none |
6104 | if test "$am_compiler_list" = ""; then | |
6105 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6106 | fi | |
6107 | am__universal=false | |
f35db108 WM |
6108 | |
6109 | ||
c915a581 JJ |
6110 | for depmode in $am_compiler_list; do |
6111 | # Setup a source with many dependencies, because some compilers | |
6112 | # like to wrap large dependency lists on column 80 (with \), and | |
6113 | # we should not choose a depcomp mode which is confused by this. | |
6114 | # | |
6115 | # We need to recreate these files for each test, as the compiler may | |
6116 | # overwrite some of them when testing with obscure command lines. | |
6117 | # This happens at least with the AIX C compiler. | |
6118 | : > sub/conftest.c | |
6119 | for i in 1 2 3 4 5 6; do | |
6120 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
6121 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
6122 | # Solaris 10 /bin/sh. | |
6123 | echo '/* dummy */' > sub/conftst$i.h | |
c915a581 JJ |
6124 | done |
6125 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
f35db108 | 6126 | |
22e05272 | 6127 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
c915a581 | 6128 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
6129 | # handle '-M -o', and we need to detect this. Also, some Intel |
6130 | # versions had trouble with output in subdirs. | |
c915a581 JJ |
6131 | am__obj=sub/conftest.${OBJEXT-o} |
6132 | am__minus_obj="-o $am__obj" | |
6133 | case $depmode in | |
6134 | gcc) | |
6135 | # This depmode causes a compiler race in universal mode. | |
6136 | test "$am__universal" = false || continue | |
6137 | ;; | |
6138 | nosideeffect) | |
22e05272 JM |
6139 | # After this tag, mechanisms are not by side-effect, so they'll |
6140 | # only be used when explicitly requested. | |
c915a581 JJ |
6141 | if test "x$enable_dependency_tracking" = xyes; then |
6142 | continue | |
6143 | else | |
6144 | break | |
6145 | fi | |
6146 | ;; | |
f3915b42 | 6147 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 6148 | # This compiler won't grok '-c -o', but also, the minuso test has |
c915a581 JJ |
6149 | # not run yet. These depmodes are late enough in the game, and |
6150 | # so weak that their functioning should not be impacted. | |
6151 | am__obj=conftest.${OBJEXT-o} | |
6152 | am__minus_obj= | |
6153 | ;; | |
6154 | none) break ;; | |
6155 | esac | |
6156 | if depmode=$depmode \ | |
6157 | source=sub/conftest.c object=$am__obj \ | |
6158 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6159 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6160 | >/dev/null 2>conftest.err && | |
6161 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6162 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6163 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6164 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6165 | # icc doesn't choke on unknown options, it will just issue warnings | |
6166 | # or remarks (even with -Werror). So we grep stderr for any message | |
6167 | # that says an option was ignored or not supported. | |
6168 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6169 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6170 | # The diagnosis changed in icc 8.0: | |
6171 | # icc: Command line remark: option '-MP' not supported | |
6172 | if (grep 'ignoring option' conftest.err || | |
6173 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6174 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
6175 | break | |
6176 | fi | |
6177 | fi | |
6178 | done | |
f35db108 | 6179 | |
c915a581 JJ |
6180 | cd .. |
6181 | rm -rf conftest.dir | |
6182 | else | |
6183 | am_cv_CCAS_dependencies_compiler_type=none | |
6184 | fi | |
f35db108 | 6185 | |
c915a581 JJ |
6186 | fi |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
6188 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
6189 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
f35db108 | 6190 | |
c915a581 JJ |
6191 | if |
6192 | test "x$enable_dependency_tracking" != xno \ | |
6193 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
6194 | am__fastdepCCAS_TRUE= | |
6195 | am__fastdepCCAS_FALSE='#' | |
6196 | else | |
6197 | am__fastdepCCAS_TRUE='#' | |
6198 | am__fastdepCCAS_FALSE= | |
6199 | fi | |
f35db108 WM |
6200 | |
6201 | ||
c915a581 JJ |
6202 | if test -n "$ac_tool_prefix"; then |
6203 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6204 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6206 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6207 | if ${ac_cv_prog_RANLIB+:} false; then : |
f35db108 WM |
6208 | $as_echo_n "(cached) " >&6 |
6209 | else | |
c915a581 JJ |
6210 | if test -n "$RANLIB"; then |
6211 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6212 | else | |
6213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6214 | for as_dir in $PATH | |
6215 | do | |
6216 | IFS=$as_save_IFS | |
6217 | test -z "$as_dir" && as_dir=. | |
6218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
6220 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6222 | break 2 | |
6223 | fi | |
6224 | done | |
6225 | done | |
6226 | IFS=$as_save_IFS | |
f35db108 | 6227 | |
c915a581 JJ |
6228 | fi |
6229 | fi | |
6230 | RANLIB=$ac_cv_prog_RANLIB | |
6231 | if test -n "$RANLIB"; then | |
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6233 | $as_echo "$RANLIB" >&6; } | |
6234 | else | |
6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6236 | $as_echo "no" >&6; } | |
6237 | fi | |
f35db108 | 6238 | |
f35db108 | 6239 | |
c915a581 JJ |
6240 | fi |
6241 | if test -z "$ac_cv_prog_RANLIB"; then | |
6242 | ac_ct_RANLIB=$RANLIB | |
6243 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6244 | set dummy ranlib; ac_word=$2 | |
6245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6246 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6247 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c915a581 JJ |
6248 | $as_echo_n "(cached) " >&6 |
6249 | else | |
6250 | if test -n "$ac_ct_RANLIB"; then | |
6251 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6252 | else | |
6253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6254 | for as_dir in $PATH | |
6255 | do | |
6256 | IFS=$as_save_IFS | |
6257 | test -z "$as_dir" && as_dir=. | |
6258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
6260 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6262 | break 2 | |
f35db108 WM |
6263 | fi |
6264 | done | |
c915a581 JJ |
6265 | done |
6266 | IFS=$as_save_IFS | |
f35db108 WM |
6267 | |
6268 | fi | |
f35db108 | 6269 | fi |
c915a581 JJ |
6270 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6271 | if test -n "$ac_ct_RANLIB"; then | |
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6273 | $as_echo "$ac_ct_RANLIB" >&6; } | |
f35db108 | 6274 | else |
c915a581 JJ |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6276 | $as_echo "no" >&6; } | |
f35db108 WM |
6277 | fi |
6278 | ||
c915a581 JJ |
6279 | if test "x$ac_ct_RANLIB" = x; then |
6280 | RANLIB=":" | |
6281 | else | |
6282 | case $cross_compiling:$ac_tool_warned in | |
6283 | yes:) | |
6284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6286 | ac_tool_warned=yes ;; | |
6287 | esac | |
6288 | RANLIB=$ac_ct_RANLIB | |
6289 | fi | |
6290 | else | |
6291 | RANLIB="$ac_cv_prog_RANLIB" | |
6292 | fi | |
f35db108 WM |
6293 | |
6294 | ||
c915a581 | 6295 | enable_dlopen=yes |
f35db108 WM |
6296 | |
6297 | ||
6298 | ||
c915a581 JJ |
6299 | case `pwd` in |
6300 | *\ * | *\ *) | |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
6302 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
6303 | esac | |
f35db108 WM |
6304 | |
6305 | ||
6306 | ||
c915a581 JJ |
6307 | macro_version='2.2.7a' |
6308 | macro_revision='1.3134' | |
f35db108 WM |
6309 | |
6310 | ||
6311 | ||
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
f35db108 WM |
6318 | |
6319 | ||
6320 | ||
6321 | ||
c915a581 | 6322 | ltmain="$ac_aux_dir/ltmain.sh" |
f35db108 | 6323 | |
c915a581 JJ |
6324 | # Backslashify metacharacters that are still active within |
6325 | # double-quoted strings. | |
6326 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
f35db108 | 6327 | |
c915a581 JJ |
6328 | # Same as above, but do not quote variable references. |
6329 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
f35db108 | 6330 | |
c915a581 JJ |
6331 | # Sed substitution to delay expansion of an escaped shell variable in a |
6332 | # double_quote_subst'ed string. | |
6333 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
f35db108 | 6334 | |
c915a581 JJ |
6335 | # Sed substitution to delay expansion of an escaped single quote. |
6336 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
f35db108 | 6337 | |
c915a581 JJ |
6338 | # Sed substitution to avoid accidental globbing in evaled expressions |
6339 | no_glob_subst='s/\*/\\\*/g' | |
f35db108 | 6340 | |
c915a581 JJ |
6341 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
6342 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
6343 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
f35db108 | 6344 | |
c915a581 JJ |
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
6346 | $as_echo_n "checking how to print strings... " >&6; } | |
6347 | # Test print first, because it will be a builtin if present. | |
6348 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
6349 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6350 | ECHO='print -r --' | |
6351 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
6352 | ECHO='printf %s\n' | |
f35db108 | 6353 | else |
c915a581 JJ |
6354 | # Use this function as a fallback that always works. |
6355 | func_fallback_echo () | |
6356 | { | |
6357 | eval 'cat <<_LTECHO_EOF | |
6358 | $1 | |
6359 | _LTECHO_EOF' | |
6360 | } | |
6361 | ECHO='func_fallback_echo' | |
f35db108 | 6362 | fi |
f35db108 | 6363 | |
c915a581 JJ |
6364 | # func_echo_all arg... |
6365 | # Invoke $ECHO with all args, space-separated. | |
6366 | func_echo_all () | |
6367 | { | |
6368 | $ECHO "" | |
6369 | } | |
6370 | ||
6371 | case "$ECHO" in | |
6372 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
6373 | $as_echo "printf" >&6; } ;; | |
6374 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
6375 | $as_echo "print -r" >&6; } ;; | |
6376 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
6377 | $as_echo "cat" >&6; } ;; | |
f35db108 WM |
6378 | esac |
6379 | ||
f35db108 | 6380 | |
f35db108 | 6381 | |
c915a581 JJ |
6382 | |
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6394 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 6395 | if ${ac_cv_path_SED+:} false; then : |
f35db108 WM |
6396 | $as_echo_n "(cached) " >&6 |
6397 | else | |
c915a581 JJ |
6398 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6399 | for ac_i in 1 2 3 4 5 6 7; do | |
6400 | ac_script="$ac_script$as_nl$ac_script" | |
6401 | done | |
6402 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6403 | { ac_script=; unset ac_script;} | |
6404 | if test -z "$SED"; then | |
6405 | ac_path_SED_found=false | |
6406 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6408 | for as_dir in $PATH | |
f35db108 WM |
6409 | do |
6410 | IFS=$as_save_IFS | |
6411 | test -z "$as_dir" && as_dir=. | |
c915a581 | 6412 | for ac_prog in sed gsed; do |
f35db108 | 6413 | for ac_exec_ext in '' $ac_executable_extensions; do |
c915a581 | 6414 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6415 | as_fn_executable_p "$ac_path_SED" || continue |
c915a581 JJ |
6416 | # Check for GNU ac_path_SED and select it if it is found. |
6417 | # Check for GNU $ac_path_SED | |
6418 | case `"$ac_path_SED" --version 2>&1` in | |
6419 | *GNU*) | |
6420 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6421 | *) | |
6422 | ac_count=0 | |
6423 | $as_echo_n 0123456789 >"conftest.in" | |
6424 | while : | |
6425 | do | |
6426 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6427 | mv "conftest.tmp" "conftest.in" | |
6428 | cp "conftest.in" "conftest.nl" | |
6429 | $as_echo '' >> "conftest.nl" | |
6430 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6431 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6432 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6433 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6434 | # Best one so far, save it but keep looking for a better one | |
6435 | ac_cv_path_SED="$ac_path_SED" | |
6436 | ac_path_SED_max=$ac_count | |
6437 | fi | |
6438 | # 10*(2^10) chars as input seems more than enough | |
6439 | test $ac_count -gt 10 && break | |
f35db108 | 6440 | done |
c915a581 JJ |
6441 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6442 | esac | |
f35db108 | 6443 | |
c915a581 JJ |
6444 | $ac_path_SED_found && break 3 |
6445 | done | |
6446 | done | |
f35db108 WM |
6447 | done |
6448 | IFS=$as_save_IFS | |
c915a581 | 6449 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 6450 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
c915a581 | 6451 | fi |
f35db108 | 6452 | else |
c915a581 | 6453 | ac_cv_path_SED=$SED |
f35db108 WM |
6454 | fi |
6455 | ||
f35db108 | 6456 | fi |
c915a581 JJ |
6457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
6458 | $as_echo "$ac_cv_path_SED" >&6; } | |
6459 | SED="$ac_cv_path_SED" | |
6460 | rm -f conftest.sed | |
f35db108 | 6461 | |
c915a581 JJ |
6462 | test -z "$SED" && SED=sed |
6463 | Xsed="$SED -e 1s/^X//" | |
f35db108 | 6464 | |
f35db108 WM |
6465 | |
6466 | ||
c915a581 JJ |
6467 | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6476 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 6477 | if ${ac_cv_path_FGREP+:} false; then : |
f35db108 WM |
6478 | $as_echo_n "(cached) " >&6 |
6479 | else | |
c915a581 JJ |
6480 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
6481 | then ac_cv_path_FGREP="$GREP -F" | |
6482 | else | |
6483 | if test -z "$FGREP"; then | |
6484 | ac_path_FGREP_found=false | |
6485 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6487 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
f35db108 WM |
6488 | do |
6489 | IFS=$as_save_IFS | |
6490 | test -z "$as_dir" && as_dir=. | |
c915a581 | 6491 | for ac_prog in fgrep; do |
f35db108 | 6492 | for ac_exec_ext in '' $ac_executable_extensions; do |
c915a581 | 6493 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 6494 | as_fn_executable_p "$ac_path_FGREP" || continue |
c915a581 JJ |
6495 | # Check for GNU ac_path_FGREP and select it if it is found. |
6496 | # Check for GNU $ac_path_FGREP | |
6497 | case `"$ac_path_FGREP" --version 2>&1` in | |
6498 | *GNU*) | |
6499 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6500 | *) | |
6501 | ac_count=0 | |
6502 | $as_echo_n 0123456789 >"conftest.in" | |
6503 | while : | |
6504 | do | |
6505 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6506 | mv "conftest.tmp" "conftest.in" | |
6507 | cp "conftest.in" "conftest.nl" | |
6508 | $as_echo 'FGREP' >> "conftest.nl" | |
6509 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6510 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6511 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6512 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6513 | # Best one so far, save it but keep looking for a better one | |
6514 | ac_cv_path_FGREP="$ac_path_FGREP" | |
6515 | ac_path_FGREP_max=$ac_count | |
6516 | fi | |
6517 | # 10*(2^10) chars as input seems more than enough | |
6518 | test $ac_count -gt 10 && break | |
f35db108 | 6519 | done |
c915a581 JJ |
6520 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
6521 | esac | |
f35db108 | 6522 | |
c915a581 JJ |
6523 | $ac_path_FGREP_found && break 3 |
6524 | done | |
6525 | done | |
6526 | done | |
6527 | IFS=$as_save_IFS | |
6528 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 6529 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
c915a581 | 6530 | fi |
f35db108 | 6531 | else |
c915a581 | 6532 | ac_cv_path_FGREP=$FGREP |
f35db108 WM |
6533 | fi |
6534 | ||
c915a581 | 6535 | fi |
f35db108 | 6536 | fi |
c915a581 JJ |
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
6538 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
6539 | FGREP="$ac_cv_path_FGREP" | |
f35db108 | 6540 | |
c915a581 JJ |
6541 | |
6542 | test -z "$GREP" && GREP=grep | |
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | # Check whether --with-gnu-ld was given. | |
6563 | if test "${with_gnu_ld+set}" = set; then : | |
6564 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6565 | else | |
6566 | with_gnu_ld=no | |
6567 | fi | |
6568 | ||
6569 | ac_prog=ld | |
6570 | if test "$GCC" = yes; then | |
6571 | # Check if gcc -print-prog-name=ld gives a path. | |
6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6573 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6574 | case $host in | |
6575 | *-*-mingw*) | |
6576 | # gcc leaves a trailing carriage return which upsets mingw | |
6577 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6578 | *) | |
6579 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6580 | esac | |
6581 | case $ac_prog in | |
6582 | # Accept absolute paths. | |
6583 | [\\/]* | ?:[\\/]*) | |
6584 | re_direlt='/[^/][^/]*/\.\./' | |
6585 | # Canonicalize the pathname of ld | |
6586 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6587 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6588 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6589 | done | |
6590 | test -z "$LD" && LD="$ac_prog" | |
6591 | ;; | |
6592 | "") | |
6593 | # If it fails, then pretend we aren't using GCC. | |
6594 | ac_prog=ld | |
6595 | ;; | |
6596 | *) | |
6597 | # If it is relative, then search for the first ld in PATH. | |
6598 | with_gnu_ld=unknown | |
6599 | ;; | |
6600 | esac | |
6601 | elif test "$with_gnu_ld" = yes; then | |
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6603 | $as_echo_n "checking for GNU ld... " >&6; } | |
6604 | else | |
6605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6606 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6607 | fi | |
22e05272 | 6608 | if ${lt_cv_path_LD+:} false; then : |
c915a581 JJ |
6609 | $as_echo_n "(cached) " >&6 |
6610 | else | |
6611 | if test -z "$LD"; then | |
6612 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6613 | for ac_dir in $PATH; do | |
6614 | IFS="$lt_save_ifs" | |
6615 | test -z "$ac_dir" && ac_dir=. | |
6616 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6617 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6618 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6619 | # but apparently some variants of GNU ld only accept -v. | |
6620 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6621 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6622 | *GNU* | *'with BFD'*) | |
6623 | test "$with_gnu_ld" != no && break | |
6624 | ;; | |
6625 | *) | |
6626 | test "$with_gnu_ld" != yes && break | |
6627 | ;; | |
6628 | esac | |
6629 | fi | |
6630 | done | |
6631 | IFS="$lt_save_ifs" | |
6632 | else | |
6633 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6634 | fi | |
6635 | fi | |
6636 | ||
6637 | LD="$lt_cv_path_LD" | |
6638 | if test -n "$LD"; then | |
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6640 | $as_echo "$LD" >&6; } | |
6641 | else | |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6643 | $as_echo "no" >&6; } | |
6644 | fi | |
22e05272 | 6645 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
c915a581 JJ |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6647 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 6648 | if ${lt_cv_prog_gnu_ld+:} false; then : |
c915a581 JJ |
6649 | $as_echo_n "(cached) " >&6 |
6650 | else | |
6651 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6652 | case `$LD -v 2>&1 </dev/null` in | |
6653 | *GNU* | *'with BFD'*) | |
6654 | lt_cv_prog_gnu_ld=yes | |
6655 | ;; | |
6656 | *) | |
6657 | lt_cv_prog_gnu_ld=no | |
6658 | ;; | |
6659 | esac | |
6660 | fi | |
6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6662 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6663 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | ||
6671 | ||
6672 | ||
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6674 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 6675 | if ${lt_cv_path_NM+:} false; then : |
c915a581 JJ |
6676 | $as_echo_n "(cached) " >&6 |
6677 | else | |
6678 | if test -n "$NM"; then | |
ab422974 NA |
6679 | # Let the user override the nm to test. |
6680 | lt_nm_to_check="$NM" | |
6681 | else | |
6682 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6683 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6684 | lt_nm_to_check="$lt_nm_to_check nm" | |
6685 | fi | |
6686 | fi | |
f3307109 | 6687 | for lt_tmp_nm in "$lt_nm_to_check"; do |
ab422974 NA |
6688 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6689 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6690 | IFS="$lt_save_ifs" | |
6691 | test -z "$ac_dir" && ac_dir=. | |
f3307109 NA |
6692 | # Strip out any user-provided options from the nm to test twice, |
6693 | # the first time to test to see if nm (rather than its options) has | |
6694 | # an explicit path, the second time to yield a file which can be | |
6695 | # nm'ed itself. | |
6696 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
6697 | case "$tmp_nm_path" in | |
ab422974 NA |
6698 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
6699 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
6700 | esac | |
f3307109 NA |
6701 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
6702 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
ab422974 NA |
6703 | # Check to see if the nm accepts a BSD-compat flag. |
6704 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6705 | # nm: unknown option "B" ignored | |
f3307109 | 6706 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
ab422974 NA |
6707 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
6708 | break | |
6709 | ;; | |
6710 | *) | |
f3307109 | 6711 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
ab422974 NA |
6712 | *$tmp_nm*) |
6713 | lt_cv_path_NM="$tmp_nm -p" | |
6714 | break | |
6715 | ;; | |
6716 | *) | |
6717 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6718 | continue # so that we can try to find one that supports BSD flags | |
6719 | ;; | |
6720 | esac | |
6721 | ;; | |
6722 | esac | |
6723 | fi | |
6724 | done | |
6725 | IFS="$lt_save_ifs" | |
6726 | done | |
6727 | : ${lt_cv_path_NM=no} | |
c915a581 JJ |
6728 | fi |
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6730 | $as_echo "$lt_cv_path_NM" >&6; } | |
6731 | if test "$lt_cv_path_NM" != "no"; then | |
6732 | NM="$lt_cv_path_NM" | |
6733 | else | |
6734 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6735 | if test -n "$DUMPBIN"; then : | |
6736 | # Let the user override the test. | |
6737 | else | |
f35db108 | 6738 | if test -n "$ac_tool_prefix"; then |
c915a581 JJ |
6739 | for ac_prog in dumpbin "link -dump" |
6740 | do | |
6741 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6742 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
f35db108 WM |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6744 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6745 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
f35db108 WM |
6746 | $as_echo_n "(cached) " >&6 |
6747 | else | |
c915a581 JJ |
6748 | if test -n "$DUMPBIN"; then |
6749 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
f35db108 WM |
6750 | else |
6751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6752 | for as_dir in $PATH | |
6753 | do | |
6754 | IFS=$as_save_IFS | |
6755 | test -z "$as_dir" && as_dir=. | |
6756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 6758 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
f35db108 WM |
6759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6760 | break 2 | |
6761 | fi | |
6762 | done | |
6763 | done | |
6764 | IFS=$as_save_IFS | |
6765 | ||
6766 | fi | |
6767 | fi | |
c915a581 JJ |
6768 | DUMPBIN=$ac_cv_prog_DUMPBIN |
6769 | if test -n "$DUMPBIN"; then | |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6771 | $as_echo "$DUMPBIN" >&6; } | |
f35db108 WM |
6772 | else |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6774 | $as_echo "no" >&6; } | |
6775 | fi | |
6776 | ||
6777 | ||
c915a581 JJ |
6778 | test -n "$DUMPBIN" && break |
6779 | done | |
f35db108 | 6780 | fi |
c915a581 JJ |
6781 | if test -z "$DUMPBIN"; then |
6782 | ac_ct_DUMPBIN=$DUMPBIN | |
6783 | for ac_prog in dumpbin "link -dump" | |
6784 | do | |
6785 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6786 | set dummy $ac_prog; ac_word=$2 | |
f35db108 WM |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6788 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6789 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
f35db108 WM |
6790 | $as_echo_n "(cached) " >&6 |
6791 | else | |
c915a581 JJ |
6792 | if test -n "$ac_ct_DUMPBIN"; then |
6793 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
f35db108 WM |
6794 | else |
6795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6796 | for as_dir in $PATH | |
6797 | do | |
6798 | IFS=$as_save_IFS | |
6799 | test -z "$as_dir" && as_dir=. | |
6800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6801 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 | 6802 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
f35db108 WM |
6803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6804 | break 2 | |
6805 | fi | |
6806 | done | |
6807 | done | |
6808 | IFS=$as_save_IFS | |
6809 | ||
6810 | fi | |
6811 | fi | |
c915a581 JJ |
6812 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
6813 | if test -n "$ac_ct_DUMPBIN"; then | |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6815 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
f35db108 WM |
6816 | else |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6818 | $as_echo "no" >&6; } | |
6819 | fi | |
6820 | ||
c915a581 JJ |
6821 | |
6822 | test -n "$ac_ct_DUMPBIN" && break | |
6823 | done | |
6824 | ||
6825 | if test "x$ac_ct_DUMPBIN" = x; then | |
6826 | DUMPBIN=":" | |
f35db108 WM |
6827 | else |
6828 | case $cross_compiling:$ac_tool_warned in | |
6829 | yes:) | |
6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6832 | ac_tool_warned=yes ;; | |
6833 | esac | |
c915a581 | 6834 | DUMPBIN=$ac_ct_DUMPBIN |
f35db108 | 6835 | fi |
f35db108 WM |
6836 | fi |
6837 | ||
c915a581 JJ |
6838 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
6839 | *COFF*) | |
6840 | DUMPBIN="$DUMPBIN -symbols" | |
6841 | ;; | |
6842 | *) | |
6843 | DUMPBIN=: | |
6844 | ;; | |
6845 | esac | |
f35db108 | 6846 | fi |
f35db108 | 6847 | |
c915a581 JJ |
6848 | if test "$DUMPBIN" != ":"; then |
6849 | NM="$DUMPBIN" | |
6850 | fi | |
f35db108 | 6851 | fi |
c915a581 | 6852 | test -z "$NM" && NM=nm |
f35db108 WM |
6853 | |
6854 | ||
f35db108 | 6855 | |
f35db108 | 6856 | |
f35db108 | 6857 | |
c915a581 JJ |
6858 | |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6860 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 6861 | if ${lt_cv_nm_interface+:} false; then : |
f35db108 WM |
6862 | $as_echo_n "(cached) " >&6 |
6863 | else | |
c915a581 JJ |
6864 | lt_cv_nm_interface="BSD nm" |
6865 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6866 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6867 | (eval "$ac_compile" 2>conftest.err) | |
6868 | cat conftest.err >&5 | |
6869 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6870 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6871 | cat conftest.err >&5 | |
6872 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6873 | cat conftest.out >&5 | |
6874 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6875 | lt_cv_nm_interface="MS dumpbin" | |
f35db108 | 6876 | fi |
c915a581 | 6877 | rm -f conftest* |
f35db108 | 6878 | fi |
c915a581 JJ |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
6880 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6881 | ||
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6883 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6884 | LN_S=$as_ln_s | |
6885 | if test "$LN_S" = "ln -s"; then | |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6887 | $as_echo "yes" >&6; } | |
f35db108 | 6888 | else |
c915a581 JJ |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
6890 | $as_echo "no, using $LN_S" >&6; } | |
f35db108 WM |
6891 | fi |
6892 | ||
c915a581 JJ |
6893 | # find the maximum length of command line arguments |
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6895 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 6896 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
f35db108 WM |
6897 | $as_echo_n "(cached) " >&6 |
6898 | else | |
c915a581 JJ |
6899 | i=0 |
6900 | teststring="ABCD" | |
f35db108 | 6901 | |
c915a581 JJ |
6902 | case $build_os in |
6903 | msdosdjgpp*) | |
6904 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6905 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6906 | # during glob expansion). Even if it were fixed, the result of this | |
6907 | # check would be larger than it should be. | |
6908 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6909 | ;; | |
f35db108 | 6910 | |
c915a581 JJ |
6911 | gnu*) |
6912 | # Under GNU Hurd, this test is not required because there is | |
6913 | # no limit to the length of command line arguments. | |
6914 | # Libtool will interpret -1 as no limit whatsoever | |
6915 | lt_cv_sys_max_cmd_len=-1; | |
6916 | ;; | |
f35db108 | 6917 | |
c915a581 JJ |
6918 | cygwin* | mingw* | cegcc*) |
6919 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6920 | # about 5 minutes as the teststring grows exponentially. | |
6921 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6922 | # you end up with a "frozen" computer, even though with patience | |
6923 | # the test eventually succeeds (with a max line length of 256k). | |
6924 | # Instead, let's just punt: use the minimum linelength reported by | |
6925 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6926 | lt_cv_sys_max_cmd_len=8192; | |
6927 | ;; | |
f35db108 | 6928 | |
c915a581 JJ |
6929 | mint*) |
6930 | # On MiNT this can take a long time and run out of memory. | |
6931 | lt_cv_sys_max_cmd_len=8192; | |
6932 | ;; | |
f35db108 | 6933 | |
c915a581 JJ |
6934 | amigaos*) |
6935 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6936 | # So we just punt and use a minimum line length of 8192. | |
6937 | lt_cv_sys_max_cmd_len=8192; | |
6938 | ;; | |
f35db108 | 6939 | |
c915a581 JJ |
6940 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6941 | # This has been around since 386BSD, at least. Likely further. | |
6942 | if test -x /sbin/sysctl; then | |
6943 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6944 | elif test -x /usr/sbin/sysctl; then | |
6945 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6946 | else | |
6947 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6948 | fi | |
6949 | # And add a safety zone | |
6950 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6951 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6952 | ;; | |
f35db108 | 6953 | |
c915a581 JJ |
6954 | interix*) |
6955 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6956 | lt_cv_sys_max_cmd_len=196608 | |
6957 | ;; | |
6958 | ||
6959 | osf*) | |
6960 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6961 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6962 | # nice to cause kernel panics so lets avoid the loop below. | |
6963 | # First set a reasonable default. | |
6964 | lt_cv_sys_max_cmd_len=16384 | |
6965 | # | |
6966 | if test -x /sbin/sysconfig; then | |
6967 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6968 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6969 | esac | |
6970 | fi | |
6971 | ;; | |
6972 | sco3.2v5*) | |
6973 | lt_cv_sys_max_cmd_len=102400 | |
6974 | ;; | |
6975 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6976 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6977 | if test -n "$kargmax"; then | |
6978 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6979 | else | |
6980 | lt_cv_sys_max_cmd_len=32768 | |
6981 | fi | |
6982 | ;; | |
6983 | *) | |
6984 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6985 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6986 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6987 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6988 | else | |
6989 | # Make teststring a little bigger before we do anything with it. | |
6990 | # a 1K string should be a reasonable start. | |
6991 | for i in 1 2 3 4 5 6 7 8 ; do | |
6992 | teststring=$teststring$teststring | |
6993 | done | |
6994 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6995 | # If test is not a shell built-in, we'll probably end up computing a | |
6996 | # maximum length that is only half of the actual maximum length, but | |
6997 | # we can't tell. | |
6998 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6999 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
7000 | test $i != 17 # 1/2 MB should be enough | |
7001 | do | |
7002 | i=`expr $i + 1` | |
7003 | teststring=$teststring$teststring | |
7004 | done | |
7005 | # Only check the string length outside the loop. | |
7006 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
7007 | teststring= | |
7008 | # Add a significant safety factor because C++ compilers can tack on | |
7009 | # massive amounts of additional arguments before passing them to the | |
7010 | # linker. It appears as though 1/2 is a usable value. | |
7011 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
7012 | fi | |
7013 | ;; | |
7014 | esac | |
7015 | ||
7016 | fi | |
7017 | ||
7018 | if test -n $lt_cv_sys_max_cmd_len ; then | |
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
7020 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
7021 | else | |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
7023 | $as_echo "none" >&6; } | |
7024 | fi | |
7025 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
f35db108 WM |
7026 | |
7027 | ||
7028 | ||
7029 | ||
7030 | ||
7031 | ||
c915a581 JJ |
7032 | : ${CP="cp -f"} |
7033 | : ${MV="mv -f"} | |
7034 | : ${RM="rm -f"} | |
7035 | ||
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
7037 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
7038 | # Try some XSI features | |
7039 | xsi_shell=no | |
7040 | ( _lt_dummy="a/b/c" | |
7041 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
7042 | = c,a/b,, \ | |
7043 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7044 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7045 | && xsi_shell=yes | |
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
7047 | $as_echo "$xsi_shell" >&6; } | |
7048 | ||
7049 | ||
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
7051 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
7052 | lt_shell_append=no | |
7053 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
7054 | >/dev/null 2>&1 \ | |
7055 | && lt_shell_append=yes | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
7057 | $as_echo "$lt_shell_append" >&6; } | |
f35db108 WM |
7058 | |
7059 | ||
c915a581 JJ |
7060 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
7061 | lt_unset=unset | |
7062 | else | |
7063 | lt_unset=false | |
7064 | fi | |
f35db108 WM |
7065 | |
7066 | ||
7067 | ||
7068 | ||
7069 | ||
c915a581 JJ |
7070 | # test EBCDIC or ASCII |
7071 | case `echo X|tr X '\101'` in | |
7072 | A) # ASCII based system | |
7073 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7074 | lt_SP2NL='tr \040 \012' | |
7075 | lt_NL2SP='tr \015\012 \040\040' | |
7076 | ;; | |
7077 | *) # EBCDIC based system | |
7078 | lt_SP2NL='tr \100 \n' | |
7079 | lt_NL2SP='tr \r\n \100\100' | |
7080 | ;; | |
7081 | esac | |
f35db108 WM |
7082 | |
7083 | ||
7084 | ||
7085 | ||
7086 | ||
7087 | ||
7088 | ||
7089 | ||
7090 | ||
c915a581 JJ |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
7092 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 7093 | if ${lt_cv_ld_reload_flag+:} false; then : |
f35db108 WM |
7094 | $as_echo_n "(cached) " >&6 |
7095 | else | |
c915a581 | 7096 | lt_cv_ld_reload_flag='-r' |
f35db108 | 7097 | fi |
c915a581 JJ |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
7099 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
7100 | reload_flag=$lt_cv_ld_reload_flag | |
7101 | case $reload_flag in | |
7102 | "" | " "*) ;; | |
7103 | *) reload_flag=" $reload_flag" ;; | |
7104 | esac | |
7105 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7106 | case $host_os in | |
7107 | darwin*) | |
7108 | if test "$GCC" = yes; then | |
7109 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
7110 | else | |
7111 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
7112 | fi | |
7113 | ;; | |
7114 | esac | |
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | ||
7121 | ||
7122 | ||
7123 | ||
7124 | if test -n "$ac_tool_prefix"; then | |
7125 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
7126 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7128 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7129 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
f35db108 WM |
7130 | $as_echo_n "(cached) " >&6 |
7131 | else | |
c915a581 JJ |
7132 | if test -n "$OBJDUMP"; then |
7133 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
7134 | else | |
7135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7136 | for as_dir in $PATH | |
7137 | do | |
7138 | IFS=$as_save_IFS | |
7139 | test -z "$as_dir" && as_dir=. | |
7140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7141 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7142 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
7143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7144 | break 2 | |
7145 | fi | |
7146 | done | |
7147 | done | |
7148 | IFS=$as_save_IFS | |
f35db108 | 7149 | |
c915a581 JJ |
7150 | fi |
7151 | fi | |
7152 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
7153 | if test -n "$OBJDUMP"; then | |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
7155 | $as_echo "$OBJDUMP" >&6; } | |
f35db108 | 7156 | else |
c915a581 JJ |
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7158 | $as_echo "no" >&6; } | |
f35db108 | 7159 | fi |
c915a581 | 7160 | |
f35db108 WM |
7161 | |
7162 | fi | |
c915a581 JJ |
7163 | if test -z "$ac_cv_prog_OBJDUMP"; then |
7164 | ac_ct_OBJDUMP=$OBJDUMP | |
7165 | # Extract the first word of "objdump", so it can be a program name with args. | |
7166 | set dummy objdump; ac_word=$2 | |
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7168 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7169 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
f35db108 WM |
7170 | $as_echo_n "(cached) " >&6 |
7171 | else | |
c915a581 JJ |
7172 | if test -n "$ac_ct_OBJDUMP"; then |
7173 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
f35db108 | 7174 | else |
c915a581 JJ |
7175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7176 | for as_dir in $PATH | |
f35db108 | 7177 | do |
c915a581 JJ |
7178 | IFS=$as_save_IFS |
7179 | test -z "$as_dir" && as_dir=. | |
7180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7182 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
7183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7184 | break 2 | |
7185 | fi | |
f35db108 | 7186 | done |
c915a581 JJ |
7187 | done |
7188 | IFS=$as_save_IFS | |
f35db108 WM |
7189 | |
7190 | fi | |
f35db108 | 7191 | fi |
c915a581 JJ |
7192 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
7193 | if test -n "$ac_ct_OBJDUMP"; then | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
7195 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
f35db108 | 7196 | else |
c915a581 JJ |
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7198 | $as_echo "no" >&6; } | |
f35db108 | 7199 | fi |
f35db108 | 7200 | |
c915a581 JJ |
7201 | if test "x$ac_ct_OBJDUMP" = x; then |
7202 | OBJDUMP="false" | |
7203 | else | |
7204 | case $cross_compiling:$ac_tool_warned in | |
7205 | yes:) | |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7207 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7208 | ac_tool_warned=yes ;; | |
7209 | esac | |
7210 | OBJDUMP=$ac_ct_OBJDUMP | |
7211 | fi | |
f35db108 | 7212 | else |
c915a581 | 7213 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
f35db108 | 7214 | fi |
f35db108 | 7215 | |
c915a581 | 7216 | test -z "$OBJDUMP" && OBJDUMP=objdump |
f35db108 | 7217 | |
f35db108 | 7218 | |
f35db108 WM |
7219 | |
7220 | ||
f35db108 | 7221 | |
f35db108 | 7222 | |
f35db108 | 7223 | |
f35db108 | 7224 | |
f35db108 | 7225 | |
c915a581 JJ |
7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
7227 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 7228 | if ${lt_cv_deplibs_check_method+:} false; then : |
c915a581 | 7229 | $as_echo_n "(cached) " >&6 |
f35db108 | 7230 | else |
c915a581 JJ |
7231 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
7232 | lt_cv_file_magic_test_file= | |
7233 | lt_cv_deplibs_check_method='unknown' | |
7234 | # Need to set the preceding variable on all platforms that support | |
7235 | # interlibrary dependencies. | |
7236 | # 'none' -- dependencies not supported. | |
7237 | # `unknown' -- same as none, but documents that we really don't know. | |
7238 | # 'pass_all' -- all dependencies passed with no checks. | |
7239 | # 'test_compile' -- check by making test program. | |
7240 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
7241 | # which responds to the $file_magic_cmd with a given extended regex. | |
7242 | # If you have `file' or equivalent on your system and you're not sure | |
7243 | # whether `pass_all' will *always* work, you probably want this one. | |
f35db108 | 7244 | |
c915a581 JJ |
7245 | case $host_os in |
7246 | aix[4-9]*) | |
7247 | lt_cv_deplibs_check_method=pass_all | |
7248 | ;; | |
f35db108 | 7249 | |
c915a581 JJ |
7250 | beos*) |
7251 | lt_cv_deplibs_check_method=pass_all | |
7252 | ;; | |
f35db108 | 7253 | |
c915a581 JJ |
7254 | bsdi[45]*) |
7255 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
7256 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
7257 | lt_cv_file_magic_test_file=/shlib/libc.so | |
7258 | ;; | |
f35db108 | 7259 | |
c915a581 JJ |
7260 | cygwin*) |
7261 | # func_win32_libid is a shell function defined in ltmain.sh | |
7262 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7263 | lt_cv_file_magic_cmd='func_win32_libid' | |
7264 | ;; | |
f35db108 | 7265 | |
c915a581 JJ |
7266 | mingw* | pw32*) |
7267 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
7268 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
7269 | # unless we find 'file', for example because we are cross-compiling. | |
7270 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
7271 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
7272 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
7273 | lt_cv_file_magic_cmd='func_win32_libid' | |
7274 | else | |
7275 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
7276 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7277 | fi | |
7278 | ;; | |
f35db108 | 7279 | |
c915a581 JJ |
7280 | cegcc*) |
7281 | # use the weaker test based on 'objdump'. See mingw*. | |
7282 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
7283 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
7284 | ;; | |
f35db108 | 7285 | |
c915a581 JJ |
7286 | darwin* | rhapsody*) |
7287 | lt_cv_deplibs_check_method=pass_all | |
7288 | ;; | |
f35db108 | 7289 | |
c915a581 JJ |
7290 | freebsd* | dragonfly*) |
7291 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7292 | case $host_cpu in | |
7293 | i*86 ) | |
7294 | # Not sure whether the presence of OpenBSD here was a mistake. | |
7295 | # Let's accept both of them until this is cleared up. | |
7296 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
7297 | lt_cv_file_magic_cmd=/usr/bin/file | |
7298 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
7299 | ;; | |
7300 | esac | |
7301 | else | |
7302 | lt_cv_deplibs_check_method=pass_all | |
7303 | fi | |
7304 | ;; | |
f35db108 | 7305 | |
c915a581 JJ |
7306 | gnu*) |
7307 | lt_cv_deplibs_check_method=pass_all | |
7308 | ;; | |
f35db108 | 7309 | |
c915a581 JJ |
7310 | haiku*) |
7311 | lt_cv_deplibs_check_method=pass_all | |
7312 | ;; | |
f35db108 | 7313 | |
c915a581 JJ |
7314 | hpux10.20* | hpux11*) |
7315 | lt_cv_file_magic_cmd=/usr/bin/file | |
7316 | case $host_cpu in | |
7317 | ia64*) | |
7318 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
7319 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
7320 | ;; | |
7321 | hppa*64*) | |
7322 | 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]' | |
7323 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
7324 | ;; | |
7325 | *) | |
7326 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
7327 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
7328 | ;; | |
7329 | esac | |
7330 | ;; | |
f35db108 | 7331 | |
c915a581 JJ |
7332 | interix[3-9]*) |
7333 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
7334 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
7335 | ;; | |
f35db108 | 7336 | |
c915a581 JJ |
7337 | irix5* | irix6* | nonstopux*) |
7338 | case $LD in | |
7339 | *-32|*"-32 ") libmagic=32-bit;; | |
7340 | *-n32|*"-n32 ") libmagic=N32;; | |
7341 | *-64|*"-64 ") libmagic=64-bit;; | |
7342 | *) libmagic=never-match;; | |
7343 | esac | |
7344 | lt_cv_deplibs_check_method=pass_all | |
7345 | ;; | |
f35db108 | 7346 | |
c915a581 | 7347 | # This must be Linux ELF. |
e9085da5 | 7348 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
c915a581 JJ |
7349 | lt_cv_deplibs_check_method=pass_all |
7350 | ;; | |
f35db108 | 7351 | |
c915a581 JJ |
7352 | netbsd*) |
7353 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7354 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7355 | else | |
7356 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7357 | fi | |
7358 | ;; | |
f35db108 | 7359 | |
c915a581 JJ |
7360 | newos6*) |
7361 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7362 | lt_cv_file_magic_cmd=/usr/bin/file | |
7363 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7364 | ;; | |
f35db108 | 7365 | |
c915a581 JJ |
7366 | *nto* | *qnx*) |
7367 | lt_cv_deplibs_check_method=pass_all | |
7368 | ;; | |
f35db108 | 7369 | |
c915a581 JJ |
7370 | openbsd*) |
7371 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7372 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7373 | else | |
7374 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7375 | fi | |
7376 | ;; | |
f35db108 | 7377 | |
c915a581 JJ |
7378 | osf3* | osf4* | osf5*) |
7379 | lt_cv_deplibs_check_method=pass_all | |
7380 | ;; | |
f35db108 | 7381 | |
c915a581 JJ |
7382 | rdos*) |
7383 | lt_cv_deplibs_check_method=pass_all | |
7384 | ;; | |
f35db108 | 7385 | |
c915a581 JJ |
7386 | solaris*) |
7387 | lt_cv_deplibs_check_method=pass_all | |
7388 | ;; | |
f35db108 | 7389 | |
c915a581 JJ |
7390 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
7391 | lt_cv_deplibs_check_method=pass_all | |
7392 | ;; | |
f35db108 | 7393 | |
c915a581 JJ |
7394 | sysv4 | sysv4.3*) |
7395 | case $host_vendor in | |
7396 | motorola) | |
7397 | 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]' | |
7398 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7399 | ;; | |
7400 | ncr) | |
7401 | lt_cv_deplibs_check_method=pass_all | |
7402 | ;; | |
7403 | sequent) | |
7404 | lt_cv_file_magic_cmd='/bin/file' | |
7405 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7406 | ;; | |
7407 | sni) | |
7408 | lt_cv_file_magic_cmd='/bin/file' | |
7409 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7410 | lt_cv_file_magic_test_file=/lib/libc.so | |
7411 | ;; | |
7412 | siemens) | |
7413 | lt_cv_deplibs_check_method=pass_all | |
7414 | ;; | |
7415 | pc) | |
7416 | lt_cv_deplibs_check_method=pass_all | |
7417 | ;; | |
7418 | esac | |
7419 | ;; | |
f35db108 | 7420 | |
c915a581 JJ |
7421 | tpf*) |
7422 | lt_cv_deplibs_check_method=pass_all | |
7423 | ;; | |
0ecd0f1c OH |
7424 | vxworks*) |
7425 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
7426 | # as canadian for Windows hosts. | |
7427 | lt_cv_deplibs_check_method=pass_all | |
7428 | ;; | |
c915a581 | 7429 | esac |
f35db108 | 7430 | |
c915a581 JJ |
7431 | fi |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
7433 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7434 | file_magic_cmd=$lt_cv_file_magic_cmd | |
7435 | deplibs_check_method=$lt_cv_deplibs_check_method | |
7436 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
f35db108 WM |
7437 | |
7438 | ||
f35db108 WM |
7439 | |
7440 | ||
f35db108 WM |
7441 | |
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
126f707e L |
7449 | plugin_option= |
7450 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
7451 | for plugin in $plugin_names; do | |
7452 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
7453 | if test x$plugin_so = x$plugin; then | |
7454 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
7455 | fi | |
7456 | if test x$plugin_so != x$plugin; then | |
7457 | plugin_option="--plugin $plugin_so" | |
7458 | break | |
7459 | fi | |
7460 | done | |
7461 | ||
c915a581 JJ |
7462 | if test -n "$ac_tool_prefix"; then |
7463 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7464 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7466 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7467 | if ${ac_cv_prog_AR+:} false; then : |
c915a581 JJ |
7468 | $as_echo_n "(cached) " >&6 |
7469 | else | |
7470 | if test -n "$AR"; then | |
7471 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7472 | else | |
7473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7474 | for as_dir in $PATH | |
7475 | do | |
7476 | IFS=$as_save_IFS | |
7477 | test -z "$as_dir" && as_dir=. | |
7478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7479 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7480 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
7481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7482 | break 2 | |
7483 | fi | |
7484 | done | |
7485 | done | |
7486 | IFS=$as_save_IFS | |
f35db108 | 7487 | |
c915a581 JJ |
7488 | fi |
7489 | fi | |
7490 | AR=$ac_cv_prog_AR | |
7491 | if test -n "$AR"; then | |
7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7493 | $as_echo "$AR" >&6; } | |
f35db108 | 7494 | else |
c915a581 JJ |
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7496 | $as_echo "no" >&6; } | |
f35db108 WM |
7497 | fi |
7498 | ||
7499 | ||
c915a581 JJ |
7500 | fi |
7501 | if test -z "$ac_cv_prog_AR"; then | |
7502 | ac_ct_AR=$AR | |
7503 | # Extract the first word of "ar", so it can be a program name with args. | |
7504 | set dummy ar; ac_word=$2 | |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7506 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7507 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c915a581 JJ |
7508 | $as_echo_n "(cached) " >&6 |
7509 | else | |
7510 | if test -n "$ac_ct_AR"; then | |
7511 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7512 | else | |
7513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7514 | for as_dir in $PATH | |
7515 | do | |
7516 | IFS=$as_save_IFS | |
7517 | test -z "$as_dir" && as_dir=. | |
7518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7519 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7520 | ac_cv_prog_ac_ct_AR="ar" |
7521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7522 | break 2 | |
7523 | fi | |
7524 | done | |
7525 | done | |
7526 | IFS=$as_save_IFS | |
f35db108 | 7527 | |
c915a581 JJ |
7528 | fi |
7529 | fi | |
7530 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7531 | if test -n "$ac_ct_AR"; then | |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7533 | $as_echo "$ac_ct_AR" >&6; } | |
f35db108 | 7534 | else |
c915a581 JJ |
7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7536 | $as_echo "no" >&6; } | |
f35db108 WM |
7537 | fi |
7538 | ||
c915a581 JJ |
7539 | if test "x$ac_ct_AR" = x; then |
7540 | AR="false" | |
7541 | else | |
7542 | case $cross_compiling:$ac_tool_warned in | |
7543 | yes:) | |
7544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7546 | ac_tool_warned=yes ;; | |
7547 | esac | |
7548 | AR=$ac_ct_AR | |
7549 | fi | |
f35db108 | 7550 | else |
c915a581 | 7551 | AR="$ac_cv_prog_AR" |
f35db108 WM |
7552 | fi |
7553 | ||
c915a581 | 7554 | test -z "$AR" && AR=ar |
126f707e L |
7555 | if test -n "$plugin_option"; then |
7556 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
9c7797a8 L |
7557 | touch conftest.c |
7558 | $AR $plugin_option rc conftest.a conftest.c | |
7559 | if test "$?" != 0; then | |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
7561 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
7562 | else | |
7563 | AR="$AR $plugin_option" | |
7564 | fi | |
7565 | rm -f conftest.* | |
126f707e L |
7566 | fi |
7567 | fi | |
c915a581 | 7568 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
f35db108 WM |
7569 | |
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
c915a581 JJ |
7580 | if test -n "$ac_tool_prefix"; then |
7581 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7582 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7584 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7585 | if ${ac_cv_prog_STRIP+:} false; then : |
c915a581 JJ |
7586 | $as_echo_n "(cached) " >&6 |
7587 | else | |
7588 | if test -n "$STRIP"; then | |
7589 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7590 | else | |
7591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7592 | for as_dir in $PATH | |
7593 | do | |
7594 | IFS=$as_save_IFS | |
7595 | test -z "$as_dir" && as_dir=. | |
7596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7598 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7600 | break 2 | |
7601 | fi | |
7602 | done | |
7603 | done | |
7604 | IFS=$as_save_IFS | |
f35db108 | 7605 | |
c915a581 JJ |
7606 | fi |
7607 | fi | |
7608 | STRIP=$ac_cv_prog_STRIP | |
7609 | if test -n "$STRIP"; then | |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7611 | $as_echo "$STRIP" >&6; } | |
7612 | else | |
7613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7614 | $as_echo "no" >&6; } | |
7615 | fi | |
f35db108 WM |
7616 | |
7617 | ||
c915a581 JJ |
7618 | fi |
7619 | if test -z "$ac_cv_prog_STRIP"; then | |
7620 | ac_ct_STRIP=$STRIP | |
7621 | # Extract the first word of "strip", so it can be a program name with args. | |
7622 | set dummy strip; ac_word=$2 | |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7624 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7625 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c915a581 JJ |
7626 | $as_echo_n "(cached) " >&6 |
7627 | else | |
7628 | if test -n "$ac_ct_STRIP"; then | |
7629 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7630 | else | |
7631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7632 | for as_dir in $PATH | |
7633 | do | |
7634 | IFS=$as_save_IFS | |
7635 | test -z "$as_dir" && as_dir=. | |
7636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7637 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7638 | ac_cv_prog_ac_ct_STRIP="strip" |
7639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7640 | break 2 | |
7641 | fi | |
7642 | done | |
7643 | done | |
7644 | IFS=$as_save_IFS | |
f35db108 | 7645 | |
c915a581 JJ |
7646 | fi |
7647 | fi | |
7648 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7649 | if test -n "$ac_ct_STRIP"; then | |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7651 | $as_echo "$ac_ct_STRIP" >&6; } | |
7652 | else | |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7654 | $as_echo "no" >&6; } | |
7655 | fi | |
f35db108 | 7656 | |
c915a581 JJ |
7657 | if test "x$ac_ct_STRIP" = x; then |
7658 | STRIP=":" | |
7659 | else | |
7660 | case $cross_compiling:$ac_tool_warned in | |
7661 | yes:) | |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7663 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7664 | ac_tool_warned=yes ;; | |
7665 | esac | |
7666 | STRIP=$ac_ct_STRIP | |
7667 | fi | |
7668 | else | |
7669 | STRIP="$ac_cv_prog_STRIP" | |
7670 | fi | |
f35db108 | 7671 | |
c915a581 | 7672 | test -z "$STRIP" && STRIP=: |
f35db108 WM |
7673 | |
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
c915a581 JJ |
7679 | if test -n "$ac_tool_prefix"; then |
7680 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7681 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7683 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7684 | if ${ac_cv_prog_RANLIB+:} false; then : |
c915a581 JJ |
7685 | $as_echo_n "(cached) " >&6 |
7686 | else | |
7687 | if test -n "$RANLIB"; then | |
7688 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7689 | else | |
7690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7691 | for as_dir in $PATH | |
7692 | do | |
7693 | IFS=$as_save_IFS | |
7694 | test -z "$as_dir" && as_dir=. | |
7695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7697 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7699 | break 2 | |
7700 | fi | |
7701 | done | |
7702 | done | |
7703 | IFS=$as_save_IFS | |
f35db108 | 7704 | |
c915a581 JJ |
7705 | fi |
7706 | fi | |
7707 | RANLIB=$ac_cv_prog_RANLIB | |
7708 | if test -n "$RANLIB"; then | |
7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7710 | $as_echo "$RANLIB" >&6; } | |
7711 | else | |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7713 | $as_echo "no" >&6; } | |
7714 | fi | |
f35db108 WM |
7715 | |
7716 | ||
f35db108 | 7717 | fi |
c915a581 JJ |
7718 | if test -z "$ac_cv_prog_RANLIB"; then |
7719 | ac_ct_RANLIB=$RANLIB | |
7720 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7721 | set dummy ranlib; ac_word=$2 | |
7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7723 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7724 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
f35db108 WM |
7725 | $as_echo_n "(cached) " >&6 |
7726 | else | |
c915a581 JJ |
7727 | if test -n "$ac_ct_RANLIB"; then |
7728 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
f35db108 | 7729 | else |
c915a581 JJ |
7730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7731 | for as_dir in $PATH | |
7732 | do | |
7733 | IFS=$as_save_IFS | |
7734 | test -z "$as_dir" && as_dir=. | |
7735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
7737 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7739 | break 2 | |
7740 | fi | |
7741 | done | |
7742 | done | |
7743 | IFS=$as_save_IFS | |
7744 | ||
f35db108 | 7745 | fi |
f35db108 | 7746 | fi |
c915a581 JJ |
7747 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7748 | if test -n "$ac_ct_RANLIB"; then | |
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7750 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7751 | else | |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7753 | $as_echo "no" >&6; } | |
7754 | fi | |
7755 | ||
7756 | if test "x$ac_ct_RANLIB" = x; then | |
7757 | RANLIB=":" | |
7758 | else | |
7759 | case $cross_compiling:$ac_tool_warned in | |
7760 | yes:) | |
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7762 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7763 | ac_tool_warned=yes ;; | |
7764 | esac | |
7765 | RANLIB=$ac_ct_RANLIB | |
7766 | fi | |
7767 | else | |
7768 | RANLIB="$ac_cv_prog_RANLIB" | |
7769 | fi | |
f35db108 | 7770 | |
c915a581 | 7771 | test -z "$RANLIB" && RANLIB=: |
126f707e L |
7772 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
7773 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7774 | RANLIB="$RANLIB $plugin_option" | |
7775 | fi | |
7776 | fi | |
f35db108 WM |
7777 | |
7778 | ||
7779 | ||
7780 | ||
f35db108 WM |
7781 | |
7782 | ||
c915a581 JJ |
7783 | # Determine commands to create old-style static archives. |
7784 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7785 | old_postinstall_cmds='chmod 644 $oldlib' | |
7786 | old_postuninstall_cmds= | |
f35db108 | 7787 | |
c915a581 JJ |
7788 | if test -n "$RANLIB"; then |
7789 | case $host_os in | |
7790 | openbsd*) | |
7791 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7792 | ;; | |
7793 | *) | |
7794 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7795 | ;; | |
7796 | esac | |
7797 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7798 | fi | |
f35db108 WM |
7799 | |
7800 | case $host_os in | |
c915a581 JJ |
7801 | darwin*) |
7802 | lock_old_archive_extraction=yes ;; | |
7803 | *) | |
7804 | lock_old_archive_extraction=no ;; | |
f35db108 WM |
7805 | esac |
7806 | ||
f35db108 | 7807 | |
f35db108 | 7808 | |
f35db108 | 7809 | |
f35db108 | 7810 | |
f35db108 | 7811 | |
f35db108 WM |
7812 | |
7813 | ||
f35db108 | 7814 | |
f35db108 | 7815 | |
f35db108 | 7816 | |
f35db108 WM |
7817 | |
7818 | ||
7819 | ||
7820 | ||
7821 | ||
f35db108 | 7822 | |
f35db108 | 7823 | |
f35db108 | 7824 | |
f35db108 WM |
7825 | |
7826 | ||
f35db108 | 7827 | |
f35db108 | 7828 | |
f35db108 | 7829 | |
f35db108 WM |
7830 | |
7831 | ||
f35db108 | 7832 | |
f35db108 | 7833 | |
f35db108 | 7834 | |
c915a581 JJ |
7835 | |
7836 | ||
7837 | ||
f35db108 WM |
7838 | |
7839 | ||
7840 | ||
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | # If no C compiler was specified, use CC. | |
7846 | LTCC=${LTCC-"$CC"} | |
7847 | ||
7848 | # If no C compiler flags were specified, use CFLAGS. | |
7849 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7850 | ||
7851 | # Allow CC to be a program name with arguments. | |
7852 | compiler=$CC | |
7853 | ||
f35db108 | 7854 | |
c915a581 JJ |
7855 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7857 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 7858 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
c915a581 JJ |
7859 | $as_echo_n "(cached) " >&6 |
7860 | else | |
f35db108 | 7861 | |
c915a581 JJ |
7862 | # These are sane defaults that work on at least a few old systems. |
7863 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
f35db108 | 7864 | |
c915a581 JJ |
7865 | # Character class describing NM global symbol codes. |
7866 | symcode='[BCDEGRST]' | |
f35db108 | 7867 | |
c915a581 JJ |
7868 | # Regexp to match symbols that can be accessed directly from C. |
7869 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
f35db108 | 7870 | |
c915a581 JJ |
7871 | # Define system-specific variables. |
7872 | case $host_os in | |
7873 | aix*) | |
7874 | symcode='[BCDT]' | |
7875 | ;; | |
7876 | cygwin* | mingw* | pw32* | cegcc*) | |
7877 | symcode='[ABCDGISTW]' | |
7878 | ;; | |
7879 | hpux*) | |
7880 | if test "$host_cpu" = ia64; then | |
7881 | symcode='[ABCDEGRST]' | |
7882 | fi | |
7883 | ;; | |
7884 | irix* | nonstopux*) | |
7885 | symcode='[BCDEGRST]' | |
7886 | ;; | |
7887 | osf*) | |
7888 | symcode='[BCDEGQRST]' | |
7889 | ;; | |
7890 | solaris*) | |
dc17ceb3 | 7891 | symcode='[BCDRT]' |
c915a581 JJ |
7892 | ;; |
7893 | sco3.2v5*) | |
7894 | symcode='[DT]' | |
7895 | ;; | |
7896 | sysv4.2uw2*) | |
7897 | symcode='[DT]' | |
7898 | ;; | |
7899 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7900 | symcode='[ABDT]' | |
7901 | ;; | |
7902 | sysv4) | |
7903 | symcode='[DFNSTU]' | |
7904 | ;; | |
7905 | esac | |
f35db108 | 7906 | |
c915a581 JJ |
7907 | # If we're using GNU nm, then use its standard symbol codes. |
7908 | case `$NM -V 2>&1` in | |
7909 | *GNU* | *'with BFD'*) | |
7910 | symcode='[ABCDGIRSTW]' ;; | |
7911 | esac | |
f35db108 | 7912 | |
c915a581 JJ |
7913 | # Transform an extracted symbol line into a proper C declaration. |
7914 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7915 | # so use this general approach. | |
7916 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
f35db108 | 7917 | |
c915a581 JJ |
7918 | # Transform an extracted symbol line into symbol name and symbol address |
7919 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7920 | 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 | 7921 | |
c915a581 JJ |
7922 | # Handle CRLF in mingw tool chain |
7923 | opt_cr= | |
7924 | case $build_os in | |
7925 | mingw*) | |
7926 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7927 | ;; | |
7928 | esac | |
f35db108 | 7929 | |
c915a581 JJ |
7930 | # Try without a prefix underscore, then with it. |
7931 | for ac_symprfx in "" "_"; do | |
f35db108 | 7932 | |
c915a581 JJ |
7933 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7934 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
f35db108 | 7935 | |
c915a581 JJ |
7936 | # Write the raw and C identifiers. |
7937 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7938 | # Fake it for dumpbin and say T for any non-static function | |
7939 | # and D for any global variable. | |
7940 | # Also find C++ and __fastcall symbols from MSVC++, | |
7941 | # which start with @ or ?. | |
7942 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7943 | " {last_section=section; section=\$ 3};"\ | |
7944 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7945 | " \$ 0!~/External *\|/{next};"\ | |
7946 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7947 | " {if(hide[section]) next};"\ | |
7948 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7949 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7950 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7951 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7952 | " ' prfx=^$ac_symprfx" | |
7953 | else | |
7954 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7955 | fi | |
f35db108 | 7956 | |
c915a581 JJ |
7957 | # Check to see that the pipe works correctly. |
7958 | pipe_works=no | |
f35db108 | 7959 | |
c915a581 JJ |
7960 | rm -f conftest* |
7961 | cat > conftest.$ac_ext <<_LT_EOF | |
7962 | #ifdef __cplusplus | |
7963 | extern "C" { | |
7964 | #endif | |
7965 | char nm_test_var; | |
7966 | void nm_test_func(void); | |
7967 | void nm_test_func(void){} | |
7968 | #ifdef __cplusplus | |
7969 | } | |
7970 | #endif | |
7971 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7972 | _LT_EOF | |
f35db108 | 7973 | |
c915a581 JJ |
7974 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7975 | (eval $ac_compile) 2>&5 | |
7976 | ac_status=$? | |
7977 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7978 | test $ac_status = 0; }; then | |
7979 | # Now try to grab the symbols. | |
7980 | nlist=conftest.nm | |
7981 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7982 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7983 | ac_status=$? | |
7984 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7985 | test $ac_status = 0; } && test -s "$nlist"; then | |
7986 | # Try sorting and uniquifying the output. | |
7987 | if sort "$nlist" | uniq > "$nlist"T; then | |
7988 | mv -f "$nlist"T "$nlist" | |
7989 | else | |
7990 | rm -f "$nlist"T | |
7991 | fi | |
f35db108 | 7992 | |
c915a581 JJ |
7993 | # Make sure that we snagged all the symbols we need. |
7994 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7995 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7996 | cat <<_LT_EOF > conftest.$ac_ext | |
7997 | #ifdef __cplusplus | |
7998 | extern "C" { | |
7999 | #endif | |
f35db108 | 8000 | |
c915a581 JJ |
8001 | _LT_EOF |
8002 | # Now generate the symbol file. | |
8003 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
f35db108 | 8004 | |
c915a581 JJ |
8005 | cat <<_LT_EOF >> conftest.$ac_ext |
8006 | ||
8007 | /* The mapping between symbol names and symbols. */ | |
8008 | const struct { | |
8009 | const char *name; | |
8010 | void *address; | |
8011 | } | |
8012 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
8013 | { | |
8014 | { "@PROGRAM@", (void *) 0 }, | |
8015 | _LT_EOF | |
8016 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
8017 | cat <<\_LT_EOF >> conftest.$ac_ext | |
8018 | {0, (void *) 0} | |
8019 | }; | |
8020 | ||
8021 | /* This works around a problem in FreeBSD linker */ | |
8022 | #ifdef FREEBSD_WORKAROUND | |
8023 | static const void *lt_preloaded_setup() { | |
8024 | return lt__PROGRAM__LTX_preloaded_symbols; | |
8025 | } | |
8026 | #endif | |
8027 | ||
8028 | #ifdef __cplusplus | |
8029 | } | |
8030 | #endif | |
8031 | _LT_EOF | |
8032 | # Now try linking the two files. | |
8033 | mv conftest.$ac_objext conftstm.$ac_objext | |
8034 | lt_save_LIBS="$LIBS" | |
8035 | lt_save_CFLAGS="$CFLAGS" | |
8036 | LIBS="conftstm.$ac_objext" | |
8037 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
8038 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
8039 | (eval $ac_link) 2>&5 | |
8040 | ac_status=$? | |
8041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8042 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
8043 | pipe_works=yes | |
8044 | fi | |
8045 | LIBS="$lt_save_LIBS" | |
8046 | CFLAGS="$lt_save_CFLAGS" | |
8047 | else | |
8048 | echo "cannot find nm_test_func in $nlist" >&5 | |
8049 | fi | |
8050 | else | |
8051 | echo "cannot find nm_test_var in $nlist" >&5 | |
f35db108 | 8052 | fi |
c915a581 JJ |
8053 | else |
8054 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8055 | fi | |
8056 | else | |
8057 | echo "$progname: failed program was:" >&5 | |
8058 | cat conftest.$ac_ext >&5 | |
8059 | fi | |
8060 | rm -rf conftest* conftst* | |
f35db108 | 8061 | |
c915a581 JJ |
8062 | # Do not use the global_symbol_pipe unless it works. |
8063 | if test "$pipe_works" = yes; then | |
8064 | break | |
8065 | else | |
8066 | lt_cv_sys_global_symbol_pipe= | |
8067 | fi | |
8068 | done | |
f35db108 | 8069 | |
c915a581 | 8070 | fi |
f35db108 | 8071 | |
c915a581 JJ |
8072 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
8073 | lt_cv_sys_global_symbol_to_cdecl= | |
8074 | fi | |
8075 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
8077 | $as_echo "failed" >&6; } | |
8078 | else | |
8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8080 | $as_echo "ok" >&6; } | |
8081 | fi | |
f35db108 | 8082 | |
f35db108 | 8083 | |
f35db108 | 8084 | |
f35db108 | 8085 | |
f35db108 | 8086 | |
f35db108 | 8087 | |
f35db108 | 8088 | |
f35db108 | 8089 | |
f35db108 | 8090 | |
f35db108 | 8091 | |
f35db108 | 8092 | |
f35db108 | 8093 | |
f35db108 | 8094 | |
c915a581 JJ |
8095 | |
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | # Check whether --enable-libtool-lock was given. | |
8105 | if test "${enable_libtool_lock+set}" = set; then : | |
8106 | enableval=$enable_libtool_lock; | |
8107 | fi | |
8108 | ||
8109 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
8110 | ||
8111 | # Some flags need to be propagated to the compiler or linker for good | |
8112 | # libtool support. | |
8113 | case $host in | |
8114 | ia64-*-hpux*) | |
8115 | # Find out which ABI we are using. | |
8116 | echo 'int i;' > conftest.$ac_ext | |
8117 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8118 | (eval $ac_compile) 2>&5 | |
8119 | ac_status=$? | |
8120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8121 | test $ac_status = 0; }; then | |
8122 | case `/usr/bin/file conftest.$ac_objext` in | |
8123 | *ELF-32*) | |
8124 | HPUX_IA64_MODE="32" | |
f35db108 | 8125 | ;; |
c915a581 JJ |
8126 | *ELF-64*) |
8127 | HPUX_IA64_MODE="64" | |
f35db108 | 8128 | ;; |
c915a581 JJ |
8129 | esac |
8130 | fi | |
8131 | rm -rf conftest* | |
8132 | ;; | |
8133 | *-*-irix6*) | |
8134 | # Find out which ABI we are using. | |
8135 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
8136 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8137 | (eval $ac_compile) 2>&5 | |
8138 | ac_status=$? | |
8139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8140 | test $ac_status = 0; }; then | |
8141 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8142 | case `/usr/bin/file conftest.$ac_objext` in | |
8143 | *32-bit*) | |
8144 | LD="${LD-ld} -melf32bsmip" | |
f35db108 | 8145 | ;; |
c915a581 JJ |
8146 | *N32*) |
8147 | LD="${LD-ld} -melf32bmipn32" | |
f35db108 | 8148 | ;; |
c915a581 JJ |
8149 | *64-bit*) |
8150 | LD="${LD-ld} -melf64bmip" | |
f35db108 WM |
8151 | ;; |
8152 | esac | |
c915a581 JJ |
8153 | else |
8154 | case `/usr/bin/file conftest.$ac_objext` in | |
8155 | *32-bit*) | |
8156 | LD="${LD-ld} -32" | |
8157 | ;; | |
8158 | *N32*) | |
8159 | LD="${LD-ld} -n32" | |
8160 | ;; | |
8161 | *64-bit*) | |
8162 | LD="${LD-ld} -64" | |
8163 | ;; | |
f35db108 | 8164 | esac |
c915a581 JJ |
8165 | fi |
8166 | fi | |
8167 | rm -rf conftest* | |
8168 | ;; | |
f35db108 | 8169 | |
c915a581 JJ |
8170 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
8171 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
8172 | # Find out which ABI we are using. | |
8173 | echo 'int i;' > conftest.$ac_ext | |
8174 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8175 | (eval $ac_compile) 2>&5 | |
8176 | ac_status=$? | |
8177 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8178 | test $ac_status = 0; }; then | |
8179 | case `/usr/bin/file conftest.o` in | |
8180 | *32-bit*) | |
8181 | case $host in | |
8182 | x86_64-*kfreebsd*-gnu) | |
8183 | LD="${LD-ld} -m elf_i386_fbsd" | |
8184 | ;; | |
8185 | x86_64-*linux*) | |
8186 | case `/usr/bin/file conftest.o` in | |
8187 | *x86-64*) | |
8188 | LD="${LD-ld} -m elf32_x86_64" | |
8189 | ;; | |
8190 | *) | |
8191 | LD="${LD-ld} -m elf_i386" | |
8192 | ;; | |
8193 | esac | |
8194 | ;; | |
8195 | powerpc64le-*linux*) | |
8196 | LD="${LD-ld} -m elf32lppclinux" | |
8197 | ;; | |
8198 | powerpc64-*linux*) | |
8199 | LD="${LD-ld} -m elf32ppclinux" | |
8200 | ;; | |
8201 | s390x-*linux*) | |
8202 | LD="${LD-ld} -m elf_s390" | |
8203 | ;; | |
8204 | sparc64-*linux*) | |
8205 | LD="${LD-ld} -m elf32_sparc" | |
8206 | ;; | |
8207 | esac | |
8208 | ;; | |
8209 | *64-bit*) | |
8210 | case $host in | |
8211 | x86_64-*kfreebsd*-gnu) | |
8212 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
8213 | ;; | |
8214 | x86_64-*linux*) | |
8215 | LD="${LD-ld} -m elf_x86_64" | |
8216 | ;; | |
8217 | powerpcle-*linux*) | |
8218 | LD="${LD-ld} -m elf64lppc" | |
8219 | ;; | |
8220 | powerpc-*linux*) | |
8221 | LD="${LD-ld} -m elf64ppc" | |
8222 | ;; | |
8223 | s390*-*linux*|s390*-*tpf*) | |
8224 | LD="${LD-ld} -m elf64_s390" | |
8225 | ;; | |
8226 | sparc*-*linux*) | |
8227 | LD="${LD-ld} -m elf64_sparc" | |
8228 | ;; | |
8229 | esac | |
8230 | ;; | |
8231 | esac | |
8232 | fi | |
8233 | rm -rf conftest* | |
8234 | ;; | |
f35db108 | 8235 | |
c915a581 JJ |
8236 | *-*-sco3.2v5*) |
8237 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8238 | SAVE_CFLAGS="$CFLAGS" | |
8239 | CFLAGS="$CFLAGS -belf" | |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
8241 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 8242 | if ${lt_cv_cc_needs_belf+:} false; then : |
c915a581 JJ |
8243 | $as_echo_n "(cached) " >&6 |
8244 | else | |
8245 | ac_ext=c | |
8246 | ac_cpp='$CPP $CPPFLAGS' | |
8247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 8250 | |
c915a581 JJ |
8251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8252 | /* end confdefs.h. */ | |
f35db108 | 8253 | |
c915a581 JJ |
8254 | int |
8255 | main () | |
8256 | { | |
f35db108 | 8257 | |
c915a581 JJ |
8258 | ; |
8259 | return 0; | |
8260 | } | |
8261 | _ACEOF | |
8262 | if ac_fn_c_try_link "$LINENO"; then : | |
8263 | lt_cv_cc_needs_belf=yes | |
8264 | else | |
8265 | lt_cv_cc_needs_belf=no | |
8266 | fi | |
8267 | rm -f core conftest.err conftest.$ac_objext \ | |
8268 | conftest$ac_exeext conftest.$ac_ext | |
8269 | ac_ext=c | |
8270 | ac_cpp='$CPP $CPPFLAGS' | |
8271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 | 8274 | |
c915a581 JJ |
8275 | fi |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
8277 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
8278 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
8279 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8280 | CFLAGS="$SAVE_CFLAGS" | |
8281 | fi | |
8282 | ;; | |
8283 | sparc*-*solaris*) | |
8284 | # Find out which ABI we are using. | |
8285 | echo 'int i;' > conftest.$ac_ext | |
8286 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8287 | (eval $ac_compile) 2>&5 | |
8288 | ac_status=$? | |
8289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8290 | test $ac_status = 0; }; then | |
8291 | case `/usr/bin/file conftest.o` in | |
8292 | *64-bit*) | |
8293 | case $lt_cv_prog_gnu_ld in | |
8294 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
8295 | *) | |
8296 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8297 | LD="${LD-ld} -64" | |
8298 | fi | |
8299 | ;; | |
8300 | esac | |
f35db108 WM |
8301 | ;; |
8302 | esac | |
8303 | fi | |
c915a581 JJ |
8304 | rm -rf conftest* |
8305 | ;; | |
8306 | esac | |
f35db108 | 8307 | |
c915a581 | 8308 | need_locks="$enable_libtool_lock" |
a2479b3d L |
8309 | |
8310 | ||
c915a581 JJ |
8311 | case $host_os in |
8312 | rhapsody* | darwin*) | |
8313 | if test -n "$ac_tool_prefix"; then | |
8314 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8315 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8317 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8318 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
c915a581 JJ |
8319 | $as_echo_n "(cached) " >&6 |
8320 | else | |
8321 | if test -n "$DSYMUTIL"; then | |
8322 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8323 | else | |
8324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8325 | for as_dir in $PATH | |
8326 | do | |
8327 | IFS=$as_save_IFS | |
8328 | test -z "$as_dir" && as_dir=. | |
8329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8331 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
8332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8333 | break 2 | |
8334 | fi | |
8335 | done | |
8336 | done | |
8337 | IFS=$as_save_IFS | |
a2479b3d | 8338 | |
c915a581 JJ |
8339 | fi |
8340 | fi | |
8341 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8342 | if test -n "$DSYMUTIL"; then | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8344 | $as_echo "$DSYMUTIL" >&6; } | |
8345 | else | |
8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8347 | $as_echo "no" >&6; } | |
8348 | fi | |
f35db108 | 8349 | |
f35db108 | 8350 | |
c915a581 JJ |
8351 | fi |
8352 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8353 | ac_ct_DSYMUTIL=$DSYMUTIL | |
8354 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
8355 | set dummy dsymutil; ac_word=$2 | |
8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8357 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8358 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
f35db108 WM |
8359 | $as_echo_n "(cached) " >&6 |
8360 | else | |
c915a581 JJ |
8361 | if test -n "$ac_ct_DSYMUTIL"; then |
8362 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8363 | else | |
8364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8365 | for as_dir in $PATH | |
8366 | do | |
8367 | IFS=$as_save_IFS | |
8368 | test -z "$as_dir" && as_dir=. | |
8369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8370 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8371 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
8372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8373 | break 2 | |
8374 | fi | |
8375 | done | |
8376 | done | |
8377 | IFS=$as_save_IFS | |
f35db108 WM |
8378 | |
8379 | fi | |
c915a581 JJ |
8380 | fi |
8381 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8382 | if test -n "$ac_ct_DSYMUTIL"; then | |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8384 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
f35db108 | 8385 | else |
c915a581 JJ |
8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8387 | $as_echo "no" >&6; } | |
f35db108 WM |
8388 | fi |
8389 | ||
c915a581 JJ |
8390 | if test "x$ac_ct_DSYMUTIL" = x; then |
8391 | DSYMUTIL=":" | |
8392 | else | |
8393 | case $cross_compiling:$ac_tool_warned in | |
8394 | yes:) | |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8396 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8397 | ac_tool_warned=yes ;; | |
8398 | esac | |
8399 | DSYMUTIL=$ac_ct_DSYMUTIL | |
8400 | fi | |
8401 | else | |
8402 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
f35db108 WM |
8403 | fi |
8404 | ||
c915a581 JJ |
8405 | if test -n "$ac_tool_prefix"; then |
8406 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8407 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8409 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8410 | if ${ac_cv_prog_NMEDIT+:} false; then : |
f35db108 WM |
8411 | $as_echo_n "(cached) " >&6 |
8412 | else | |
c915a581 JJ |
8413 | if test -n "$NMEDIT"; then |
8414 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8415 | else | |
8416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8417 | for as_dir in $PATH | |
8418 | do | |
8419 | IFS=$as_save_IFS | |
8420 | test -z "$as_dir" && as_dir=. | |
8421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8423 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
8424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8425 | break 2 | |
8426 | fi | |
8427 | done | |
8428 | done | |
8429 | IFS=$as_save_IFS | |
f35db108 WM |
8430 | |
8431 | fi | |
c915a581 JJ |
8432 | fi |
8433 | NMEDIT=$ac_cv_prog_NMEDIT | |
8434 | if test -n "$NMEDIT"; then | |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8436 | $as_echo "$NMEDIT" >&6; } | |
f35db108 | 8437 | else |
c915a581 JJ |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8439 | $as_echo "no" >&6; } | |
f35db108 WM |
8440 | fi |
8441 | ||
8442 | ||
c915a581 JJ |
8443 | fi |
8444 | if test -z "$ac_cv_prog_NMEDIT"; then | |
8445 | ac_ct_NMEDIT=$NMEDIT | |
8446 | # Extract the first word of "nmedit", so it can be a program name with args. | |
8447 | set dummy nmedit; ac_word=$2 | |
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8449 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8450 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
f35db108 WM |
8451 | $as_echo_n "(cached) " >&6 |
8452 | else | |
c915a581 JJ |
8453 | if test -n "$ac_ct_NMEDIT"; then |
8454 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8455 | else | |
8456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8457 | for as_dir in $PATH | |
8458 | do | |
8459 | IFS=$as_save_IFS | |
8460 | test -z "$as_dir" && as_dir=. | |
8461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8462 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8463 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
8464 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8465 | break 2 | |
8466 | fi | |
8467 | done | |
8468 | done | |
8469 | IFS=$as_save_IFS | |
f35db108 WM |
8470 | |
8471 | fi | |
c915a581 JJ |
8472 | fi |
8473 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8474 | if test -n "$ac_ct_NMEDIT"; then | |
8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8476 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
8477 | else | |
8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8479 | $as_echo "no" >&6; } | |
8480 | fi | |
f35db108 | 8481 | |
c915a581 JJ |
8482 | if test "x$ac_ct_NMEDIT" = x; then |
8483 | NMEDIT=":" | |
8484 | else | |
8485 | case $cross_compiling:$ac_tool_warned in | |
8486 | yes:) | |
8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8488 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8489 | ac_tool_warned=yes ;; | |
8490 | esac | |
8491 | NMEDIT=$ac_ct_NMEDIT | |
8492 | fi | |
8493 | else | |
8494 | NMEDIT="$ac_cv_prog_NMEDIT" | |
8495 | fi | |
f35db108 | 8496 | |
c915a581 JJ |
8497 | if test -n "$ac_tool_prefix"; then |
8498 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8499 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8502 | if ${ac_cv_prog_LIPO+:} false; then : |
f35db108 WM |
8503 | $as_echo_n "(cached) " >&6 |
8504 | else | |
c915a581 JJ |
8505 | if test -n "$LIPO"; then |
8506 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8507 | else | |
8508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8509 | for as_dir in $PATH | |
8510 | do | |
8511 | IFS=$as_save_IFS | |
8512 | test -z "$as_dir" && as_dir=. | |
8513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8515 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
8516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8517 | break 2 | |
8518 | fi | |
8519 | done | |
8520 | done | |
8521 | IFS=$as_save_IFS | |
f35db108 WM |
8522 | |
8523 | fi | |
c915a581 JJ |
8524 | fi |
8525 | LIPO=$ac_cv_prog_LIPO | |
8526 | if test -n "$LIPO"; then | |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8528 | $as_echo "$LIPO" >&6; } | |
8529 | else | |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8531 | $as_echo "no" >&6; } | |
8532 | fi | |
f35db108 WM |
8533 | |
8534 | ||
c915a581 JJ |
8535 | fi |
8536 | if test -z "$ac_cv_prog_LIPO"; then | |
8537 | ac_ct_LIPO=$LIPO | |
8538 | # Extract the first word of "lipo", so it can be a program name with args. | |
8539 | set dummy lipo; ac_word=$2 | |
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8541 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8542 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
c915a581 JJ |
8543 | $as_echo_n "(cached) " >&6 |
8544 | else | |
8545 | if test -n "$ac_ct_LIPO"; then | |
8546 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8547 | else | |
8548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8549 | for as_dir in $PATH | |
8550 | do | |
8551 | IFS=$as_save_IFS | |
8552 | test -z "$as_dir" && as_dir=. | |
8553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8555 | ac_cv_prog_ac_ct_LIPO="lipo" |
8556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8557 | break 2 | |
8558 | fi | |
8559 | done | |
8560 | done | |
8561 | IFS=$as_save_IFS | |
f35db108 | 8562 | |
c915a581 JJ |
8563 | fi |
8564 | fi | |
8565 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8566 | if test -n "$ac_ct_LIPO"; then | |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8568 | $as_echo "$ac_ct_LIPO" >&6; } | |
8569 | else | |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8571 | $as_echo "no" >&6; } | |
8572 | fi | |
f35db108 | 8573 | |
c915a581 JJ |
8574 | if test "x$ac_ct_LIPO" = x; then |
8575 | LIPO=":" | |
8576 | else | |
8577 | case $cross_compiling:$ac_tool_warned in | |
8578 | yes:) | |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8581 | ac_tool_warned=yes ;; | |
8582 | esac | |
8583 | LIPO=$ac_ct_LIPO | |
f35db108 WM |
8584 | fi |
8585 | else | |
c915a581 | 8586 | LIPO="$ac_cv_prog_LIPO" |
f35db108 WM |
8587 | fi |
8588 | ||
c915a581 JJ |
8589 | if test -n "$ac_tool_prefix"; then |
8590 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8591 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8593 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8594 | if ${ac_cv_prog_OTOOL+:} false; then : |
c915a581 JJ |
8595 | $as_echo_n "(cached) " >&6 |
8596 | else | |
8597 | if test -n "$OTOOL"; then | |
8598 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8599 | else | |
8600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8601 | for as_dir in $PATH | |
8602 | do | |
8603 | IFS=$as_save_IFS | |
8604 | test -z "$as_dir" && as_dir=. | |
8605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8606 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8607 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
8608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8609 | break 2 | |
8610 | fi | |
8611 | done | |
8612 | done | |
8613 | IFS=$as_save_IFS | |
f35db108 | 8614 | |
c915a581 JJ |
8615 | fi |
8616 | fi | |
8617 | OTOOL=$ac_cv_prog_OTOOL | |
8618 | if test -n "$OTOOL"; then | |
8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8620 | $as_echo "$OTOOL" >&6; } | |
8621 | else | |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8623 | $as_echo "no" >&6; } | |
8624 | fi | |
f35db108 WM |
8625 | |
8626 | ||
c915a581 JJ |
8627 | fi |
8628 | if test -z "$ac_cv_prog_OTOOL"; then | |
8629 | ac_ct_OTOOL=$OTOOL | |
8630 | # Extract the first word of "otool", so it can be a program name with args. | |
8631 | set dummy otool; ac_word=$2 | |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8633 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8634 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
c915a581 JJ |
8635 | $as_echo_n "(cached) " >&6 |
8636 | else | |
8637 | if test -n "$ac_ct_OTOOL"; then | |
8638 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8639 | else | |
8640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8641 | for as_dir in $PATH | |
8642 | do | |
8643 | IFS=$as_save_IFS | |
8644 | test -z "$as_dir" && as_dir=. | |
8645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8646 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8647 | ac_cv_prog_ac_ct_OTOOL="otool" |
8648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8649 | break 2 | |
8650 | fi | |
8651 | done | |
8652 | done | |
8653 | IFS=$as_save_IFS | |
f35db108 | 8654 | |
c915a581 JJ |
8655 | fi |
8656 | fi | |
8657 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8658 | if test -n "$ac_ct_OTOOL"; then | |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8660 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8661 | else | |
8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8663 | $as_echo "no" >&6; } | |
8664 | fi | |
f35db108 | 8665 | |
c915a581 JJ |
8666 | if test "x$ac_ct_OTOOL" = x; then |
8667 | OTOOL=":" | |
8668 | else | |
8669 | case $cross_compiling:$ac_tool_warned in | |
8670 | yes:) | |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8672 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8673 | ac_tool_warned=yes ;; | |
8674 | esac | |
8675 | OTOOL=$ac_ct_OTOOL | |
8676 | fi | |
8677 | else | |
8678 | OTOOL="$ac_cv_prog_OTOOL" | |
8679 | fi | |
f35db108 | 8680 | |
c915a581 JJ |
8681 | if test -n "$ac_tool_prefix"; then |
8682 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8683 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8685 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8686 | if ${ac_cv_prog_OTOOL64+:} false; then : |
c915a581 JJ |
8687 | $as_echo_n "(cached) " >&6 |
8688 | else | |
8689 | if test -n "$OTOOL64"; then | |
8690 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8691 | else | |
8692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8693 | for as_dir in $PATH | |
8694 | do | |
8695 | IFS=$as_save_IFS | |
8696 | test -z "$as_dir" && as_dir=. | |
8697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8699 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
8700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8701 | break 2 | |
f35db108 | 8702 | fi |
c915a581 JJ |
8703 | done |
8704 | done | |
8705 | IFS=$as_save_IFS | |
f35db108 | 8706 | |
c915a581 JJ |
8707 | fi |
8708 | fi | |
8709 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8710 | if test -n "$OTOOL64"; then | |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8712 | $as_echo "$OTOOL64" >&6; } | |
8713 | else | |
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8715 | $as_echo "no" >&6; } | |
8716 | fi | |
f35db108 | 8717 | |
f35db108 | 8718 | |
c915a581 JJ |
8719 | fi |
8720 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8721 | ac_ct_OTOOL64=$OTOOL64 | |
8722 | # Extract the first word of "otool64", so it can be a program name with args. | |
8723 | set dummy otool64; ac_word=$2 | |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8725 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 8726 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
c915a581 JJ |
8727 | $as_echo_n "(cached) " >&6 |
8728 | else | |
8729 | if test -n "$ac_ct_OTOOL64"; then | |
8730 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8731 | else | |
8732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8733 | for as_dir in $PATH | |
8734 | do | |
8735 | IFS=$as_save_IFS | |
8736 | test -z "$as_dir" && as_dir=. | |
8737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 8738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
8739 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
8740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8741 | break 2 | |
8742 | fi | |
8743 | done | |
8744 | done | |
8745 | IFS=$as_save_IFS | |
f35db108 | 8746 | |
c915a581 JJ |
8747 | fi |
8748 | fi | |
8749 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8750 | if test -n "$ac_ct_OTOOL64"; then | |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8752 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8753 | else | |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8755 | $as_echo "no" >&6; } | |
8756 | fi | |
f35db108 | 8757 | |
c915a581 JJ |
8758 | if test "x$ac_ct_OTOOL64" = x; then |
8759 | OTOOL64=":" | |
8760 | else | |
8761 | case $cross_compiling:$ac_tool_warned in | |
8762 | yes:) | |
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8765 | ac_tool_warned=yes ;; | |
8766 | esac | |
8767 | OTOOL64=$ac_ct_OTOOL64 | |
8768 | fi | |
8769 | else | |
8770 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8771 | fi | |
f35db108 | 8772 | |
f35db108 | 8773 | |
f35db108 | 8774 | |
f35db108 | 8775 | |
f35db108 | 8776 | |
f35db108 | 8777 | |
f35db108 | 8778 | |
f35db108 | 8779 | |
f35db108 | 8780 | |
f35db108 | 8781 | |
f35db108 | 8782 | |
f35db108 | 8783 | |
f35db108 | 8784 | |
f35db108 | 8785 | |
f35db108 | 8786 | |
f35db108 | 8787 | |
f35db108 | 8788 | |
f35db108 | 8789 | |
f35db108 | 8790 | |
f35db108 | 8791 | |
f35db108 | 8792 | |
f35db108 | 8793 | |
f35db108 | 8794 | |
f35db108 | 8795 | |
f35db108 | 8796 | |
c915a581 JJ |
8797 | |
8798 | ||
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8800 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 8801 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
c915a581 JJ |
8802 | $as_echo_n "(cached) " >&6 |
8803 | else | |
8804 | lt_cv_apple_cc_single_mod=no | |
8805 | if test -z "${LT_MULTI_MODULE}"; then | |
8806 | # By default we will add the -single_module flag. You can override | |
8807 | # by either setting the environment variable LT_MULTI_MODULE | |
8808 | # non-empty at configure time, or by adding -multi_module to the | |
8809 | # link flags. | |
8810 | rm -rf libconftest.dylib* | |
8811 | echo "int foo(void){return 1;}" > conftest.c | |
8812 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8813 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8814 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8815 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8816 | _lt_result=$? | |
8817 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8818 | lt_cv_apple_cc_single_mod=yes | |
f35db108 | 8819 | else |
c915a581 | 8820 | cat conftest.err >&5 |
f35db108 | 8821 | fi |
c915a581 JJ |
8822 | rm -rf libconftest.dylib* |
8823 | rm -f conftest.* | |
f35db108 | 8824 | fi |
c915a581 JJ |
8825 | fi |
8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8827 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8829 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 8830 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
c915a581 JJ |
8831 | $as_echo_n "(cached) " >&6 |
8832 | else | |
8833 | lt_cv_ld_exported_symbols_list=no | |
8834 | save_LDFLAGS=$LDFLAGS | |
8835 | echo "_main" > conftest.sym | |
8836 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f35db108 WM |
8838 | /* end confdefs.h. */ |
8839 | ||
8840 | int | |
8841 | main () | |
8842 | { | |
8843 | ||
8844 | ; | |
8845 | return 0; | |
8846 | } | |
8847 | _ACEOF | |
8848 | if ac_fn_c_try_link "$LINENO"; then : | |
c915a581 JJ |
8849 | lt_cv_ld_exported_symbols_list=yes |
8850 | else | |
8851 | lt_cv_ld_exported_symbols_list=no | |
f35db108 WM |
8852 | fi |
8853 | rm -f core conftest.err conftest.$ac_objext \ | |
8854 | conftest$ac_exeext conftest.$ac_ext | |
c915a581 | 8855 | LDFLAGS="$save_LDFLAGS" |
f35db108 | 8856 | |
c915a581 JJ |
8857 | fi |
8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8859 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8861 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 8862 | if ${lt_cv_ld_force_load+:} false; then : |
c915a581 JJ |
8863 | $as_echo_n "(cached) " >&6 |
8864 | else | |
8865 | lt_cv_ld_force_load=no | |
8866 | cat > conftest.c << _LT_EOF | |
8867 | int forced_loaded() { return 2;} | |
8868 | _LT_EOF | |
8869 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8870 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8871 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8872 | $AR cru libconftest.a conftest.o 2>&5 | |
8873 | cat > conftest.c << _LT_EOF | |
8874 | int main() { return 0;} | |
8875 | _LT_EOF | |
8876 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8877 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8878 | _lt_result=$? | |
8879 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8880 | lt_cv_ld_force_load=yes | |
f35db108 | 8881 | else |
c915a581 JJ |
8882 | cat conftest.err >&5 |
8883 | fi | |
8884 | rm -f conftest.err libconftest.a conftest conftest.c | |
8885 | rm -rf conftest.dSYM | |
f35db108 | 8886 | |
c915a581 JJ |
8887 | fi |
8888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8889 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
8890 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
8891 | # build without first building modern cctools / linker. | |
8892 | case $host_cpu-$host_os in | |
8893 | *-rhapsody* | *-darwin1.[012]) | |
c915a581 | 8894 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 8895 | *-darwin1.*) |
c915a581 | 8896 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
8897 | *-darwin*) |
8898 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
8899 | # deployment target is forced to an earlier version. | |
8900 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
6a6d3817 | 8901 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*) |
1352bc88 | 8902 | ;; |
ebf6d33b | 8903 | 10.[012][,.]*) |
1352bc88 IS |
8904 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8905 | ;; | |
8906 | *) | |
8907 | ;; | |
8908 | esac | |
c915a581 JJ |
8909 | ;; |
8910 | esac | |
8911 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8912 | _lt_dar_single_mod='$single_module' | |
8913 | fi | |
8914 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8915 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8916 | else | |
8917 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8918 | fi | |
8919 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8920 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8921 | else | |
8922 | _lt_dsymutil= | |
8923 | fi | |
8924 | ;; | |
8925 | esac | |
f35db108 | 8926 | |
c915a581 JJ |
8927 | for ac_header in dlfcn.h |
8928 | do : | |
8929 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8930 | " | |
22e05272 | 8931 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
c915a581 JJ |
8932 | cat >>confdefs.h <<_ACEOF |
8933 | #define HAVE_DLFCN_H 1 | |
f35db108 | 8934 | _ACEOF |
f35db108 | 8935 | |
f35db108 | 8936 | fi |
f35db108 | 8937 | |
c915a581 | 8938 | done |
f35db108 | 8939 | |
f35db108 | 8940 | |
f35db108 | 8941 | |
f35db108 | 8942 | |
f35db108 WM |
8943 | |
8944 | ||
c915a581 | 8945 | # Set options |
f35db108 | 8946 | |
f35db108 | 8947 | |
f35db108 | 8948 | |
f35db108 | 8949 | |
c915a581 | 8950 | enable_win32_dll=no |
f35db108 | 8951 | |
f35db108 | 8952 | |
c915a581 JJ |
8953 | # Check whether --enable-shared was given. |
8954 | if test "${enable_shared+set}" = set; then : | |
8955 | enableval=$enable_shared; p=${PACKAGE-default} | |
8956 | case $enableval in | |
8957 | yes) enable_shared=yes ;; | |
8958 | no) enable_shared=no ;; | |
8959 | *) | |
8960 | enable_shared=no | |
8961 | # Look at the argument we got. We use all the common list separators. | |
8962 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8963 | for pkg in $enableval; do | |
8964 | IFS="$lt_save_ifs" | |
8965 | if test "X$pkg" = "X$p"; then | |
8966 | enable_shared=yes | |
8967 | fi | |
8968 | done | |
8969 | IFS="$lt_save_ifs" | |
f35db108 | 8970 | ;; |
c915a581 JJ |
8971 | esac |
8972 | else | |
8973 | enable_shared=yes | |
8974 | fi | |
f35db108 | 8975 | |
f35db108 | 8976 | |
f35db108 | 8977 | |
f35db108 | 8978 | |
f35db108 | 8979 | |
f35db108 | 8980 | |
f35db108 | 8981 | |
c915a581 JJ |
8982 | |
8983 | ||
8984 | # Check whether --enable-static was given. | |
8985 | if test "${enable_static+set}" = set; then : | |
8986 | enableval=$enable_static; p=${PACKAGE-default} | |
8987 | case $enableval in | |
8988 | yes) enable_static=yes ;; | |
8989 | no) enable_static=no ;; | |
8990 | *) | |
8991 | enable_static=no | |
8992 | # Look at the argument we got. We use all the common list separators. | |
8993 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8994 | for pkg in $enableval; do | |
8995 | IFS="$lt_save_ifs" | |
8996 | if test "X$pkg" = "X$p"; then | |
8997 | enable_static=yes | |
8998 | fi | |
8999 | done | |
9000 | IFS="$lt_save_ifs" | |
9001 | ;; | |
9002 | esac | |
f35db108 | 9003 | else |
c915a581 | 9004 | enable_static=yes |
f35db108 WM |
9005 | fi |
9006 | ||
f35db108 | 9007 | |
f35db108 | 9008 | |
f35db108 | 9009 | |
a2479b3d | 9010 | |
f35db108 | 9011 | |
f35db108 | 9012 | |
f35db108 | 9013 | |
f35db108 | 9014 | |
f35db108 | 9015 | |
c915a581 JJ |
9016 | # Check whether --with-pic was given. |
9017 | if test "${with_pic+set}" = set; then : | |
9018 | withval=$with_pic; pic_mode="$withval" | |
9019 | else | |
9020 | pic_mode=default | |
9021 | fi | |
f35db108 | 9022 | |
f35db108 | 9023 | |
c915a581 | 9024 | test -z "$pic_mode" && pic_mode=default |
f35db108 | 9025 | |
f35db108 | 9026 | |
f35db108 | 9027 | |
f35db108 | 9028 | |
f35db108 | 9029 | |
f35db108 | 9030 | |
c915a581 JJ |
9031 | |
9032 | # Check whether --enable-fast-install was given. | |
9033 | if test "${enable_fast_install+set}" = set; then : | |
9034 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9035 | case $enableval in | |
9036 | yes) enable_fast_install=yes ;; | |
9037 | no) enable_fast_install=no ;; | |
9038 | *) | |
9039 | enable_fast_install=no | |
9040 | # Look at the argument we got. We use all the common list separators. | |
9041 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9042 | for pkg in $enableval; do | |
9043 | IFS="$lt_save_ifs" | |
9044 | if test "X$pkg" = "X$p"; then | |
9045 | enable_fast_install=yes | |
9046 | fi | |
9047 | done | |
9048 | IFS="$lt_save_ifs" | |
f35db108 | 9049 | ;; |
c915a581 JJ |
9050 | esac |
9051 | else | |
9052 | enable_fast_install=yes | |
9053 | fi | |
f35db108 WM |
9054 | |
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | ||
9063 | ||
9064 | ||
c915a581 JJ |
9065 | # This can be used to rebuild libtool when needed |
9066 | LIBTOOL_DEPS="$ltmain" | |
f35db108 | 9067 | |
c915a581 JJ |
9068 | # Always use our own libtool. |
9069 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
f35db108 WM |
9070 | |
9071 | ||
9072 | ||
9073 | ||
9074 | ||
9075 | ||
9076 | ||
9077 | ||
9078 | ||
9079 | ||
9080 | ||
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | ||
9088 | ||
9089 | ||
9090 | ||
9091 | ||
9092 | ||
9093 | ||
9094 | ||
9095 | ||
c915a581 | 9096 | test -z "$LN_S" && LN_S="ln -s" |
f35db108 WM |
9097 | |
9098 | ||
9099 | ||
9100 | ||
9101 | ||
9102 | ||
9103 | ||
9104 | ||
9105 | ||
9106 | ||
9107 | ||
9108 | ||
9109 | ||
9110 | ||
c915a581 JJ |
9111 | if test -n "${ZSH_VERSION+set}" ; then |
9112 | setopt NO_GLOB_SUBST | |
9113 | fi | |
f35db108 | 9114 | |
c915a581 JJ |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
9116 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 9117 | if ${lt_cv_objdir+:} false; then : |
c915a581 JJ |
9118 | $as_echo_n "(cached) " >&6 |
9119 | else | |
9120 | rm -f .libs 2>/dev/null | |
9121 | mkdir .libs 2>/dev/null | |
9122 | if test -d .libs; then | |
9123 | lt_cv_objdir=.libs | |
9124 | else | |
9125 | # MS-DOS does not allow filenames that begin with a dot. | |
9126 | lt_cv_objdir=_libs | |
9127 | fi | |
9128 | rmdir .libs 2>/dev/null | |
9129 | fi | |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9131 | $as_echo "$lt_cv_objdir" >&6; } | |
9132 | objdir=$lt_cv_objdir | |
f35db108 WM |
9133 | |
9134 | ||
9135 | ||
9136 | ||
9137 | ||
c915a581 JJ |
9138 | cat >>confdefs.h <<_ACEOF |
9139 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9140 | _ACEOF | |
f35db108 WM |
9141 | |
9142 | ||
9143 | ||
9144 | ||
c915a581 JJ |
9145 | case $host_os in |
9146 | aix3*) | |
9147 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9148 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9149 | # vanish in a puff of smoke. | |
9150 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9151 | COLLECT_NAMES= | |
9152 | export COLLECT_NAMES | |
9153 | fi | |
9154 | ;; | |
9155 | esac | |
f35db108 | 9156 | |
c915a581 JJ |
9157 | # Global variables: |
9158 | ofile=libtool | |
9159 | can_build_shared=yes | |
f35db108 | 9160 | |
c915a581 JJ |
9161 | # All known linkers require a `.a' archive for static linking (except MSVC, |
9162 | # which needs '.lib'). | |
9163 | libext=a | |
f35db108 | 9164 | |
c915a581 | 9165 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
f35db108 | 9166 | |
c915a581 JJ |
9167 | old_CC="$CC" |
9168 | old_CFLAGS="$CFLAGS" | |
f35db108 | 9169 | |
c915a581 JJ |
9170 | # Set sane defaults for various variables |
9171 | test -z "$CC" && CC=cc | |
9172 | test -z "$LTCC" && LTCC=$CC | |
9173 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9174 | test -z "$LD" && LD=ld | |
9175 | test -z "$ac_objext" && ac_objext=o | |
f35db108 | 9176 | |
c915a581 JJ |
9177 | for cc_temp in $compiler""; do |
9178 | case $cc_temp in | |
9179 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9180 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9181 | \-*) ;; | |
9182 | *) break;; | |
9183 | esac | |
9184 | done | |
9185 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
f35db108 WM |
9186 | |
9187 | ||
c915a581 JJ |
9188 | # Only perform the check for file, if the check method requires it |
9189 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9190 | case $deplibs_check_method in | |
9191 | file_magic*) | |
9192 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9194 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 9195 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
c915a581 JJ |
9196 | $as_echo_n "(cached) " >&6 |
9197 | else | |
9198 | case $MAGIC_CMD in | |
9199 | [\\/*] | ?:[\\/]*) | |
9200 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9201 | ;; | |
9202 | *) | |
9203 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9204 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9205 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9206 | for ac_dir in $ac_dummy; do | |
9207 | IFS="$lt_save_ifs" | |
9208 | test -z "$ac_dir" && ac_dir=. | |
9209 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9210 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9211 | if test -n "$file_magic_test_file"; then | |
9212 | case $deplibs_check_method in | |
9213 | "file_magic "*) | |
9214 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9215 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9216 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9217 | $EGREP "$file_magic_regex" > /dev/null; then | |
9218 | : | |
9219 | else | |
9220 | cat <<_LT_EOF 1>&2 | |
f35db108 | 9221 | |
c915a581 JJ |
9222 | *** Warning: the command libtool uses to detect shared libraries, |
9223 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9224 | *** The result is that libtool may fail to recognize shared libraries | |
9225 | *** as such. This will affect the creation of libtool libraries that | |
9226 | *** depend on shared libraries, but programs linked with such libtool | |
9227 | *** libraries will work regardless of this problem. Nevertheless, you | |
9228 | *** may want to report the problem to your system manager and/or to | |
9229 | *** bug-libtool@gnu.org | |
f35db108 | 9230 | |
c915a581 JJ |
9231 | _LT_EOF |
9232 | fi ;; | |
9233 | esac | |
9234 | fi | |
9235 | break | |
9236 | fi | |
9237 | done | |
9238 | IFS="$lt_save_ifs" | |
9239 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9240 | ;; | |
9241 | esac | |
9242 | fi | |
f35db108 | 9243 | |
c915a581 JJ |
9244 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9245 | if test -n "$MAGIC_CMD"; then | |
9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9247 | $as_echo "$MAGIC_CMD" >&6; } | |
9248 | else | |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9250 | $as_echo "no" >&6; } | |
9251 | fi | |
f35db108 WM |
9252 | |
9253 | ||
9254 | ||
9255 | ||
9256 | ||
c915a581 JJ |
9257 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
9258 | if test -n "$ac_tool_prefix"; then | |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9260 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 9261 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
c915a581 JJ |
9262 | $as_echo_n "(cached) " >&6 |
9263 | else | |
9264 | case $MAGIC_CMD in | |
9265 | [\\/*] | ?:[\\/]*) | |
9266 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9267 | ;; | |
9268 | *) | |
9269 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9270 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9271 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9272 | for ac_dir in $ac_dummy; do | |
9273 | IFS="$lt_save_ifs" | |
9274 | test -z "$ac_dir" && ac_dir=. | |
9275 | if test -f $ac_dir/file; then | |
9276 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9277 | if test -n "$file_magic_test_file"; then | |
9278 | case $deplibs_check_method in | |
9279 | "file_magic "*) | |
9280 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9281 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9282 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9283 | $EGREP "$file_magic_regex" > /dev/null; then | |
9284 | : | |
9285 | else | |
9286 | cat <<_LT_EOF 1>&2 | |
f35db108 | 9287 | |
c915a581 JJ |
9288 | *** Warning: the command libtool uses to detect shared libraries, |
9289 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9290 | *** The result is that libtool may fail to recognize shared libraries | |
9291 | *** as such. This will affect the creation of libtool libraries that | |
9292 | *** depend on shared libraries, but programs linked with such libtool | |
9293 | *** libraries will work regardless of this problem. Nevertheless, you | |
9294 | *** may want to report the problem to your system manager and/or to | |
9295 | *** bug-libtool@gnu.org | |
f35db108 | 9296 | |
c915a581 JJ |
9297 | _LT_EOF |
9298 | fi ;; | |
9299 | esac | |
9300 | fi | |
9301 | break | |
9302 | fi | |
9303 | done | |
9304 | IFS="$lt_save_ifs" | |
9305 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9306 | ;; | |
9307 | esac | |
9308 | fi | |
f35db108 | 9309 | |
c915a581 JJ |
9310 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
9311 | if test -n "$MAGIC_CMD"; then | |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9313 | $as_echo "$MAGIC_CMD" >&6; } | |
9314 | else | |
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9316 | $as_echo "no" >&6; } | |
9317 | fi | |
f35db108 WM |
9318 | |
9319 | ||
c915a581 JJ |
9320 | else |
9321 | MAGIC_CMD=: | |
9322 | fi | |
9323 | fi | |
f35db108 | 9324 | |
c915a581 JJ |
9325 | fi |
9326 | ;; | |
9327 | esac | |
f35db108 | 9328 | |
c915a581 | 9329 | # Use C for the default configuration in the libtool script |
f35db108 | 9330 | |
c915a581 JJ |
9331 | lt_save_CC="$CC" |
9332 | ac_ext=c | |
9333 | ac_cpp='$CPP $CPPFLAGS' | |
9334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 WM |
9337 | |
9338 | ||
c915a581 JJ |
9339 | # Source file extension for C test sources. |
9340 | ac_ext=c | |
f35db108 | 9341 | |
c915a581 JJ |
9342 | # Object file extension for compiled C test sources. |
9343 | objext=o | |
9344 | objext=$objext | |
f35db108 | 9345 | |
c915a581 JJ |
9346 | # Code to be used in simple compile tests |
9347 | lt_simple_compile_test_code="int some_variable = 0;" | |
f35db108 | 9348 | |
c915a581 JJ |
9349 | # Code to be used in simple link tests |
9350 | lt_simple_link_test_code='int main(){return(0);}' | |
f35db108 WM |
9351 | |
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | ||
9357 | ||
c915a581 JJ |
9358 | # If no C compiler was specified, use CC. |
9359 | LTCC=${LTCC-"$CC"} | |
f35db108 | 9360 | |
c915a581 JJ |
9361 | # If no C compiler flags were specified, use CFLAGS. |
9362 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
f35db108 | 9363 | |
c915a581 JJ |
9364 | # Allow CC to be a program name with arguments. |
9365 | compiler=$CC | |
f35db108 | 9366 | |
c915a581 JJ |
9367 | # Save the default compiler, since it gets overwritten when the other |
9368 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9369 | compiler_DEFAULT=$CC | |
f35db108 | 9370 | |
c915a581 JJ |
9371 | # save warnings/boilerplate of simple test code |
9372 | ac_outfile=conftest.$ac_objext | |
9373 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9374 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9375 | _lt_compiler_boilerplate=`cat conftest.err` | |
9376 | $RM conftest* | |
f35db108 | 9377 | |
c915a581 JJ |
9378 | ac_outfile=conftest.$ac_objext |
9379 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9380 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9381 | _lt_linker_boilerplate=`cat conftest.err` | |
9382 | $RM -r conftest* | |
f35db108 WM |
9383 | |
9384 | ||
c915a581 JJ |
9385 | ## CAVEAT EMPTOR: |
9386 | ## There is no encapsulation within the following macros, do not change | |
9387 | ## the running order or otherwise move them around unless you know exactly | |
9388 | ## what you are doing... | |
9389 | if test -n "$compiler"; then | |
f35db108 | 9390 | |
c915a581 | 9391 | lt_prog_compiler_no_builtin_flag= |
f35db108 | 9392 | |
c915a581 JJ |
9393 | if test "$GCC" = yes; then |
9394 | case $cc_basename in | |
9395 | nvcc*) | |
9396 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9397 | *) | |
9398 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9399 | esac | |
f35db108 | 9400 | |
c915a581 JJ |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9402 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 9403 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
c915a581 JJ |
9404 | $as_echo_n "(cached) " >&6 |
9405 | else | |
9406 | lt_cv_prog_compiler_rtti_exceptions=no | |
9407 | ac_outfile=conftest.$ac_objext | |
9408 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9409 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9410 | # Insert the option either (1) after the last *FLAGS variable, or | |
9411 | # (2) before a word containing "conftest.", or (3) at the end. | |
9412 | # Note that $ac_compile itself does not contain backslashes and begins | |
9413 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9414 | # The option is referenced via a variable to avoid confusing sed. | |
9415 | lt_compile=`echo "$ac_compile" | $SED \ | |
9416 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9417 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9418 | -e 's:$: $lt_compiler_flag:'` | |
9419 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9420 | (eval "$lt_compile" 2>conftest.err) | |
9421 | ac_status=$? | |
9422 | cat conftest.err >&5 | |
9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9424 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9425 | # The compiler can only warn and ignore the option if not recognized | |
9426 | # So say no if there are warnings other than the usual output. | |
9427 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9428 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9429 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9430 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9431 | fi | |
9432 | fi | |
9433 | $RM conftest* | |
f35db108 | 9434 | |
c915a581 JJ |
9435 | fi |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9437 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
f35db108 | 9438 | |
c915a581 JJ |
9439 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
9440 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9441 | else | |
9442 | : | |
9443 | fi | |
f35db108 | 9444 | |
c915a581 | 9445 | fi |
f35db108 WM |
9446 | |
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
c915a581 JJ |
9452 | lt_prog_compiler_wl= |
9453 | lt_prog_compiler_pic= | |
9454 | lt_prog_compiler_static= | |
f35db108 | 9455 | |
c915a581 JJ |
9456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9457 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
f35db108 | 9458 | |
c915a581 JJ |
9459 | if test "$GCC" = yes; then |
9460 | lt_prog_compiler_wl='-Wl,' | |
9461 | lt_prog_compiler_static='-static' | |
f35db108 | 9462 | |
c915a581 JJ |
9463 | case $host_os in |
9464 | aix*) | |
9465 | # All AIX code is PIC. | |
9466 | if test "$host_cpu" = ia64; then | |
9467 | # AIX 5 now supports IA64 processor | |
9468 | lt_prog_compiler_static='-Bstatic' | |
9469 | fi | |
9470 | lt_prog_compiler_pic='-fPIC' | |
9471 | ;; | |
f35db108 | 9472 | |
c915a581 JJ |
9473 | amigaos*) |
9474 | case $host_cpu in | |
9475 | powerpc) | |
9476 | # see comment about AmigaOS4 .so support | |
9477 | lt_prog_compiler_pic='-fPIC' | |
9478 | ;; | |
9479 | m68k) | |
9480 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9481 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9482 | # like `-m68040'. | |
9483 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9484 | ;; | |
9485 | esac | |
9486 | ;; | |
f35db108 | 9487 | |
c915a581 JJ |
9488 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
9489 | # PIC is the default for these OSes. | |
9490 | ;; | |
f35db108 | 9491 | |
c915a581 JJ |
9492 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9493 | # This hack is so that the source file can tell whether it is being | |
9494 | # built for inclusion in a dll (and should export symbols for example). | |
9495 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9496 | # (--disable-auto-import) libraries | |
9497 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9498 | ;; | |
f35db108 | 9499 | |
c915a581 JJ |
9500 | darwin* | rhapsody*) |
9501 | # PIC is the default on this platform | |
9502 | # Common symbols not allowed in MH_DYLIB files | |
9503 | lt_prog_compiler_pic='-fno-common' | |
9504 | ;; | |
f35db108 | 9505 | |
c915a581 JJ |
9506 | haiku*) |
9507 | # PIC is the default for Haiku. | |
9508 | # The "-static" flag exists, but is broken. | |
9509 | lt_prog_compiler_static= | |
9510 | ;; | |
f35db108 | 9511 | |
c915a581 JJ |
9512 | hpux*) |
9513 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9514 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9515 | # sets the default TLS model and affects inlining. | |
9516 | case $host_cpu in | |
9517 | hppa*64*) | |
9518 | # +Z the default | |
9519 | ;; | |
9520 | *) | |
9521 | lt_prog_compiler_pic='-fPIC' | |
9522 | ;; | |
9523 | esac | |
9524 | ;; | |
f35db108 | 9525 | |
c915a581 JJ |
9526 | interix[3-9]*) |
9527 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9528 | # Instead, we relocate shared libraries at runtime. | |
9529 | ;; | |
a2479b3d | 9530 | |
c915a581 JJ |
9531 | msdosdjgpp*) |
9532 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9533 | # on systems that don't support them. | |
9534 | lt_prog_compiler_can_build_shared=no | |
9535 | enable_shared=no | |
9536 | ;; | |
a2479b3d | 9537 | |
c915a581 JJ |
9538 | *nto* | *qnx*) |
9539 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9540 | # it will coredump. | |
9541 | lt_prog_compiler_pic='-fPIC -shared' | |
9542 | ;; | |
a2479b3d | 9543 | |
c915a581 JJ |
9544 | sysv4*MP*) |
9545 | if test -d /usr/nec; then | |
9546 | lt_prog_compiler_pic=-Kconform_pic | |
9547 | fi | |
9548 | ;; | |
a2479b3d | 9549 | |
c915a581 JJ |
9550 | *) |
9551 | lt_prog_compiler_pic='-fPIC' | |
9552 | ;; | |
9553 | esac | |
a2479b3d | 9554 | |
c915a581 JJ |
9555 | case $cc_basename in |
9556 | nvcc*) # Cuda Compiler Driver 2.2 | |
9557 | lt_prog_compiler_wl='-Xlinker ' | |
9558 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9559 | ;; | |
9560 | esac | |
9561 | else | |
9562 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9563 | case $host_os in | |
9564 | aix*) | |
9565 | lt_prog_compiler_wl='-Wl,' | |
9566 | if test "$host_cpu" = ia64; then | |
9567 | # AIX 5 now supports IA64 processor | |
9568 | lt_prog_compiler_static='-Bstatic' | |
9569 | else | |
9570 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9571 | fi | |
9572 | ;; | |
f35db108 | 9573 | |
c915a581 JJ |
9574 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9575 | # This hack is so that the source file can tell whether it is being | |
9576 | # built for inclusion in a dll (and should export symbols for example). | |
9577 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9578 | ;; | |
f35db108 | 9579 | |
c915a581 JJ |
9580 | hpux9* | hpux10* | hpux11*) |
9581 | lt_prog_compiler_wl='-Wl,' | |
9582 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9583 | # not for PA HP-UX. | |
9584 | case $host_cpu in | |
9585 | hppa*64*|ia64*) | |
9586 | # +Z the default | |
9587 | ;; | |
9588 | *) | |
9589 | lt_prog_compiler_pic='+Z' | |
9590 | ;; | |
9591 | esac | |
9592 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9593 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9594 | ;; | |
f35db108 | 9595 | |
c915a581 JJ |
9596 | irix5* | irix6* | nonstopux*) |
9597 | lt_prog_compiler_wl='-Wl,' | |
9598 | # PIC (with -KPIC) is the default. | |
9599 | lt_prog_compiler_static='-non_shared' | |
9600 | ;; | |
f35db108 | 9601 | |
c915a581 JJ |
9602 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
9603 | case $cc_basename in | |
9604 | # old Intel for x86_64 which still supported -KPIC. | |
9605 | ecc*) | |
9606 | lt_prog_compiler_wl='-Wl,' | |
9607 | lt_prog_compiler_pic='-KPIC' | |
9608 | lt_prog_compiler_static='-static' | |
9609 | ;; | |
9610 | # icc used to be incompatible with GCC. | |
9611 | # ICC 10 doesn't accept -KPIC any more. | |
9612 | icc* | ifort*) | |
9613 | lt_prog_compiler_wl='-Wl,' | |
9614 | lt_prog_compiler_pic='-fPIC' | |
9615 | lt_prog_compiler_static='-static' | |
9616 | ;; | |
9617 | # Lahey Fortran 8.1. | |
9618 | lf95*) | |
9619 | lt_prog_compiler_wl='-Wl,' | |
9620 | lt_prog_compiler_pic='--shared' | |
9621 | lt_prog_compiler_static='--static' | |
9622 | ;; | |
9623 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9624 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9625 | # which looks to be a dead project) | |
9626 | lt_prog_compiler_wl='-Wl,' | |
9627 | lt_prog_compiler_pic='-fpic' | |
9628 | lt_prog_compiler_static='-Bstatic' | |
9629 | ;; | |
9630 | ccc*) | |
9631 | lt_prog_compiler_wl='-Wl,' | |
9632 | # All Alpha code is PIC. | |
9633 | lt_prog_compiler_static='-non_shared' | |
9634 | ;; | |
9635 | xl* | bgxl* | bgf* | mpixl*) | |
9636 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9637 | lt_prog_compiler_wl='-Wl,' | |
9638 | lt_prog_compiler_pic='-qpic' | |
9639 | lt_prog_compiler_static='-qstaticlink' | |
9640 | ;; | |
9641 | *) | |
9642 | case `$CC -V 2>&1 | sed 5q` in | |
9643 | *Sun\ F* | *Sun*Fortran*) | |
9644 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9645 | lt_prog_compiler_pic='-KPIC' | |
9646 | lt_prog_compiler_static='-Bstatic' | |
9647 | lt_prog_compiler_wl='' | |
9648 | ;; | |
9649 | *Sun\ C*) | |
9650 | # Sun C 5.9 | |
9651 | lt_prog_compiler_pic='-KPIC' | |
9652 | lt_prog_compiler_static='-Bstatic' | |
9653 | lt_prog_compiler_wl='-Wl,' | |
9654 | ;; | |
9655 | esac | |
9656 | ;; | |
9657 | esac | |
9658 | ;; | |
f35db108 | 9659 | |
c915a581 JJ |
9660 | newsos6) |
9661 | lt_prog_compiler_pic='-KPIC' | |
9662 | lt_prog_compiler_static='-Bstatic' | |
9663 | ;; | |
f35db108 | 9664 | |
c915a581 JJ |
9665 | *nto* | *qnx*) |
9666 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9667 | # it will coredump. | |
9668 | lt_prog_compiler_pic='-fPIC -shared' | |
9669 | ;; | |
f35db108 | 9670 | |
c915a581 JJ |
9671 | osf3* | osf4* | osf5*) |
9672 | lt_prog_compiler_wl='-Wl,' | |
9673 | # All OSF/1 code is PIC. | |
9674 | lt_prog_compiler_static='-non_shared' | |
9675 | ;; | |
f35db108 | 9676 | |
c915a581 JJ |
9677 | rdos*) |
9678 | lt_prog_compiler_static='-non_shared' | |
9679 | ;; | |
f35db108 | 9680 | |
c915a581 JJ |
9681 | solaris*) |
9682 | lt_prog_compiler_pic='-KPIC' | |
9683 | lt_prog_compiler_static='-Bstatic' | |
9684 | case $cc_basename in | |
9685 | f77* | f90* | f95*) | |
9686 | lt_prog_compiler_wl='-Qoption ld ';; | |
9687 | *) | |
9688 | lt_prog_compiler_wl='-Wl,';; | |
9689 | esac | |
9690 | ;; | |
f35db108 | 9691 | |
c915a581 JJ |
9692 | sunos4*) |
9693 | lt_prog_compiler_wl='-Qoption ld ' | |
9694 | lt_prog_compiler_pic='-PIC' | |
9695 | lt_prog_compiler_static='-Bstatic' | |
9696 | ;; | |
f35db108 | 9697 | |
c915a581 JJ |
9698 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9699 | lt_prog_compiler_wl='-Wl,' | |
9700 | lt_prog_compiler_pic='-KPIC' | |
9701 | lt_prog_compiler_static='-Bstatic' | |
9702 | ;; | |
9703 | ||
9704 | sysv4*MP*) | |
9705 | if test -d /usr/nec ;then | |
9706 | lt_prog_compiler_pic='-Kconform_pic' | |
9707 | lt_prog_compiler_static='-Bstatic' | |
f35db108 WM |
9708 | fi |
9709 | ;; | |
c915a581 JJ |
9710 | |
9711 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9712 | lt_prog_compiler_wl='-Wl,' | |
9713 | lt_prog_compiler_pic='-KPIC' | |
9714 | lt_prog_compiler_static='-Bstatic' | |
9715 | ;; | |
9716 | ||
9717 | unicos*) | |
9718 | lt_prog_compiler_wl='-Wl,' | |
9719 | lt_prog_compiler_can_build_shared=no | |
9720 | ;; | |
9721 | ||
9722 | uts4*) | |
9723 | lt_prog_compiler_pic='-pic' | |
9724 | lt_prog_compiler_static='-Bstatic' | |
9725 | ;; | |
9726 | ||
9727 | *) | |
9728 | lt_prog_compiler_can_build_shared=no | |
9729 | ;; | |
f35db108 | 9730 | esac |
f35db108 | 9731 | fi |
f35db108 | 9732 | |
c915a581 JJ |
9733 | case $host_os in |
9734 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9735 | *djgpp*) | |
9736 | lt_prog_compiler_pic= | |
f35db108 | 9737 | ;; |
c915a581 JJ |
9738 | *) |
9739 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
f35db108 | 9740 | ;; |
c915a581 JJ |
9741 | esac |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9743 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
f35db108 | 9744 | |
f35db108 | 9745 | |
f35db108 | 9746 | |
f35db108 | 9747 | |
f35db108 | 9748 | |
f35db108 | 9749 | |
c915a581 JJ |
9750 | # |
9751 | # Check to make sure the PIC flag actually works. | |
9752 | # | |
9753 | if test -n "$lt_prog_compiler_pic"; then | |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9755 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 9756 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
c915a581 JJ |
9757 | $as_echo_n "(cached) " >&6 |
9758 | else | |
9759 | lt_cv_prog_compiler_pic_works=no | |
9760 | ac_outfile=conftest.$ac_objext | |
9761 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9762 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9763 | # Insert the option either (1) after the last *FLAGS variable, or | |
9764 | # (2) before a word containing "conftest.", or (3) at the end. | |
9765 | # Note that $ac_compile itself does not contain backslashes and begins | |
9766 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9767 | # The option is referenced via a variable to avoid confusing sed. | |
9768 | lt_compile=`echo "$ac_compile" | $SED \ | |
9769 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9770 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9771 | -e 's:$: $lt_compiler_flag:'` | |
9772 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9773 | (eval "$lt_compile" 2>conftest.err) | |
9774 | ac_status=$? | |
9775 | cat conftest.err >&5 | |
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9777 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9778 | # The compiler can only warn and ignore the option if not recognized | |
9779 | # So say no if there are warnings other than the usual output. | |
9780 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9781 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9782 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9783 | lt_cv_prog_compiler_pic_works=yes | |
9784 | fi | |
9785 | fi | |
9786 | $RM conftest* | |
f35db108 | 9787 | |
c915a581 JJ |
9788 | fi |
9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9790 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
f35db108 | 9791 | |
c915a581 JJ |
9792 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9793 | case $lt_prog_compiler_pic in | |
9794 | "" | " "*) ;; | |
9795 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9796 | esac | |
9797 | else | |
9798 | lt_prog_compiler_pic= | |
9799 | lt_prog_compiler_can_build_shared=no | |
9800 | fi | |
f35db108 | 9801 | |
c915a581 | 9802 | fi |
f35db108 | 9803 | |
f35db108 | 9804 | |
f35db108 | 9805 | |
f35db108 | 9806 | |
f35db108 | 9807 | |
f35db108 | 9808 | |
c915a581 JJ |
9809 | # |
9810 | # Check to make sure the static flag actually works. | |
9811 | # | |
9812 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9814 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 9815 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
c915a581 JJ |
9816 | $as_echo_n "(cached) " >&6 |
9817 | else | |
9818 | lt_cv_prog_compiler_static_works=no | |
9819 | save_LDFLAGS="$LDFLAGS" | |
9820 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9821 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9822 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9823 | # The linker can only warn and ignore the option if not recognized | |
9824 | # So say no if there are warnings | |
9825 | if test -s conftest.err; then | |
9826 | # Append any errors to the config.log. | |
9827 | cat conftest.err 1>&5 | |
9828 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9829 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9830 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9831 | lt_cv_prog_compiler_static_works=yes | |
9832 | fi | |
9833 | else | |
9834 | lt_cv_prog_compiler_static_works=yes | |
9835 | fi | |
9836 | fi | |
9837 | $RM -r conftest* | |
9838 | LDFLAGS="$save_LDFLAGS" | |
f35db108 | 9839 | |
c915a581 JJ |
9840 | fi |
9841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9842 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
f35db108 | 9843 | |
c915a581 JJ |
9844 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9845 | : | |
9846 | else | |
9847 | lt_prog_compiler_static= | |
9848 | fi | |
f35db108 | 9849 | |
f35db108 | 9850 | |
f35db108 | 9851 | |
f35db108 | 9852 | |
f35db108 | 9853 | |
f35db108 | 9854 | |
f35db108 | 9855 | |
c915a581 JJ |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9857 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9858 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
c915a581 JJ |
9859 | $as_echo_n "(cached) " >&6 |
9860 | else | |
9861 | lt_cv_prog_compiler_c_o=no | |
9862 | $RM -r conftest 2>/dev/null | |
9863 | mkdir conftest | |
9864 | cd conftest | |
9865 | mkdir out | |
9866 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
f35db108 | 9867 | |
c915a581 JJ |
9868 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9869 | # Insert the option either (1) after the last *FLAGS variable, or | |
9870 | # (2) before a word containing "conftest.", or (3) at the end. | |
9871 | # Note that $ac_compile itself does not contain backslashes and begins | |
9872 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9873 | lt_compile=`echo "$ac_compile" | $SED \ | |
9874 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9875 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9876 | -e 's:$: $lt_compiler_flag:'` | |
9877 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9878 | (eval "$lt_compile" 2>out/conftest.err) | |
9879 | ac_status=$? | |
9880 | cat out/conftest.err >&5 | |
9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9882 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9883 | then | |
9884 | # The compiler can only warn and ignore the option if not recognized | |
9885 | # So say no if there are warnings | |
9886 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9887 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9888 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9889 | lt_cv_prog_compiler_c_o=yes | |
9890 | fi | |
9891 | fi | |
9892 | chmod u+w . 2>&5 | |
9893 | $RM conftest* | |
9894 | # SGI C++ compiler will create directory out/ii_files/ for | |
9895 | # template instantiation | |
9896 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9897 | $RM out/* && rmdir out | |
9898 | cd .. | |
9899 | $RM -r conftest | |
9900 | $RM conftest* | |
f35db108 | 9901 | |
c915a581 JJ |
9902 | fi |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9904 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
f35db108 | 9905 | |
f35db108 | 9906 | |
f35db108 | 9907 | |
f35db108 | 9908 | |
f35db108 | 9909 | |
f35db108 | 9910 | |
c915a581 JJ |
9911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9912 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9913 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
c915a581 JJ |
9914 | $as_echo_n "(cached) " >&6 |
9915 | else | |
9916 | lt_cv_prog_compiler_c_o=no | |
9917 | $RM -r conftest 2>/dev/null | |
9918 | mkdir conftest | |
9919 | cd conftest | |
9920 | mkdir out | |
9921 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
f35db108 | 9922 | |
c915a581 JJ |
9923 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9924 | # Insert the option either (1) after the last *FLAGS variable, or | |
9925 | # (2) before a word containing "conftest.", or (3) at the end. | |
9926 | # Note that $ac_compile itself does not contain backslashes and begins | |
9927 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9928 | lt_compile=`echo "$ac_compile" | $SED \ | |
9929 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9930 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9931 | -e 's:$: $lt_compiler_flag:'` | |
9932 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9933 | (eval "$lt_compile" 2>out/conftest.err) | |
9934 | ac_status=$? | |
9935 | cat out/conftest.err >&5 | |
9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9937 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9938 | then | |
9939 | # The compiler can only warn and ignore the option if not recognized | |
9940 | # So say no if there are warnings | |
9941 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9942 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9943 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9944 | lt_cv_prog_compiler_c_o=yes | |
9945 | fi | |
9946 | fi | |
9947 | chmod u+w . 2>&5 | |
9948 | $RM conftest* | |
9949 | # SGI C++ compiler will create directory out/ii_files/ for | |
9950 | # template instantiation | |
9951 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9952 | $RM out/* && rmdir out | |
9953 | cd .. | |
9954 | $RM -r conftest | |
9955 | $RM conftest* | |
f35db108 | 9956 | |
c915a581 JJ |
9957 | fi |
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9959 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
f35db108 | 9960 | |
f35db108 | 9961 | |
f35db108 | 9962 | |
f35db108 | 9963 | |
c915a581 JJ |
9964 | hard_links="nottested" |
9965 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9966 | # do not overwrite the value of need_locks provided by the user | |
9967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9968 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9969 | hard_links=yes | |
9970 | $RM conftest* | |
9971 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9972 | touch conftest.a | |
9973 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9974 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9976 | $as_echo "$hard_links" >&6; } | |
9977 | if test "$hard_links" = no; then | |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9979 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9980 | need_locks=warn | |
f35db108 | 9981 | fi |
c915a581 JJ |
9982 | else |
9983 | need_locks=no | |
f35db108 WM |
9984 | fi |
9985 | ||
f35db108 WM |
9986 | |
9987 | ||
9988 | ||
9989 | ||
9990 | ||
c915a581 JJ |
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9992 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
f35db108 | 9993 | |
c915a581 JJ |
9994 | runpath_var= |
9995 | allow_undefined_flag= | |
9996 | always_export_symbols=no | |
9997 | archive_cmds= | |
9998 | archive_expsym_cmds= | |
9999 | compiler_needs_object=no | |
10000 | enable_shared_with_static_runtimes=no | |
10001 | export_dynamic_flag_spec= | |
10002 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10003 | hardcode_automatic=no | |
10004 | hardcode_direct=no | |
10005 | hardcode_direct_absolute=no | |
10006 | hardcode_libdir_flag_spec= | |
10007 | hardcode_libdir_flag_spec_ld= | |
10008 | hardcode_libdir_separator= | |
10009 | hardcode_minus_L=no | |
10010 | hardcode_shlibpath_var=unsupported | |
10011 | inherit_rpath=no | |
10012 | link_all_deplibs=unknown | |
10013 | module_cmds= | |
10014 | module_expsym_cmds= | |
10015 | old_archive_from_new_cmds= | |
10016 | old_archive_from_expsyms_cmds= | |
10017 | thread_safe_flag_spec= | |
10018 | whole_archive_flag_spec= | |
10019 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10020 | # included in the symbol list | |
10021 | include_expsyms= | |
10022 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10023 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10024 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10025 | # as well as any symbol that contains `d'. | |
10026 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10027 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10028 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10029 | # the symbol is explicitly referenced. Since portable code cannot | |
10030 | # rely on this symbol name, it's probably fine to never include it in | |
10031 | # preloaded symbol tables. | |
10032 | # Exclude shared library initialization/finalization symbols. | |
10033 | extract_expsyms_cmds= | |
f35db108 | 10034 | |
c915a581 JJ |
10035 | case $host_os in |
10036 | cygwin* | mingw* | pw32* | cegcc*) | |
10037 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10038 | # When not using gcc, we currently assume that we are using | |
10039 | # Microsoft Visual C++. | |
10040 | if test "$GCC" != yes; then | |
10041 | with_gnu_ld=no | |
10042 | fi | |
10043 | ;; | |
10044 | interix*) | |
10045 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10046 | with_gnu_ld=yes | |
10047 | ;; | |
10048 | openbsd*) | |
10049 | with_gnu_ld=no | |
10050 | ;; | |
10051 | esac | |
f35db108 | 10052 | |
c915a581 | 10053 | ld_shlibs=yes |
f35db108 | 10054 | |
c915a581 JJ |
10055 | # On some targets, GNU ld is compatible enough with the native linker |
10056 | # that we're better off using the native interface for both. | |
10057 | lt_use_gnu_ld_interface=no | |
10058 | if test "$with_gnu_ld" = yes; then | |
10059 | case $host_os in | |
10060 | aix*) | |
10061 | # The AIX port of GNU ld has always aspired to compatibility | |
10062 | # with the native linker. However, as the warning in the GNU ld | |
10063 | # block says, versions before 2.19.5* couldn't really create working | |
10064 | # shared libraries, regardless of the interface used. | |
10065 | case `$LD -v 2>&1` in | |
10066 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10067 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10068 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10069 | *) | |
10070 | lt_use_gnu_ld_interface=yes | |
10071 | ;; | |
10072 | esac | |
10073 | ;; | |
10074 | *) | |
10075 | lt_use_gnu_ld_interface=yes | |
10076 | ;; | |
10077 | esac | |
10078 | fi | |
f35db108 | 10079 | |
c915a581 JJ |
10080 | if test "$lt_use_gnu_ld_interface" = yes; then |
10081 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10082 | wlarc='${wl}' | |
f35db108 | 10083 | |
c915a581 JJ |
10084 | # Set some defaults for GNU ld with shared library support. These |
10085 | # are reset later if shared libraries are not supported. Putting them | |
10086 | # here allows them to be overridden if necessary. | |
10087 | runpath_var=LD_RUN_PATH | |
10088 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10089 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10090 | # ancient GNU ld didn't support --whole-archive et. al. | |
10091 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10092 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10093 | else | |
10094 | whole_archive_flag_spec= | |
10095 | fi | |
10096 | supports_anon_versioning=no | |
10097 | case `$LD -v 2>&1` in | |
10098 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10099 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10100 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10101 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10102 | *\ 2.11.*) ;; # other 2.11 versions | |
10103 | *) supports_anon_versioning=yes ;; | |
10104 | esac | |
f35db108 | 10105 | |
c915a581 JJ |
10106 | # See if GNU ld supports shared libraries. |
10107 | case $host_os in | |
10108 | aix[3-9]*) | |
10109 | # On AIX/PPC, the GNU linker is very broken | |
10110 | if test "$host_cpu" != ia64; then | |
10111 | ld_shlibs=no | |
10112 | cat <<_LT_EOF 1>&2 | |
f35db108 | 10113 | |
c915a581 JJ |
10114 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
10115 | *** to be unable to reliably create shared libraries on AIX. | |
10116 | *** Therefore, libtool is disabling shared libraries support. If you | |
10117 | *** really care for shared libraries, you may want to install binutils | |
10118 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10119 | *** You will then need to restart the configuration process. | |
f35db108 | 10120 | |
c915a581 JJ |
10121 | _LT_EOF |
10122 | fi | |
10123 | ;; | |
f35db108 | 10124 | |
c915a581 JJ |
10125 | amigaos*) |
10126 | case $host_cpu in | |
10127 | powerpc) | |
10128 | # see comment about AmigaOS4 .so support | |
10129 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10130 | archive_expsym_cmds='' | |
10131 | ;; | |
10132 | m68k) | |
10133 | 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)' | |
10134 | hardcode_libdir_flag_spec='-L$libdir' | |
10135 | hardcode_minus_L=yes | |
10136 | ;; | |
10137 | esac | |
10138 | ;; | |
f35db108 | 10139 | |
c915a581 JJ |
10140 | beos*) |
10141 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10142 | allow_undefined_flag=unsupported | |
10143 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10144 | # support --undefined. This deserves some investigation. FIXME | |
10145 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10146 | else | |
10147 | ld_shlibs=no | |
10148 | fi | |
10149 | ;; | |
f35db108 | 10150 | |
c915a581 JJ |
10151 | cygwin* | mingw* | pw32* | cegcc*) |
10152 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10153 | # as there is no search path for DLLs. | |
10154 | hardcode_libdir_flag_spec='-L$libdir' | |
10155 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10156 | allow_undefined_flag=unsupported | |
10157 | always_export_symbols=no | |
10158 | enable_shared_with_static_runtimes=yes | |
10159 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
f35db108 | 10160 | |
c915a581 JJ |
10161 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
10162 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10163 | # If the export-symbols file already is a .def file (1st line | |
10164 | # is EXPORTS), use it as is; otherwise, prepend... | |
10165 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10166 | cp $export_symbols $output_objdir/$soname.def; | |
10167 | else | |
10168 | echo EXPORTS > $output_objdir/$soname.def; | |
10169 | cat $export_symbols >> $output_objdir/$soname.def; | |
10170 | fi~ | |
10171 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10172 | else | |
10173 | ld_shlibs=no | |
10174 | fi | |
10175 | ;; | |
f35db108 | 10176 | |
c915a581 JJ |
10177 | haiku*) |
10178 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10179 | link_all_deplibs=yes | |
10180 | ;; | |
f35db108 | 10181 | |
c915a581 JJ |
10182 | interix[3-9]*) |
10183 | hardcode_direct=no | |
10184 | hardcode_shlibpath_var=no | |
10185 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10186 | export_dynamic_flag_spec='${wl}-E' | |
10187 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10188 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10189 | # default) and relocated if they conflict, which is a slow very memory | |
10190 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10191 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10192 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10193 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10194 | 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' | |
10195 | ;; | |
f35db108 | 10196 | |
e9085da5 | 10197 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
c915a581 JJ |
10198 | tmp_diet=no |
10199 | if test "$host_os" = linux-dietlibc; then | |
10200 | case $cc_basename in | |
10201 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10202 | esac | |
10203 | fi | |
10204 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10205 | && test "$tmp_diet" = no | |
10206 | then | |
a699d672 | 10207 | tmp_addflag=' $pic_flag' |
c915a581 JJ |
10208 | tmp_sharedflag='-shared' |
10209 | case $cc_basename,$host_cpu in | |
10210 | pgcc*) # Portland Group C compiler | |
10211 | 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' | |
10212 | tmp_addflag=' $pic_flag' | |
10213 | ;; | |
10214 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10215 | # Portland Group f77 and f90 compilers | |
10216 | 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' | |
10217 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10218 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10219 | tmp_addflag=' -i_dynamic' ;; | |
10220 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10221 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10222 | ifc* | ifort*) # Intel Fortran compiler | |
10223 | tmp_addflag=' -nofor_main' ;; | |
10224 | lf95*) # Lahey Fortran 8.1 | |
10225 | whole_archive_flag_spec= | |
10226 | tmp_sharedflag='--shared' ;; | |
10227 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10228 | tmp_sharedflag='-qmkshrobj' | |
10229 | tmp_addflag= ;; | |
10230 | nvcc*) # Cuda Compiler Driver 2.2 | |
10231 | 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' | |
10232 | compiler_needs_object=yes | |
10233 | ;; | |
10234 | esac | |
10235 | case `$CC -V 2>&1 | sed 5q` in | |
10236 | *Sun\ C*) # Sun C 5.9 | |
10237 | 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' | |
10238 | compiler_needs_object=yes | |
10239 | tmp_sharedflag='-G' ;; | |
10240 | *Sun\ F*) # Sun Fortran 8.3 | |
10241 | tmp_sharedflag='-G' ;; | |
10242 | esac | |
10243 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
f35db108 | 10244 | |
c915a581 JJ |
10245 | if test "x$supports_anon_versioning" = xyes; then |
10246 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10247 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10248 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10249 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10250 | fi | |
f35db108 | 10251 | |
c915a581 JJ |
10252 | case $cc_basename in |
10253 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10254 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10255 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10256 | hardcode_libdir_flag_spec= | |
10257 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10258 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10259 | if test "x$supports_anon_versioning" = xyes; then | |
10260 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10261 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10262 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10263 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10264 | fi | |
10265 | ;; | |
10266 | esac | |
10267 | else | |
10268 | ld_shlibs=no | |
10269 | fi | |
10270 | ;; | |
f35db108 | 10271 | |
c915a581 JJ |
10272 | netbsd*) |
10273 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10274 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10275 | wlarc= | |
10276 | else | |
10277 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10278 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10279 | fi | |
10280 | ;; | |
f35db108 | 10281 | |
c915a581 JJ |
10282 | solaris*) |
10283 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10284 | ld_shlibs=no | |
10285 | cat <<_LT_EOF 1>&2 | |
f35db108 | 10286 | |
c915a581 JJ |
10287 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
10288 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10289 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10290 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10291 | *** your PATH or compiler configuration so that the native linker is | |
10292 | *** used, and then restart. | |
f35db108 | 10293 | |
c915a581 JJ |
10294 | _LT_EOF |
10295 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10296 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10297 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10298 | else | |
10299 | ld_shlibs=no | |
10300 | fi | |
10301 | ;; | |
f35db108 | 10302 | |
c915a581 JJ |
10303 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
10304 | case `$LD -v 2>&1` in | |
10305 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10306 | ld_shlibs=no | |
10307 | cat <<_LT_EOF 1>&2 | |
f35db108 | 10308 | |
c915a581 JJ |
10309 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
10310 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10311 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10312 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10313 | *** your PATH or compiler configuration so that the native linker is | |
10314 | *** used, and then restart. | |
f35db108 | 10315 | |
c915a581 JJ |
10316 | _LT_EOF |
10317 | ;; | |
10318 | *) | |
10319 | # For security reasons, it is highly recommended that you always | |
10320 | # use absolute paths for naming shared libraries, and exclude the | |
10321 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10322 | # requires that you compile everything twice, which is a pain. | |
10323 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10324 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10325 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10326 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10327 | else | |
10328 | ld_shlibs=no | |
10329 | fi | |
10330 | ;; | |
10331 | esac | |
10332 | ;; | |
f35db108 | 10333 | |
c915a581 JJ |
10334 | sunos4*) |
10335 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10336 | wlarc= | |
10337 | hardcode_direct=yes | |
10338 | hardcode_shlibpath_var=no | |
10339 | ;; | |
f35db108 | 10340 | |
c915a581 JJ |
10341 | *) |
10342 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10343 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10344 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10345 | else | |
10346 | ld_shlibs=no | |
10347 | fi | |
10348 | ;; | |
10349 | esac | |
f35db108 | 10350 | |
c915a581 JJ |
10351 | if test "$ld_shlibs" = no; then |
10352 | runpath_var= | |
10353 | hardcode_libdir_flag_spec= | |
10354 | export_dynamic_flag_spec= | |
10355 | whole_archive_flag_spec= | |
10356 | fi | |
10357 | else | |
10358 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10359 | case $host_os in | |
10360 | aix3*) | |
10361 | allow_undefined_flag=unsupported | |
10362 | always_export_symbols=yes | |
10363 | 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' | |
10364 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10365 | # are no directories specified by -L. | |
10366 | hardcode_minus_L=yes | |
10367 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10368 | # Neither direct hardcoding nor static linking is supported with a | |
10369 | # broken collect2. | |
10370 | hardcode_direct=unsupported | |
10371 | fi | |
10372 | ;; | |
f35db108 | 10373 | |
c915a581 JJ |
10374 | aix[4-9]*) |
10375 | if test "$host_cpu" = ia64; then | |
10376 | # On IA64, the linker does run time linking by default, so we don't | |
10377 | # have to do anything special. | |
10378 | aix_use_runtimelinking=no | |
10379 | exp_sym_flag='-Bexport' | |
10380 | no_entry_flag="" | |
10381 | else | |
10382 | # If we're using GNU nm, then we don't want the "-C" option. | |
10383 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10384 | # Also, AIX nm treats weak defined symbols like other global | |
10385 | # defined symbols, whereas GNU nm marks them as "W". | |
10386 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10387 | 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' | |
10388 | else | |
bf93d543 | 10389 | 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 |
10390 | fi |
10391 | aix_use_runtimelinking=no | |
f35db108 | 10392 | |
c915a581 JJ |
10393 | # Test if we are trying to use run time linking or normal |
10394 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10395 | # need to do runtime linking. | |
10396 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10397 | for ld_flag in $LDFLAGS; do | |
10398 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10399 | aix_use_runtimelinking=yes | |
10400 | break | |
10401 | fi | |
10402 | done | |
10403 | ;; | |
10404 | esac | |
f35db108 | 10405 | |
c915a581 JJ |
10406 | exp_sym_flag='-bexport' |
10407 | no_entry_flag='-bnoentry' | |
10408 | fi | |
f35db108 | 10409 | |
c915a581 JJ |
10410 | # When large executables or shared objects are built, AIX ld can |
10411 | # have problems creating the table of contents. If linking a library | |
10412 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10413 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10414 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
f35db108 | 10415 | |
c915a581 JJ |
10416 | archive_cmds='' |
10417 | hardcode_direct=yes | |
10418 | hardcode_direct_absolute=yes | |
10419 | hardcode_libdir_separator=':' | |
10420 | link_all_deplibs=yes | |
10421 | file_list_spec='${wl}-f,' | |
f35db108 | 10422 | |
c915a581 JJ |
10423 | if test "$GCC" = yes; then |
10424 | case $host_os in aix4.[012]|aix4.[012].*) | |
10425 | # We only want to do this on AIX 4.2 and lower, the check | |
10426 | # below for broken collect2 doesn't work under 4.3+ | |
10427 | collect2name=`${CC} -print-prog-name=collect2` | |
10428 | if test -f "$collect2name" && | |
10429 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10430 | then | |
10431 | # We have reworked collect2 | |
10432 | : | |
10433 | else | |
10434 | # We have old collect2 | |
10435 | hardcode_direct=unsupported | |
10436 | # It fails to find uninstalled libraries when the uninstalled | |
10437 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10438 | # to unsupported forces relinking | |
10439 | hardcode_minus_L=yes | |
10440 | hardcode_libdir_flag_spec='-L$libdir' | |
10441 | hardcode_libdir_separator= | |
10442 | fi | |
10443 | ;; | |
10444 | esac | |
10445 | shared_flag='-shared' | |
10446 | if test "$aix_use_runtimelinking" = yes; then | |
10447 | shared_flag="$shared_flag "'${wl}-G' | |
10448 | fi | |
10449 | else | |
10450 | # not using gcc | |
10451 | if test "$host_cpu" = ia64; then | |
10452 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10453 | # chokes on -Wl,-G. The following line is correct: | |
10454 | shared_flag='-G' | |
10455 | else | |
10456 | if test "$aix_use_runtimelinking" = yes; then | |
10457 | shared_flag='${wl}-G' | |
10458 | else | |
10459 | shared_flag='${wl}-bM:SRE' | |
10460 | fi | |
10461 | fi | |
10462 | fi | |
f35db108 | 10463 | |
c915a581 JJ |
10464 | export_dynamic_flag_spec='${wl}-bexpall' |
10465 | # It seems that -bexpall does not export symbols beginning with | |
10466 | # underscore (_), so it is better to generate a list of symbols to export. | |
10467 | always_export_symbols=yes | |
10468 | if test "$aix_use_runtimelinking" = yes; then | |
10469 | # Warning - without using the other runtime loading flags (-brtl), | |
10470 | # -berok will link without error, but may produce a broken library. | |
10471 | allow_undefined_flag='-berok' | |
10472 | # Determine the default libpath from the value encoded in an | |
10473 | # empty executable. | |
10474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10475 | /* end confdefs.h. */ | |
f35db108 | 10476 | |
c915a581 JJ |
10477 | int |
10478 | main () | |
10479 | { | |
f35db108 | 10480 | |
c915a581 JJ |
10481 | ; |
10482 | return 0; | |
10483 | } | |
10484 | _ACEOF | |
10485 | if ac_fn_c_try_link "$LINENO"; then : | |
f35db108 | 10486 | |
c915a581 JJ |
10487 | lt_aix_libpath_sed=' |
10488 | /Import File Strings/,/^$/ { | |
10489 | /^0/ { | |
10490 | s/^0 *\(.*\)$/\1/ | |
10491 | p | |
10492 | } | |
10493 | }' | |
10494 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10495 | # Check for a 64-bit object if we didn't find anything. | |
10496 | if test -z "$aix_libpath"; then | |
10497 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10498 | fi | |
10499 | fi | |
10500 | rm -f core conftest.err conftest.$ac_objext \ | |
10501 | conftest$ac_exeext conftest.$ac_ext | |
10502 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
f35db108 | 10503 | |
c915a581 JJ |
10504 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10505 | 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" | |
10506 | else | |
10507 | if test "$host_cpu" = ia64; then | |
10508 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10509 | allow_undefined_flag="-z nodefs" | |
10510 | 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" | |
10511 | else | |
10512 | # Determine the default libpath from the value encoded in an | |
10513 | # empty executable. | |
10514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10515 | /* end confdefs.h. */ | |
f35db108 | 10516 | |
c915a581 JJ |
10517 | int |
10518 | main () | |
10519 | { | |
f35db108 | 10520 | |
c915a581 JJ |
10521 | ; |
10522 | return 0; | |
10523 | } | |
10524 | _ACEOF | |
10525 | if ac_fn_c_try_link "$LINENO"; then : | |
f35db108 | 10526 | |
c915a581 JJ |
10527 | lt_aix_libpath_sed=' |
10528 | /Import File Strings/,/^$/ { | |
10529 | /^0/ { | |
10530 | s/^0 *\(.*\)$/\1/ | |
10531 | p | |
10532 | } | |
10533 | }' | |
10534 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10535 | # Check for a 64-bit object if we didn't find anything. | |
10536 | if test -z "$aix_libpath"; then | |
10537 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10538 | fi | |
10539 | fi | |
10540 | rm -f core conftest.err conftest.$ac_objext \ | |
10541 | conftest$ac_exeext conftest.$ac_ext | |
10542 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
f35db108 | 10543 | |
c915a581 JJ |
10544 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10545 | # Warning - without using the other run time loading flags, | |
10546 | # -berok will link without error, but may produce a broken library. | |
10547 | no_undefined_flag=' ${wl}-bernotok' | |
10548 | allow_undefined_flag=' ${wl}-berok' | |
10549 | if test "$with_gnu_ld" = yes; then | |
10550 | # We only use this code for GNU lds that support --whole-archive. | |
10551 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10552 | else | |
10553 | # Exported symbols can be pulled into shared objects from archives | |
10554 | whole_archive_flag_spec='$convenience' | |
10555 | fi | |
10556 | archive_cmds_need_lc=yes | |
10557 | # This is similar to how AIX traditionally builds its shared libraries. | |
10558 | 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' | |
10559 | fi | |
10560 | fi | |
10561 | ;; | |
f35db108 | 10562 | |
c915a581 JJ |
10563 | amigaos*) |
10564 | case $host_cpu in | |
10565 | powerpc) | |
10566 | # see comment about AmigaOS4 .so support | |
10567 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10568 | archive_expsym_cmds='' | |
10569 | ;; | |
10570 | m68k) | |
10571 | 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)' | |
10572 | hardcode_libdir_flag_spec='-L$libdir' | |
10573 | hardcode_minus_L=yes | |
10574 | ;; | |
10575 | esac | |
10576 | ;; | |
f35db108 | 10577 | |
c915a581 JJ |
10578 | bsdi[45]*) |
10579 | export_dynamic_flag_spec=-rdynamic | |
10580 | ;; | |
f35db108 | 10581 | |
c915a581 JJ |
10582 | cygwin* | mingw* | pw32* | cegcc*) |
10583 | # When not using gcc, we currently assume that we are using | |
10584 | # Microsoft Visual C++. | |
10585 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10586 | # no search path for DLLs. | |
10587 | hardcode_libdir_flag_spec=' ' | |
10588 | allow_undefined_flag=unsupported | |
10589 | # Tell ltmain to make .lib files, not .a files. | |
10590 | libext=lib | |
10591 | # Tell ltmain to make .dll files, not .so files. | |
10592 | shrext_cmds=".dll" | |
10593 | # FIXME: Setting linknames here is a bad hack. | |
10594 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10595 | # The linker will automatically build a .lib file if we build a DLL. | |
10596 | old_archive_from_new_cmds='true' | |
10597 | # FIXME: Should let the user specify the lib program. | |
10598 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10599 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10600 | enable_shared_with_static_runtimes=yes | |
10601 | ;; | |
f35db108 | 10602 | |
c915a581 | 10603 | darwin* | rhapsody*) |
f35db108 WM |
10604 | |
10605 | ||
6a6d3817 IS |
10606 | |
10607 | # Publish an arg to allow the user to select that Darwin host (and target) | |
10608 | # libraries should be given install-names like @rpath/libfoo.dylib. This | |
10609 | # requires that the user of the library then adds an 'rpath' to the DSO that | |
10610 | # needs access. | |
10611 | # NOTE: there are defaults below, for systems that support rpaths. The person | |
10612 | # configuring can override the defaults for any system version that supports | |
10613 | # them - they are, however, forced off for system versions without support. | |
10614 | # Check whether --enable-darwin-at-rpath was given. | |
10615 | if test "${enable_darwin_at_rpath+set}" = set; then : | |
10616 | enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then | |
10617 | # This is not supported before macOS 10.5 / Darwin9. | |
10618 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in | |
10619 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) | |
10620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 | |
10621 | $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} | |
10622 | enable_darwin_at_rpath=no | |
10623 | ;; | |
10624 | esac | |
10625 | fi | |
10626 | else | |
10627 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in | |
10628 | # As above, before 10.5 / Darwin9 this does not work. | |
10629 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) | |
10630 | enable_darwin_at_rpath=no | |
10631 | ;; | |
10632 | ||
10633 | # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use | |
10634 | # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key | |
10635 | # system executables (e.g. /bin/sh). Force rpaths on for these systems. | |
10636 | UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) | |
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 | |
10638 | $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} | |
10639 | enable_darwin_at_rpath=yes | |
10640 | ;; | |
10641 | # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can | |
10642 | # work with either DYLD_LIBRARY_PATH or embedded rpaths. | |
10643 | ||
10644 | esac | |
10645 | ||
10646 | fi | |
10647 | ||
10648 | ||
c915a581 JJ |
10649 | archive_cmds_need_lc=no |
10650 | hardcode_direct=no | |
10651 | hardcode_automatic=yes | |
10652 | hardcode_shlibpath_var=unsupported | |
10653 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10654 | 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\"`' | |
10655 | else | |
10656 | whole_archive_flag_spec='' | |
10657 | fi | |
10658 | link_all_deplibs=yes | |
10659 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10660 | case $cc_basename in | |
10661 | ifort*) _lt_dar_can_shared=yes ;; | |
10662 | *) _lt_dar_can_shared=$GCC ;; | |
10663 | esac | |
10664 | if test "$_lt_dar_can_shared" = "yes"; then | |
10665 | output_verbose_link_cmd=func_echo_all | |
6a6d3817 IS |
10666 | _lt_install_name='\$rpath/\$soname' |
10667 | if test "x$enable_darwin_at_rpath" = "xyes"; then | |
10668 | _lt_install_name='@rpath/\$soname' | |
10669 | fi | |
10670 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" | |
c915a581 | 10671 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
6a6d3817 | 10672 | 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" |
c915a581 | 10673 | 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 | 10674 | |
c915a581 JJ |
10675 | else |
10676 | ld_shlibs=no | |
10677 | fi | |
f35db108 | 10678 | |
c915a581 | 10679 | ;; |
f35db108 | 10680 | |
c915a581 JJ |
10681 | dgux*) |
10682 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10683 | hardcode_libdir_flag_spec='-L$libdir' | |
10684 | hardcode_shlibpath_var=no | |
10685 | ;; | |
f35db108 | 10686 | |
c915a581 JJ |
10687 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10688 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10689 | # does not break anything, and helps significantly (at the cost of a little | |
10690 | # extra space). | |
10691 | freebsd2.2*) | |
10692 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10693 | hardcode_libdir_flag_spec='-R$libdir' | |
10694 | hardcode_direct=yes | |
10695 | hardcode_shlibpath_var=no | |
10696 | ;; | |
f35db108 | 10697 | |
c915a581 JJ |
10698 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10699 | freebsd2.*) | |
10700 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10701 | hardcode_direct=yes | |
10702 | hardcode_minus_L=yes | |
10703 | hardcode_shlibpath_var=no | |
10704 | ;; | |
f35db108 | 10705 | |
c915a581 JJ |
10706 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10707 | freebsd* | dragonfly*) | |
10708 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10709 | hardcode_libdir_flag_spec='-R$libdir' | |
10710 | hardcode_direct=yes | |
10711 | hardcode_shlibpath_var=no | |
10712 | ;; | |
f35db108 | 10713 | |
c915a581 JJ |
10714 | hpux9*) |
10715 | if test "$GCC" = yes; then | |
10716 | 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' | |
10717 | else | |
10718 | 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' | |
10719 | fi | |
10720 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10721 | hardcode_libdir_separator=: | |
10722 | hardcode_direct=yes | |
f35db108 | 10723 | |
c915a581 JJ |
10724 | # hardcode_minus_L: Not really in the search PATH, |
10725 | # but as the default location of the library. | |
10726 | hardcode_minus_L=yes | |
10727 | export_dynamic_flag_spec='${wl}-E' | |
10728 | ;; | |
f35db108 | 10729 | |
c915a581 JJ |
10730 | hpux10*) |
10731 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10732 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10733 | else | |
10734 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10735 | fi | |
10736 | if test "$with_gnu_ld" = no; then | |
10737 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10738 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10739 | hardcode_libdir_separator=: | |
10740 | hardcode_direct=yes | |
10741 | hardcode_direct_absolute=yes | |
10742 | export_dynamic_flag_spec='${wl}-E' | |
10743 | # hardcode_minus_L: Not really in the search PATH, | |
10744 | # but as the default location of the library. | |
10745 | hardcode_minus_L=yes | |
10746 | fi | |
10747 | ;; | |
f35db108 | 10748 | |
c915a581 JJ |
10749 | hpux11*) |
10750 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10751 | case $host_cpu in | |
10752 | hppa*64*) | |
4e4ba647 | 10753 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
c915a581 JJ |
10754 | ;; |
10755 | ia64*) | |
10756 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10757 | ;; | |
10758 | *) | |
10759 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10760 | ;; | |
10761 | esac | |
10762 | else | |
10763 | case $host_cpu in | |
10764 | hppa*64*) | |
4e4ba647 | 10765 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
c915a581 JJ |
10766 | ;; |
10767 | ia64*) | |
10768 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10769 | ;; | |
10770 | *) | |
f35db108 | 10771 | |
c915a581 JJ |
10772 | # Older versions of the 11.00 compiler do not understand -b yet |
10773 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10775 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 10776 | if ${lt_cv_prog_compiler__b+:} false; then : |
c915a581 | 10777 | $as_echo_n "(cached) " >&6 |
f35db108 | 10778 | else |
c915a581 JJ |
10779 | lt_cv_prog_compiler__b=no |
10780 | save_LDFLAGS="$LDFLAGS" | |
10781 | LDFLAGS="$LDFLAGS -b" | |
10782 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10783 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10784 | # The linker can only warn and ignore the option if not recognized | |
10785 | # So say no if there are warnings | |
10786 | if test -s conftest.err; then | |
10787 | # Append any errors to the config.log. | |
10788 | cat conftest.err 1>&5 | |
10789 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10790 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10791 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10792 | lt_cv_prog_compiler__b=yes | |
10793 | fi | |
10794 | else | |
10795 | lt_cv_prog_compiler__b=yes | |
10796 | fi | |
10797 | fi | |
10798 | $RM -r conftest* | |
10799 | LDFLAGS="$save_LDFLAGS" | |
f35db108 | 10800 | |
f35db108 | 10801 | fi |
c915a581 JJ |
10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
10803 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
f35db108 | 10804 | |
c915a581 JJ |
10805 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10806 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10807 | else | |
10808 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10809 | fi | |
f35db108 | 10810 | |
c915a581 JJ |
10811 | ;; |
10812 | esac | |
10813 | fi | |
10814 | if test "$with_gnu_ld" = no; then | |
10815 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10816 | hardcode_libdir_separator=: | |
f35db108 | 10817 | |
c915a581 JJ |
10818 | case $host_cpu in |
10819 | hppa*64*|ia64*) | |
10820 | hardcode_direct=no | |
10821 | hardcode_shlibpath_var=no | |
10822 | ;; | |
10823 | *) | |
10824 | hardcode_direct=yes | |
10825 | hardcode_direct_absolute=yes | |
10826 | export_dynamic_flag_spec='${wl}-E' | |
f35db108 | 10827 | |
c915a581 JJ |
10828 | # hardcode_minus_L: Not really in the search PATH, |
10829 | # but as the default location of the library. | |
10830 | hardcode_minus_L=yes | |
10831 | ;; | |
10832 | esac | |
10833 | fi | |
10834 | ;; | |
f35db108 | 10835 | |
c915a581 JJ |
10836 | irix5* | irix6* | nonstopux*) |
10837 | if test "$GCC" = yes; then | |
10838 | 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' | |
10839 | # Try to use the -exported_symbol ld option, if it does not | |
10840 | # work, assume that -exports_file does not work either and | |
10841 | # implicitly export all symbols. | |
10842 | save_LDFLAGS="$LDFLAGS" | |
10843 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10845 | /* end confdefs.h. */ | |
10846 | int foo(void) {} | |
10847 | _ACEOF | |
10848 | if ac_fn_c_try_link "$LINENO"; then : | |
10849 | 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 | 10850 | |
c915a581 JJ |
10851 | fi |
10852 | rm -f core conftest.err conftest.$ac_objext \ | |
10853 | conftest$ac_exeext conftest.$ac_ext | |
10854 | LDFLAGS="$save_LDFLAGS" | |
10855 | else | |
10856 | 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' | |
10857 | 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' | |
10858 | fi | |
10859 | archive_cmds_need_lc='no' | |
10860 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10861 | hardcode_libdir_separator=: | |
10862 | inherit_rpath=yes | |
10863 | link_all_deplibs=yes | |
10864 | ;; | |
f35db108 | 10865 | |
c915a581 JJ |
10866 | netbsd*) |
10867 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10868 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10869 | else | |
10870 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10871 | fi | |
10872 | hardcode_libdir_flag_spec='-R$libdir' | |
10873 | hardcode_direct=yes | |
10874 | hardcode_shlibpath_var=no | |
10875 | ;; | |
f35db108 | 10876 | |
c915a581 JJ |
10877 | newsos6) |
10878 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10879 | hardcode_direct=yes | |
10880 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10881 | hardcode_libdir_separator=: | |
10882 | hardcode_shlibpath_var=no | |
10883 | ;; | |
f35db108 | 10884 | |
c915a581 JJ |
10885 | *nto* | *qnx*) |
10886 | ;; | |
f35db108 | 10887 | |
c915a581 JJ |
10888 | openbsd*) |
10889 | if test -f /usr/libexec/ld.so; then | |
10890 | hardcode_direct=yes | |
10891 | hardcode_shlibpath_var=no | |
10892 | hardcode_direct_absolute=yes | |
10893 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10894 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10895 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10896 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10897 | export_dynamic_flag_spec='${wl}-E' | |
10898 | else | |
10899 | case $host_os in | |
10900 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10901 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10902 | hardcode_libdir_flag_spec='-R$libdir' | |
10903 | ;; | |
10904 | *) | |
10905 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10906 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10907 | ;; | |
10908 | esac | |
10909 | fi | |
10910 | else | |
10911 | ld_shlibs=no | |
10912 | fi | |
10913 | ;; | |
f35db108 | 10914 | |
c915a581 JJ |
10915 | os2*) |
10916 | hardcode_libdir_flag_spec='-L$libdir' | |
10917 | hardcode_minus_L=yes | |
10918 | allow_undefined_flag=unsupported | |
10919 | 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' | |
10920 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10921 | ;; | |
f35db108 | 10922 | |
c915a581 JJ |
10923 | osf3*) |
10924 | if test "$GCC" = yes; then | |
10925 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10926 | 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' | |
10927 | else | |
10928 | allow_undefined_flag=' -expect_unresolved \*' | |
10929 | 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' | |
10930 | fi | |
10931 | archive_cmds_need_lc='no' | |
10932 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10933 | hardcode_libdir_separator=: | |
10934 | ;; | |
f35db108 | 10935 | |
c915a581 JJ |
10936 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10937 | if test "$GCC" = yes; then | |
10938 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10939 | 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' | |
10940 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10941 | else | |
10942 | allow_undefined_flag=' -expect_unresolved \*' | |
10943 | 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' | |
10944 | 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~ | |
10945 | $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 | 10946 | |
c915a581 JJ |
10947 | # Both c and cxx compiler support -rpath directly |
10948 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10949 | fi | |
10950 | archive_cmds_need_lc='no' | |
10951 | hardcode_libdir_separator=: | |
10952 | ;; | |
f35db108 | 10953 | |
c915a581 JJ |
10954 | solaris*) |
10955 | no_undefined_flag=' -z defs' | |
10956 | if test "$GCC" = yes; then | |
10957 | wlarc='${wl}' | |
10958 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10959 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10960 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10961 | else | |
10962 | case `$CC -V 2>&1` in | |
10963 | *"Compilers 5.0"*) | |
10964 | wlarc='' | |
10965 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10966 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10967 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10968 | ;; | |
10969 | *) | |
10970 | wlarc='${wl}' | |
10971 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10972 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10973 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10974 | ;; | |
10975 | esac | |
10976 | fi | |
10977 | hardcode_libdir_flag_spec='-R$libdir' | |
10978 | hardcode_shlibpath_var=no | |
10979 | case $host_os in | |
10980 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10981 | *) | |
10982 | # The compiler driver will combine and reorder linker options, | |
10983 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10984 | # but is careful enough not to reorder. | |
10985 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10986 | if test "$GCC" = yes; then | |
10987 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10988 | else | |
10989 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10990 | fi | |
10991 | ;; | |
10992 | esac | |
10993 | link_all_deplibs=yes | |
10994 | ;; | |
f35db108 | 10995 | |
c915a581 JJ |
10996 | sunos4*) |
10997 | if test "x$host_vendor" = xsequent; then | |
10998 | # Use $CC to link under sequent, because it throws in some extra .o | |
10999 | # files that make .init and .fini sections work. | |
11000 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11001 | else | |
11002 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11003 | fi | |
11004 | hardcode_libdir_flag_spec='-L$libdir' | |
11005 | hardcode_direct=yes | |
11006 | hardcode_minus_L=yes | |
11007 | hardcode_shlibpath_var=no | |
11008 | ;; | |
f35db108 | 11009 | |
c915a581 JJ |
11010 | sysv4) |
11011 | case $host_vendor in | |
11012 | sni) | |
11013 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11014 | hardcode_direct=yes # is this really true??? | |
11015 | ;; | |
11016 | siemens) | |
11017 | ## LD is ld it makes a PLAMLIB | |
11018 | ## CC just makes a GrossModule. | |
11019 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11020 | reload_cmds='$CC -r -o $output$reload_objs' | |
11021 | hardcode_direct=no | |
11022 | ;; | |
11023 | motorola) | |
11024 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11025 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11026 | ;; | |
11027 | esac | |
11028 | runpath_var='LD_RUN_PATH' | |
11029 | hardcode_shlibpath_var=no | |
11030 | ;; | |
f35db108 | 11031 | |
c915a581 JJ |
11032 | sysv4.3*) |
11033 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11034 | hardcode_shlibpath_var=no | |
11035 | export_dynamic_flag_spec='-Bexport' | |
11036 | ;; | |
f35db108 | 11037 | |
c915a581 JJ |
11038 | sysv4*MP*) |
11039 | if test -d /usr/nec; then | |
11040 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11041 | hardcode_shlibpath_var=no | |
11042 | runpath_var=LD_RUN_PATH | |
11043 | hardcode_runpath_var=yes | |
11044 | ld_shlibs=yes | |
11045 | fi | |
11046 | ;; | |
f35db108 | 11047 | |
c915a581 JJ |
11048 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11049 | no_undefined_flag='${wl}-z,text' | |
11050 | archive_cmds_need_lc=no | |
11051 | hardcode_shlibpath_var=no | |
11052 | runpath_var='LD_RUN_PATH' | |
f35db108 | 11053 | |
c915a581 JJ |
11054 | if test "$GCC" = yes; then |
11055 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11056 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11057 | else | |
11058 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11059 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11060 | fi | |
11061 | ;; | |
f35db108 | 11062 | |
c915a581 JJ |
11063 | sysv5* | sco3.2v5* | sco5v6*) |
11064 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11065 | # link with -lc, and that would cause any symbols used from libc to | |
11066 | # always be unresolved, which means just about no library would | |
11067 | # ever link correctly. If we're not using GNU ld we use -z text | |
11068 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11069 | # as -z defs. | |
11070 | no_undefined_flag='${wl}-z,text' | |
11071 | allow_undefined_flag='${wl}-z,nodefs' | |
11072 | archive_cmds_need_lc=no | |
11073 | hardcode_shlibpath_var=no | |
11074 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11075 | hardcode_libdir_separator=':' | |
11076 | link_all_deplibs=yes | |
11077 | export_dynamic_flag_spec='${wl}-Bexport' | |
11078 | runpath_var='LD_RUN_PATH' | |
f35db108 | 11079 | |
c915a581 JJ |
11080 | if test "$GCC" = yes; then |
11081 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11082 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11083 | else | |
11084 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11085 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11086 | fi | |
11087 | ;; | |
f35db108 | 11088 | |
c915a581 JJ |
11089 | uts4*) |
11090 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11091 | hardcode_libdir_flag_spec='-L$libdir' | |
11092 | hardcode_shlibpath_var=no | |
11093 | ;; | |
f35db108 | 11094 | |
c915a581 JJ |
11095 | *) |
11096 | ld_shlibs=no | |
11097 | ;; | |
11098 | esac | |
f35db108 | 11099 | |
c915a581 JJ |
11100 | if test x$host_vendor = xsni; then |
11101 | case $host in | |
11102 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11103 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11104 | ;; | |
11105 | esac | |
11106 | fi | |
11107 | fi | |
f35db108 | 11108 | |
c915a581 JJ |
11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
11110 | $as_echo "$ld_shlibs" >&6; } | |
11111 | test "$ld_shlibs" = no && can_build_shared=no | |
f35db108 | 11112 | |
c915a581 | 11113 | with_gnu_ld=$with_gnu_ld |
f35db108 | 11114 | |
f35db108 | 11115 | |
f35db108 | 11116 | |
f35db108 | 11117 | |
f35db108 | 11118 | |
f35db108 | 11119 | |
f35db108 | 11120 | |
f35db108 | 11121 | |
f35db108 | 11122 | |
f35db108 | 11123 | |
f35db108 | 11124 | |
f35db108 | 11125 | |
f35db108 | 11126 | |
f35db108 | 11127 | |
f35db108 | 11128 | |
c915a581 JJ |
11129 | # |
11130 | # Do we need to explicitly link libc? | |
11131 | # | |
11132 | case "x$archive_cmds_need_lc" in | |
11133 | x|xyes) | |
11134 | # Assume -lc should be added | |
11135 | archive_cmds_need_lc=yes | |
11136 | ||
11137 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11138 | case $archive_cmds in | |
11139 | *'~'*) | |
11140 | # FIXME: we may have to deal with multi-command sequences. | |
11141 | ;; | |
11142 | '$CC '*) | |
11143 | # Test whether the compiler implicitly links with -lc since on some | |
11144 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11145 | # to ld, don't add -lc before -lgcc. | |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11147 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 11148 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
c915a581 JJ |
11149 | $as_echo_n "(cached) " >&6 |
11150 | else | |
11151 | $RM conftest* | |
11152 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11153 | ||
11154 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11155 | (eval $ac_compile) 2>&5 | |
f35db108 WM |
11156 | ac_status=$? |
11157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c915a581 JJ |
11158 | test $ac_status = 0; } 2>conftest.err; then |
11159 | soname=conftest | |
11160 | lib=conftest | |
11161 | libobjs=conftest.$ac_objext | |
11162 | deplibs= | |
11163 | wl=$lt_prog_compiler_wl | |
11164 | pic_flag=$lt_prog_compiler_pic | |
11165 | compiler_flags=-v | |
11166 | linker_flags=-v | |
11167 | verstring= | |
11168 | output_objdir=. | |
11169 | libname=conftest | |
11170 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11171 | allow_undefined_flag= | |
11172 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11173 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11174 | ac_status=$? | |
11175 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11176 | test $ac_status = 0; } | |
11177 | then | |
11178 | lt_cv_archive_cmds_need_lc=no | |
11179 | else | |
11180 | lt_cv_archive_cmds_need_lc=yes | |
11181 | fi | |
11182 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11183 | else | |
11184 | cat conftest.err 1>&5 | |
11185 | fi | |
11186 | $RM conftest* | |
11187 | ||
11188 | fi | |
11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11190 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11191 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11192 | ;; | |
f35db108 | 11193 | esac |
f35db108 | 11194 | fi |
c915a581 JJ |
11195 | ;; |
11196 | esac | |
f35db108 WM |
11197 | |
11198 | ||
f35db108 | 11199 | |
f35db108 | 11200 | |
f35db108 | 11201 | |
f35db108 | 11202 | |
f35db108 | 11203 | |
f35db108 | 11204 | |
f35db108 | 11205 | |
f35db108 | 11206 | |
f35db108 | 11207 | |
f35db108 WM |
11208 | |
11209 | ||
f35db108 | 11210 | |
f35db108 | 11211 | |
f35db108 | 11212 | |
f35db108 WM |
11213 | |
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
f35db108 WM |
11230 | |
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
11238 | ||
11239 | ||
11240 | ||
11241 | ||
f35db108 | 11242 | |
f35db108 | 11243 | |
f35db108 | 11244 | |
f35db108 | 11245 | |
f35db108 WM |
11246 | |
11247 | ||
11248 | ||
11249 | ||
f35db108 | 11250 | |
f35db108 | 11251 | |
f35db108 | 11252 | |
f35db108 | 11253 | |
f35db108 | 11254 | |
f35db108 | 11255 | |
f35db108 | 11256 | |
f35db108 | 11257 | |
f35db108 | 11258 | |
f35db108 | 11259 | |
f35db108 | 11260 | |
f35db108 | 11261 | |
f35db108 | 11262 | |
f35db108 | 11263 | |
f35db108 | 11264 | |
f35db108 | 11265 | |
f35db108 | 11266 | |
f35db108 | 11267 | |
f35db108 | 11268 | |
f35db108 | 11269 | |
f35db108 WM |
11270 | |
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
f35db108 | 11276 | |
f35db108 | 11277 | |
f35db108 WM |
11278 | |
11279 | ||
f35db108 | 11280 | |
f35db108 WM |
11281 | |
11282 | ||
f35db108 WM |
11283 | |
11284 | ||
f35db108 | 11285 | |
f35db108 WM |
11286 | |
11287 | ||
11288 | ||
f35db108 | 11289 | |
f35db108 | 11290 | |
f35db108 WM |
11291 | |
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
f35db108 | 11298 | |
f35db108 | 11299 | |
f35db108 | 11300 | |
f35db108 | 11301 | |
f35db108 | 11302 | |
f35db108 | 11303 | |
f35db108 | 11304 | |
f35db108 | 11305 | |
f35db108 | 11306 | |
f35db108 | 11307 | |
f35db108 | 11308 | |
f35db108 | 11309 | |
f35db108 | 11310 | |
f35db108 | 11311 | |
f35db108 | 11312 | |
f35db108 | 11313 | |
f35db108 | 11314 | |
f35db108 | 11315 | |
f35db108 | 11316 | |
f35db108 | 11317 | |
f35db108 | 11318 | |
f35db108 | 11319 | |
f35db108 | 11320 | |
f35db108 | 11321 | |
f35db108 | 11322 | |
a2479b3d | 11323 | |
f35db108 WM |
11324 | |
11325 | ||
f35db108 | 11326 | |
f35db108 | 11327 | |
f35db108 | 11328 | |
f35db108 | 11329 | |
f35db108 | 11330 | |
f35db108 | 11331 | |
f35db108 | 11332 | |
f35db108 | 11333 | |
f35db108 | 11334 | |
f35db108 | 11335 | |
f35db108 | 11336 | |
f35db108 | 11337 | |
f35db108 | 11338 | |
f35db108 | 11339 | |
f35db108 | 11340 | |
f35db108 | 11341 | |
f35db108 | 11342 | |
f35db108 | 11343 | |
f35db108 | 11344 | |
f35db108 | 11345 | |
f35db108 | 11346 | |
f35db108 | 11347 | |
f35db108 | 11348 | |
f35db108 | 11349 | |
f35db108 | 11350 | |
f35db108 | 11351 | |
f35db108 | 11352 | |
f35db108 | 11353 | |
c915a581 JJ |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
11355 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
f35db108 | 11356 | |
c915a581 JJ |
11357 | if test "$GCC" = yes; then |
11358 | case $host_os in | |
11359 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11360 | *) lt_awk_arg="/^libraries:/" ;; | |
11361 | esac | |
11362 | case $host_os in | |
11363 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11364 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11365 | esac | |
11366 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11367 | case $lt_search_path_spec in | |
11368 | *\;*) | |
11369 | # if the path contains ";" then we assume it to be the separator | |
11370 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11371 | # assumed that no part of a normal pathname contains ";" but that should | |
11372 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11373 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11374 | ;; | |
11375 | *) | |
11376 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11377 | ;; | |
11378 | esac | |
11379 | # Ok, now we have the path, separated by spaces, we can step through it | |
11380 | # and add multilib dir if necessary. | |
11381 | lt_tmp_lt_search_path_spec= | |
11382 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11383 | for lt_sys_path in $lt_search_path_spec; do | |
11384 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11385 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11386 | else | |
11387 | test -d "$lt_sys_path" && \ | |
11388 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11389 | fi | |
11390 | done | |
11391 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11392 | BEGIN {RS=" "; FS="/|\n";} { | |
11393 | lt_foo=""; | |
11394 | lt_count=0; | |
11395 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11396 | if ($lt_i != "" && $lt_i != ".") { | |
11397 | if ($lt_i == "..") { | |
11398 | lt_count++; | |
11399 | } else { | |
11400 | if (lt_count == 0) { | |
11401 | lt_foo="/" $lt_i lt_foo; | |
11402 | } else { | |
11403 | lt_count--; | |
11404 | } | |
11405 | } | |
11406 | } | |
11407 | } | |
11408 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11409 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11410 | }'` | |
11411 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11412 | # for these hosts. | |
11413 | case $host_os in | |
11414 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11415 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11416 | esac | |
11417 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11418 | else | |
11419 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11420 | fi | |
11421 | library_names_spec= | |
11422 | libname_spec='lib$name' | |
11423 | soname_spec= | |
11424 | shrext_cmds=".so" | |
11425 | postinstall_cmds= | |
11426 | postuninstall_cmds= | |
11427 | finish_cmds= | |
11428 | finish_eval= | |
11429 | shlibpath_var= | |
11430 | shlibpath_overrides_runpath=unknown | |
11431 | version_type=none | |
11432 | dynamic_linker="$host_os ld.so" | |
11433 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11434 | need_lib_prefix=unknown | |
11435 | hardcode_into_libs=no | |
f35db108 | 11436 | |
c915a581 JJ |
11437 | # when you set need_version to no, make sure it does not cause -set_version |
11438 | # flags to be left without arguments | |
11439 | need_version=unknown | |
f35db108 | 11440 | |
c915a581 JJ |
11441 | case $host_os in |
11442 | aix3*) | |
11443 | version_type=linux | |
11444 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11445 | shlibpath_var=LIBPATH | |
f35db108 | 11446 | |
c915a581 JJ |
11447 | # AIX 3 has no versioning support, so we append a major version to the name. |
11448 | soname_spec='${libname}${release}${shared_ext}$major' | |
11449 | ;; | |
f35db108 | 11450 | |
c915a581 JJ |
11451 | aix[4-9]*) |
11452 | version_type=linux | |
11453 | need_lib_prefix=no | |
11454 | need_version=no | |
11455 | hardcode_into_libs=yes | |
11456 | if test "$host_cpu" = ia64; then | |
11457 | # AIX 5 supports IA64 | |
11458 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11459 | shlibpath_var=LD_LIBRARY_PATH | |
11460 | else | |
11461 | # With GCC up to 2.95.x, collect2 would create an import file | |
11462 | # for dependence libraries. The import file would start with | |
11463 | # the line `#! .'. This would cause the generated library to | |
11464 | # depend on `.', always an invalid library. This was fixed in | |
11465 | # development snapshots of GCC prior to 3.0. | |
11466 | case $host_os in | |
11467 | aix4 | aix4.[01] | aix4.[01].*) | |
11468 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11469 | echo ' yes ' | |
11470 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11471 | : | |
11472 | else | |
11473 | can_build_shared=no | |
11474 | fi | |
11475 | ;; | |
11476 | esac | |
11477 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11478 | # soname into executable. Probably we can add versioning support to | |
11479 | # collect2, so additional links can be useful in future. | |
11480 | if test "$aix_use_runtimelinking" = yes; then | |
11481 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11482 | # instead of lib<name>.a to let people know that these are not | |
11483 | # typical AIX shared libraries. | |
11484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11485 | else | |
11486 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11487 | # and later when we are not doing run time linking. | |
11488 | library_names_spec='${libname}${release}.a $libname.a' | |
11489 | soname_spec='${libname}${release}${shared_ext}$major' | |
11490 | fi | |
11491 | shlibpath_var=LIBPATH | |
11492 | fi | |
11493 | ;; | |
f35db108 | 11494 | |
c915a581 JJ |
11495 | amigaos*) |
11496 | case $host_cpu in | |
11497 | powerpc) | |
11498 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11499 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11501 | ;; | |
11502 | m68k) | |
11503 | library_names_spec='$libname.ixlibrary $libname.a' | |
11504 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11505 | 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' | |
11506 | ;; | |
11507 | esac | |
11508 | ;; | |
f35db108 | 11509 | |
c915a581 JJ |
11510 | beos*) |
11511 | library_names_spec='${libname}${shared_ext}' | |
11512 | dynamic_linker="$host_os ld.so" | |
11513 | shlibpath_var=LIBRARY_PATH | |
11514 | ;; | |
f35db108 | 11515 | |
c915a581 JJ |
11516 | bsdi[45]*) |
11517 | version_type=linux | |
11518 | need_version=no | |
11519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11520 | soname_spec='${libname}${release}${shared_ext}$major' | |
11521 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11522 | shlibpath_var=LD_LIBRARY_PATH | |
11523 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11524 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11525 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11526 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11527 | # libtool to hard-code these into programs | |
11528 | ;; | |
f35db108 | 11529 | |
c915a581 JJ |
11530 | cygwin* | mingw* | pw32* | cegcc*) |
11531 | version_type=windows | |
11532 | shrext_cmds=".dll" | |
11533 | need_version=no | |
11534 | need_lib_prefix=no | |
f35db108 | 11535 | |
c915a581 JJ |
11536 | case $GCC,$host_os in |
11537 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11538 | library_names_spec='$libname.dll.a' | |
11539 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11540 | postinstall_cmds='base_file=`basename \${file}`~ | |
11541 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11542 | dldir=$destdir/`dirname \$dlpath`~ | |
11543 | test -d \$dldir || mkdir -p \$dldir~ | |
11544 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11545 | chmod a+x \$dldir/$dlname~ | |
11546 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11547 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11548 | fi' | |
11549 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11550 | dlpath=$dir/\$dldll~ | |
11551 | $RM \$dlpath' | |
11552 | shlibpath_overrides_runpath=yes | |
f35db108 | 11553 | |
c915a581 JJ |
11554 | case $host_os in |
11555 | cygwin*) | |
11556 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11557 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 | 11558 | |
c915a581 JJ |
11559 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
11560 | ;; | |
11561 | mingw* | cegcc*) | |
11562 | # MinGW DLLs use traditional 'lib' prefix | |
11563 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11564 | ;; | |
11565 | pw32*) | |
11566 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11567 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11568 | ;; | |
11569 | esac | |
11570 | ;; | |
f35db108 | 11571 | |
c915a581 JJ |
11572 | *) |
11573 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11574 | ;; | |
11575 | esac | |
11576 | dynamic_linker='Win32 ld.exe' | |
11577 | # FIXME: first we should search . and the directory the executable is in | |
11578 | shlibpath_var=PATH | |
11579 | ;; | |
f35db108 | 11580 | |
c915a581 JJ |
11581 | darwin* | rhapsody*) |
11582 | dynamic_linker="$host_os dyld" | |
11583 | version_type=darwin | |
11584 | need_lib_prefix=no | |
11585 | need_version=no | |
11586 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11587 | soname_spec='${libname}${release}${major}$shared_ext' | |
11588 | shlibpath_overrides_runpath=yes | |
11589 | shlibpath_var=DYLD_LIBRARY_PATH | |
11590 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
f35db108 | 11591 | |
c915a581 JJ |
11592 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11593 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11594 | ;; | |
f35db108 | 11595 | |
c915a581 JJ |
11596 | dgux*) |
11597 | version_type=linux | |
11598 | need_lib_prefix=no | |
11599 | need_version=no | |
11600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11601 | soname_spec='${libname}${release}${shared_ext}$major' | |
11602 | shlibpath_var=LD_LIBRARY_PATH | |
11603 | ;; | |
f35db108 | 11604 | |
c915a581 JJ |
11605 | freebsd* | dragonfly*) |
11606 | # DragonFly does not have aout. When/if they implement a new | |
11607 | # versioning mechanism, adjust this. | |
11608 | if test -x /usr/bin/objformat; then | |
11609 | objformat=`/usr/bin/objformat` | |
11610 | else | |
11611 | case $host_os in | |
11612 | freebsd[23].*) objformat=aout ;; | |
11613 | *) objformat=elf ;; | |
11614 | esac | |
11615 | fi | |
11616 | version_type=freebsd-$objformat | |
11617 | case $version_type in | |
11618 | freebsd-elf*) | |
11619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11620 | need_version=no | |
11621 | need_lib_prefix=no | |
f35db108 | 11622 | ;; |
c915a581 JJ |
11623 | freebsd-*) |
11624 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11625 | need_version=yes | |
f35db108 | 11626 | ;; |
c915a581 JJ |
11627 | esac |
11628 | shlibpath_var=LD_LIBRARY_PATH | |
11629 | case $host_os in | |
11630 | freebsd2.*) | |
11631 | shlibpath_overrides_runpath=yes | |
11632 | ;; | |
11633 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11634 | shlibpath_overrides_runpath=yes | |
11635 | hardcode_into_libs=yes | |
11636 | ;; | |
11637 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11638 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11639 | shlibpath_overrides_runpath=no | |
11640 | hardcode_into_libs=yes | |
11641 | ;; | |
11642 | *) # from 4.6 on, and DragonFly | |
11643 | shlibpath_overrides_runpath=yes | |
11644 | hardcode_into_libs=yes | |
11645 | ;; | |
11646 | esac | |
11647 | ;; | |
f35db108 | 11648 | |
c915a581 JJ |
11649 | haiku*) |
11650 | version_type=linux | |
11651 | need_lib_prefix=no | |
11652 | need_version=no | |
11653 | dynamic_linker="$host_os runtime_loader" | |
11654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11655 | soname_spec='${libname}${release}${shared_ext}$major' | |
11656 | shlibpath_var=LIBRARY_PATH | |
11657 | shlibpath_overrides_runpath=yes | |
ead5103c | 11658 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
c915a581 JJ |
11659 | hardcode_into_libs=yes |
11660 | ;; | |
f35db108 | 11661 | |
c915a581 JJ |
11662 | hpux9* | hpux10* | hpux11*) |
11663 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11664 | # link against other versions. | |
11665 | version_type=sunos | |
11666 | need_lib_prefix=no | |
11667 | need_version=no | |
11668 | case $host_cpu in | |
11669 | ia64*) | |
11670 | shrext_cmds='.so' | |
11671 | hardcode_into_libs=yes | |
11672 | dynamic_linker="$host_os dld.so" | |
11673 | shlibpath_var=LD_LIBRARY_PATH | |
11674 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11676 | soname_spec='${libname}${release}${shared_ext}$major' | |
11677 | if test "X$HPUX_IA64_MODE" = X32; then | |
11678 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11679 | else | |
11680 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11681 | fi | |
11682 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11683 | ;; | |
11684 | hppa*64*) | |
11685 | shrext_cmds='.sl' | |
11686 | hardcode_into_libs=yes | |
11687 | dynamic_linker="$host_os dld.sl" | |
11688 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11689 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11691 | soname_spec='${libname}${release}${shared_ext}$major' | |
11692 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11693 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11694 | ;; | |
11695 | *) | |
11696 | shrext_cmds='.sl' | |
11697 | dynamic_linker="$host_os dld.sl" | |
11698 | shlibpath_var=SHLIB_PATH | |
11699 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11701 | soname_spec='${libname}${release}${shared_ext}$major' | |
11702 | ;; | |
11703 | esac | |
11704 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11705 | postinstall_cmds='chmod 555 $lib' | |
11706 | # or fails outright, so override atomically: | |
11707 | install_override_mode=555 | |
11708 | ;; | |
f35db108 | 11709 | |
c915a581 JJ |
11710 | interix[3-9]*) |
11711 | version_type=linux | |
11712 | need_lib_prefix=no | |
11713 | need_version=no | |
11714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11715 | soname_spec='${libname}${release}${shared_ext}$major' | |
11716 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11717 | shlibpath_var=LD_LIBRARY_PATH | |
11718 | shlibpath_overrides_runpath=no | |
11719 | hardcode_into_libs=yes | |
11720 | ;; | |
f35db108 | 11721 | |
c915a581 JJ |
11722 | irix5* | irix6* | nonstopux*) |
11723 | case $host_os in | |
11724 | nonstopux*) version_type=nonstopux ;; | |
11725 | *) | |
11726 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11727 | version_type=linux | |
11728 | else | |
11729 | version_type=irix | |
11730 | fi ;; | |
11731 | esac | |
11732 | need_lib_prefix=no | |
11733 | need_version=no | |
11734 | soname_spec='${libname}${release}${shared_ext}$major' | |
11735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11736 | case $host_os in | |
11737 | irix5* | nonstopux*) | |
11738 | libsuff= shlibsuff= | |
11739 | ;; | |
11740 | *) | |
11741 | case $LD in # libtool.m4 will add one of these switches to LD | |
11742 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11743 | libsuff= shlibsuff= libmagic=32-bit;; | |
11744 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11745 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11746 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11747 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11748 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11749 | esac | |
11750 | ;; | |
11751 | esac | |
11752 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11753 | shlibpath_overrides_runpath=no | |
11754 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11755 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11756 | hardcode_into_libs=yes | |
11757 | ;; | |
f35db108 | 11758 | |
c915a581 JJ |
11759 | # No shared lib support for Linux oldld, aout, or coff. |
11760 | linux*oldld* | linux*aout* | linux*coff*) | |
11761 | dynamic_linker=no | |
11762 | ;; | |
f35db108 | 11763 | |
c915a581 | 11764 | # This must be Linux ELF. |
e9085da5 MR |
11765 | |
11766 | # uclinux* changes (here and below) have been submitted to the libtool | |
11767 | # project, but have not yet been accepted: they are GCC-local changes | |
11768 | # for the time being. (See | |
11769 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 11770 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
c915a581 JJ |
11771 | version_type=linux |
11772 | need_lib_prefix=no | |
11773 | need_version=no | |
11774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11775 | soname_spec='${libname}${release}${shared_ext}$major' | |
11776 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11777 | shlibpath_var=LD_LIBRARY_PATH | |
11778 | shlibpath_overrides_runpath=no | |
f35db108 | 11779 | |
c915a581 | 11780 | # Some binutils ld are patched to set DT_RUNPATH |
22e05272 | 11781 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
c915a581 JJ |
11782 | $as_echo_n "(cached) " >&6 |
11783 | else | |
11784 | lt_cv_shlibpath_overrides_runpath=no | |
11785 | save_LDFLAGS=$LDFLAGS | |
11786 | save_libdir=$libdir | |
11787 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11788 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11790 | /* end confdefs.h. */ | |
f35db108 | 11791 | |
c915a581 JJ |
11792 | int |
11793 | main () | |
11794 | { | |
f35db108 | 11795 | |
c915a581 JJ |
11796 | ; |
11797 | return 0; | |
11798 | } | |
11799 | _ACEOF | |
11800 | if ac_fn_c_try_link "$LINENO"; then : | |
11801 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11802 | lt_cv_shlibpath_overrides_runpath=yes | |
11803 | fi | |
11804 | fi | |
11805 | rm -f core conftest.err conftest.$ac_objext \ | |
11806 | conftest$ac_exeext conftest.$ac_ext | |
11807 | LDFLAGS=$save_LDFLAGS | |
11808 | libdir=$save_libdir | |
f35db108 | 11809 | |
c915a581 | 11810 | fi |
f35db108 | 11811 | |
c915a581 | 11812 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
f35db108 | 11813 | |
c915a581 JJ |
11814 | # This implies no fast_install, which is unacceptable. |
11815 | # Some rework will be needed to allow for fast_install | |
11816 | # before this can be enabled. | |
11817 | hardcode_into_libs=yes | |
f35db108 | 11818 | |
c915a581 JJ |
11819 | # Append ld.so.conf contents to the search path |
11820 | if test -f /etc/ld.so.conf; then | |
11821 | 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' ' '` | |
11822 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11823 | fi | |
f35db108 | 11824 | |
c915a581 JJ |
11825 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11826 | # powerpc, because MkLinux only supported shared libraries with the | |
11827 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11828 | # most powerpc-linux boxes support dynamic linking these days and | |
11829 | # people can always --disable-shared, the test was removed, and we | |
11830 | # assume the GNU/Linux dynamic linker is in use. | |
11831 | dynamic_linker='GNU/Linux ld.so' | |
11832 | ;; | |
f35db108 | 11833 | |
c915a581 JJ |
11834 | netbsd*) |
11835 | version_type=sunos | |
11836 | need_lib_prefix=no | |
11837 | need_version=no | |
11838 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11840 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11841 | dynamic_linker='NetBSD (a.out) ld.so' | |
11842 | else | |
11843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11844 | soname_spec='${libname}${release}${shared_ext}$major' | |
11845 | dynamic_linker='NetBSD ld.elf_so' | |
11846 | fi | |
11847 | shlibpath_var=LD_LIBRARY_PATH | |
11848 | shlibpath_overrides_runpath=yes | |
11849 | hardcode_into_libs=yes | |
f35db108 WM |
11850 | ;; |
11851 | ||
c915a581 JJ |
11852 | newsos6) |
11853 | version_type=linux | |
11854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11855 | shlibpath_var=LD_LIBRARY_PATH | |
11856 | shlibpath_overrides_runpath=yes | |
11857 | ;; | |
f35db108 | 11858 | |
c915a581 JJ |
11859 | *nto* | *qnx*) |
11860 | version_type=qnx | |
11861 | need_lib_prefix=no | |
11862 | need_version=no | |
11863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11864 | soname_spec='${libname}${release}${shared_ext}$major' | |
11865 | shlibpath_var=LD_LIBRARY_PATH | |
11866 | shlibpath_overrides_runpath=no | |
11867 | hardcode_into_libs=yes | |
11868 | dynamic_linker='ldqnx.so' | |
11869 | ;; | |
f35db108 | 11870 | |
c915a581 JJ |
11871 | openbsd*) |
11872 | version_type=sunos | |
11873 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11874 | need_lib_prefix=no | |
11875 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11876 | case $host_os in | |
11877 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11878 | *) need_version=no ;; | |
f35db108 | 11879 | esac |
c915a581 JJ |
11880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11881 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11882 | shlibpath_var=LD_LIBRARY_PATH | |
11883 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11884 | case $host_os in | |
11885 | openbsd2.[89] | openbsd2.[89].*) | |
11886 | shlibpath_overrides_runpath=no | |
11887 | ;; | |
11888 | *) | |
11889 | shlibpath_overrides_runpath=yes | |
11890 | ;; | |
11891 | esac | |
11892 | else | |
11893 | shlibpath_overrides_runpath=yes | |
11894 | fi | |
11895 | ;; | |
11896 | ||
11897 | os2*) | |
11898 | libname_spec='$name' | |
11899 | shrext_cmds=".dll" | |
11900 | need_lib_prefix=no | |
11901 | library_names_spec='$libname${shared_ext} $libname.a' | |
11902 | dynamic_linker='OS/2 ld.exe' | |
11903 | shlibpath_var=LIBPATH | |
11904 | ;; | |
11905 | ||
11906 | osf3* | osf4* | osf5*) | |
11907 | version_type=osf | |
11908 | need_lib_prefix=no | |
11909 | need_version=no | |
11910 | soname_spec='${libname}${release}${shared_ext}$major' | |
11911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11912 | shlibpath_var=LD_LIBRARY_PATH | |
11913 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11914 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11915 | ;; | |
11916 | ||
11917 | rdos*) | |
11918 | dynamic_linker=no | |
f35db108 WM |
11919 | ;; |
11920 | ||
11921 | solaris*) | |
c915a581 JJ |
11922 | version_type=linux |
11923 | need_lib_prefix=no | |
11924 | need_version=no | |
11925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11926 | soname_spec='${libname}${release}${shared_ext}$major' | |
11927 | shlibpath_var=LD_LIBRARY_PATH | |
11928 | shlibpath_overrides_runpath=yes | |
11929 | hardcode_into_libs=yes | |
11930 | # ldd complains unless libraries are executable | |
11931 | postinstall_cmds='chmod +x $lib' | |
11932 | ;; | |
11933 | ||
11934 | sunos4*) | |
11935 | version_type=sunos | |
11936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11937 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11938 | shlibpath_var=LD_LIBRARY_PATH | |
11939 | shlibpath_overrides_runpath=yes | |
11940 | if test "$with_gnu_ld" = yes; then | |
11941 | need_lib_prefix=no | |
11942 | fi | |
11943 | need_version=yes | |
11944 | ;; | |
11945 | ||
11946 | sysv4 | sysv4.3*) | |
11947 | version_type=linux | |
11948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11949 | soname_spec='${libname}${release}${shared_ext}$major' | |
11950 | shlibpath_var=LD_LIBRARY_PATH | |
11951 | case $host_vendor in | |
11952 | sni) | |
11953 | shlibpath_overrides_runpath=no | |
11954 | need_lib_prefix=no | |
11955 | runpath_var=LD_RUN_PATH | |
11956 | ;; | |
11957 | siemens) | |
11958 | need_lib_prefix=no | |
11959 | ;; | |
11960 | motorola) | |
11961 | need_lib_prefix=no | |
11962 | need_version=no | |
11963 | shlibpath_overrides_runpath=no | |
11964 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
f35db108 | 11965 | ;; |
c915a581 JJ |
11966 | esac |
11967 | ;; | |
11968 | ||
11969 | sysv4*MP*) | |
11970 | if test -d /usr/nec ;then | |
11971 | version_type=linux | |
11972 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11973 | soname_spec='$libname${shared_ext}.$major' | |
11974 | shlibpath_var=LD_LIBRARY_PATH | |
11975 | fi | |
11976 | ;; | |
11977 | ||
11978 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11979 | version_type=freebsd-elf | |
11980 | need_lib_prefix=no | |
11981 | need_version=no | |
11982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11983 | soname_spec='${libname}${release}${shared_ext}$major' | |
11984 | shlibpath_var=LD_LIBRARY_PATH | |
11985 | shlibpath_overrides_runpath=yes | |
11986 | hardcode_into_libs=yes | |
11987 | if test "$with_gnu_ld" = yes; then | |
11988 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11989 | else | |
11990 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11991 | case $host_os in | |
11992 | sco3.2v5*) | |
11993 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11994 | ;; | |
f35db108 | 11995 | esac |
c915a581 JJ |
11996 | fi |
11997 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11998 | ;; | |
f35db108 | 11999 | |
c915a581 JJ |
12000 | tpf*) |
12001 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12002 | version_type=linux | |
12003 | need_lib_prefix=no | |
12004 | need_version=no | |
12005 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12006 | shlibpath_var=LD_LIBRARY_PATH | |
12007 | shlibpath_overrides_runpath=no | |
12008 | hardcode_into_libs=yes | |
f35db108 | 12009 | ;; |
f35db108 | 12010 | |
c915a581 JJ |
12011 | uts4*) |
12012 | version_type=linux | |
12013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12014 | soname_spec='${libname}${release}${shared_ext}$major' | |
12015 | shlibpath_var=LD_LIBRARY_PATH | |
12016 | ;; | |
f35db108 | 12017 | |
0ecd0f1c OH |
12018 | # Shared libraries for VwWorks, >= 7 only at this stage |
12019 | # and (fpic) still incompatible with "large" code models | |
12020 | # in a few configurations. Only for RTP mode in any case, | |
12021 | # and upon explicit request at configure time. | |
12022 | vxworks7*) | |
12023 | dynamic_linker=no | |
12024 | case ${with_multisubdir}-${enable_shared} in | |
12025 | *large*) | |
12026 | ;; | |
12027 | *mrtp*-yes) | |
12028 | version_type=linux | |
12029 | need_lib_prefix=no | |
12030 | need_version=no | |
12031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12032 | soname_spec='${libname}${release}${shared_ext}$major' | |
12033 | dynamic_linker="$host_os module_loader" | |
12034 | ;; | |
12035 | esac | |
12036 | ;; | |
c915a581 JJ |
12037 | *) |
12038 | dynamic_linker=no | |
12039 | ;; | |
f35db108 | 12040 | esac |
c915a581 JJ |
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
12042 | $as_echo "$dynamic_linker" >&6; } | |
12043 | test "$dynamic_linker" = no && can_build_shared=no | |
12044 | ||
12045 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12046 | if test "$GCC" = yes; then | |
12047 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
f35db108 WM |
12048 | fi |
12049 | ||
c915a581 JJ |
12050 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
12051 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12052 | fi | |
12053 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12054 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12055 | fi | |
f35db108 WM |
12056 | |
12057 | ||
12058 | ||
12059 | ||
12060 | ||
12061 | ||
12062 | ||
12063 | ||
12064 | ||
12065 | ||
12066 | ||
12067 | ||
12068 | ||
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | ||
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | ||
12080 | ||
12081 | ||
12082 | ||
12083 | ||
12084 | ||
12085 | ||
f35db108 WM |
12086 | |
12087 | ||
c915a581 JJ |
12088 | |
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | ||
12097 | ||
12098 | ||
12099 | ||
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | ||
12105 | ||
12106 | ||
12107 | ||
12108 | ||
12109 | ||
12110 | ||
12111 | ||
12112 | ||
12113 | ||
12114 | ||
12115 | ||
12116 | ||
12117 | ||
12118 | ||
12119 | ||
12120 | ||
12121 | ||
12122 | ||
12123 | ||
12124 | ||
12125 | ||
12126 | ||
12127 | ||
12128 | ||
12129 | ||
12130 | ||
12131 | ||
12132 | ||
12133 | ||
12134 | ||
12135 | ||
12136 | ||
12137 | ||
12138 | ||
12139 | ||
12140 | ||
12141 | ||
12142 | ||
12143 | ||
12144 | ||
12145 | ||
12146 | ||
12147 | ||
12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12149 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12150 | hardcode_action= | |
12151 | if test -n "$hardcode_libdir_flag_spec" || | |
12152 | test -n "$runpath_var" || | |
12153 | test "X$hardcode_automatic" = "Xyes" ; then | |
12154 | ||
12155 | # We can hardcode non-existent directories. | |
12156 | if test "$hardcode_direct" != no && | |
12157 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12158 | # have to relink, otherwise we might link with an installed library | |
12159 | # when we should be linking with a yet-to-be-installed one | |
12160 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12161 | test "$hardcode_minus_L" != no; then | |
12162 | # Linking always hardcodes the temporary library directory. | |
12163 | hardcode_action=relink | |
12164 | else | |
12165 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12166 | hardcode_action=immediate | |
12167 | fi | |
12168 | else | |
12169 | # We cannot hardcode anything, or else we can only hardcode existing | |
12170 | # directories. | |
12171 | hardcode_action=unsupported | |
12172 | fi | |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12174 | $as_echo "$hardcode_action" >&6; } | |
12175 | ||
12176 | if test "$hardcode_action" = relink || | |
12177 | test "$inherit_rpath" = yes; then | |
12178 | # Fast installation is not supported | |
12179 | enable_fast_install=no | |
12180 | elif test "$shlibpath_overrides_runpath" = yes || | |
12181 | test "$enable_shared" = no; then | |
12182 | # Fast installation is not necessary | |
12183 | enable_fast_install=needless | |
12184 | fi | |
12185 | ||
12186 | ||
12187 | ||
12188 | ||
12189 | ||
12190 | ||
12191 | if test "x$enable_dlopen" != xyes; then | |
12192 | enable_dlopen=unknown | |
12193 | enable_dlopen_self=unknown | |
12194 | enable_dlopen_self_static=unknown | |
12195 | else | |
12196 | lt_cv_dlopen=no | |
12197 | lt_cv_dlopen_libs= | |
12198 | ||
12199 | case $host_os in | |
12200 | beos*) | |
12201 | lt_cv_dlopen="load_add_on" | |
12202 | lt_cv_dlopen_libs= | |
12203 | lt_cv_dlopen_self=yes | |
12204 | ;; | |
12205 | ||
12206 | mingw* | pw32* | cegcc*) | |
12207 | lt_cv_dlopen="LoadLibrary" | |
12208 | lt_cv_dlopen_libs= | |
12209 | ;; | |
12210 | ||
12211 | cygwin*) | |
12212 | lt_cv_dlopen="dlopen" | |
12213 | lt_cv_dlopen_libs= | |
12214 | ;; | |
12215 | ||
12216 | darwin*) | |
12217 | # if libdl is installed we need to link against it | |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12219 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12220 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
c915a581 JJ |
12221 | $as_echo_n "(cached) " >&6 |
12222 | else | |
12223 | ac_check_lib_save_LIBS=$LIBS | |
12224 | LIBS="-ldl $LIBS" | |
12225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12226 | /* end confdefs.h. */ | |
12227 | ||
12228 | /* Override any GCC internal prototype to avoid an error. | |
12229 | Use char because int might match the return type of a GCC | |
12230 | builtin and then its argument prototype would still apply. */ | |
12231 | #ifdef __cplusplus | |
12232 | extern "C" | |
12233 | #endif | |
12234 | char dlopen (); | |
12235 | int | |
12236 | main () | |
12237 | { | |
12238 | return dlopen (); | |
12239 | ; | |
12240 | return 0; | |
12241 | } | |
12242 | _ACEOF | |
12243 | if ac_fn_c_try_link "$LINENO"; then : | |
12244 | ac_cv_lib_dl_dlopen=yes | |
12245 | else | |
12246 | ac_cv_lib_dl_dlopen=no | |
12247 | fi | |
12248 | rm -f core conftest.err conftest.$ac_objext \ | |
12249 | conftest$ac_exeext conftest.$ac_ext | |
12250 | LIBS=$ac_check_lib_save_LIBS | |
12251 | fi | |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12253 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12254 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
c915a581 JJ |
12255 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12256 | else | |
12257 | ||
12258 | lt_cv_dlopen="dyld" | |
12259 | lt_cv_dlopen_libs= | |
12260 | lt_cv_dlopen_self=yes | |
12261 | ||
12262 | fi | |
12263 | ||
12264 | ;; | |
12265 | ||
12266 | *) | |
12267 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
22e05272 | 12268 | if test "x$ac_cv_func_shl_load" = xyes; then : |
c915a581 JJ |
12269 | lt_cv_dlopen="shl_load" |
12270 | else | |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12272 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 12273 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
c915a581 JJ |
12274 | $as_echo_n "(cached) " >&6 |
12275 | else | |
12276 | ac_check_lib_save_LIBS=$LIBS | |
12277 | LIBS="-ldld $LIBS" | |
12278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12279 | /* end confdefs.h. */ | |
12280 | ||
12281 | /* Override any GCC internal prototype to avoid an error. | |
12282 | Use char because int might match the return type of a GCC | |
12283 | builtin and then its argument prototype would still apply. */ | |
12284 | #ifdef __cplusplus | |
12285 | extern "C" | |
12286 | #endif | |
12287 | char shl_load (); | |
12288 | int | |
12289 | main () | |
12290 | { | |
12291 | return shl_load (); | |
12292 | ; | |
12293 | return 0; | |
12294 | } | |
12295 | _ACEOF | |
12296 | if ac_fn_c_try_link "$LINENO"; then : | |
12297 | ac_cv_lib_dld_shl_load=yes | |
12298 | else | |
12299 | ac_cv_lib_dld_shl_load=no | |
12300 | fi | |
12301 | rm -f core conftest.err conftest.$ac_objext \ | |
12302 | conftest$ac_exeext conftest.$ac_ext | |
12303 | LIBS=$ac_check_lib_save_LIBS | |
12304 | fi | |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12306 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 12307 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
c915a581 JJ |
12308 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
12309 | else | |
12310 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
22e05272 | 12311 | if test "x$ac_cv_func_dlopen" = xyes; then : |
c915a581 JJ |
12312 | lt_cv_dlopen="dlopen" |
12313 | else | |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12315 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 12316 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
c915a581 JJ |
12317 | $as_echo_n "(cached) " >&6 |
12318 | else | |
12319 | ac_check_lib_save_LIBS=$LIBS | |
12320 | LIBS="-ldl $LIBS" | |
12321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12322 | /* end confdefs.h. */ | |
12323 | ||
12324 | /* Override any GCC internal prototype to avoid an error. | |
12325 | Use char because int might match the return type of a GCC | |
12326 | builtin and then its argument prototype would still apply. */ | |
12327 | #ifdef __cplusplus | |
12328 | extern "C" | |
12329 | #endif | |
12330 | char dlopen (); | |
12331 | int | |
12332 | main () | |
12333 | { | |
12334 | return dlopen (); | |
12335 | ; | |
12336 | return 0; | |
12337 | } | |
12338 | _ACEOF | |
12339 | if ac_fn_c_try_link "$LINENO"; then : | |
12340 | ac_cv_lib_dl_dlopen=yes | |
12341 | else | |
12342 | ac_cv_lib_dl_dlopen=no | |
12343 | fi | |
12344 | rm -f core conftest.err conftest.$ac_objext \ | |
12345 | conftest$ac_exeext conftest.$ac_ext | |
12346 | LIBS=$ac_check_lib_save_LIBS | |
12347 | fi | |
12348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12349 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 12350 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
c915a581 JJ |
12351 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12352 | else | |
12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12354 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 12355 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
c915a581 JJ |
12356 | $as_echo_n "(cached) " >&6 |
12357 | else | |
12358 | ac_check_lib_save_LIBS=$LIBS | |
12359 | LIBS="-lsvld $LIBS" | |
12360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12361 | /* end confdefs.h. */ | |
12362 | ||
12363 | /* Override any GCC internal prototype to avoid an error. | |
12364 | Use char because int might match the return type of a GCC | |
12365 | builtin and then its argument prototype would still apply. */ | |
12366 | #ifdef __cplusplus | |
12367 | extern "C" | |
12368 | #endif | |
12369 | char dlopen (); | |
12370 | int | |
12371 | main () | |
12372 | { | |
12373 | return dlopen (); | |
12374 | ; | |
12375 | return 0; | |
12376 | } | |
12377 | _ACEOF | |
12378 | if ac_fn_c_try_link "$LINENO"; then : | |
12379 | ac_cv_lib_svld_dlopen=yes | |
12380 | else | |
12381 | ac_cv_lib_svld_dlopen=no | |
12382 | fi | |
12383 | rm -f core conftest.err conftest.$ac_objext \ | |
12384 | conftest$ac_exeext conftest.$ac_ext | |
12385 | LIBS=$ac_check_lib_save_LIBS | |
12386 | fi | |
12387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12388 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 12389 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
c915a581 JJ |
12390 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12391 | else | |
12392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12393 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 12394 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
c915a581 JJ |
12395 | $as_echo_n "(cached) " >&6 |
12396 | else | |
12397 | ac_check_lib_save_LIBS=$LIBS | |
12398 | LIBS="-ldld $LIBS" | |
12399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12400 | /* end confdefs.h. */ | |
12401 | ||
12402 | /* Override any GCC internal prototype to avoid an error. | |
12403 | Use char because int might match the return type of a GCC | |
12404 | builtin and then its argument prototype would still apply. */ | |
12405 | #ifdef __cplusplus | |
12406 | extern "C" | |
12407 | #endif | |
12408 | char dld_link (); | |
12409 | int | |
12410 | main () | |
12411 | { | |
12412 | return dld_link (); | |
12413 | ; | |
12414 | return 0; | |
12415 | } | |
12416 | _ACEOF | |
12417 | if ac_fn_c_try_link "$LINENO"; then : | |
12418 | ac_cv_lib_dld_dld_link=yes | |
12419 | else | |
12420 | ac_cv_lib_dld_dld_link=no | |
12421 | fi | |
12422 | rm -f core conftest.err conftest.$ac_objext \ | |
12423 | conftest$ac_exeext conftest.$ac_ext | |
12424 | LIBS=$ac_check_lib_save_LIBS | |
12425 | fi | |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12427 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 12428 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
c915a581 JJ |
12429 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
12430 | fi | |
12431 | ||
12432 | ||
12433 | fi | |
12434 | ||
12435 | ||
12436 | fi | |
12437 | ||
12438 | ||
12439 | fi | |
12440 | ||
12441 | ||
12442 | fi | |
12443 | ||
12444 | ||
12445 | fi | |
12446 | ||
12447 | ;; | |
12448 | esac | |
12449 | ||
12450 | if test "x$lt_cv_dlopen" != xno; then | |
12451 | enable_dlopen=yes | |
12452 | else | |
12453 | enable_dlopen=no | |
12454 | fi | |
12455 | ||
12456 | case $lt_cv_dlopen in | |
12457 | dlopen) | |
12458 | save_CPPFLAGS="$CPPFLAGS" | |
12459 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12460 | ||
12461 | save_LDFLAGS="$LDFLAGS" | |
12462 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12463 | ||
12464 | save_LIBS="$LIBS" | |
12465 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12466 | ||
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12468 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 12469 | if ${lt_cv_dlopen_self+:} false; then : |
c915a581 JJ |
12470 | $as_echo_n "(cached) " >&6 |
12471 | else | |
12472 | if test "$cross_compiling" = yes; then : | |
12473 | lt_cv_dlopen_self=cross | |
12474 | else | |
12475 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12476 | lt_status=$lt_dlunknown | |
12477 | cat > conftest.$ac_ext <<_LT_EOF | |
088d3cbc | 12478 | #line 12478 "configure" |
c915a581 JJ |
12479 | #include "confdefs.h" |
12480 | ||
12481 | #if HAVE_DLFCN_H | |
12482 | #include <dlfcn.h> | |
12483 | #endif | |
12484 | ||
12485 | #include <stdio.h> | |
12486 | ||
12487 | #ifdef RTLD_GLOBAL | |
12488 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12489 | #else | |
12490 | # ifdef DL_GLOBAL | |
12491 | # define LT_DLGLOBAL DL_GLOBAL | |
12492 | # else | |
12493 | # define LT_DLGLOBAL 0 | |
12494 | # endif | |
12495 | #endif | |
12496 | ||
12497 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12498 | find out it does not work in some platform. */ | |
12499 | #ifndef LT_DLLAZY_OR_NOW | |
12500 | # ifdef RTLD_LAZY | |
12501 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12502 | # else | |
12503 | # ifdef DL_LAZY | |
12504 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12505 | # else | |
12506 | # ifdef RTLD_NOW | |
12507 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12508 | # else | |
12509 | # ifdef DL_NOW | |
12510 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12511 | # else | |
12512 | # define LT_DLLAZY_OR_NOW 0 | |
12513 | # endif | |
12514 | # endif | |
12515 | # endif | |
12516 | # endif | |
12517 | #endif | |
12518 | ||
12519 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12520 | correspondingly for the symbols needed. */ | |
12521 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12522 | void fnord () __attribute__((visibility("default"))); | |
12523 | #endif | |
12524 | ||
12525 | void fnord () { int i=42; } | |
12526 | int main () | |
12527 | { | |
12528 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12529 | int status = $lt_dlunknown; | |
12530 | ||
12531 | if (self) | |
12532 | { | |
12533 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12534 | else | |
12535 | { | |
12536 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12537 | else puts (dlerror ()); | |
12538 | } | |
12539 | /* dlclose (self); */ | |
12540 | } | |
12541 | else | |
12542 | puts (dlerror ()); | |
12543 | ||
12544 | return status; | |
12545 | } | |
12546 | _LT_EOF | |
12547 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12548 | (eval $ac_link) 2>&5 | |
12549 | ac_status=$? | |
12550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12551 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12552 | (./conftest; exit; ) >&5 2>/dev/null | |
12553 | lt_status=$? | |
12554 | case x$lt_status in | |
12555 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12556 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12557 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12558 | esac | |
12559 | else : | |
12560 | # compilation failed | |
12561 | lt_cv_dlopen_self=no | |
12562 | fi | |
12563 | fi | |
12564 | rm -fr conftest* | |
12565 | ||
12566 | ||
12567 | fi | |
12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12569 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12570 | ||
12571 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12572 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12574 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 12575 | if ${lt_cv_dlopen_self_static+:} false; then : |
c915a581 JJ |
12576 | $as_echo_n "(cached) " >&6 |
12577 | else | |
12578 | if test "$cross_compiling" = yes; then : | |
12579 | lt_cv_dlopen_self_static=cross | |
12580 | else | |
12581 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12582 | lt_status=$lt_dlunknown | |
12583 | cat > conftest.$ac_ext <<_LT_EOF | |
088d3cbc | 12584 | #line 12584 "configure" |
c915a581 JJ |
12585 | #include "confdefs.h" |
12586 | ||
12587 | #if HAVE_DLFCN_H | |
12588 | #include <dlfcn.h> | |
12589 | #endif | |
12590 | ||
12591 | #include <stdio.h> | |
12592 | ||
12593 | #ifdef RTLD_GLOBAL | |
12594 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12595 | #else | |
12596 | # ifdef DL_GLOBAL | |
12597 | # define LT_DLGLOBAL DL_GLOBAL | |
12598 | # else | |
12599 | # define LT_DLGLOBAL 0 | |
12600 | # endif | |
12601 | #endif | |
12602 | ||
12603 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12604 | find out it does not work in some platform. */ | |
12605 | #ifndef LT_DLLAZY_OR_NOW | |
12606 | # ifdef RTLD_LAZY | |
12607 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12608 | # else | |
12609 | # ifdef DL_LAZY | |
12610 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12611 | # else | |
12612 | # ifdef RTLD_NOW | |
12613 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12614 | # else | |
12615 | # ifdef DL_NOW | |
12616 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12617 | # else | |
12618 | # define LT_DLLAZY_OR_NOW 0 | |
12619 | # endif | |
12620 | # endif | |
12621 | # endif | |
12622 | # endif | |
12623 | #endif | |
12624 | ||
12625 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12626 | correspondingly for the symbols needed. */ | |
12627 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12628 | void fnord () __attribute__((visibility("default"))); | |
12629 | #endif | |
12630 | ||
12631 | void fnord () { int i=42; } | |
12632 | int main () | |
12633 | { | |
12634 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12635 | int status = $lt_dlunknown; | |
12636 | ||
12637 | if (self) | |
12638 | { | |
12639 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12640 | else | |
12641 | { | |
12642 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12643 | else puts (dlerror ()); | |
12644 | } | |
12645 | /* dlclose (self); */ | |
12646 | } | |
12647 | else | |
12648 | puts (dlerror ()); | |
12649 | ||
12650 | return status; | |
12651 | } | |
12652 | _LT_EOF | |
12653 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12654 | (eval $ac_link) 2>&5 | |
12655 | ac_status=$? | |
12656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12657 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12658 | (./conftest; exit; ) >&5 2>/dev/null | |
12659 | lt_status=$? | |
12660 | case x$lt_status in | |
12661 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12662 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12663 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12664 | esac | |
12665 | else : | |
12666 | # compilation failed | |
12667 | lt_cv_dlopen_self_static=no | |
12668 | fi | |
12669 | fi | |
12670 | rm -fr conftest* | |
12671 | ||
12672 | ||
12673 | fi | |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12675 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12676 | fi | |
12677 | ||
12678 | CPPFLAGS="$save_CPPFLAGS" | |
12679 | LDFLAGS="$save_LDFLAGS" | |
12680 | LIBS="$save_LIBS" | |
12681 | ;; | |
12682 | esac | |
12683 | ||
12684 | case $lt_cv_dlopen_self in | |
12685 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12686 | *) enable_dlopen_self=unknown ;; | |
12687 | esac | |
12688 | ||
12689 | case $lt_cv_dlopen_self_static in | |
12690 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12691 | *) enable_dlopen_self_static=unknown ;; | |
12692 | esac | |
12693 | fi | |
12694 | ||
12695 | ||
12696 | ||
12697 | ||
12698 | ||
12699 | ||
12700 | ||
12701 | ||
12702 | ||
12703 | ||
12704 | ||
12705 | ||
12706 | ||
12707 | ||
12708 | ||
12709 | ||
12710 | ||
12711 | striplib= | |
12712 | old_striplib= | |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12714 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12715 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12716 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12717 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12719 | $as_echo "yes" >&6; } | |
12720 | else | |
12721 | # FIXME - insert some real tests, host_os isn't really good enough | |
12722 | case $host_os in | |
12723 | darwin*) | |
12724 | if test -n "$STRIP" ; then | |
12725 | striplib="$STRIP -x" | |
12726 | old_striplib="$STRIP -S" | |
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12728 | $as_echo "yes" >&6; } | |
12729 | else | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12731 | $as_echo "no" >&6; } | |
12732 | fi | |
12733 | ;; | |
12734 | *) | |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12736 | $as_echo "no" >&6; } | |
12737 | ;; | |
12738 | esac | |
12739 | fi | |
12740 | ||
12741 | ||
12742 | ||
12743 | ||
12744 | ||
12745 | ||
12746 | ||
12747 | ||
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | # Report which library types will actually be built | |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12754 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12756 | $as_echo "$can_build_shared" >&6; } | |
12757 | ||
12758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12759 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12760 | test "$can_build_shared" = "no" && enable_shared=no | |
12761 | ||
12762 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12763 | # are all built from PIC. | |
12764 | case $host_os in | |
12765 | aix3*) | |
12766 | test "$enable_shared" = yes && enable_static=no | |
12767 | if test -n "$RANLIB"; then | |
12768 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12769 | postinstall_cmds='$RANLIB $lib' | |
12770 | fi | |
12771 | ;; | |
12772 | ||
12773 | aix[4-9]*) | |
12774 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12775 | test "$enable_shared" = yes && enable_static=no | |
12776 | fi | |
12777 | ;; | |
12778 | esac | |
12779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12780 | $as_echo "$enable_shared" >&6; } | |
12781 | ||
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12783 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12784 | # Make sure either enable_shared or enable_static is yes. | |
12785 | test "$enable_shared" = yes || enable_static=yes | |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12787 | $as_echo "$enable_static" >&6; } | |
12788 | ||
12789 | ||
12790 | ||
12791 | ||
12792 | fi | |
12793 | ac_ext=c | |
12794 | ac_cpp='$CPP $CPPFLAGS' | |
12795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12798 | ||
12799 | CC="$lt_save_CC" | |
12800 | ||
12801 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12802 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12803 | (test "X$CXX" != "Xg++"))) ; then | |
12804 | ac_ext=cpp | |
12805 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12806 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12807 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12808 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12810 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12811 | if test -z "$CXXCPP"; then | |
22e05272 | 12812 | if ${ac_cv_prog_CXXCPP+:} false; then : |
c915a581 JJ |
12813 | $as_echo_n "(cached) " >&6 |
12814 | else | |
12815 | # Double quotes because CXXCPP needs to be expanded | |
12816 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12817 | do | |
12818 | ac_preproc_ok=false | |
12819 | for ac_cxx_preproc_warn_flag in '' yes | |
12820 | do | |
12821 | # Use a header file that comes with gcc, so configuring glibc | |
12822 | # with a fresh cross-compiler works. | |
12823 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12824 | # <limits.h> exists even on freestanding compilers. | |
12825 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12826 | # not just through cpp. "Syntax error" is here to catch this case. | |
12827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12828 | /* end confdefs.h. */ | |
12829 | #ifdef __STDC__ | |
12830 | # include <limits.h> | |
12831 | #else | |
12832 | # include <assert.h> | |
12833 | #endif | |
12834 | Syntax error | |
12835 | _ACEOF | |
12836 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12837 | ||
12838 | else | |
12839 | # Broken: fails on valid input. | |
12840 | continue | |
12841 | fi | |
22e05272 | 12842 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
12843 | |
12844 | # OK, works on sane cases. Now check whether nonexistent headers | |
12845 | # can be detected and how. | |
12846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12847 | /* end confdefs.h. */ | |
12848 | #include <ac_nonexistent.h> | |
12849 | _ACEOF | |
12850 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12851 | # Broken: success on invalid input. | |
12852 | continue | |
12853 | else | |
12854 | # Passes both tests. | |
12855 | ac_preproc_ok=: | |
12856 | break | |
12857 | fi | |
22e05272 | 12858 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
12859 | |
12860 | done | |
12861 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 12862 | rm -f conftest.i conftest.err conftest.$ac_ext |
c915a581 JJ |
12863 | if $ac_preproc_ok; then : |
12864 | break | |
12865 | fi | |
12866 | ||
12867 | done | |
12868 | ac_cv_prog_CXXCPP=$CXXCPP | |
12869 | ||
12870 | fi | |
12871 | CXXCPP=$ac_cv_prog_CXXCPP | |
12872 | else | |
12873 | ac_cv_prog_CXXCPP=$CXXCPP | |
12874 | fi | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12876 | $as_echo "$CXXCPP" >&6; } | |
12877 | ac_preproc_ok=false | |
12878 | for ac_cxx_preproc_warn_flag in '' yes | |
12879 | do | |
12880 | # Use a header file that comes with gcc, so configuring glibc | |
12881 | # with a fresh cross-compiler works. | |
12882 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12883 | # <limits.h> exists even on freestanding compilers. | |
12884 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12885 | # not just through cpp. "Syntax error" is here to catch this case. | |
12886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12887 | /* end confdefs.h. */ | |
12888 | #ifdef __STDC__ | |
12889 | # include <limits.h> | |
12890 | #else | |
12891 | # include <assert.h> | |
12892 | #endif | |
12893 | Syntax error | |
12894 | _ACEOF | |
12895 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12896 | ||
12897 | else | |
12898 | # Broken: fails on valid input. | |
12899 | continue | |
12900 | fi | |
22e05272 | 12901 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
12902 | |
12903 | # OK, works on sane cases. Now check whether nonexistent headers | |
12904 | # can be detected and how. | |
12905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12906 | /* end confdefs.h. */ | |
12907 | #include <ac_nonexistent.h> | |
12908 | _ACEOF | |
12909 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12910 | # Broken: success on invalid input. | |
12911 | continue | |
12912 | else | |
12913 | # Passes both tests. | |
12914 | ac_preproc_ok=: | |
12915 | break | |
12916 | fi | |
22e05272 | 12917 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 JJ |
12918 | |
12919 | done | |
12920 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 12921 | rm -f conftest.i conftest.err conftest.$ac_ext |
c915a581 JJ |
12922 | if $ac_preproc_ok; then : |
12923 | ||
12924 | else | |
12925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12927 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
12928 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
12929 | fi |
12930 | ||
12931 | ac_ext=c | |
12932 | ac_cpp='$CPP $CPPFLAGS' | |
12933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12936 | ||
12937 | else | |
12938 | _lt_caught_CXX_error=yes | |
12939 | fi | |
12940 | ||
12941 | ac_ext=cpp | |
12942 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12946 | ||
12947 | archive_cmds_need_lc_CXX=no | |
12948 | allow_undefined_flag_CXX= | |
12949 | always_export_symbols_CXX=no | |
12950 | archive_expsym_cmds_CXX= | |
12951 | compiler_needs_object_CXX=no | |
12952 | export_dynamic_flag_spec_CXX= | |
12953 | hardcode_direct_CXX=no | |
12954 | hardcode_direct_absolute_CXX=no | |
12955 | hardcode_libdir_flag_spec_CXX= | |
12956 | hardcode_libdir_flag_spec_ld_CXX= | |
12957 | hardcode_libdir_separator_CXX= | |
12958 | hardcode_minus_L_CXX=no | |
12959 | hardcode_shlibpath_var_CXX=unsupported | |
12960 | hardcode_automatic_CXX=no | |
12961 | inherit_rpath_CXX=no | |
12962 | module_cmds_CXX= | |
12963 | module_expsym_cmds_CXX= | |
12964 | link_all_deplibs_CXX=unknown | |
12965 | old_archive_cmds_CXX=$old_archive_cmds | |
12966 | reload_flag_CXX=$reload_flag | |
12967 | reload_cmds_CXX=$reload_cmds | |
12968 | no_undefined_flag_CXX= | |
12969 | whole_archive_flag_spec_CXX= | |
12970 | enable_shared_with_static_runtimes_CXX=no | |
12971 | ||
12972 | # Source file extension for C++ test sources. | |
12973 | ac_ext=cpp | |
12974 | ||
12975 | # Object file extension for compiled C++ test sources. | |
12976 | objext=o | |
12977 | objext_CXX=$objext | |
12978 | ||
12979 | # No sense in running all these tests if we already determined that | |
12980 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
12981 | # are currently assumed to apply to all compilers on this platform, | |
12982 | # and will be corrupted by setting them based on a non-working compiler. | |
12983 | if test "$_lt_caught_CXX_error" != yes; then | |
12984 | # Code to be used in simple compile tests | |
12985 | lt_simple_compile_test_code="int some_variable = 0;" | |
12986 | ||
12987 | # Code to be used in simple link tests | |
12988 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12989 | ||
12990 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
12996 | ||
12997 | # If no C compiler was specified, use CC. | |
12998 | LTCC=${LTCC-"$CC"} | |
12999 | ||
13000 | # If no C compiler flags were specified, use CFLAGS. | |
13001 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13002 | ||
13003 | # Allow CC to be a program name with arguments. | |
13004 | compiler=$CC | |
13005 | ||
13006 | ||
13007 | # save warnings/boilerplate of simple test code | |
13008 | ac_outfile=conftest.$ac_objext | |
13009 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13010 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13011 | _lt_compiler_boilerplate=`cat conftest.err` | |
13012 | $RM conftest* | |
13013 | ||
13014 | ac_outfile=conftest.$ac_objext | |
13015 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
13016 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13017 | _lt_linker_boilerplate=`cat conftest.err` | |
13018 | $RM -r conftest* | |
13019 | ||
13020 | ||
13021 | # Allow CC to be a program name with arguments. | |
13022 | lt_save_CC=$CC | |
13023 | lt_save_LD=$LD | |
13024 | lt_save_GCC=$GCC | |
13025 | GCC=$GXX | |
13026 | lt_save_with_gnu_ld=$with_gnu_ld | |
13027 | lt_save_path_LD=$lt_cv_path_LD | |
13028 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
13029 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
13030 | else | |
13031 | $as_unset lt_cv_prog_gnu_ld | |
13032 | fi | |
13033 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
13034 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
13035 | else | |
13036 | $as_unset lt_cv_path_LD | |
13037 | fi | |
13038 | test -z "${LDCXX+set}" || LD=$LDCXX | |
13039 | CC=${CXX-"c++"} | |
13040 | compiler=$CC | |
13041 | compiler_CXX=$CC | |
13042 | for cc_temp in $compiler""; do | |
13043 | case $cc_temp in | |
13044 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13045 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13046 | \-*) ;; | |
13047 | *) break;; | |
13048 | esac | |
13049 | done | |
13050 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
13051 | ||
13052 | ||
13053 | if test -n "$compiler"; then | |
13054 | # We don't want -fno-exception when compiling C++ code, so set the | |
13055 | # no_builtin_flag separately | |
13056 | if test "$GXX" = yes; then | |
13057 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
13058 | else | |
13059 | lt_prog_compiler_no_builtin_flag_CXX= | |
13060 | fi | |
13061 | ||
13062 | if test "$GXX" = yes; then | |
13063 | # Set up default GNU C++ configuration | |
13064 | ||
13065 | ||
13066 | ||
13067 | # Check whether --with-gnu-ld was given. | |
13068 | if test "${with_gnu_ld+set}" = set; then : | |
13069 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
13070 | else | |
13071 | with_gnu_ld=no | |
13072 | fi | |
13073 | ||
13074 | ac_prog=ld | |
13075 | if test "$GCC" = yes; then | |
13076 | # Check if gcc -print-prog-name=ld gives a path. | |
13077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
13078 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
13079 | case $host in | |
13080 | *-*-mingw*) | |
13081 | # gcc leaves a trailing carriage return which upsets mingw | |
13082 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
13083 | *) | |
13084 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
13085 | esac | |
13086 | case $ac_prog in | |
13087 | # Accept absolute paths. | |
13088 | [\\/]* | ?:[\\/]*) | |
13089 | re_direlt='/[^/][^/]*/\.\./' | |
13090 | # Canonicalize the pathname of ld | |
13091 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
13092 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
13093 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
13094 | done | |
13095 | test -z "$LD" && LD="$ac_prog" | |
13096 | ;; | |
13097 | "") | |
13098 | # If it fails, then pretend we aren't using GCC. | |
13099 | ac_prog=ld | |
13100 | ;; | |
13101 | *) | |
13102 | # If it is relative, then search for the first ld in PATH. | |
13103 | with_gnu_ld=unknown | |
13104 | ;; | |
13105 | esac | |
13106 | elif test "$with_gnu_ld" = yes; then | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
13108 | $as_echo_n "checking for GNU ld... " >&6; } | |
13109 | else | |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
13111 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
13112 | fi | |
22e05272 | 13113 | if ${lt_cv_path_LD+:} false; then : |
c915a581 JJ |
13114 | $as_echo_n "(cached) " >&6 |
13115 | else | |
13116 | if test -z "$LD"; then | |
13117 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
13118 | for ac_dir in $PATH; do | |
13119 | IFS="$lt_save_ifs" | |
13120 | test -z "$ac_dir" && ac_dir=. | |
13121 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
13122 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
13123 | # Check to see if the program is GNU ld. I'd rather use --version, | |
13124 | # but apparently some variants of GNU ld only accept -v. | |
13125 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
13126 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
13127 | *GNU* | *'with BFD'*) | |
13128 | test "$with_gnu_ld" != no && break | |
13129 | ;; | |
13130 | *) | |
13131 | test "$with_gnu_ld" != yes && break | |
13132 | ;; | |
13133 | esac | |
13134 | fi | |
13135 | done | |
13136 | IFS="$lt_save_ifs" | |
13137 | else | |
13138 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
13139 | fi | |
13140 | fi | |
13141 | ||
13142 | LD="$lt_cv_path_LD" | |
13143 | if test -n "$LD"; then | |
13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13145 | $as_echo "$LD" >&6; } | |
13146 | else | |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13148 | $as_echo "no" >&6; } | |
13149 | fi | |
22e05272 | 13150 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
c915a581 JJ |
13151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
13152 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 13153 | if ${lt_cv_prog_gnu_ld+:} false; then : |
c915a581 JJ |
13154 | $as_echo_n "(cached) " >&6 |
13155 | else | |
13156 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
13157 | case `$LD -v 2>&1 </dev/null` in | |
13158 | *GNU* | *'with BFD'*) | |
13159 | lt_cv_prog_gnu_ld=yes | |
13160 | ;; | |
13161 | *) | |
13162 | lt_cv_prog_gnu_ld=no | |
13163 | ;; | |
13164 | esac | |
13165 | fi | |
13166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
13167 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
13168 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
13169 | ||
13170 | ||
13171 | ||
13172 | ||
13173 | ||
13174 | ||
13175 | ||
13176 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
13177 | # archiving commands below assume that GNU ld is being used. | |
13178 | if test "$with_gnu_ld" = yes; then | |
a699d672 L |
13179 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13180 | 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 |
13181 | |
13182 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13183 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13184 | ||
13185 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13186 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
13187 | # investigate it a little bit more. (MM) | |
13188 | wlarc='${wl}' | |
13189 | ||
13190 | # ancient GNU ld didn't support --whole-archive et. al. | |
13191 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
13192 | $GREP 'no-whole-archive' > /dev/null; then | |
13193 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13194 | else | |
13195 | whole_archive_flag_spec_CXX= | |
13196 | fi | |
13197 | else | |
13198 | with_gnu_ld=no | |
13199 | wlarc= | |
13200 | ||
13201 | # A generic and very simple default shared library creation | |
13202 | # command for GNU C++ for the case where it uses the native | |
13203 | # linker, instead of GNU ld. If possible, this setting should | |
13204 | # overridden to take advantage of the native linker features on | |
13205 | # the platform it is being used on. | |
13206 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13207 | fi | |
13208 | ||
13209 | # Commands to make compiler produce verbose output that lists | |
13210 | # what "hidden" libraries, object files and flags are used when | |
13211 | # linking a shared library. | |
13212 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13213 | ||
13214 | else | |
13215 | GXX=no | |
13216 | with_gnu_ld=no | |
13217 | wlarc= | |
13218 | fi | |
13219 | ||
13220 | # PORTME: fill in a description of your system's C++ link characteristics | |
13221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13222 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
13223 | ld_shlibs_CXX=yes | |
13224 | case $host_os in | |
13225 | aix3*) | |
13226 | # FIXME: insert proper C++ library support | |
13227 | ld_shlibs_CXX=no | |
13228 | ;; | |
13229 | aix[4-9]*) | |
13230 | if test "$host_cpu" = ia64; then | |
13231 | # On IA64, the linker does run time linking by default, so we don't | |
13232 | # have to do anything special. | |
13233 | aix_use_runtimelinking=no | |
13234 | exp_sym_flag='-Bexport' | |
13235 | no_entry_flag="" | |
13236 | else | |
13237 | aix_use_runtimelinking=no | |
13238 | ||
13239 | # Test if we are trying to use run time linking or normal | |
13240 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13241 | # need to do runtime linking. | |
13242 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13243 | for ld_flag in $LDFLAGS; do | |
13244 | case $ld_flag in | |
13245 | *-brtl*) | |
13246 | aix_use_runtimelinking=yes | |
13247 | break | |
13248 | ;; | |
13249 | esac | |
13250 | done | |
13251 | ;; | |
13252 | esac | |
13253 | ||
13254 | exp_sym_flag='-bexport' | |
13255 | no_entry_flag='-bnoentry' | |
13256 | fi | |
13257 | ||
13258 | # When large executables or shared objects are built, AIX ld can | |
13259 | # have problems creating the table of contents. If linking a library | |
13260 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13261 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13262 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13263 | ||
13264 | archive_cmds_CXX='' | |
13265 | hardcode_direct_CXX=yes | |
13266 | hardcode_direct_absolute_CXX=yes | |
13267 | hardcode_libdir_separator_CXX=':' | |
13268 | link_all_deplibs_CXX=yes | |
13269 | file_list_spec_CXX='${wl}-f,' | |
13270 | ||
13271 | if test "$GXX" = yes; then | |
13272 | case $host_os in aix4.[012]|aix4.[012].*) | |
13273 | # We only want to do this on AIX 4.2 and lower, the check | |
13274 | # below for broken collect2 doesn't work under 4.3+ | |
13275 | collect2name=`${CC} -print-prog-name=collect2` | |
13276 | if test -f "$collect2name" && | |
13277 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13278 | then | |
13279 | # We have reworked collect2 | |
13280 | : | |
13281 | else | |
13282 | # We have old collect2 | |
13283 | hardcode_direct_CXX=unsupported | |
13284 | # It fails to find uninstalled libraries when the uninstalled | |
13285 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13286 | # to unsupported forces relinking | |
13287 | hardcode_minus_L_CXX=yes | |
13288 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13289 | hardcode_libdir_separator_CXX= | |
13290 | fi | |
13291 | esac | |
13292 | shared_flag='-shared' | |
13293 | if test "$aix_use_runtimelinking" = yes; then | |
13294 | shared_flag="$shared_flag "'${wl}-G' | |
13295 | fi | |
13296 | else | |
13297 | # not using gcc | |
13298 | if test "$host_cpu" = ia64; then | |
13299 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13300 | # chokes on -Wl,-G. The following line is correct: | |
13301 | shared_flag='-G' | |
13302 | else | |
13303 | if test "$aix_use_runtimelinking" = yes; then | |
13304 | shared_flag='${wl}-G' | |
13305 | else | |
13306 | shared_flag='${wl}-bM:SRE' | |
13307 | fi | |
13308 | fi | |
13309 | fi | |
13310 | ||
13311 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
13312 | # It seems that -bexpall does not export symbols beginning with | |
13313 | # underscore (_), so it is better to generate a list of symbols to | |
13314 | # export. | |
13315 | always_export_symbols_CXX=yes | |
13316 | if test "$aix_use_runtimelinking" = yes; then | |
13317 | # Warning - without using the other runtime loading flags (-brtl), | |
13318 | # -berok will link without error, but may produce a broken library. | |
13319 | allow_undefined_flag_CXX='-berok' | |
13320 | # Determine the default libpath from the value encoded in an empty | |
13321 | # executable. | |
13322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13323 | /* end confdefs.h. */ | |
13324 | ||
13325 | int | |
13326 | main () | |
13327 | { | |
13328 | ||
13329 | ; | |
13330 | return 0; | |
13331 | } | |
13332 | _ACEOF | |
13333 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13334 | ||
13335 | lt_aix_libpath_sed=' | |
13336 | /Import File Strings/,/^$/ { | |
13337 | /^0/ { | |
13338 | s/^0 *\(.*\)$/\1/ | |
13339 | p | |
13340 | } | |
13341 | }' | |
13342 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13343 | # Check for a 64-bit object if we didn't find anything. | |
13344 | if test -z "$aix_libpath"; then | |
13345 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13346 | fi | |
13347 | fi | |
13348 | rm -f core conftest.err conftest.$ac_objext \ | |
13349 | conftest$ac_exeext conftest.$ac_ext | |
13350 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13351 | ||
13352 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13353 | ||
13354 | 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" | |
13355 | else | |
13356 | if test "$host_cpu" = ia64; then | |
13357 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13358 | allow_undefined_flag_CXX="-z nodefs" | |
13359 | 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" | |
13360 | else | |
13361 | # Determine the default libpath from the value encoded in an | |
13362 | # empty executable. | |
13363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13364 | /* end confdefs.h. */ | |
13365 | ||
13366 | int | |
13367 | main () | |
13368 | { | |
13369 | ||
13370 | ; | |
13371 | return 0; | |
13372 | } | |
13373 | _ACEOF | |
13374 | if ac_fn_cxx_try_link "$LINENO"; then : | |
13375 | ||
13376 | lt_aix_libpath_sed=' | |
13377 | /Import File Strings/,/^$/ { | |
13378 | /^0/ { | |
13379 | s/^0 *\(.*\)$/\1/ | |
13380 | p | |
13381 | } | |
13382 | }' | |
13383 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13384 | # Check for a 64-bit object if we didn't find anything. | |
13385 | if test -z "$aix_libpath"; then | |
13386 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13387 | fi | |
13388 | fi | |
13389 | rm -f core conftest.err conftest.$ac_objext \ | |
13390 | conftest$ac_exeext conftest.$ac_ext | |
13391 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13392 | ||
13393 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13394 | # Warning - without using the other run time loading flags, | |
13395 | # -berok will link without error, but may produce a broken library. | |
13396 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13397 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13398 | if test "$with_gnu_ld" = yes; then | |
13399 | # We only use this code for GNU lds that support --whole-archive. | |
13400 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13401 | else | |
13402 | # Exported symbols can be pulled into shared objects from archives | |
13403 | whole_archive_flag_spec_CXX='$convenience' | |
13404 | fi | |
13405 | archive_cmds_need_lc_CXX=yes | |
13406 | # This is similar to how AIX traditionally builds its shared | |
13407 | # libraries. | |
13408 | 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' | |
13409 | fi | |
13410 | fi | |
13411 | ;; | |
13412 | ||
13413 | beos*) | |
13414 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13415 | allow_undefined_flag_CXX=unsupported | |
13416 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13417 | # support --undefined. This deserves some investigation. FIXME | |
13418 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13419 | else | |
13420 | ld_shlibs_CXX=no | |
13421 | fi | |
13422 | ;; | |
13423 | ||
13424 | chorus*) | |
13425 | case $cc_basename in | |
13426 | *) | |
13427 | # FIXME: insert proper C++ library support | |
13428 | ld_shlibs_CXX=no | |
13429 | ;; | |
13430 | esac | |
13431 | ;; | |
13432 | ||
13433 | cygwin* | mingw* | pw32* | cegcc*) | |
13434 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13435 | # as there is no search path for DLLs. | |
13436 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13437 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13438 | allow_undefined_flag_CXX=unsupported | |
13439 | always_export_symbols_CXX=no | |
13440 | enable_shared_with_static_runtimes_CXX=yes | |
13441 | ||
13442 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
13443 | 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' | |
13444 | # If the export-symbols file already is a .def file (1st line | |
13445 | # is EXPORTS), use it as is; otherwise, prepend... | |
13446 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13447 | cp $export_symbols $output_objdir/$soname.def; | |
13448 | else | |
13449 | echo EXPORTS > $output_objdir/$soname.def; | |
13450 | cat $export_symbols >> $output_objdir/$soname.def; | |
13451 | fi~ | |
13452 | $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' | |
13453 | else | |
13454 | ld_shlibs_CXX=no | |
13455 | fi | |
13456 | ;; | |
13457 | darwin* | rhapsody*) | |
13458 | ||
13459 | ||
6a6d3817 IS |
13460 | |
13461 | # Publish an arg to allow the user to select that Darwin host (and target) | |
13462 | # libraries should be given install-names like @rpath/libfoo.dylib. This | |
13463 | # requires that the user of the library then adds an 'rpath' to the DSO that | |
13464 | # needs access. | |
13465 | # NOTE: there are defaults below, for systems that support rpaths. The person | |
13466 | # configuring can override the defaults for any system version that supports | |
13467 | # them - they are, however, forced off for system versions without support. | |
13468 | # Check whether --enable-darwin-at-rpath was given. | |
13469 | if test "${enable_darwin_at_rpath+set}" = set; then : | |
13470 | enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then | |
13471 | # This is not supported before macOS 10.5 / Darwin9. | |
13472 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in | |
13473 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) | |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 | |
13475 | $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} | |
13476 | enable_darwin_at_rpath=no | |
13477 | ;; | |
13478 | esac | |
13479 | fi | |
13480 | else | |
13481 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in | |
13482 | # As above, before 10.5 / Darwin9 this does not work. | |
13483 | UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) | |
13484 | enable_darwin_at_rpath=no | |
13485 | ;; | |
13486 | ||
13487 | # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use | |
13488 | # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key | |
13489 | # system executables (e.g. /bin/sh). Force rpaths on for these systems. | |
13490 | UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) | |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 | |
13492 | $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} | |
13493 | enable_darwin_at_rpath=yes | |
13494 | ;; | |
13495 | # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can | |
13496 | # work with either DYLD_LIBRARY_PATH or embedded rpaths. | |
13497 | ||
13498 | esac | |
13499 | ||
13500 | fi | |
13501 | ||
13502 | ||
c915a581 JJ |
13503 | archive_cmds_need_lc_CXX=no |
13504 | hardcode_direct_CXX=no | |
13505 | hardcode_automatic_CXX=yes | |
13506 | hardcode_shlibpath_var_CXX=unsupported | |
13507 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13508 | 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\"`' | |
13509 | else | |
13510 | whole_archive_flag_spec_CXX='' | |
13511 | fi | |
13512 | link_all_deplibs_CXX=yes | |
13513 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
13514 | case $cc_basename in | |
13515 | ifort*) _lt_dar_can_shared=yes ;; | |
13516 | *) _lt_dar_can_shared=$GCC ;; | |
13517 | esac | |
13518 | if test "$_lt_dar_can_shared" = "yes"; then | |
13519 | output_verbose_link_cmd=func_echo_all | |
6a6d3817 IS |
13520 | _lt_install_name='\$rpath/\$soname' |
13521 | if test "x$enable_darwin_at_rpath" = "xyes"; then | |
13522 | _lt_install_name='@rpath/\$soname' | |
13523 | fi | |
13524 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" | |
c915a581 | 13525 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
6a6d3817 | 13526 | 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" |
c915a581 JJ |
13527 | 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}" |
13528 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
6a6d3817 IS |
13529 | _lt_install_name='\$rpath/\$soname' |
13530 | if test "x$enable_darwin_at_rpath" = "xyes"; then | |
13531 | _lt_install_name='@rpath/\$soname' | |
13532 | fi | |
13533 | 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 ${_lt_install_name} \$verstring${_lt_dsymutil}" | |
c915a581 JJ |
13534 | 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}" |
13535 | fi | |
13536 | ||
13537 | else | |
13538 | ld_shlibs_CXX=no | |
13539 | fi | |
13540 | ||
13541 | ;; | |
13542 | ||
13543 | dgux*) | |
13544 | case $cc_basename in | |
13545 | ec++*) | |
13546 | # FIXME: insert proper C++ library support | |
13547 | ld_shlibs_CXX=no | |
13548 | ;; | |
13549 | ghcx*) | |
13550 | # Green Hills C++ Compiler | |
13551 | # FIXME: insert proper C++ library support | |
13552 | ld_shlibs_CXX=no | |
13553 | ;; | |
13554 | *) | |
13555 | # FIXME: insert proper C++ library support | |
13556 | ld_shlibs_CXX=no | |
13557 | ;; | |
13558 | esac | |
13559 | ;; | |
13560 | ||
13561 | freebsd2.*) | |
13562 | # C++ shared libraries reported to be fairly broken before | |
13563 | # switch to ELF | |
13564 | ld_shlibs_CXX=no | |
13565 | ;; | |
13566 | ||
13567 | freebsd-elf*) | |
13568 | archive_cmds_need_lc_CXX=no | |
13569 | ;; | |
13570 | ||
13571 | freebsd* | dragonfly*) | |
13572 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13573 | # conventions | |
13574 | ld_shlibs_CXX=yes | |
13575 | ;; | |
13576 | ||
13577 | gnu*) | |
13578 | ;; | |
13579 | ||
13580 | haiku*) | |
13581 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13582 | link_all_deplibs_CXX=yes | |
13583 | ;; | |
13584 | ||
13585 | hpux9*) | |
13586 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13587 | hardcode_libdir_separator_CXX=: | |
13588 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13589 | hardcode_direct_CXX=yes | |
13590 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13591 | # but as the default | |
13592 | # location of the library. | |
13593 | ||
13594 | case $cc_basename in | |
13595 | CC*) | |
13596 | # FIXME: insert proper C++ library support | |
13597 | ld_shlibs_CXX=no | |
13598 | ;; | |
13599 | aCC*) | |
13600 | 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' | |
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 | # | |
13605 | # There doesn't appear to be a way to prevent this compiler from | |
13606 | # explicitly linking system object files so we need to strip them | |
13607 | # from the output so that they don't get included in the library | |
13608 | # dependencies. | |
13609 | 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"' | |
13610 | ;; | |
13611 | *) | |
13612 | if test "$GXX" = yes; then | |
13613 | 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' | |
13614 | else | |
13615 | # FIXME: insert proper C++ library support | |
13616 | ld_shlibs_CXX=no | |
13617 | fi | |
13618 | ;; | |
13619 | esac | |
13620 | ;; | |
13621 | ||
13622 | hpux10*|hpux11*) | |
13623 | if test $with_gnu_ld = no; then | |
13624 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13625 | hardcode_libdir_separator_CXX=: | |
13626 | ||
13627 | case $host_cpu in | |
13628 | hppa*64*|ia64*) | |
13629 | ;; | |
13630 | *) | |
13631 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13632 | ;; | |
13633 | esac | |
13634 | fi | |
13635 | case $host_cpu in | |
13636 | hppa*64*|ia64*) | |
13637 | hardcode_direct_CXX=no | |
13638 | hardcode_shlibpath_var_CXX=no | |
13639 | ;; | |
13640 | *) | |
13641 | hardcode_direct_CXX=yes | |
13642 | hardcode_direct_absolute_CXX=yes | |
13643 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13644 | # but as the default | |
13645 | # location of the library. | |
13646 | ;; | |
13647 | esac | |
13648 | ||
13649 | case $cc_basename in | |
13650 | CC*) | |
13651 | # FIXME: insert proper C++ library support | |
13652 | ld_shlibs_CXX=no | |
13653 | ;; | |
13654 | aCC*) | |
13655 | case $host_cpu in | |
13656 | hppa*64*) | |
4e4ba647 | 13657 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
c915a581 JJ |
13658 | ;; |
13659 | ia64*) | |
13660 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13661 | ;; | |
13662 | *) | |
13663 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13664 | ;; | |
13665 | esac | |
13666 | # Commands to make compiler produce verbose output that lists | |
13667 | # what "hidden" libraries, object files and flags are used when | |
13668 | # linking a shared library. | |
13669 | # | |
13670 | # There doesn't appear to be a way to prevent this compiler from | |
13671 | # explicitly linking system object files so we need to strip them | |
13672 | # from the output so that they don't get included in the library | |
13673 | # dependencies. | |
13674 | 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"' | |
13675 | ;; | |
13676 | *) | |
13677 | if test "$GXX" = yes; then | |
13678 | if test $with_gnu_ld = no; then | |
13679 | case $host_cpu in | |
13680 | hppa*64*) | |
4e4ba647 | 13681 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
c915a581 JJ |
13682 | ;; |
13683 | ia64*) | |
13684 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13685 | ;; | |
13686 | *) | |
13687 | 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' | |
13688 | ;; | |
13689 | esac | |
13690 | fi | |
13691 | else | |
13692 | # FIXME: insert proper C++ library support | |
13693 | ld_shlibs_CXX=no | |
13694 | fi | |
13695 | ;; | |
13696 | esac | |
13697 | ;; | |
13698 | ||
13699 | interix[3-9]*) | |
13700 | hardcode_direct_CXX=no | |
13701 | hardcode_shlibpath_var_CXX=no | |
13702 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13703 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13704 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13705 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13706 | # default) and relocated if they conflict, which is a slow very memory | |
13707 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13708 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13709 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13710 | 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' | |
13711 | 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' | |
13712 | ;; | |
13713 | irix5* | irix6*) | |
13714 | case $cc_basename in | |
13715 | CC*) | |
13716 | # SGI C++ | |
13717 | 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' | |
13718 | ||
13719 | # Archives containing C++ object files must be created using | |
13720 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13721 | # necessary to make sure instantiated templates are included | |
13722 | # in the archive. | |
13723 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13724 | ;; | |
13725 | *) | |
13726 | if test "$GXX" = yes; then | |
13727 | if test "$with_gnu_ld" = no; then | |
13728 | 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' | |
13729 | else | |
13730 | 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' | |
13731 | fi | |
13732 | fi | |
13733 | link_all_deplibs_CXX=yes | |
13734 | ;; | |
13735 | esac | |
13736 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13737 | hardcode_libdir_separator_CXX=: | |
13738 | inherit_rpath_CXX=yes | |
13739 | ;; | |
13740 | ||
13741 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13742 | case $cc_basename in | |
13743 | KCC*) | |
13744 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13745 | ||
13746 | # KCC will only create a shared library if the output file | |
13747 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13748 | # to its proper name (with version) after linking. | |
13749 | 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' | |
13750 | 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' | |
13751 | # Commands to make compiler produce verbose output that lists | |
13752 | # what "hidden" libraries, object files and flags are used when | |
13753 | # linking a shared library. | |
13754 | # | |
13755 | # There doesn't appear to be a way to prevent this compiler from | |
13756 | # explicitly linking system object files so we need to strip them | |
13757 | # from the output so that they don't get included in the library | |
13758 | # dependencies. | |
13759 | 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"' | |
13760 | ||
13761 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13762 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13763 | ||
13764 | # Archives containing C++ object files must be created using | |
13765 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13766 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13767 | ;; | |
13768 | icpc* | ecpc* ) | |
13769 | # Intel C++ | |
13770 | with_gnu_ld=yes | |
13771 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13772 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13773 | # earlier do not add the objects themselves. | |
13774 | case `$CC -V 2>&1` in | |
13775 | *"Version 7."*) | |
13776 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13777 | 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' | |
13778 | ;; | |
13779 | *) # Version 8.0 or newer | |
13780 | tmp_idyn= | |
13781 | case $host_cpu in | |
13782 | ia64*) tmp_idyn=' -i_dynamic';; | |
13783 | esac | |
13784 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13785 | 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' | |
13786 | ;; | |
13787 | esac | |
13788 | archive_cmds_need_lc_CXX=no | |
13789 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13790 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13791 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13792 | ;; | |
13793 | pgCC* | pgcpp*) | |
13794 | # Portland Group C++ compiler | |
13795 | case `$CC -V` in | |
13796 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13797 | prelink_cmds_CXX='tpldir=Template.dir~ | |
13798 | rm -rf $tpldir~ | |
13799 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
8468f944 | 13800 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
c915a581 JJ |
13801 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13802 | rm -rf $tpldir~ | |
13803 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
8468f944 | 13804 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
c915a581 JJ |
13805 | $RANLIB $oldlib' |
13806 | archive_cmds_CXX='tpldir=Template.dir~ | |
13807 | rm -rf $tpldir~ | |
13808 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
8468f944 | 13809 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
c915a581 JJ |
13810 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13811 | rm -rf $tpldir~ | |
13812 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
8468f944 | 13813 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
c915a581 JJ |
13814 | ;; |
13815 | *) # Version 6 and above use weak symbols | |
13816 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13817 | 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' | |
13818 | ;; | |
13819 | esac | |
13820 | ||
13821 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13822 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13823 | 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' | |
13824 | ;; | |
13825 | cxx*) | |
13826 | # Compaq C++ | |
13827 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13828 | 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' | |
13829 | ||
13830 | runpath_var=LD_RUN_PATH | |
13831 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13832 | hardcode_libdir_separator_CXX=: | |
13833 | ||
13834 | # Commands to make compiler produce verbose output that lists | |
13835 | # what "hidden" libraries, object files and flags are used when | |
13836 | # linking a shared library. | |
13837 | # | |
13838 | # There doesn't appear to be a way to prevent this compiler from | |
13839 | # explicitly linking system object files so we need to strip them | |
13840 | # from the output so that they don't get included in the library | |
13841 | # dependencies. | |
13842 | 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' | |
13843 | ;; | |
13844 | xl* | mpixl* | bgxl*) | |
13845 | # IBM XL 8.0 on PPC, with GNU ld | |
13846 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13847 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13848 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13849 | if test "x$supports_anon_versioning" = xyes; then | |
13850 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13851 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13852 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13853 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13854 | fi | |
13855 | ;; | |
13856 | *) | |
13857 | case `$CC -V 2>&1 | sed 5q` in | |
13858 | *Sun\ C*) | |
13859 | # Sun C++ 5.9 | |
13860 | no_undefined_flag_CXX=' -zdefs' | |
13861 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13862 | 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' | |
13863 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13864 | 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' | |
13865 | compiler_needs_object_CXX=yes | |
13866 | ||
13867 | # Not sure whether something based on | |
13868 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13869 | # would be better. | |
13870 | output_verbose_link_cmd='func_echo_all' | |
13871 | ||
13872 | # Archives containing C++ object files must be created using | |
13873 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13874 | # necessary to make sure instantiated templates are included | |
13875 | # in the archive. | |
13876 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13877 | ;; | |
13878 | esac | |
13879 | ;; | |
13880 | esac | |
13881 | ;; | |
13882 | ||
13883 | lynxos*) | |
13884 | # FIXME: insert proper C++ library support | |
13885 | ld_shlibs_CXX=no | |
13886 | ;; | |
13887 | ||
13888 | m88k*) | |
13889 | # FIXME: insert proper C++ library support | |
13890 | ld_shlibs_CXX=no | |
13891 | ;; | |
13892 | ||
13893 | mvs*) | |
13894 | case $cc_basename in | |
13895 | cxx*) | |
13896 | # FIXME: insert proper C++ library support | |
13897 | ld_shlibs_CXX=no | |
13898 | ;; | |
13899 | *) | |
13900 | # FIXME: insert proper C++ library support | |
13901 | ld_shlibs_CXX=no | |
13902 | ;; | |
13903 | esac | |
13904 | ;; | |
13905 | ||
13906 | netbsd*) | |
13907 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13908 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13909 | wlarc= | |
13910 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13911 | hardcode_direct_CXX=yes | |
13912 | hardcode_shlibpath_var_CXX=no | |
13913 | fi | |
13914 | # Workaround some broken pre-1.5 toolchains | |
13915 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13916 | ;; | |
13917 | ||
13918 | *nto* | *qnx*) | |
13919 | ld_shlibs_CXX=yes | |
13920 | ;; | |
13921 | ||
13922 | openbsd2*) | |
13923 | # C++ shared libraries are fairly broken | |
13924 | ld_shlibs_CXX=no | |
13925 | ;; | |
13926 | ||
13927 | openbsd*) | |
13928 | if test -f /usr/libexec/ld.so; then | |
13929 | hardcode_direct_CXX=yes | |
13930 | hardcode_shlibpath_var_CXX=no | |
13931 | hardcode_direct_absolute_CXX=yes | |
13932 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13933 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13934 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13935 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13936 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13937 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13938 | fi | |
13939 | output_verbose_link_cmd=func_echo_all | |
13940 | else | |
13941 | ld_shlibs_CXX=no | |
13942 | fi | |
13943 | ;; | |
13944 | ||
13945 | osf3* | osf4* | osf5*) | |
13946 | case $cc_basename in | |
13947 | KCC*) | |
13948 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13949 | ||
13950 | # KCC will only create a shared library if the output file | |
13951 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13952 | # to its proper name (with version) after linking. | |
13953 | 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' | |
13954 | ||
13955 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13956 | hardcode_libdir_separator_CXX=: | |
13957 | ||
13958 | # Archives containing C++ object files must be created using | |
13959 | # the KAI C++ compiler. | |
13960 | case $host in | |
13961 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13962 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13963 | esac | |
13964 | ;; | |
13965 | RCC*) | |
13966 | # Rational C++ 2.4.1 | |
13967 | # FIXME: insert proper C++ library support | |
13968 | ld_shlibs_CXX=no | |
13969 | ;; | |
13970 | cxx*) | |
13971 | case $host in | |
13972 | osf3*) | |
13973 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13974 | 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' | |
13975 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13976 | ;; | |
13977 | *) | |
13978 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13979 | 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' | |
13980 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13981 | echo "-hidden">> $lib.exp~ | |
13982 | $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~ | |
13983 | $RM $lib.exp' | |
13984 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13985 | ;; | |
13986 | esac | |
13987 | ||
13988 | hardcode_libdir_separator_CXX=: | |
13989 | ||
13990 | # Commands to make compiler produce verbose output that lists | |
13991 | # what "hidden" libraries, object files and flags are used when | |
13992 | # linking a shared library. | |
13993 | # | |
13994 | # There doesn't appear to be a way to prevent this compiler from | |
13995 | # explicitly linking system object files so we need to strip them | |
13996 | # from the output so that they don't get included in the library | |
13997 | # dependencies. | |
13998 | 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"' | |
13999 | ;; | |
14000 | *) | |
14001 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14002 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
14003 | case $host in | |
14004 | osf3*) | |
14005 | 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' | |
14006 | ;; | |
14007 | *) | |
14008 | 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' | |
14009 | ;; | |
14010 | esac | |
14011 | ||
14012 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
14013 | hardcode_libdir_separator_CXX=: | |
14014 | ||
14015 | # Commands to make compiler produce verbose output that lists | |
14016 | # what "hidden" libraries, object files and flags are used when | |
14017 | # linking a shared library. | |
14018 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14019 | ||
14020 | else | |
14021 | # FIXME: insert proper C++ library support | |
14022 | ld_shlibs_CXX=no | |
14023 | fi | |
14024 | ;; | |
14025 | esac | |
14026 | ;; | |
14027 | ||
14028 | psos*) | |
14029 | # FIXME: insert proper C++ library support | |
14030 | ld_shlibs_CXX=no | |
14031 | ;; | |
14032 | ||
14033 | sunos4*) | |
14034 | case $cc_basename in | |
14035 | CC*) | |
14036 | # Sun C++ 4.x | |
14037 | # FIXME: insert proper C++ library support | |
14038 | ld_shlibs_CXX=no | |
14039 | ;; | |
14040 | lcc*) | |
14041 | # Lucid | |
14042 | # FIXME: insert proper C++ library support | |
14043 | ld_shlibs_CXX=no | |
14044 | ;; | |
14045 | *) | |
14046 | # FIXME: insert proper C++ library support | |
14047 | ld_shlibs_CXX=no | |
14048 | ;; | |
14049 | esac | |
14050 | ;; | |
14051 | ||
14052 | solaris*) | |
14053 | case $cc_basename in | |
14054 | CC*) | |
14055 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14056 | archive_cmds_need_lc_CXX=yes | |
14057 | no_undefined_flag_CXX=' -zdefs' | |
14058 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
14059 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14060 | $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' | |
14061 | ||
14062 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
14063 | hardcode_shlibpath_var_CXX=no | |
14064 | case $host_os in | |
14065 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14066 | *) | |
14067 | # The compiler driver will combine and reorder linker options, | |
14068 | # but understands `-z linker_flag'. | |
14069 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14070 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
14071 | ;; | |
14072 | esac | |
14073 | link_all_deplibs_CXX=yes | |
14074 | ||
14075 | output_verbose_link_cmd='func_echo_all' | |
14076 | ||
14077 | # Archives containing C++ object files must be created using | |
14078 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
14079 | # necessary to make sure instantiated templates are included | |
14080 | # in the archive. | |
14081 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
14082 | ;; | |
14083 | gcx*) | |
14084 | # Green Hills C++ Compiler | |
14085 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14086 | ||
14087 | # The C++ compiler must be used to create the archive. | |
14088 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
14089 | ;; | |
14090 | *) | |
14091 | # GNU C++ compiler with Solaris linker | |
14092 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
14093 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
14094 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
14095 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14096 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14097 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14098 | ||
14099 | # Commands to make compiler produce verbose output that lists | |
14100 | # what "hidden" libraries, object files and flags are used when | |
14101 | # linking a shared library. | |
14102 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14103 | else | |
14104 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
14105 | # platform. | |
14106 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
14107 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
14108 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
14109 | ||
14110 | # Commands to make compiler produce verbose output that lists | |
14111 | # what "hidden" libraries, object files and flags are used when | |
14112 | # linking a shared library. | |
14113 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
14114 | fi | |
14115 | ||
14116 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
14117 | case $host_os in | |
14118 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
14119 | *) | |
14120 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
14121 | ;; | |
14122 | esac | |
14123 | fi | |
14124 | ;; | |
14125 | esac | |
14126 | ;; | |
14127 | ||
14128 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
14129 | no_undefined_flag_CXX='${wl}-z,text' | |
14130 | archive_cmds_need_lc_CXX=no | |
14131 | hardcode_shlibpath_var_CXX=no | |
14132 | runpath_var='LD_RUN_PATH' | |
14133 | ||
14134 | case $cc_basename in | |
14135 | CC*) | |
14136 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14137 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14138 | ;; | |
14139 | *) | |
14140 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14141 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14142 | ;; | |
14143 | esac | |
14144 | ;; | |
14145 | ||
14146 | sysv5* | sco3.2v5* | sco5v6*) | |
14147 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14148 | # link with -lc, and that would cause any symbols used from libc to | |
14149 | # always be unresolved, which means just about no library would | |
14150 | # ever link correctly. If we're not using GNU ld we use -z text | |
14151 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14152 | # as -z defs. | |
14153 | no_undefined_flag_CXX='${wl}-z,text' | |
14154 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
14155 | archive_cmds_need_lc_CXX=no | |
14156 | hardcode_shlibpath_var_CXX=no | |
14157 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
14158 | hardcode_libdir_separator_CXX=':' | |
14159 | link_all_deplibs_CXX=yes | |
14160 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
14161 | runpath_var='LD_RUN_PATH' | |
14162 | ||
14163 | case $cc_basename in | |
14164 | CC*) | |
14165 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14166 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14167 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
14168 | '"$old_archive_cmds_CXX" | |
14169 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
14170 | '"$reload_cmds_CXX" | |
14171 | ;; | |
14172 | *) | |
14173 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14174 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14175 | ;; | |
14176 | esac | |
14177 | ;; | |
14178 | ||
14179 | tandem*) | |
14180 | case $cc_basename in | |
14181 | NCC*) | |
14182 | # NonStop-UX NCC 3.20 | |
14183 | # FIXME: insert proper C++ library support | |
14184 | ld_shlibs_CXX=no | |
14185 | ;; | |
14186 | *) | |
14187 | # FIXME: insert proper C++ library support | |
14188 | ld_shlibs_CXX=no | |
14189 | ;; | |
14190 | esac | |
14191 | ;; | |
14192 | ||
14193 | vxworks*) | |
0ecd0f1c OH |
14194 | # For VxWorks ports, we assume the use of a GNU linker with |
14195 | # standard elf conventions. | |
14196 | ld_shlibs_CXX=yes | |
c915a581 JJ |
14197 | ;; |
14198 | ||
14199 | *) | |
14200 | # FIXME: insert proper C++ library support | |
14201 | ld_shlibs_CXX=no | |
14202 | ;; | |
14203 | esac | |
14204 | ||
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14206 | $as_echo "$ld_shlibs_CXX" >&6; } | |
14207 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14208 | ||
14209 | GCC_CXX="$GXX" | |
14210 | LD_CXX="$LD" | |
14211 | ||
14212 | ## CAVEAT EMPTOR: | |
14213 | ## There is no encapsulation within the following macros, do not change | |
14214 | ## the running order or otherwise move them around unless you know exactly | |
14215 | ## what you are doing... | |
14216 | # Dependencies to place before and after the object being linked: | |
14217 | predep_objects_CXX= | |
14218 | postdep_objects_CXX= | |
14219 | predeps_CXX= | |
14220 | postdeps_CXX= | |
14221 | compiler_lib_search_path_CXX= | |
14222 | ||
14223 | cat > conftest.$ac_ext <<_LT_EOF | |
14224 | class Foo | |
14225 | { | |
14226 | public: | |
14227 | Foo (void) { a = 0; } | |
14228 | private: | |
14229 | int a; | |
14230 | }; | |
14231 | _LT_EOF | |
14232 | ||
14233 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14234 | (eval $ac_compile) 2>&5 | |
14235 | ac_status=$? | |
14236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14237 | test $ac_status = 0; }; then | |
14238 | # Parse the compiler output and extract the necessary | |
14239 | # objects, libraries and library flags. | |
14240 | ||
14241 | # Sentinel used to keep track of whether or not we are before | |
14242 | # the conftest object file. | |
14243 | pre_test_object_deps_done=no | |
14244 | ||
14245 | for p in `eval "$output_verbose_link_cmd"`; do | |
14246 | case $p in | |
14247 | ||
14248 | -L* | -R* | -l*) | |
14249 | # Some compilers place space between "-{L,R}" and the path. | |
14250 | # Remove the space. | |
14251 | if test $p = "-L" || | |
14252 | test $p = "-R"; then | |
14253 | prev=$p | |
14254 | continue | |
14255 | else | |
14256 | prev= | |
14257 | fi | |
14258 | ||
14259 | if test "$pre_test_object_deps_done" = no; then | |
14260 | case $p in | |
14261 | -L* | -R*) | |
14262 | # Internal compiler library paths should come after those | |
14263 | # provided the user. The postdeps already come after the | |
14264 | # user supplied libs so there is no need to process them. | |
14265 | if test -z "$compiler_lib_search_path_CXX"; then | |
14266 | compiler_lib_search_path_CXX="${prev}${p}" | |
14267 | else | |
14268 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
14269 | fi | |
14270 | ;; | |
14271 | # The "-l" case would never come before the object being | |
14272 | # linked, so don't bother handling this case. | |
14273 | esac | |
14274 | else | |
14275 | if test -z "$postdeps_CXX"; then | |
14276 | postdeps_CXX="${prev}${p}" | |
14277 | else | |
14278 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
14279 | fi | |
14280 | fi | |
14281 | ;; | |
14282 | ||
14283 | *.$objext) | |
14284 | # This assumes that the test object file only shows up | |
14285 | # once in the compiler output. | |
14286 | if test "$p" = "conftest.$objext"; then | |
14287 | pre_test_object_deps_done=yes | |
14288 | continue | |
14289 | fi | |
14290 | ||
14291 | if test "$pre_test_object_deps_done" = no; then | |
14292 | if test -z "$predep_objects_CXX"; then | |
14293 | predep_objects_CXX="$p" | |
14294 | else | |
14295 | predep_objects_CXX="$predep_objects_CXX $p" | |
14296 | fi | |
14297 | else | |
14298 | if test -z "$postdep_objects_CXX"; then | |
14299 | postdep_objects_CXX="$p" | |
14300 | else | |
14301 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
14302 | fi | |
14303 | fi | |
14304 | ;; | |
14305 | ||
14306 | *) ;; # Ignore the rest. | |
14307 | ||
14308 | esac | |
14309 | done | |
14310 | ||
14311 | # Clean up. | |
14312 | rm -f a.out a.exe | |
14313 | else | |
14314 | echo "libtool.m4: error: problem compiling CXX test program" | |
14315 | fi | |
14316 | ||
14317 | $RM -f confest.$objext | |
14318 | ||
14319 | # PORTME: override above test on systems where it is broken | |
14320 | case $host_os in | |
14321 | interix[3-9]*) | |
14322 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
14323 | # hack all around it, let's just trust "g++" to DTRT. | |
14324 | predep_objects_CXX= | |
14325 | postdep_objects_CXX= | |
14326 | postdeps_CXX= | |
14327 | ;; | |
14328 | ||
14329 | linux*) | |
14330 | case `$CC -V 2>&1 | sed 5q` in | |
14331 | *Sun\ C*) | |
14332 | # Sun C++ 5.9 | |
14333 | ||
14334 | # The more standards-conforming stlport4 library is | |
14335 | # incompatible with the Cstd library. Avoid specifying | |
14336 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14337 | # -library=stlport4 depends on it. | |
14338 | case " $CXX $CXXFLAGS " in | |
14339 | *" -library=stlport4 "*) | |
14340 | solaris_use_stlport4=yes | |
14341 | ;; | |
14342 | esac | |
14343 | ||
14344 | if test "$solaris_use_stlport4" != yes; then | |
14345 | postdeps_CXX='-library=Cstd -library=Crun' | |
14346 | fi | |
14347 | ;; | |
14348 | esac | |
14349 | ;; | |
14350 | ||
14351 | solaris*) | |
14352 | case $cc_basename in | |
14353 | CC*) | |
14354 | # The more standards-conforming stlport4 library is | |
14355 | # incompatible with the Cstd library. Avoid specifying | |
14356 | # it if it's in CXXFLAGS. Ignore libCrun as | |
14357 | # -library=stlport4 depends on it. | |
14358 | case " $CXX $CXXFLAGS " in | |
14359 | *" -library=stlport4 "*) | |
14360 | solaris_use_stlport4=yes | |
14361 | ;; | |
14362 | esac | |
14363 | ||
14364 | # Adding this requires a known-good setup of shared libraries for | |
14365 | # Sun compiler versions before 5.6, else PIC objects from an old | |
14366 | # archive will be linked into the output, leading to subtle bugs. | |
14367 | if test "$solaris_use_stlport4" != yes; then | |
14368 | postdeps_CXX='-library=Cstd -library=Crun' | |
14369 | fi | |
14370 | ;; | |
14371 | esac | |
14372 | ;; | |
14373 | esac | |
14374 | ||
14375 | ||
14376 | case " $postdeps_CXX " in | |
14377 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
14378 | esac | |
14379 | compiler_lib_search_dirs_CXX= | |
14380 | if test -n "${compiler_lib_search_path_CXX}"; then | |
14381 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
14382 | fi | |
14383 | ||
14384 | ||
14385 | ||
14386 | ||
14387 | ||
14388 | ||
14389 | ||
14390 | ||
14391 | ||
14392 | ||
14393 | ||
14394 | ||
14395 | ||
14396 | ||
14397 | ||
14398 | ||
14399 | ||
14400 | ||
14401 | ||
14402 | ||
14403 | ||
14404 | ||
14405 | ||
14406 | ||
14407 | ||
14408 | ||
14409 | ||
14410 | ||
14411 | ||
14412 | ||
14413 | ||
14414 | lt_prog_compiler_wl_CXX= | |
14415 | lt_prog_compiler_pic_CXX= | |
14416 | lt_prog_compiler_static_CXX= | |
14417 | ||
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
14419 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14420 | ||
14421 | # C++ specific cases for pic, static, wl, etc. | |
14422 | if test "$GXX" = yes; then | |
14423 | lt_prog_compiler_wl_CXX='-Wl,' | |
14424 | lt_prog_compiler_static_CXX='-static' | |
f35db108 WM |
14425 | |
14426 | case $host_os in | |
14427 | aix*) | |
14428 | # All AIX code is PIC. | |
14429 | if test "$host_cpu" = ia64; then | |
14430 | # AIX 5 now supports IA64 processor | |
14431 | lt_prog_compiler_static_CXX='-Bstatic' | |
14432 | fi | |
a2479b3d | 14433 | lt_prog_compiler_pic_CXX='-fPIC' |
f35db108 WM |
14434 | ;; |
14435 | ||
c915a581 JJ |
14436 | amigaos*) |
14437 | case $host_cpu in | |
14438 | powerpc) | |
14439 | # see comment about AmigaOS4 .so support | |
14440 | lt_prog_compiler_pic_CXX='-fPIC' | |
14441 | ;; | |
14442 | m68k) | |
14443 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14444 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14445 | # like `-m68040'. | |
14446 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
14447 | ;; | |
14448 | esac | |
14449 | ;; | |
14450 | ||
14451 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14452 | # PIC is the default for these OSes. | |
14453 | ;; | |
14454 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
14455 | # This hack is so that the source file can tell whether it is being | |
14456 | # built for inclusion in a dll (and should export symbols for example). | |
14457 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
14458 | # (--disable-auto-import) libraries | |
14459 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
14460 | ;; | |
14461 | darwin* | rhapsody*) | |
14462 | # PIC is the default on this platform | |
14463 | # Common symbols not allowed in MH_DYLIB files | |
14464 | lt_prog_compiler_pic_CXX='-fno-common' | |
14465 | ;; | |
14466 | *djgpp*) | |
14467 | # DJGPP does not support shared libraries at all | |
14468 | lt_prog_compiler_pic_CXX= | |
14469 | ;; | |
14470 | haiku*) | |
14471 | # PIC is the default for Haiku. | |
14472 | # The "-static" flag exists, but is broken. | |
14473 | lt_prog_compiler_static_CXX= | |
14474 | ;; | |
14475 | interix[3-9]*) | |
14476 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
14477 | # Instead, we relocate shared libraries at runtime. | |
14478 | ;; | |
14479 | sysv4*MP*) | |
14480 | if test -d /usr/nec; then | |
14481 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
14482 | fi | |
14483 | ;; | |
14484 | hpux*) | |
14485 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
14486 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
14487 | # sets the default TLS model and affects inlining. | |
14488 | case $host_cpu in | |
14489 | hppa*64*) | |
14490 | ;; | |
14491 | *) | |
14492 | lt_prog_compiler_pic_CXX='-fPIC' | |
14493 | ;; | |
14494 | esac | |
14495 | ;; | |
14496 | *qnx* | *nto*) | |
14497 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14498 | # it will coredump. | |
14499 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14500 | ;; | |
14501 | *) | |
14502 | lt_prog_compiler_pic_CXX='-fPIC' | |
14503 | ;; | |
14504 | esac | |
14505 | else | |
14506 | case $host_os in | |
14507 | aix[4-9]*) | |
14508 | # All AIX code is PIC. | |
14509 | if test "$host_cpu" = ia64; then | |
14510 | # AIX 5 now supports IA64 processor | |
14511 | lt_prog_compiler_static_CXX='-Bstatic' | |
14512 | else | |
14513 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14514 | fi | |
14515 | ;; | |
14516 | chorus*) | |
14517 | case $cc_basename in | |
14518 | cxch68*) | |
14519 | # Green Hills C++ Compiler | |
14520 | # _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" | |
14521 | ;; | |
14522 | esac | |
14523 | ;; | |
14524 | dgux*) | |
14525 | case $cc_basename in | |
14526 | ec++*) | |
14527 | lt_prog_compiler_pic_CXX='-KPIC' | |
14528 | ;; | |
14529 | ghcx*) | |
14530 | # Green Hills C++ Compiler | |
14531 | lt_prog_compiler_pic_CXX='-pic' | |
14532 | ;; | |
14533 | *) | |
14534 | ;; | |
14535 | esac | |
14536 | ;; | |
14537 | freebsd* | dragonfly*) | |
14538 | # FreeBSD uses GNU C++ | |
14539 | ;; | |
14540 | hpux9* | hpux10* | hpux11*) | |
14541 | case $cc_basename in | |
14542 | CC*) | |
14543 | lt_prog_compiler_wl_CXX='-Wl,' | |
14544 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14545 | if test "$host_cpu" != ia64; then | |
14546 | lt_prog_compiler_pic_CXX='+Z' | |
14547 | fi | |
14548 | ;; | |
14549 | aCC*) | |
14550 | lt_prog_compiler_wl_CXX='-Wl,' | |
14551 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14552 | case $host_cpu in | |
14553 | hppa*64*|ia64*) | |
14554 | # +Z the default | |
14555 | ;; | |
14556 | *) | |
14557 | lt_prog_compiler_pic_CXX='+Z' | |
14558 | ;; | |
14559 | esac | |
14560 | ;; | |
14561 | *) | |
14562 | ;; | |
14563 | esac | |
14564 | ;; | |
14565 | interix*) | |
14566 | # This is c89, which is MS Visual C++ (no shared libs) | |
14567 | # Anyone wants to do a port? | |
14568 | ;; | |
14569 | irix5* | irix6* | nonstopux*) | |
14570 | case $cc_basename in | |
14571 | CC*) | |
14572 | lt_prog_compiler_wl_CXX='-Wl,' | |
14573 | lt_prog_compiler_static_CXX='-non_shared' | |
14574 | # CC pic flag -KPIC is the default. | |
14575 | ;; | |
14576 | *) | |
14577 | ;; | |
14578 | esac | |
14579 | ;; | |
14580 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14581 | case $cc_basename in | |
14582 | KCC*) | |
14583 | # KAI C++ Compiler | |
14584 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14585 | lt_prog_compiler_pic_CXX='-fPIC' | |
14586 | ;; | |
14587 | ecpc* ) | |
14588 | # old Intel C++ for x86_64 which still supported -KPIC. | |
14589 | lt_prog_compiler_wl_CXX='-Wl,' | |
14590 | lt_prog_compiler_pic_CXX='-KPIC' | |
14591 | lt_prog_compiler_static_CXX='-static' | |
14592 | ;; | |
14593 | icpc* ) | |
14594 | # Intel C++, used to be incompatible with GCC. | |
14595 | # ICC 10 doesn't accept -KPIC any more. | |
14596 | lt_prog_compiler_wl_CXX='-Wl,' | |
14597 | lt_prog_compiler_pic_CXX='-fPIC' | |
14598 | lt_prog_compiler_static_CXX='-static' | |
14599 | ;; | |
14600 | pgCC* | pgcpp*) | |
14601 | # Portland Group C++ compiler | |
14602 | lt_prog_compiler_wl_CXX='-Wl,' | |
14603 | lt_prog_compiler_pic_CXX='-fpic' | |
14604 | lt_prog_compiler_static_CXX='-Bstatic' | |
14605 | ;; | |
14606 | cxx*) | |
14607 | # Compaq C++ | |
14608 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14609 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14610 | lt_prog_compiler_pic_CXX= | |
14611 | lt_prog_compiler_static_CXX='-non_shared' | |
14612 | ;; | |
14613 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14614 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14615 | lt_prog_compiler_wl_CXX='-Wl,' | |
14616 | lt_prog_compiler_pic_CXX='-qpic' | |
14617 | lt_prog_compiler_static_CXX='-qstaticlink' | |
14618 | ;; | |
14619 | *) | |
14620 | case `$CC -V 2>&1 | sed 5q` in | |
14621 | *Sun\ C*) | |
14622 | # Sun C++ 5.9 | |
14623 | lt_prog_compiler_pic_CXX='-KPIC' | |
14624 | lt_prog_compiler_static_CXX='-Bstatic' | |
14625 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14626 | ;; | |
14627 | esac | |
14628 | ;; | |
14629 | esac | |
14630 | ;; | |
14631 | lynxos*) | |
14632 | ;; | |
14633 | m88k*) | |
14634 | ;; | |
14635 | mvs*) | |
14636 | case $cc_basename in | |
14637 | cxx*) | |
14638 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14639 | ;; | |
14640 | *) | |
14641 | ;; | |
14642 | esac | |
14643 | ;; | |
14644 | netbsd*) | |
14645 | ;; | |
14646 | *qnx* | *nto*) | |
14647 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14648 | # it will coredump. | |
14649 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14650 | ;; | |
14651 | osf3* | osf4* | osf5*) | |
14652 | case $cc_basename in | |
14653 | KCC*) | |
14654 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14655 | ;; | |
14656 | RCC*) | |
14657 | # Rational C++ 2.4.1 | |
14658 | lt_prog_compiler_pic_CXX='-pic' | |
14659 | ;; | |
14660 | cxx*) | |
14661 | # Digital/Compaq C++ | |
14662 | lt_prog_compiler_wl_CXX='-Wl,' | |
14663 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14664 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14665 | lt_prog_compiler_pic_CXX= | |
14666 | lt_prog_compiler_static_CXX='-non_shared' | |
14667 | ;; | |
14668 | *) | |
14669 | ;; | |
14670 | esac | |
14671 | ;; | |
14672 | psos*) | |
14673 | ;; | |
14674 | solaris*) | |
14675 | case $cc_basename in | |
14676 | CC*) | |
14677 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14678 | lt_prog_compiler_pic_CXX='-KPIC' | |
14679 | lt_prog_compiler_static_CXX='-Bstatic' | |
14680 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14681 | ;; | |
14682 | gcx*) | |
14683 | # Green Hills C++ Compiler | |
14684 | lt_prog_compiler_pic_CXX='-PIC' | |
14685 | ;; | |
14686 | *) | |
14687 | ;; | |
14688 | esac | |
14689 | ;; | |
14690 | sunos4*) | |
14691 | case $cc_basename in | |
14692 | CC*) | |
14693 | # Sun C++ 4.x | |
14694 | lt_prog_compiler_pic_CXX='-pic' | |
14695 | lt_prog_compiler_static_CXX='-Bstatic' | |
14696 | ;; | |
14697 | lcc*) | |
14698 | # Lucid | |
14699 | lt_prog_compiler_pic_CXX='-pic' | |
14700 | ;; | |
14701 | *) | |
14702 | ;; | |
14703 | esac | |
14704 | ;; | |
14705 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14706 | case $cc_basename in | |
14707 | CC*) | |
14708 | lt_prog_compiler_wl_CXX='-Wl,' | |
14709 | lt_prog_compiler_pic_CXX='-KPIC' | |
14710 | lt_prog_compiler_static_CXX='-Bstatic' | |
14711 | ;; | |
14712 | esac | |
14713 | ;; | |
14714 | tandem*) | |
14715 | case $cc_basename in | |
14716 | NCC*) | |
14717 | # NonStop-UX NCC 3.20 | |
14718 | lt_prog_compiler_pic_CXX='-KPIC' | |
14719 | ;; | |
14720 | *) | |
14721 | ;; | |
14722 | esac | |
14723 | ;; | |
14724 | vxworks*) | |
14725 | ;; | |
14726 | *) | |
14727 | lt_prog_compiler_can_build_shared_CXX=no | |
14728 | ;; | |
14729 | esac | |
14730 | fi | |
14731 | ||
14732 | case $host_os in | |
14733 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14734 | *djgpp*) | |
14735 | lt_prog_compiler_pic_CXX= | |
14736 | ;; | |
14737 | *) | |
14738 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14739 | ;; | |
14740 | esac | |
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 | |
14742 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } | |
14743 | ||
14744 | ||
14745 | ||
14746 | # | |
14747 | # Check to make sure the PIC flag actually works. | |
14748 | # | |
14749 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14751 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
22e05272 | 14752 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
c915a581 JJ |
14753 | $as_echo_n "(cached) " >&6 |
14754 | else | |
14755 | lt_cv_prog_compiler_pic_works_CXX=no | |
14756 | ac_outfile=conftest.$ac_objext | |
14757 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14758 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14759 | # Insert the option either (1) after the last *FLAGS variable, or | |
14760 | # (2) before a word containing "conftest.", or (3) at the end. | |
14761 | # Note that $ac_compile itself does not contain backslashes and begins | |
14762 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14763 | # The option is referenced via a variable to avoid confusing sed. | |
14764 | lt_compile=`echo "$ac_compile" | $SED \ | |
14765 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14766 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14767 | -e 's:$: $lt_compiler_flag:'` | |
14768 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14769 | (eval "$lt_compile" 2>conftest.err) | |
14770 | ac_status=$? | |
14771 | cat conftest.err >&5 | |
14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14773 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14774 | # The compiler can only warn and ignore the option if not recognized | |
14775 | # So say no if there are warnings other than the usual output. | |
14776 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14777 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14778 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14779 | lt_cv_prog_compiler_pic_works_CXX=yes | |
14780 | fi | |
14781 | fi | |
14782 | $RM conftest* | |
14783 | ||
14784 | fi | |
14785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14786 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14787 | ||
14788 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14789 | case $lt_prog_compiler_pic_CXX in | |
14790 | "" | " "*) ;; | |
14791 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14792 | esac | |
14793 | else | |
14794 | lt_prog_compiler_pic_CXX= | |
14795 | lt_prog_compiler_can_build_shared_CXX=no | |
14796 | fi | |
14797 | ||
14798 | fi | |
14799 | ||
14800 | ||
14801 | ||
14802 | # | |
14803 | # Check to make sure the static flag actually works. | |
14804 | # | |
14805 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14807 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 14808 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
c915a581 JJ |
14809 | $as_echo_n "(cached) " >&6 |
14810 | else | |
14811 | lt_cv_prog_compiler_static_works_CXX=no | |
14812 | save_LDFLAGS="$LDFLAGS" | |
14813 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14814 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14815 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14816 | # The linker can only warn and ignore the option if not recognized | |
14817 | # So say no if there are warnings | |
14818 | if test -s conftest.err; then | |
14819 | # Append any errors to the config.log. | |
14820 | cat conftest.err 1>&5 | |
14821 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14822 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14823 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14824 | lt_cv_prog_compiler_static_works_CXX=yes | |
14825 | fi | |
14826 | else | |
14827 | lt_cv_prog_compiler_static_works_CXX=yes | |
14828 | fi | |
14829 | fi | |
14830 | $RM -r conftest* | |
14831 | LDFLAGS="$save_LDFLAGS" | |
14832 | ||
14833 | fi | |
14834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14835 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14836 | ||
14837 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14838 | : | |
14839 | else | |
14840 | lt_prog_compiler_static_CXX= | |
14841 | fi | |
14842 | ||
14843 | ||
14844 | ||
14845 | ||
14846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14847 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14848 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
c915a581 JJ |
14849 | $as_echo_n "(cached) " >&6 |
14850 | else | |
14851 | lt_cv_prog_compiler_c_o_CXX=no | |
14852 | $RM -r conftest 2>/dev/null | |
14853 | mkdir conftest | |
14854 | cd conftest | |
14855 | mkdir out | |
14856 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14857 | ||
14858 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14859 | # Insert the option either (1) after the last *FLAGS variable, or | |
14860 | # (2) before a word containing "conftest.", or (3) at the end. | |
14861 | # Note that $ac_compile itself does not contain backslashes and begins | |
14862 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14863 | lt_compile=`echo "$ac_compile" | $SED \ | |
14864 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14865 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14866 | -e 's:$: $lt_compiler_flag:'` | |
14867 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14868 | (eval "$lt_compile" 2>out/conftest.err) | |
14869 | ac_status=$? | |
14870 | cat out/conftest.err >&5 | |
14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14872 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14873 | then | |
14874 | # The compiler can only warn and ignore the option if not recognized | |
14875 | # So say no if there are warnings | |
14876 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14877 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14878 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14879 | lt_cv_prog_compiler_c_o_CXX=yes | |
14880 | fi | |
14881 | fi | |
14882 | chmod u+w . 2>&5 | |
14883 | $RM conftest* | |
14884 | # SGI C++ compiler will create directory out/ii_files/ for | |
14885 | # template instantiation | |
14886 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14887 | $RM out/* && rmdir out | |
14888 | cd .. | |
14889 | $RM -r conftest | |
14890 | $RM conftest* | |
14891 | ||
14892 | fi | |
14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14894 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14895 | ||
14896 | ||
14897 | ||
14898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14899 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 14900 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
c915a581 JJ |
14901 | $as_echo_n "(cached) " >&6 |
14902 | else | |
14903 | lt_cv_prog_compiler_c_o_CXX=no | |
14904 | $RM -r conftest 2>/dev/null | |
14905 | mkdir conftest | |
14906 | cd conftest | |
14907 | mkdir out | |
14908 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14909 | ||
14910 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14911 | # Insert the option either (1) after the last *FLAGS variable, or | |
14912 | # (2) before a word containing "conftest.", or (3) at the end. | |
14913 | # Note that $ac_compile itself does not contain backslashes and begins | |
14914 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14915 | lt_compile=`echo "$ac_compile" | $SED \ | |
14916 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14917 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14918 | -e 's:$: $lt_compiler_flag:'` | |
14919 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14920 | (eval "$lt_compile" 2>out/conftest.err) | |
14921 | ac_status=$? | |
14922 | cat out/conftest.err >&5 | |
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14924 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14925 | then | |
14926 | # The compiler can only warn and ignore the option if not recognized | |
14927 | # So say no if there are warnings | |
14928 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14929 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14930 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14931 | lt_cv_prog_compiler_c_o_CXX=yes | |
14932 | fi | |
14933 | fi | |
14934 | chmod u+w . 2>&5 | |
14935 | $RM conftest* | |
14936 | # SGI C++ compiler will create directory out/ii_files/ for | |
14937 | # template instantiation | |
14938 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14939 | $RM out/* && rmdir out | |
14940 | cd .. | |
14941 | $RM -r conftest | |
14942 | $RM conftest* | |
14943 | ||
14944 | fi | |
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14946 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14947 | ||
14948 | ||
14949 | ||
14950 | ||
14951 | hard_links="nottested" | |
14952 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14953 | # do not overwrite the value of need_locks provided by the user | |
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14955 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14956 | hard_links=yes | |
14957 | $RM conftest* | |
14958 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14959 | touch conftest.a | |
14960 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14961 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14963 | $as_echo "$hard_links" >&6; } | |
14964 | if test "$hard_links" = no; then | |
14965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14966 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14967 | need_locks=warn | |
14968 | fi | |
14969 | else | |
14970 | need_locks=no | |
14971 | fi | |
14972 | ||
14973 | ||
14974 | ||
14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14976 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14977 | ||
14978 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14979 | case $host_os in | |
14980 | aix[4-9]*) | |
14981 | # If we're using GNU nm, then we don't want the "-C" option. | |
14982 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14983 | # Also, AIX nm treats weak defined symbols like other global defined | |
14984 | # symbols, whereas GNU nm marks them as "W". | |
14985 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14986 | 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' | |
14987 | else | |
bf93d543 | 14988 | 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 |
14989 | fi |
14990 | ;; | |
14991 | pw32*) | |
14992 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14993 | ;; | |
14994 | cygwin* | mingw* | cegcc*) | |
14995 | 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' | |
14996 | ;; | |
14997 | *) | |
14998 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14999 | ;; | |
15000 | esac | |
15001 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
15002 | ||
15003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
15004 | $as_echo "$ld_shlibs_CXX" >&6; } | |
15005 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
15006 | ||
15007 | with_gnu_ld_CXX=$with_gnu_ld | |
15008 | ||
15009 | ||
15010 | ||
15011 | ||
15012 | ||
15013 | ||
15014 | # | |
15015 | # Do we need to explicitly link libc? | |
15016 | # | |
15017 | case "x$archive_cmds_need_lc_CXX" in | |
15018 | x|xyes) | |
15019 | # Assume -lc should be added | |
15020 | archive_cmds_need_lc_CXX=yes | |
15021 | ||
15022 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15023 | case $archive_cmds_CXX in | |
15024 | *'~'*) | |
15025 | # FIXME: we may have to deal with multi-command sequences. | |
15026 | ;; | |
15027 | '$CC '*) | |
15028 | # Test whether the compiler implicitly links with -lc since on some | |
15029 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15030 | # to ld, don't add -lc before -lgcc. | |
15031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
15032 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 15033 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
c915a581 JJ |
15034 | $as_echo_n "(cached) " >&6 |
15035 | else | |
15036 | $RM conftest* | |
15037 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15038 | ||
15039 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
15040 | (eval $ac_compile) 2>&5 | |
15041 | ac_status=$? | |
15042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15043 | test $ac_status = 0; } 2>conftest.err; then | |
15044 | soname=conftest | |
15045 | lib=conftest | |
15046 | libobjs=conftest.$ac_objext | |
15047 | deplibs= | |
15048 | wl=$lt_prog_compiler_wl_CXX | |
15049 | pic_flag=$lt_prog_compiler_pic_CXX | |
15050 | compiler_flags=-v | |
15051 | linker_flags=-v | |
15052 | verstring= | |
15053 | output_objdir=. | |
15054 | libname=conftest | |
15055 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
15056 | allow_undefined_flag_CXX= | |
15057 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
15058 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15059 | ac_status=$? | |
15060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15061 | test $ac_status = 0; } | |
15062 | then | |
15063 | lt_cv_archive_cmds_need_lc_CXX=no | |
15064 | else | |
15065 | lt_cv_archive_cmds_need_lc_CXX=yes | |
15066 | fi | |
15067 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
15068 | else | |
15069 | cat conftest.err 1>&5 | |
15070 | fi | |
15071 | $RM conftest* | |
15072 | ||
15073 | fi | |
15074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
15075 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
15076 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
15077 | ;; | |
15078 | esac | |
15079 | fi | |
15080 | ;; | |
15081 | esac | |
15082 | ||
f35db108 | 15083 | |
c915a581 JJ |
15084 | |
15085 | ||
15086 | ||
15087 | ||
15088 | ||
15089 | ||
15090 | ||
15091 | ||
15092 | ||
15093 | ||
15094 | ||
15095 | ||
15096 | ||
15097 | ||
15098 | ||
15099 | ||
15100 | ||
15101 | ||
15102 | ||
15103 | ||
15104 | ||
15105 | ||
15106 | ||
15107 | ||
15108 | ||
15109 | ||
15110 | ||
15111 | ||
15112 | ||
15113 | ||
15114 | ||
15115 | ||
15116 | ||
15117 | ||
15118 | ||
15119 | ||
15120 | ||
15121 | ||
15122 | ||
15123 | ||
15124 | ||
15125 | ||
15126 | ||
15127 | ||
15128 | ||
15129 | ||
15130 | ||
15131 | ||
15132 | ||
15133 | ||
15134 | ||
15135 | ||
15136 | ||
15137 | ||
15138 | ||
15139 | ||
15140 | ||
15141 | ||
15142 | ||
15143 | ||
15144 | ||
15145 | ||
15146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
15147 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
15148 | ||
15149 | library_names_spec= | |
15150 | libname_spec='lib$name' | |
15151 | soname_spec= | |
15152 | shrext_cmds=".so" | |
15153 | postinstall_cmds= | |
15154 | postuninstall_cmds= | |
15155 | finish_cmds= | |
15156 | finish_eval= | |
15157 | shlibpath_var= | |
15158 | shlibpath_overrides_runpath=unknown | |
15159 | version_type=none | |
15160 | dynamic_linker="$host_os ld.so" | |
15161 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15162 | need_lib_prefix=unknown | |
15163 | hardcode_into_libs=no | |
15164 | ||
15165 | # when you set need_version to no, make sure it does not cause -set_version | |
15166 | # flags to be left without arguments | |
15167 | need_version=unknown | |
15168 | ||
15169 | case $host_os in | |
15170 | aix3*) | |
15171 | version_type=linux | |
15172 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15173 | shlibpath_var=LIBPATH | |
15174 | ||
15175 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15176 | soname_spec='${libname}${release}${shared_ext}$major' | |
15177 | ;; | |
15178 | ||
15179 | aix[4-9]*) | |
15180 | version_type=linux | |
15181 | need_lib_prefix=no | |
15182 | need_version=no | |
15183 | hardcode_into_libs=yes | |
15184 | if test "$host_cpu" = ia64; then | |
15185 | # AIX 5 supports IA64 | |
15186 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15187 | shlibpath_var=LD_LIBRARY_PATH | |
15188 | else | |
15189 | # With GCC up to 2.95.x, collect2 would create an import file | |
15190 | # for dependence libraries. The import file would start with | |
15191 | # the line `#! .'. This would cause the generated library to | |
15192 | # depend on `.', always an invalid library. This was fixed in | |
15193 | # development snapshots of GCC prior to 3.0. | |
15194 | case $host_os in | |
15195 | aix4 | aix4.[01] | aix4.[01].*) | |
15196 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15197 | echo ' yes ' | |
15198 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
15199 | : | |
15200 | else | |
15201 | can_build_shared=no | |
f35db108 WM |
15202 | fi |
15203 | ;; | |
c915a581 JJ |
15204 | esac |
15205 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15206 | # soname into executable. Probably we can add versioning support to | |
15207 | # collect2, so additional links can be useful in future. | |
15208 | if test "$aix_use_runtimelinking" = yes; then | |
15209 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15210 | # instead of lib<name>.a to let people know that these are not | |
15211 | # typical AIX shared libraries. | |
15212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15213 | else | |
15214 | # We preserve .a as extension for shared libraries through AIX4.2 | |
15215 | # and later when we are not doing run time linking. | |
15216 | library_names_spec='${libname}${release}.a $libname.a' | |
15217 | soname_spec='${libname}${release}${shared_ext}$major' | |
15218 | fi | |
15219 | shlibpath_var=LIBPATH | |
15220 | fi | |
15221 | ;; | |
15222 | ||
15223 | amigaos*) | |
15224 | case $host_cpu in | |
15225 | powerpc) | |
15226 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
15227 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
15228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15229 | ;; | |
15230 | m68k) | |
15231 | library_names_spec='$libname.ixlibrary $libname.a' | |
15232 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15233 | 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' | |
15234 | ;; | |
15235 | esac | |
15236 | ;; | |
15237 | ||
15238 | beos*) | |
15239 | library_names_spec='${libname}${shared_ext}' | |
15240 | dynamic_linker="$host_os ld.so" | |
15241 | shlibpath_var=LIBRARY_PATH | |
15242 | ;; | |
15243 | ||
15244 | bsdi[45]*) | |
15245 | version_type=linux | |
15246 | need_version=no | |
15247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15248 | soname_spec='${libname}${release}${shared_ext}$major' | |
15249 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15250 | shlibpath_var=LD_LIBRARY_PATH | |
15251 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15252 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15253 | # the default ld.so.conf also contains /usr/contrib/lib and | |
15254 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15255 | # libtool to hard-code these into programs | |
15256 | ;; | |
15257 | ||
15258 | cygwin* | mingw* | pw32* | cegcc*) | |
15259 | version_type=windows | |
15260 | shrext_cmds=".dll" | |
15261 | need_version=no | |
15262 | need_lib_prefix=no | |
15263 | ||
15264 | case $GCC,$host_os in | |
15265 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
15266 | library_names_spec='$libname.dll.a' | |
15267 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15268 | postinstall_cmds='base_file=`basename \${file}`~ | |
15269 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
15270 | dldir=$destdir/`dirname \$dlpath`~ | |
15271 | test -d \$dldir || mkdir -p \$dldir~ | |
15272 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
15273 | chmod a+x \$dldir/$dlname~ | |
15274 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
15275 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
15276 | fi' | |
15277 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15278 | dlpath=$dir/\$dldll~ | |
15279 | $RM \$dlpath' | |
15280 | shlibpath_overrides_runpath=yes | |
15281 | ||
15282 | case $host_os in | |
15283 | cygwin*) | |
15284 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15285 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15286 | ||
f35db108 | 15287 | ;; |
c915a581 JJ |
15288 | mingw* | cegcc*) |
15289 | # MinGW DLLs use traditional 'lib' prefix | |
15290 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 | 15291 | ;; |
c915a581 JJ |
15292 | pw32*) |
15293 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15294 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
f35db108 WM |
15295 | ;; |
15296 | esac | |
c915a581 JJ |
15297 | ;; |
15298 | ||
15299 | *) | |
15300 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15301 | ;; | |
15302 | esac | |
15303 | dynamic_linker='Win32 ld.exe' | |
15304 | # FIXME: first we should search . and the directory the executable is in | |
15305 | shlibpath_var=PATH | |
15306 | ;; | |
15307 | ||
15308 | darwin* | rhapsody*) | |
15309 | dynamic_linker="$host_os dyld" | |
15310 | version_type=darwin | |
15311 | need_lib_prefix=no | |
15312 | need_version=no | |
15313 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15314 | soname_spec='${libname}${release}${major}$shared_ext' | |
15315 | shlibpath_overrides_runpath=yes | |
15316 | shlibpath_var=DYLD_LIBRARY_PATH | |
15317 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15318 | ||
15319 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15320 | ;; | |
15321 | ||
15322 | dgux*) | |
15323 | version_type=linux | |
15324 | need_lib_prefix=no | |
15325 | need_version=no | |
15326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15327 | soname_spec='${libname}${release}${shared_ext}$major' | |
15328 | shlibpath_var=LD_LIBRARY_PATH | |
15329 | ;; | |
15330 | ||
15331 | freebsd* | dragonfly*) | |
15332 | # DragonFly does not have aout. When/if they implement a new | |
15333 | # versioning mechanism, adjust this. | |
15334 | if test -x /usr/bin/objformat; then | |
15335 | objformat=`/usr/bin/objformat` | |
15336 | else | |
15337 | case $host_os in | |
15338 | freebsd[23].*) objformat=aout ;; | |
15339 | *) objformat=elf ;; | |
f35db108 WM |
15340 | esac |
15341 | fi | |
c915a581 JJ |
15342 | version_type=freebsd-$objformat |
15343 | case $version_type in | |
15344 | freebsd-elf*) | |
15345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15346 | need_version=no | |
15347 | need_lib_prefix=no | |
15348 | ;; | |
15349 | freebsd-*) | |
15350 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15351 | need_version=yes | |
15352 | ;; | |
15353 | esac | |
15354 | shlibpath_var=LD_LIBRARY_PATH | |
15355 | case $host_os in | |
15356 | freebsd2.*) | |
15357 | shlibpath_overrides_runpath=yes | |
15358 | ;; | |
15359 | freebsd3.[01]* | freebsdelf3.[01]*) | |
15360 | shlibpath_overrides_runpath=yes | |
15361 | hardcode_into_libs=yes | |
15362 | ;; | |
15363 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15364 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15365 | shlibpath_overrides_runpath=no | |
15366 | hardcode_into_libs=yes | |
15367 | ;; | |
15368 | *) # from 4.6 on, and DragonFly | |
15369 | shlibpath_overrides_runpath=yes | |
15370 | hardcode_into_libs=yes | |
15371 | ;; | |
15372 | esac | |
15373 | ;; | |
f35db108 | 15374 | |
c915a581 JJ |
15375 | haiku*) |
15376 | version_type=linux | |
15377 | need_lib_prefix=no | |
15378 | need_version=no | |
15379 | dynamic_linker="$host_os runtime_loader" | |
15380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15381 | soname_spec='${libname}${release}${shared_ext}$major' | |
15382 | shlibpath_var=LIBRARY_PATH | |
15383 | shlibpath_overrides_runpath=yes | |
ead5103c | 15384 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
c915a581 JJ |
15385 | hardcode_into_libs=yes |
15386 | ;; | |
15387 | ||
15388 | hpux9* | hpux10* | hpux11*) | |
15389 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15390 | # link against other versions. | |
15391 | version_type=sunos | |
15392 | need_lib_prefix=no | |
15393 | need_version=no | |
15394 | case $host_cpu in | |
15395 | ia64*) | |
15396 | shrext_cmds='.so' | |
15397 | hardcode_into_libs=yes | |
15398 | dynamic_linker="$host_os dld.so" | |
15399 | shlibpath_var=LD_LIBRARY_PATH | |
15400 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15402 | soname_spec='${libname}${release}${shared_ext}$major' | |
15403 | if test "X$HPUX_IA64_MODE" = X32; then | |
15404 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15405 | else | |
15406 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15407 | fi | |
15408 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15409 | ;; | |
15410 | hppa*64*) | |
15411 | shrext_cmds='.sl' | |
15412 | hardcode_into_libs=yes | |
15413 | dynamic_linker="$host_os dld.sl" | |
15414 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15415 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15417 | soname_spec='${libname}${release}${shared_ext}$major' | |
15418 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15419 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
f35db108 WM |
15420 | ;; |
15421 | *) | |
c915a581 JJ |
15422 | shrext_cmds='.sl' |
15423 | dynamic_linker="$host_os dld.sl" | |
15424 | shlibpath_var=SHLIB_PATH | |
15425 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15427 | soname_spec='${libname}${release}${shared_ext}$major' | |
f35db108 | 15428 | ;; |
c915a581 JJ |
15429 | esac |
15430 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
15431 | postinstall_cmds='chmod 555 $lib' | |
15432 | # or fails outright, so override atomically: | |
15433 | install_override_mode=555 | |
15434 | ;; | |
a2479b3d | 15435 | |
c915a581 JJ |
15436 | interix[3-9]*) |
15437 | version_type=linux | |
15438 | need_lib_prefix=no | |
15439 | need_version=no | |
15440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15441 | soname_spec='${libname}${release}${shared_ext}$major' | |
15442 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15443 | shlibpath_var=LD_LIBRARY_PATH | |
15444 | shlibpath_overrides_runpath=no | |
15445 | hardcode_into_libs=yes | |
15446 | ;; | |
f35db108 | 15447 | |
c915a581 JJ |
15448 | irix5* | irix6* | nonstopux*) |
15449 | case $host_os in | |
15450 | nonstopux*) version_type=nonstopux ;; | |
15451 | *) | |
15452 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15453 | version_type=linux | |
15454 | else | |
15455 | version_type=irix | |
15456 | fi ;; | |
15457 | esac | |
15458 | need_lib_prefix=no | |
15459 | need_version=no | |
15460 | soname_spec='${libname}${release}${shared_ext}$major' | |
15461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15462 | case $host_os in | |
15463 | irix5* | nonstopux*) | |
15464 | libsuff= shlibsuff= | |
15465 | ;; | |
15466 | *) | |
15467 | case $LD in # libtool.m4 will add one of these switches to LD | |
15468 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15469 | libsuff= shlibsuff= libmagic=32-bit;; | |
15470 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15471 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15472 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15473 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15474 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15475 | esac | |
15476 | ;; | |
15477 | esac | |
15478 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15479 | shlibpath_overrides_runpath=no | |
15480 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15481 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15482 | hardcode_into_libs=yes | |
15483 | ;; | |
f35db108 | 15484 | |
c915a581 JJ |
15485 | # No shared lib support for Linux oldld, aout, or coff. |
15486 | linux*oldld* | linux*aout* | linux*coff*) | |
15487 | dynamic_linker=no | |
15488 | ;; | |
15489 | ||
15490 | # This must be Linux ELF. | |
e9085da5 MR |
15491 | |
15492 | # uclinux* changes (here and below) have been submitted to the libtool | |
15493 | # project, but have not yet been accepted: they are GCC-local changes | |
15494 | # for the time being. (See | |
15495 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
0cedf1fb | 15496 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
c915a581 JJ |
15497 | version_type=linux |
15498 | need_lib_prefix=no | |
15499 | need_version=no | |
15500 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15501 | soname_spec='${libname}${release}${shared_ext}$major' | |
15502 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15503 | shlibpath_var=LD_LIBRARY_PATH | |
15504 | shlibpath_overrides_runpath=no | |
15505 | ||
15506 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 15507 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
f35db108 WM |
15508 | $as_echo_n "(cached) " >&6 |
15509 | else | |
c915a581 JJ |
15510 | lt_cv_shlibpath_overrides_runpath=no |
15511 | save_LDFLAGS=$LDFLAGS | |
15512 | save_libdir=$libdir | |
15513 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15514 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15516 | /* end confdefs.h. */ | |
15517 | ||
15518 | int | |
15519 | main () | |
15520 | { | |
f35db108 | 15521 | |
c915a581 JJ |
15522 | ; |
15523 | return 0; | |
15524 | } | |
15525 | _ACEOF | |
15526 | if ac_fn_cxx_try_link "$LINENO"; then : | |
15527 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15528 | lt_cv_shlibpath_overrides_runpath=yes | |
15529 | fi | |
f35db108 | 15530 | fi |
c915a581 JJ |
15531 | rm -f core conftest.err conftest.$ac_objext \ |
15532 | conftest$ac_exeext conftest.$ac_ext | |
15533 | LDFLAGS=$save_LDFLAGS | |
15534 | libdir=$save_libdir | |
f35db108 | 15535 | |
f35db108 WM |
15536 | fi |
15537 | ||
c915a581 | 15538 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
f35db108 | 15539 | |
c915a581 JJ |
15540 | # This implies no fast_install, which is unacceptable. |
15541 | # Some rework will be needed to allow for fast_install | |
15542 | # before this can be enabled. | |
15543 | hardcode_into_libs=yes | |
f35db108 | 15544 | |
c915a581 JJ |
15545 | # Append ld.so.conf contents to the search path |
15546 | if test -f /etc/ld.so.conf; then | |
15547 | 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' ' '` | |
15548 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15549 | fi | |
f35db108 | 15550 | |
c915a581 JJ |
15551 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15552 | # powerpc, because MkLinux only supported shared libraries with the | |
15553 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15554 | # most powerpc-linux boxes support dynamic linking these days and | |
15555 | # people can always --disable-shared, the test was removed, and we | |
15556 | # assume the GNU/Linux dynamic linker is in use. | |
15557 | dynamic_linker='GNU/Linux ld.so' | |
15558 | ;; | |
f35db108 | 15559 | |
c915a581 JJ |
15560 | netbsd*) |
15561 | version_type=sunos | |
15562 | need_lib_prefix=no | |
15563 | need_version=no | |
15564 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15566 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15567 | dynamic_linker='NetBSD (a.out) ld.so' | |
15568 | else | |
15569 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15570 | soname_spec='${libname}${release}${shared_ext}$major' | |
15571 | dynamic_linker='NetBSD ld.elf_so' | |
15572 | fi | |
15573 | shlibpath_var=LD_LIBRARY_PATH | |
15574 | shlibpath_overrides_runpath=yes | |
15575 | hardcode_into_libs=yes | |
15576 | ;; | |
f35db108 | 15577 | |
c915a581 JJ |
15578 | newsos6) |
15579 | version_type=linux | |
15580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15581 | shlibpath_var=LD_LIBRARY_PATH | |
15582 | shlibpath_overrides_runpath=yes | |
15583 | ;; | |
15584 | ||
15585 | *nto* | *qnx*) | |
15586 | version_type=qnx | |
15587 | need_lib_prefix=no | |
15588 | need_version=no | |
15589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15590 | soname_spec='${libname}${release}${shared_ext}$major' | |
15591 | shlibpath_var=LD_LIBRARY_PATH | |
15592 | shlibpath_overrides_runpath=no | |
15593 | hardcode_into_libs=yes | |
15594 | dynamic_linker='ldqnx.so' | |
15595 | ;; | |
15596 | ||
15597 | openbsd*) | |
15598 | version_type=sunos | |
15599 | sys_lib_dlsearch_path_spec="/usr/lib" | |
15600 | need_lib_prefix=no | |
15601 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15602 | case $host_os in | |
15603 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15604 | *) need_version=no ;; | |
15605 | esac | |
15606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15607 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15608 | shlibpath_var=LD_LIBRARY_PATH | |
15609 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15610 | case $host_os in | |
15611 | openbsd2.[89] | openbsd2.[89].*) | |
15612 | shlibpath_overrides_runpath=no | |
15613 | ;; | |
15614 | *) | |
15615 | shlibpath_overrides_runpath=yes | |
15616 | ;; | |
15617 | esac | |
15618 | else | |
15619 | shlibpath_overrides_runpath=yes | |
15620 | fi | |
15621 | ;; | |
f35db108 | 15622 | |
c915a581 JJ |
15623 | os2*) |
15624 | libname_spec='$name' | |
15625 | shrext_cmds=".dll" | |
15626 | need_lib_prefix=no | |
15627 | library_names_spec='$libname${shared_ext} $libname.a' | |
15628 | dynamic_linker='OS/2 ld.exe' | |
15629 | shlibpath_var=LIBPATH | |
15630 | ;; | |
f35db108 | 15631 | |
c915a581 JJ |
15632 | osf3* | osf4* | osf5*) |
15633 | version_type=osf | |
15634 | need_lib_prefix=no | |
15635 | need_version=no | |
15636 | soname_spec='${libname}${release}${shared_ext}$major' | |
15637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15638 | shlibpath_var=LD_LIBRARY_PATH | |
15639 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15640 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15641 | ;; | |
f35db108 | 15642 | |
c915a581 JJ |
15643 | rdos*) |
15644 | dynamic_linker=no | |
15645 | ;; | |
f35db108 | 15646 | |
c915a581 JJ |
15647 | solaris*) |
15648 | version_type=linux | |
15649 | need_lib_prefix=no | |
15650 | need_version=no | |
15651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15652 | soname_spec='${libname}${release}${shared_ext}$major' | |
15653 | shlibpath_var=LD_LIBRARY_PATH | |
15654 | shlibpath_overrides_runpath=yes | |
15655 | hardcode_into_libs=yes | |
15656 | # ldd complains unless libraries are executable | |
15657 | postinstall_cmds='chmod +x $lib' | |
15658 | ;; | |
f35db108 | 15659 | |
c915a581 JJ |
15660 | sunos4*) |
15661 | version_type=sunos | |
15662 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15663 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15664 | shlibpath_var=LD_LIBRARY_PATH | |
15665 | shlibpath_overrides_runpath=yes | |
15666 | if test "$with_gnu_ld" = yes; then | |
15667 | need_lib_prefix=no | |
15668 | fi | |
15669 | need_version=yes | |
15670 | ;; | |
f35db108 | 15671 | |
c915a581 JJ |
15672 | sysv4 | sysv4.3*) |
15673 | version_type=linux | |
15674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15675 | soname_spec='${libname}${release}${shared_ext}$major' | |
15676 | shlibpath_var=LD_LIBRARY_PATH | |
15677 | case $host_vendor in | |
15678 | sni) | |
15679 | shlibpath_overrides_runpath=no | |
15680 | need_lib_prefix=no | |
15681 | runpath_var=LD_RUN_PATH | |
15682 | ;; | |
15683 | siemens) | |
15684 | need_lib_prefix=no | |
15685 | ;; | |
15686 | motorola) | |
15687 | need_lib_prefix=no | |
15688 | need_version=no | |
15689 | shlibpath_overrides_runpath=no | |
15690 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15691 | ;; | |
15692 | esac | |
15693 | ;; | |
15694 | ||
15695 | sysv4*MP*) | |
15696 | if test -d /usr/nec ;then | |
15697 | version_type=linux | |
15698 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15699 | soname_spec='$libname${shared_ext}.$major' | |
15700 | shlibpath_var=LD_LIBRARY_PATH | |
15701 | fi | |
15702 | ;; | |
f35db108 | 15703 | |
c915a581 JJ |
15704 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15705 | version_type=freebsd-elf | |
15706 | need_lib_prefix=no | |
15707 | need_version=no | |
15708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15709 | soname_spec='${libname}${release}${shared_ext}$major' | |
15710 | shlibpath_var=LD_LIBRARY_PATH | |
15711 | shlibpath_overrides_runpath=yes | |
15712 | hardcode_into_libs=yes | |
15713 | if test "$with_gnu_ld" = yes; then | |
15714 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15715 | else | |
15716 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15717 | case $host_os in | |
15718 | sco3.2v5*) | |
15719 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15720 | ;; | |
15721 | esac | |
15722 | fi | |
15723 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15724 | ;; | |
f35db108 | 15725 | |
c915a581 JJ |
15726 | tpf*) |
15727 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15728 | version_type=linux | |
15729 | need_lib_prefix=no | |
15730 | need_version=no | |
15731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15732 | shlibpath_var=LD_LIBRARY_PATH | |
15733 | shlibpath_overrides_runpath=no | |
15734 | hardcode_into_libs=yes | |
15735 | ;; | |
f35db108 | 15736 | |
c915a581 JJ |
15737 | uts4*) |
15738 | version_type=linux | |
15739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15740 | soname_spec='${libname}${release}${shared_ext}$major' | |
15741 | shlibpath_var=LD_LIBRARY_PATH | |
15742 | ;; | |
f35db108 | 15743 | |
0ecd0f1c OH |
15744 | # Shared libraries for VwWorks, >= 7 only at this stage |
15745 | # and (fpic) still incompatible with "large" code models | |
15746 | # in a few configurations. Only for RTP mode in any case, | |
15747 | # and upon explicit request at configure time. | |
15748 | vxworks7*) | |
15749 | dynamic_linker=no | |
15750 | case ${with_multisubdir}-${enable_shared} in | |
15751 | *large*) | |
15752 | ;; | |
15753 | *mrtp*-yes) | |
15754 | version_type=linux | |
15755 | need_lib_prefix=no | |
15756 | need_version=no | |
15757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15758 | soname_spec='${libname}${release}${shared_ext}$major' | |
15759 | dynamic_linker="$host_os module_loader" | |
15760 | ;; | |
15761 | esac | |
15762 | ;; | |
c915a581 JJ |
15763 | *) |
15764 | dynamic_linker=no | |
15765 | ;; | |
15766 | esac | |
15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15768 | $as_echo "$dynamic_linker" >&6; } | |
15769 | test "$dynamic_linker" = no && can_build_shared=no | |
f35db108 | 15770 | |
c915a581 JJ |
15771 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15772 | if test "$GCC" = yes; then | |
15773 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
f35db108 | 15774 | fi |
f35db108 | 15775 | |
c915a581 JJ |
15776 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
15777 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15778 | fi | |
15779 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15780 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15781 | fi | |
f35db108 WM |
15782 | |
15783 | ||
f35db108 WM |
15784 | |
15785 | ||
15786 | ||
f35db108 | 15787 | |
f35db108 | 15788 | |
f35db108 | 15789 | |
f35db108 WM |
15790 | |
15791 | ||
15792 | ||
15793 | ||
15794 | ||
15795 | ||
f35db108 | 15796 | |
f35db108 | 15797 | |
f35db108 | 15798 | |
f35db108 WM |
15799 | |
15800 | ||
15801 | ||
15802 | ||
15803 | ||
15804 | ||
15805 | ||
15806 | ||
15807 | ||
15808 | ||
15809 | ||
15810 | ||
15811 | ||
15812 | ||
15813 | ||
15814 | ||
15815 | ||
15816 | ||
15817 | ||
15818 | ||
15819 | ||
c915a581 JJ |
15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15821 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15822 | hardcode_action_CXX= | |
15823 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15824 | test -n "$runpath_var_CXX" || | |
15825 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
f35db108 | 15826 | |
c915a581 JJ |
15827 | # We can hardcode non-existent directories. |
15828 | if test "$hardcode_direct_CXX" != no && | |
15829 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15830 | # have to relink, otherwise we might link with an installed library | |
15831 | # when we should be linking with a yet-to-be-installed one | |
15832 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15833 | test "$hardcode_minus_L_CXX" != no; then | |
15834 | # Linking always hardcodes the temporary library directory. | |
15835 | hardcode_action_CXX=relink | |
15836 | else | |
15837 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15838 | hardcode_action_CXX=immediate | |
15839 | fi | |
15840 | else | |
15841 | # We cannot hardcode anything, or else we can only hardcode existing | |
15842 | # directories. | |
15843 | hardcode_action_CXX=unsupported | |
15844 | fi | |
15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15846 | $as_echo "$hardcode_action_CXX" >&6; } | |
f35db108 | 15847 | |
c915a581 JJ |
15848 | if test "$hardcode_action_CXX" = relink || |
15849 | test "$inherit_rpath_CXX" = yes; then | |
15850 | # Fast installation is not supported | |
15851 | enable_fast_install=no | |
15852 | elif test "$shlibpath_overrides_runpath" = yes || | |
15853 | test "$enable_shared" = no; then | |
15854 | # Fast installation is not necessary | |
15855 | enable_fast_install=needless | |
15856 | fi | |
f35db108 WM |
15857 | |
15858 | ||
15859 | ||
15860 | ||
15861 | ||
15862 | ||
15863 | ||
c915a581 | 15864 | fi # test -n "$compiler" |
f35db108 | 15865 | |
c915a581 JJ |
15866 | CC=$lt_save_CC |
15867 | LDCXX=$LD | |
15868 | LD=$lt_save_LD | |
15869 | GCC=$lt_save_GCC | |
15870 | with_gnu_ld=$lt_save_with_gnu_ld | |
15871 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15872 | lt_cv_path_LD=$lt_save_path_LD | |
15873 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15874 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15875 | fi # test "$_lt_caught_CXX_error" != yes | |
f35db108 | 15876 | |
c915a581 JJ |
15877 | ac_ext=c |
15878 | ac_cpp='$CPP $CPPFLAGS' | |
15879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
f35db108 WM |
15882 | |
15883 | ||
15884 | ||
15885 | ||
15886 | ||
15887 | ||
15888 | ||
15889 | ||
15890 | ||
15891 | ||
15892 | ||
15893 | ||
15894 | ||
c915a581 | 15895 | ac_config_commands="$ac_config_commands libtool" |
f35db108 WM |
15896 | |
15897 | ||
15898 | ||
15899 | ||
c915a581 | 15900 | # Only expand once: |
f35db108 WM |
15901 | |
15902 | ||
15903 | ||
c915a581 JJ |
15904 | for ac_prog in gawk mawk nawk awk |
15905 | do | |
15906 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15907 | set dummy $ac_prog; ac_word=$2 | |
15908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15909 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 15910 | if ${ac_cv_prog_AWK+:} false; then : |
c915a581 JJ |
15911 | $as_echo_n "(cached) " >&6 |
15912 | else | |
15913 | if test -n "$AWK"; then | |
15914 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
15915 | else | |
15916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15917 | for as_dir in $PATH | |
15918 | do | |
15919 | IFS=$as_save_IFS | |
15920 | test -z "$as_dir" && as_dir=. | |
15921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 15922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c915a581 JJ |
15923 | ac_cv_prog_AWK="$ac_prog" |
15924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15925 | break 2 | |
15926 | fi | |
15927 | done | |
15928 | done | |
15929 | IFS=$as_save_IFS | |
f35db108 | 15930 | |
c915a581 JJ |
15931 | fi |
15932 | fi | |
15933 | AWK=$ac_cv_prog_AWK | |
15934 | if test -n "$AWK"; then | |
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
15936 | $as_echo "$AWK" >&6; } | |
15937 | else | |
15938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15939 | $as_echo "no" >&6; } | |
15940 | fi | |
f35db108 WM |
15941 | |
15942 | ||
c915a581 JJ |
15943 | test -n "$AWK" && break |
15944 | done | |
f35db108 | 15945 | |
c915a581 | 15946 | case "$AWK" in |
22e05272 | 15947 | "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;; |
c915a581 | 15948 | esac |
f35db108 WM |
15949 | |
15950 | ||
15951 | ||
a2479b3d | 15952 | |
6a6d3817 IS |
15953 | if test x$enable_darwin_at_rpath = xyes; then |
15954 | ENABLE_DARWIN_AT_RPATH_TRUE= | |
15955 | ENABLE_DARWIN_AT_RPATH_FALSE='#' | |
15956 | else | |
15957 | ENABLE_DARWIN_AT_RPATH_TRUE='#' | |
15958 | ENABLE_DARWIN_AT_RPATH_FALSE= | |
15959 | fi | |
15960 | ||
15961 | ||
c915a581 JJ |
15962 | # The cast to long int works around a bug in the HP C Compiler |
15963 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15964 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15965 | # This bug is HP SR number 8606223364. | |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15967 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 15968 | if ${ac_cv_sizeof_void_p+:} false; then : |
c915a581 JJ |
15969 | $as_echo_n "(cached) " >&6 |
15970 | else | |
15971 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
a2479b3d | 15972 | |
c915a581 JJ |
15973 | else |
15974 | if test "$ac_cv_type_void_p" = yes; then | |
15975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
15977 | as_fn_error 77 "cannot compute sizeof (void *) |
15978 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
15979 | else |
15980 | ac_cv_sizeof_void_p=0 | |
15981 | fi | |
15982 | fi | |
f35db108 | 15983 | |
c915a581 JJ |
15984 | fi |
15985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15986 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
f35db108 WM |
15987 | |
15988 | ||
f35db108 | 15989 | |
c915a581 JJ |
15990 | cat >>confdefs.h <<_ACEOF |
15991 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15992 | _ACEOF | |
f35db108 | 15993 | |
f35db108 | 15994 | |
f35db108 | 15995 | |
c915a581 JJ |
15996 | if test "${multilib}" = "yes"; then |
15997 | multilib_arg="--enable-multilib" | |
15998 | else | |
15999 | multilib_arg= | |
16000 | fi | |
f35db108 | 16001 | |
c915a581 JJ |
16002 | # Get target configury. |
16003 | unset TSAN_SUPPORTED | |
16004 | unset LSAN_SUPPORTED | |
8a769f81 | 16005 | unset HWASAN_SUPPORTED |
c915a581 JJ |
16006 | . ${srcdir}/configure.tgt |
16007 | if test "x$TSAN_SUPPORTED" = "xyes"; then | |
16008 | TSAN_SUPPORTED_TRUE= | |
16009 | TSAN_SUPPORTED_FALSE='#' | |
16010 | else | |
16011 | TSAN_SUPPORTED_TRUE='#' | |
16012 | TSAN_SUPPORTED_FALSE= | |
16013 | fi | |
f35db108 | 16014 | |
c915a581 JJ |
16015 | if test "x$LSAN_SUPPORTED" = "xyes"; then |
16016 | LSAN_SUPPORTED_TRUE= | |
16017 | LSAN_SUPPORTED_FALSE='#' | |
16018 | else | |
16019 | LSAN_SUPPORTED_TRUE='#' | |
16020 | LSAN_SUPPORTED_FALSE= | |
16021 | fi | |
f35db108 | 16022 | |
8a769f81 MM |
16023 | if test "x$HWASAN_SUPPORTED" = "xyes"; then |
16024 | HWASAN_SUPPORTED_TRUE= | |
16025 | HWASAN_SUPPORTED_FALSE='#' | |
16026 | else | |
16027 | HWASAN_SUPPORTED_TRUE='#' | |
16028 | HWASAN_SUPPORTED_FALSE= | |
16029 | fi | |
16030 | ||
f35db108 | 16031 | |
c915a581 | 16032 | # Check for functions needed. |
3b07c0e5 | 16033 | for ac_func in clock_getres clock_gettime clock_settime lstat readlink |
c915a581 JJ |
16034 | do : |
16035 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16036 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 16037 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
c915a581 JJ |
16038 | cat >>confdefs.h <<_ACEOF |
16039 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16040 | _ACEOF | |
f35db108 | 16041 | |
c915a581 JJ |
16042 | fi |
16043 | done | |
f35db108 | 16044 | |
f35db108 | 16045 | |
c915a581 | 16046 | # Common libraries that we need to link against for all sanitizer libs. |
bf93d543 | 16047 | link_sanitizer_common='-lpthread -lm' |
692b1131 MO |
16048 | |
16049 | # At least for glibc, shm_open is in librt. But don't pull that | |
16050 | # in if it still doesn't give us the function we want. This | |
16051 | # test is copied from libgomp. | |
16052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5 | |
16053 | $as_echo_n "checking for shm_open in -lrt... " >&6; } | |
22e05272 | 16054 | if ${ac_cv_lib_rt_shm_open+:} false; then : |
692b1131 MO |
16055 | $as_echo_n "(cached) " >&6 |
16056 | else | |
16057 | ac_check_lib_save_LIBS=$LIBS | |
16058 | LIBS="-lrt $LIBS" | |
16059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16060 | /* end confdefs.h. */ | |
16061 | ||
16062 | /* Override any GCC internal prototype to avoid an error. | |
16063 | Use char because int might match the return type of a GCC | |
16064 | builtin and then its argument prototype would still apply. */ | |
16065 | #ifdef __cplusplus | |
16066 | extern "C" | |
16067 | #endif | |
16068 | char shm_open (); | |
16069 | int | |
16070 | main () | |
16071 | { | |
16072 | return shm_open (); | |
16073 | ; | |
16074 | return 0; | |
16075 | } | |
16076 | _ACEOF | |
16077 | if ac_fn_c_try_link "$LINENO"; then : | |
16078 | ac_cv_lib_rt_shm_open=yes | |
16079 | else | |
16080 | ac_cv_lib_rt_shm_open=no | |
16081 | fi | |
16082 | rm -f core conftest.err conftest.$ac_objext \ | |
16083 | conftest$ac_exeext conftest.$ac_ext | |
16084 | LIBS=$ac_check_lib_save_LIBS | |
16085 | fi | |
16086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5 | |
16087 | $as_echo "$ac_cv_lib_rt_shm_open" >&6; } | |
22e05272 | 16088 | if test "x$ac_cv_lib_rt_shm_open" = xyes; then : |
692b1131 MO |
16089 | link_sanitizer_common="-lrt $link_sanitizer_common" |
16090 | fi | |
16091 | ||
f35db108 | 16092 | |
bf93d543 AT |
16093 | # Do a configure time check for -ldl |
16094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | |
16095 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | |
22e05272 | 16096 | if ${ac_cv_lib_dl_dlsym+:} false; then : |
bf93d543 AT |
16097 | $as_echo_n "(cached) " >&6 |
16098 | else | |
16099 | ac_check_lib_save_LIBS=$LIBS | |
16100 | LIBS="-ldl $LIBS" | |
16101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16102 | /* end confdefs.h. */ | |
16103 | ||
16104 | /* Override any GCC internal prototype to avoid an error. | |
16105 | Use char because int might match the return type of a GCC | |
16106 | builtin and then its argument prototype would still apply. */ | |
16107 | #ifdef __cplusplus | |
16108 | extern "C" | |
16109 | #endif | |
16110 | char dlsym (); | |
16111 | int | |
16112 | main () | |
16113 | { | |
16114 | return dlsym (); | |
16115 | ; | |
16116 | return 0; | |
16117 | } | |
16118 | _ACEOF | |
16119 | if ac_fn_c_try_link "$LINENO"; then : | |
16120 | ac_cv_lib_dl_dlsym=yes | |
16121 | else | |
16122 | ac_cv_lib_dl_dlsym=no | |
16123 | fi | |
16124 | rm -f core conftest.err conftest.$ac_objext \ | |
16125 | conftest$ac_exeext conftest.$ac_ext | |
16126 | LIBS=$ac_check_lib_save_LIBS | |
16127 | fi | |
16128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | |
16129 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | |
22e05272 | 16130 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
bf93d543 AT |
16131 | link_sanitizer_common="-ldl $link_sanitizer_common" |
16132 | fi | |
16133 | ||
16134 | ||
c915a581 JJ |
16135 | # Set up the set of additional libraries that we need to link against for libasan. |
16136 | link_libasan=$link_sanitizer_common | |
f35db108 | 16137 | |
f35db108 | 16138 | |
edb07cb9 MM |
16139 | # Set up the set of additional libraries that we need to link against for libhwasan. |
16140 | link_libhwasan=$link_sanitizer_common | |
16141 | ||
16142 | ||
c915a581 JJ |
16143 | # Set up the set of additional libraries that we need to link against for libtsan. |
16144 | link_libtsan=$link_sanitizer_common | |
f35db108 | 16145 | |
f35db108 | 16146 | |
c915a581 JJ |
16147 | # Set up the set of additional libraries that we need to link against for libubsan. |
16148 | link_libubsan=$link_sanitizer_common | |
f35db108 | 16149 | |
f35db108 | 16150 | |
c915a581 JJ |
16151 | # Set up the set of additional libraries that we need to link against for liblsan. |
16152 | link_liblsan=$link_sanitizer_common | |
f35db108 | 16153 | |
f35db108 | 16154 | |
692b1131 MO |
16155 | |
16156 | # At least for glibc, clock_gettime is in librt. But don't pull that | |
16157 | # in if it still doesn't give us the function we want. This | |
16158 | # test is copied from libgomp. | |
16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
16160 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 16161 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
692b1131 MO |
16162 | $as_echo_n "(cached) " >&6 |
16163 | else | |
16164 | ac_check_lib_save_LIBS=$LIBS | |
16165 | LIBS="-lrt $LIBS" | |
16166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16167 | /* end confdefs.h. */ | |
16168 | ||
16169 | /* Override any GCC internal prototype to avoid an error. | |
16170 | Use char because int might match the return type of a GCC | |
16171 | builtin and then its argument prototype would still apply. */ | |
16172 | #ifdef __cplusplus | |
16173 | extern "C" | |
16174 | #endif | |
16175 | char clock_gettime (); | |
16176 | int | |
16177 | main () | |
16178 | { | |
16179 | return clock_gettime (); | |
16180 | ; | |
16181 | return 0; | |
16182 | } | |
16183 | _ACEOF | |
16184 | if ac_fn_c_try_link "$LINENO"; then : | |
16185 | ac_cv_lib_rt_clock_gettime=yes | |
16186 | else | |
16187 | ac_cv_lib_rt_clock_gettime=no | |
16188 | fi | |
16189 | rm -f core conftest.err conftest.$ac_objext \ | |
16190 | conftest$ac_exeext conftest.$ac_ext | |
16191 | LIBS=$ac_check_lib_save_LIBS | |
16192 | fi | |
16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
16194 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 16195 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
692b1131 MO |
16196 | link_libasan="-lrt $link_libasan" |
16197 | link_libtsan="-lrt $link_libtsan" | |
16198 | # Other sanitizers do not override clock_* API | |
16199 | ||
16200 | fi | |
16201 | ||
16202 | ||
c915a581 | 16203 | case "$host" in |
692b1131 MO |
16204 | *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;; |
16205 | *) MAC_INTERPOSE=false ;; | |
c915a581 JJ |
16206 | esac |
16207 | if $MAC_INTERPOSE; then | |
16208 | USING_MAC_INTERPOSE_TRUE= | |
16209 | USING_MAC_INTERPOSE_FALSE='#' | |
16210 | else | |
16211 | USING_MAC_INTERPOSE_TRUE='#' | |
16212 | USING_MAC_INTERPOSE_FALSE= | |
16213 | fi | |
f35db108 | 16214 | |
c915a581 JJ |
16215 | |
16216 | backtrace_supported=yes | |
16217 | ||
4a7eaf5f YG |
16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5 |
16219 | $as_echo_n "checking for necessary platform features... " >&6; } | |
16220 | case "$target" in | |
16221 | *-*-linux*) | |
16222 | # Some old Linux distributions miss required syscalls. | |
16223 | sanitizer_supported=no | |
16224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16225 | /* end confdefs.h. */ | |
16226 | #include <sys/syscall.h> | |
6be2672e | 16227 | #include <unistd.h> |
4a7eaf5f YG |
16228 | int |
16229 | main () | |
16230 | { | |
16231 | ||
16232 | syscall (__NR_gettid); | |
16233 | syscall (__NR_futex); | |
16234 | syscall (__NR_exit_group); | |
16235 | ||
16236 | ; | |
16237 | return 0; | |
16238 | } | |
16239 | _ACEOF | |
16240 | if ac_fn_c_try_compile "$LINENO"; then : | |
16241 | sanitizer_supported=yes | |
16242 | fi | |
16243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16244 | ;; | |
16245 | *) | |
16246 | sanitizer_supported=yes | |
16247 | ;; | |
16248 | esac | |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5 | |
16250 | $as_echo "$sanitizer_supported" >&6; } | |
16251 | if test "$sanitizer_supported" = yes; then | |
16252 | SANITIZER_SUPPORTED_TRUE= | |
16253 | SANITIZER_SUPPORTED_FALSE='#' | |
16254 | else | |
16255 | SANITIZER_SUPPORTED_TRUE='#' | |
16256 | SANITIZER_SUPPORTED_FALSE= | |
16257 | fi | |
16258 | ||
16259 | ||
c915a581 JJ |
16260 | # Test for __sync support. |
16261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
16262 | $as_echo_n "checking __sync extensions... " >&6; } | |
22e05272 | 16263 | if ${libsanitizer_cv_sys_sync+:} false; then : |
f35db108 WM |
16264 | $as_echo_n "(cached) " >&6 |
16265 | else | |
c915a581 JJ |
16266 | if test -n "${with_target_subdir}"; then |
16267 | libsanitizer_cv_sys_sync=yes | |
16268 | else | |
16269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f35db108 | 16270 | /* end confdefs.h. */ |
c915a581 | 16271 | int i; |
f35db108 WM |
16272 | int |
16273 | main () | |
16274 | { | |
c915a581 JJ |
16275 | __sync_bool_compare_and_swap (&i, i, i); |
16276 | __sync_lock_test_and_set (&i, 1); | |
16277 | __sync_lock_release (&i); | |
f35db108 WM |
16278 | ; |
16279 | return 0; | |
16280 | } | |
16281 | _ACEOF | |
c915a581 JJ |
16282 | if ac_fn_c_try_link "$LINENO"; then : |
16283 | libsanitizer_cv_sys_sync=yes | |
16284 | else | |
16285 | libsanitizer_cv_sys_sync=no | |
f35db108 WM |
16286 | fi |
16287 | rm -f core conftest.err conftest.$ac_objext \ | |
16288 | conftest$ac_exeext conftest.$ac_ext | |
c915a581 | 16289 | fi |
f35db108 | 16290 | fi |
c915a581 JJ |
16291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5 |
16292 | $as_echo "$libsanitizer_cv_sys_sync" >&6; } | |
16293 | if test "$libsanitizer_cv_sys_sync" = "yes"; then | |
f35db108 | 16294 | |
c915a581 | 16295 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h |
f35db108 | 16296 | |
f35db108 WM |
16297 | fi |
16298 | ||
c915a581 JJ |
16299 | # Test for __atomic support. |
16300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 | |
16301 | $as_echo_n "checking __atomic extensions... " >&6; } | |
22e05272 | 16302 | if ${libsanitizer_cv_sys_atomic+:} false; then : |
c915a581 JJ |
16303 | $as_echo_n "(cached) " >&6 |
16304 | else | |
16305 | if test -n "${with_target_subdir}"; then | |
16306 | libsanitizer_cv_sys_atomic=yes | |
16307 | else | |
16308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16309 | /* end confdefs.h. */ | |
16310 | int i; | |
16311 | int | |
16312 | main () | |
16313 | { | |
16314 | __atomic_load_n (&i, __ATOMIC_ACQUIRE); | |
16315 | __atomic_store_n (&i, 1, __ATOMIC_RELEASE); | |
16316 | ; | |
16317 | return 0; | |
16318 | } | |
16319 | _ACEOF | |
16320 | if ac_fn_c_try_link "$LINENO"; then : | |
16321 | libsanitizer_cv_sys_atomic=yes | |
16322 | else | |
16323 | libsanitizer_cv_sys_atomic=no | |
f35db108 | 16324 | fi |
c915a581 JJ |
16325 | rm -f core conftest.err conftest.$ac_objext \ |
16326 | conftest$ac_exeext conftest.$ac_ext | |
16327 | fi | |
f35db108 | 16328 | fi |
c915a581 JJ |
16329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5 |
16330 | $as_echo "$libsanitizer_cv_sys_atomic" >&6; } | |
16331 | if test "$libsanitizer_cv_sys_atomic" = "yes"; then | |
f35db108 | 16332 | |
c915a581 | 16333 | $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h |
f35db108 | 16334 | |
c915a581 | 16335 | fi |
f35db108 | 16336 | |
088d3cbc RO |
16337 | # Check if assembler supports symbol assignment. |
16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler symbol assignment" >&5 | |
16339 | $as_echo_n "checking assembler symbol assignment... " >&6; } | |
16340 | if ${libsanitizer_cv_as_sym_assign+:} false; then : | |
16341 | $as_echo_n "(cached) " >&6 | |
16342 | else | |
16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16344 | /* end confdefs.h. */ | |
16345 | ||
16346 | int | |
16347 | main () | |
16348 | { | |
16349 | asm("a = b"); | |
16350 | ; | |
16351 | return 0; | |
16352 | } | |
16353 | _ACEOF | |
16354 | if ac_fn_c_try_compile "$LINENO"; then : | |
16355 | libsanitizer_cv_as_sym_assign=yes | |
16356 | else | |
16357 | libsanitizer_cv_as_sym_assign=no | |
16358 | fi | |
16359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16360 | fi | |
16361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_as_sym_assign" >&5 | |
16362 | $as_echo "$libsanitizer_cv_as_sym_assign" >&6; } | |
16363 | if test "$libsanitizer_cv_as_sym_assign" = "yes"; then | |
16364 | as_sym_assign_defs=-DHAVE_AS_SYM_ASSIGN=1 | |
16365 | fi | |
16366 | AS_SYM_ASSIGN_DEFS=$as_sym_assign_defs | |
16367 | ||
16368 | ||
c915a581 JJ |
16369 | # The library needs to be able to read the executable itself. Compile |
16370 | # a file to determine the executable format. The awk script | |
16371 | # filetype.awk prints out the file type. | |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
16373 | $as_echo_n "checking output filetype... " >&6; } | |
22e05272 | 16374 | if ${libsanitizer_cv_sys_filetype+:} false; then : |
c915a581 JJ |
16375 | $as_echo_n "(cached) " >&6 |
16376 | else | |
16377 | filetype= | |
16378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16379 | /* end confdefs.h. */ | |
16380 | int i; | |
16381 | int | |
16382 | main () | |
16383 | { | |
16384 | int j; | |
16385 | ; | |
16386 | return 0; | |
16387 | } | |
16388 | _ACEOF | |
16389 | if ac_fn_c_try_compile "$LINENO"; then : | |
16390 | filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext` | |
16391 | else | |
16392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16394 | as_fn_error $? "compiler failed |
16395 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
16396 | fi |
16397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16398 | libsanitizer_cv_sys_filetype=$filetype | |
16399 | fi | |
16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5 | |
16401 | $as_echo "$libsanitizer_cv_sys_filetype" >&6; } | |
16402 | ||
16403 | # Match the file type to decide what files to compile. | |
16404 | FORMAT_FILE= | |
16405 | case "$libsanitizer_cv_sys_filetype" in | |
16406 | elf*) FORMAT_FILE="elf.lo" ;; | |
16407 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 | |
16408 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
16409 | FORMAT_FILE="unknown.lo" | |
16410 | backtrace_supported=no | |
16411 | ;; | |
16412 | esac | |
f35db108 WM |
16413 | |
16414 | ||
c915a581 JJ |
16415 | # ELF defines. |
16416 | elfsize= | |
16417 | case "$libsanitizer_cv_sys_filetype" in | |
16418 | elf32) elfsize=32 ;; | |
16419 | elf64) elfsize=64 ;; | |
16420 | esac | |
f35db108 | 16421 | |
c915a581 JJ |
16422 | cat >>confdefs.h <<_ACEOF |
16423 | #define BACKTRACE_ELF_SIZE $elfsize | |
16424 | _ACEOF | |
f35db108 WM |
16425 | |
16426 | ||
c915a581 JJ |
16427 | BACKTRACE_SUPPORTED=0 |
16428 | if test "$backtrace_supported" = "yes"; then | |
16429 | BACKTRACE_SUPPORTED=1 | |
16430 | fi | |
f35db108 WM |
16431 | |
16432 | ||
16433 | ||
16434 | ||
c915a581 | 16435 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` |
f35db108 | 16436 | |
c915a581 JJ |
16437 | acx_cv_header_stdint=stddef.h |
16438 | acx_cv_header_stdint_kind="(already complete)" | |
16439 | for i in stdint.h $inttype_headers; do | |
16440 | unset ac_cv_type_uintptr_t | |
16441 | unset ac_cv_type_uintmax_t | |
16442 | unset ac_cv_type_int_least32_t | |
16443 | unset ac_cv_type_int_fast32_t | |
16444 | unset ac_cv_type_uint64_t | |
16445 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
16446 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
16447 | #include <$i> | |
16448 | " | |
22e05272 | 16449 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
c915a581 JJ |
16450 | acx_cv_header_stdint=$i |
16451 | else | |
16452 | continue | |
16453 | fi | |
f35db108 | 16454 | |
c915a581 JJ |
16455 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16456 | #include <$i> | |
16457 | " | |
22e05272 | 16458 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
f35db108 | 16459 | |
c915a581 JJ |
16460 | else |
16461 | acx_cv_header_stdint_kind="(mostly complete)" | |
16462 | fi | |
f35db108 | 16463 | |
c915a581 JJ |
16464 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> |
16465 | #include <$i> | |
16466 | " | |
22e05272 | 16467 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
f35db108 | 16468 | |
c915a581 JJ |
16469 | else |
16470 | acx_cv_header_stdint_kind="(mostly complete)" | |
16471 | fi | |
f35db108 | 16472 | |
c915a581 JJ |
16473 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> |
16474 | #include <$i> | |
16475 | " | |
22e05272 | 16476 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
f35db108 | 16477 | |
c915a581 JJ |
16478 | else |
16479 | acx_cv_header_stdint_kind="(mostly complete)" | |
16480 | fi | |
f35db108 | 16481 | |
c915a581 JJ |
16482 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16483 | #include <$i> | |
16484 | " | |
22e05272 | 16485 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
f35db108 | 16486 | |
c915a581 JJ |
16487 | else |
16488 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
16489 | fi | |
f35db108 | 16490 | |
c915a581 JJ |
16491 | break |
16492 | done | |
16493 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16494 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
16495 | for i in stdint.h $inttype_headers; do | |
16496 | unset ac_cv_type_uintptr_t | |
16497 | unset ac_cv_type_uint32_t | |
16498 | unset ac_cv_type_uint64_t | |
16499 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
16500 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
16501 | #include <$i> | |
16502 | " | |
22e05272 | 16503 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
c915a581 JJ |
16504 | acx_cv_header_stdint=$i |
16505 | else | |
16506 | continue | |
16507 | fi | |
f35db108 | 16508 | |
c915a581 JJ |
16509 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> |
16510 | #include <$i> | |
16511 | " | |
22e05272 | 16512 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
f35db108 | 16513 | |
c915a581 | 16514 | fi |
f35db108 | 16515 | |
c915a581 JJ |
16516 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> |
16517 | #include <$i> | |
16518 | " | |
22e05272 | 16519 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
f35db108 | 16520 | |
c915a581 | 16521 | fi |
f35db108 | 16522 | |
c915a581 JJ |
16523 | break |
16524 | done | |
16525 | fi | |
16526 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16527 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
16528 | for i in sys/types.h $inttype_headers; do | |
16529 | unset ac_cv_type_u_int32_t | |
16530 | unset ac_cv_type_u_int64_t | |
16531 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
16532 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
16533 | #include <$i> | |
16534 | " | |
22e05272 | 16535 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
c915a581 JJ |
16536 | acx_cv_header_stdint=$i |
16537 | else | |
16538 | continue | |
16539 | fi | |
f35db108 | 16540 | |
c915a581 JJ |
16541 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> |
16542 | #include <$i> | |
16543 | " | |
22e05272 | 16544 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
f35db108 | 16545 | |
c915a581 | 16546 | fi |
f35db108 | 16547 | |
c915a581 JJ |
16548 | break |
16549 | done | |
16550 | fi | |
16551 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16552 | acx_cv_header_stdint_kind="(using manual detection)" | |
16553 | fi | |
f35db108 | 16554 | |
c915a581 JJ |
16555 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no |
16556 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
16557 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
16558 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
16559 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
f35db108 | 16560 | |
c915a581 | 16561 | # ----------------- Summarize what we found so far |
f35db108 | 16562 | |
c915a581 JJ |
16563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 |
16564 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
f35db108 | 16565 | |
c915a581 JJ |
16566 | case `$as_basename -- gstdint.h || |
16567 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
16568 | Xgstdint.h : 'X\(//\)$' \| \ | |
16569 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
16570 | $as_echo X/gstdint.h | | |
16571 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16572 | s//\1/ | |
16573 | q | |
16574 | } | |
16575 | /^X\/\(\/\/\)$/{ | |
16576 | s//\1/ | |
16577 | q | |
16578 | } | |
16579 | /^X\/\(\/\).*/{ | |
16580 | s//\1/ | |
16581 | q | |
16582 | } | |
16583 | s/.*/./; q'` in | |
16584 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16585 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16586 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
16587 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
16588 | *) ;; | |
16589 | esac | |
f35db108 | 16590 | |
c915a581 JJ |
16591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
16592 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
f35db108 | 16593 | |
c915a581 | 16594 | # ----------------- done included file, check C basic types -------- |
f35db108 | 16595 | |
c915a581 JJ |
16596 | # Lacking an uintptr_t? Test size of void * |
16597 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
16598 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
16599 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16600 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16601 | # This bug is HP SR number 8606223364. | |
16602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
16603 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 16604 | if ${ac_cv_sizeof_void_p+:} false; then : |
c915a581 JJ |
16605 | $as_echo_n "(cached) " >&6 |
16606 | else | |
16607 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
f35db108 | 16608 | |
f35db108 | 16609 | else |
c915a581 JJ |
16610 | if test "$ac_cv_type_void_p" = yes; then |
16611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16613 | as_fn_error 77 "cannot compute sizeof (void *) |
16614 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
16615 | else |
16616 | ac_cv_sizeof_void_p=0 | |
16617 | fi | |
f35db108 | 16618 | fi |
f35db108 | 16619 | |
f35db108 | 16620 | fi |
c915a581 JJ |
16621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
16622 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
f35db108 WM |
16623 | |
16624 | ||
16625 | ||
c915a581 JJ |
16626 | cat >>confdefs.h <<_ACEOF |
16627 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16628 | _ACEOF | |
f35db108 | 16629 | |
c915a581 JJ |
16630 | ;; |
16631 | esac | |
f35db108 | 16632 | |
c915a581 JJ |
16633 | # Lacking an uint64_t? Test size of long |
16634 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
16635 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
16636 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16637 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16638 | # This bug is HP SR number 8606223364. | |
16639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
16640 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 16641 | if ${ac_cv_sizeof_long+:} false; then : |
c915a581 JJ |
16642 | $as_echo_n "(cached) " >&6 |
16643 | else | |
16644 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
f35db108 | 16645 | |
c915a581 JJ |
16646 | else |
16647 | if test "$ac_cv_type_long" = yes; then | |
16648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16650 | as_fn_error 77 "cannot compute sizeof (long) |
16651 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
16652 | else |
16653 | ac_cv_sizeof_long=0 | |
16654 | fi | |
16655 | fi | |
f35db108 | 16656 | |
c915a581 JJ |
16657 | fi |
16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
16659 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
f35db108 WM |
16660 | |
16661 | ||
16662 | ||
c915a581 JJ |
16663 | cat >>confdefs.h <<_ACEOF |
16664 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16665 | _ACEOF | |
f35db108 | 16666 | |
c915a581 JJ |
16667 | ;; |
16668 | esac | |
f35db108 | 16669 | |
c915a581 JJ |
16670 | if test $acx_cv_header_stdint = stddef.h; then |
16671 | # Lacking a good header? Test size of everything and deduce all types. | |
16672 | # The cast to long int works around a bug in the HP C Compiler | |
16673 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16674 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16675 | # This bug is HP SR number 8606223364. | |
16676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
16677 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 16678 | if ${ac_cv_sizeof_int+:} false; then : |
c915a581 JJ |
16679 | $as_echo_n "(cached) " >&6 |
16680 | else | |
16681 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
f35db108 | 16682 | |
c915a581 JJ |
16683 | else |
16684 | if test "$ac_cv_type_int" = yes; then | |
16685 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16686 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16687 | as_fn_error 77 "cannot compute sizeof (int) |
16688 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
16689 | else |
16690 | ac_cv_sizeof_int=0 | |
16691 | fi | |
16692 | fi | |
f35db108 | 16693 | |
c915a581 JJ |
16694 | fi |
16695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
16696 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
f35db108 WM |
16697 | |
16698 | ||
f35db108 | 16699 | |
c915a581 JJ |
16700 | cat >>confdefs.h <<_ACEOF |
16701 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16702 | _ACEOF | |
f35db108 WM |
16703 | |
16704 | ||
c915a581 JJ |
16705 | # The cast to long int works around a bug in the HP C Compiler |
16706 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16707 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16708 | # This bug is HP SR number 8606223364. | |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
16710 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 16711 | if ${ac_cv_sizeof_short+:} false; then : |
c915a581 JJ |
16712 | $as_echo_n "(cached) " >&6 |
16713 | else | |
16714 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
f35db108 | 16715 | |
c915a581 JJ |
16716 | else |
16717 | if test "$ac_cv_type_short" = yes; then | |
16718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16720 | as_fn_error 77 "cannot compute sizeof (short) |
16721 | See \`config.log' for more details" "$LINENO" 5; } | |
c915a581 JJ |
16722 | else |
16723 | ac_cv_sizeof_short=0 | |
16724 | fi | |
16725 | fi | |
f35db108 | 16726 | |
c915a581 JJ |
16727 | fi |
16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
16729 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
f35db108 WM |
16730 | |
16731 | ||
16732 | ||
c915a581 JJ |
16733 | cat >>confdefs.h <<_ACEOF |
16734 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16735 | _ACEOF | |
f35db108 WM |
16736 | |
16737 | ||
c915a581 | 16738 | # The cast to long int works around a bug in the HP C Compiler |
64548f3b JJ |
16739 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
16740 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16741 | # This bug is HP SR number 8606223364. | |
c915a581 JJ |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 |
16743 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 16744 | if ${ac_cv_sizeof_char+:} false; then : |
64548f3b JJ |
16745 | $as_echo_n "(cached) " >&6 |
16746 | else | |
c915a581 | 16747 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : |
64548f3b JJ |
16748 | |
16749 | else | |
c915a581 | 16750 | if test "$ac_cv_type_char" = yes; then |
64548f3b JJ |
16751 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
16753 | as_fn_error 77 "cannot compute sizeof (char) |
16754 | See \`config.log' for more details" "$LINENO" 5; } | |
64548f3b | 16755 | else |
c915a581 | 16756 | ac_cv_sizeof_char=0 |
64548f3b JJ |
16757 | fi |
16758 | fi | |
16759 | ||
16760 | fi | |
c915a581 JJ |
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 |
16762 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
16763 | ||
16764 | ||
16765 | ||
16766 | cat >>confdefs.h <<_ACEOF | |
16767 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16768 | _ACEOF | |
16769 | ||
16770 | ||
16771 | ||
16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
16773 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
16774 | case "$ac_cv_sizeof_char" in | |
16775 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 16776 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
c915a581 JJ |
16777 | esac |
16778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
16779 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
16780 | ||
16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
16782 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
16783 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16784 | 2:*) acx_cv_type_int16_t=int ;; | |
16785 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 16786 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
c915a581 JJ |
16787 | esac |
16788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
16789 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
16790 | ||
16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
16792 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
16793 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16794 | 4:*) acx_cv_type_int32_t=int ;; | |
16795 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 16796 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
c915a581 JJ |
16797 | esac |
16798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
16799 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
16800 | fi | |
16801 | ||
16802 | # These tests are here to make the output prettier | |
16803 | ||
16804 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
16805 | case "$ac_cv_sizeof_long" in | |
16806 | 8) acx_cv_type_int64_t=long ;; | |
16807 | esac | |
16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
16809 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
16810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16811 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16812 | fi | |
16813 | ||
16814 | # Now we can use the above types | |
16815 | ||
16816 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
16818 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
16819 | case $ac_cv_sizeof_void_p in | |
16820 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16821 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16822 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 16823 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
c915a581 JJ |
16824 | esac |
16825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
16826 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
16827 | fi | |
16828 | ||
16829 | # ----------------- done all checks, emit header ------------- | |
16830 | ac_config_commands="$ac_config_commands gstdint.h" | |
16831 | ||
16832 | ||
16833 | ||
16834 | ||
b5f58ba3 | 16835 | for ac_header in sys/mman.h alloca.h |
c915a581 | 16836 | do : |
b5f58ba3 JJ |
16837 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16838 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
22e05272 | 16839 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
c915a581 | 16840 | cat >>confdefs.h <<_ACEOF |
b5f58ba3 | 16841 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c915a581 JJ |
16842 | _ACEOF |
16843 | ||
16844 | fi | |
16845 | ||
16846 | done | |
16847 | ||
16848 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
16849 | have_mmap=no | |
16850 | else | |
16851 | if test -n "${with_target_subdir}"; then | |
16852 | # When built as a GCC target library, we can't do a link test. We | |
16853 | # simply assume that if we have mman.h, we have mmap. | |
16854 | have_mmap=yes | |
16855 | else | |
16856 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
22e05272 | 16857 | if test "x$ac_cv_func_mmap" = xyes; then : |
c915a581 JJ |
16858 | have_mmap=yes |
16859 | else | |
16860 | have_mmap=no | |
16861 | fi | |
16862 | ||
16863 | fi | |
16864 | fi | |
16865 | if test "$have_mmap" = "no"; then | |
16866 | VIEW_FILE=read.lo | |
16867 | ALLOC_FILE=alloc.lo | |
16868 | else | |
16869 | VIEW_FILE=mmapio.lo | |
16870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16871 | /* end confdefs.h. */ | |
64548f3b | 16872 | |
c915a581 JJ |
16873 | #include <sys/mman.h> |
16874 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
16875 | #error no MAP_ANONYMOUS | |
16876 | #endif | |
64548f3b | 16877 | |
64548f3b | 16878 | _ACEOF |
c915a581 JJ |
16879 | if ac_fn_c_try_cpp "$LINENO"; then : |
16880 | ALLOC_FILE=mmap.lo | |
16881 | else | |
16882 | ALLOC_FILE=alloc.lo | |
16883 | fi | |
22e05272 | 16884 | rm -f conftest.err conftest.i conftest.$ac_ext |
c915a581 | 16885 | fi |
64548f3b JJ |
16886 | |
16887 | ||
16888 | ||
c915a581 JJ |
16889 | BACKTRACE_USES_MALLOC=0 |
16890 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
16891 | BACKTRACE_USES_MALLOC=1 | |
2a6346c4 | 16892 | fi |
64548f3b | 16893 | |
cd0be65c | 16894 | |
c915a581 JJ |
16895 | # Don't care about thread support |
16896 | BACKTRACE_SUPPORTS_THREADS=0 | |
9065ada9 | 16897 | |
f35db108 | 16898 | |
c915a581 JJ |
16899 | # Check for dl_iterate_phdr. |
16900 | for ac_header in link.h | |
35814b03 | 16901 | do : |
c915a581 | 16902 | ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" |
22e05272 | 16903 | if test "x$ac_cv_header_link_h" = xyes; then : |
35814b03 | 16904 | cat >>confdefs.h <<_ACEOF |
c915a581 | 16905 | #define HAVE_LINK_H 1 |
35814b03 JJ |
16906 | _ACEOF |
16907 | ||
16908 | fi | |
35814b03 | 16909 | |
c915a581 | 16910 | done |
35814b03 | 16911 | |
c915a581 JJ |
16912 | if test "$ac_cv_header_link_h" = "no"; then |
16913 | have_dl_iterate_phdr=no | |
16914 | else | |
16915 | # When built as a GCC target library, we can't do a link test. | |
16916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16917 | /* end confdefs.h. */ | |
16918 | #include <link.h> | |
35814b03 | 16919 | |
c915a581 JJ |
16920 | _ACEOF |
16921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16922 | $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : | |
16923 | have_dl_iterate_phdr=yes | |
16924 | else | |
16925 | have_dl_iterate_phdr=no | |
16926 | fi | |
16927 | rm -f conftest* | |
35814b03 | 16928 | |
c915a581 JJ |
16929 | fi |
16930 | if test "$have_dl_iterate_phdr" = "yes"; then | |
35814b03 | 16931 | |
c915a581 | 16932 | $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h |
35814b03 | 16933 | |
c915a581 | 16934 | fi |
35814b03 | 16935 | |
c915a581 JJ |
16936 | # Check for the fcntl function. |
16937 | if test -n "${with_target_subdir}"; then | |
16938 | case "${host}" in | |
16939 | *-*-mingw*) have_fcntl=no ;; | |
16940 | *) have_fcntl=yes ;; | |
16941 | esac | |
16942 | else | |
16943 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
22e05272 | 16944 | if test "x$ac_cv_func_fcntl" = xyes; then : |
c915a581 JJ |
16945 | have_fcntl=yes |
16946 | else | |
16947 | have_fcntl=no | |
16948 | fi | |
35814b03 | 16949 | |
c915a581 JJ |
16950 | fi |
16951 | if test "$have_fcntl" = "yes"; then | |
35814b03 | 16952 | |
c915a581 | 16953 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h |
35814b03 | 16954 | |
c915a581 | 16955 | fi |
35814b03 | 16956 | |
c915a581 | 16957 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
22e05272 | 16958 | if test "x$ac_cv_have_decl_strnlen" = xyes; then : |
c915a581 | 16959 | ac_have_decl=1 |
35814b03 | 16960 | else |
c915a581 JJ |
16961 | ac_have_decl=0 |
16962 | fi | |
35814b03 | 16963 | |
c915a581 JJ |
16964 | cat >>confdefs.h <<_ACEOF |
16965 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
35814b03 | 16966 | _ACEOF |
c915a581 JJ |
16967 | |
16968 | ||
16969 | # Check for getexecname function. | |
16970 | if test -n "${with_target_subdir}"; then | |
16971 | case "${host}" in | |
16972 | *-*-solaris2*) have_getexecname=yes ;; | |
16973 | *) have_getexecname=no ;; | |
16974 | esac | |
35814b03 | 16975 | else |
c915a581 | 16976 | ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" |
22e05272 | 16977 | if test "x$ac_cv_func_getexecname" = xyes; then : |
c915a581 JJ |
16978 | have_getexecname=yes |
16979 | else | |
16980 | have_getexecname=no | |
35814b03 | 16981 | fi |
35814b03 JJ |
16982 | |
16983 | fi | |
c915a581 JJ |
16984 | if test "$have_getexecname" = "yes"; then |
16985 | ||
16986 | $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h | |
35814b03 JJ |
16987 | |
16988 | fi | |
16989 | ||
d041a6fc YG |
16990 | # Check for rpc/xdr.h |
16991 | for ac_header in rpc/xdr.h | |
16992 | do : | |
16993 | ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default" | |
22e05272 | 16994 | if test "x$ac_cv_header_rpc_xdr_h" = xyes; then : |
d041a6fc YG |
16995 | cat >>confdefs.h <<_ACEOF |
16996 | #define HAVE_RPC_XDR_H 1 | |
16997 | _ACEOF | |
16998 | ||
16999 | fi | |
17000 | ||
17001 | done | |
17002 | ||
17003 | if test x"$ac_cv_header_rpc_xdr_h" = xyes; then | |
17004 | rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1" | |
17005 | else | |
17006 | rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0" | |
17007 | fi | |
17008 | ||
17009 | # Check for tirpc/rpc/xdr.h | |
17010 | for ac_header in tirpc/rpc/xdr.h | |
17011 | do : | |
17012 | ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default" | |
22e05272 | 17013 | if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then : |
d041a6fc YG |
17014 | cat >>confdefs.h <<_ACEOF |
17015 | #define HAVE_TIRPC_RPC_XDR_H 1 | |
17016 | _ACEOF | |
17017 | ||
17018 | fi | |
17019 | ||
17020 | done | |
17021 | ||
17022 | if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then | |
17023 | rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1" | |
17024 | else | |
17025 | rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0" | |
17026 | fi | |
17027 | ||
17028 | RPC_DEFS=$rpc_defs | |
17029 | ||
17030 | ||
c915a581 JJ |
17031 | if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then |
17032 | LIBBACKTRACE_SUPPORTED_TRUE= | |
17033 | LIBBACKTRACE_SUPPORTED_FALSE='#' | |
f246eadc | 17034 | else |
c915a581 JJ |
17035 | LIBBACKTRACE_SUPPORTED_TRUE='#' |
17036 | LIBBACKTRACE_SUPPORTED_FALSE= | |
f246eadc JH |
17037 | fi |
17038 | ||
17039 | ||
f35db108 | 17040 | |
c915a581 JJ |
17041 | ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h" |
17042 | ||
17043 | ac_config_headers="$ac_config_headers config.h" | |
f35db108 | 17044 | |
c915a581 | 17045 | |
8a769f81 | 17046 | ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile" |
f35db108 WM |
17047 | |
17048 | ||
64548f3b | 17049 | if test "x$TSAN_SUPPORTED" = "xyes"; then |
cd0be65c WM |
17050 | ac_config_files="$ac_config_files tsan/Makefile" |
17051 | ||
17052 | fi | |
17053 | ||
8a769f81 MM |
17054 | if test "x$HWASAN_SUPPORTED" = "xyes"; then |
17055 | ac_config_files="$ac_config_files hwasan/Makefile" | |
17056 | ||
17057 | fi | |
17058 | ||
b0edd457 VK |
17059 | |
17060 | ||
10189819 | 17061 | |
45ba6bf2 DS |
17062 | # Check whether --enable-werror was given. |
17063 | if test "${enable_werror+set}" = set; then : | |
17064 | enableval=$enable_werror; | |
17065 | fi | |
17066 | ||
17067 | ||
17068 | ac_ext=c | |
17069 | ac_cpp='$CPP $CPPFLAGS' | |
17070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17073 | ||
17074 | WARN_FLAGS= | |
17075 | save_CFLAGS="$CFLAGS" | |
17076 | for real_option in -Wextra -Wall -Wwrite-strings \ | |
17077 | -Wmissing-format-attribute -Wcast-qual; do | |
17078 | # Do the check with the no- prefix removed since gcc silently | |
17079 | # accepts any -Wno-* option on purpose | |
17080 | case $real_option in | |
17081 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
17082 | *) option=$real_option ;; | |
17083 | esac | |
17084 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
17085 | ||
17086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
17087 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
17088 | if eval \${$as_acx_Woption+:} false; then : | |
17089 | $as_echo_n "(cached) " >&6 | |
17090 | else | |
17091 | CFLAGS="$option" | |
17092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17093 | /* end confdefs.h. */ | |
17094 | ||
17095 | int | |
17096 | main () | |
17097 | { | |
17098 | ||
17099 | ; | |
17100 | return 0; | |
17101 | } | |
17102 | _ACEOF | |
17103 | if ac_fn_c_try_compile "$LINENO"; then : | |
17104 | eval "$as_acx_Woption=yes" | |
17105 | else | |
17106 | eval "$as_acx_Woption=no" | |
17107 | fi | |
17108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17109 | ||
17110 | fi | |
17111 | eval ac_res=\$$as_acx_Woption | |
17112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
17113 | $as_echo "$ac_res" >&6; } | |
17114 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
17115 | WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" | |
17116 | fi | |
17117 | done | |
17118 | CFLAGS="$save_CFLAGS" | |
17119 | ac_ext=c | |
17120 | ac_cpp='$CPP $CPPFLAGS' | |
17121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17124 | ||
17125 | ||
17126 | if test "x$enable_werror" != "xno"; then : | |
17127 | WARN_FLAGS="$WARN_FLAGS -Werror" | |
17128 | fi | |
17129 | ||
17130 | ||
3c36aa6b JJ |
17131 | # Determine what GCC version number to use in filesystem paths. |
17132 | ||
17133 | get_gcc_base_ver="cat" | |
17134 | ||
17135 | # Check whether --with-gcc-major-version-only was given. | |
17136 | if test "${with_gcc_major_version_only+set}" = set; then : | |
17137 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 17138 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
17139 | fi |
17140 | ||
17141 | fi | |
17142 | ||
17143 | ||
17144 | ||
17145 | ||
9069eb28 IT |
17146 | # Add CET specific flags if Intel CET is enabled. |
17147 | # Check whether --enable-cet was given. | |
17148 | if test "${enable_cet+set}" = set; then : | |
17149 | enableval=$enable_cet; | |
17150 | case "$enableval" in | |
a0e1df88 | 17151 | yes|no|auto) ;; |
22e05272 | 17152 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
9069eb28 IT |
17153 | esac |
17154 | ||
17155 | else | |
8d286dd1 | 17156 | enable_cet=auto |
9069eb28 IT |
17157 | fi |
17158 | ||
17159 | ||
14e335ed IT |
17160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
17161 | $as_echo_n "checking for CET support... " >&6; } | |
17162 | ||
9051b548 | 17163 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
9069eb28 IT |
17164 | case "$host" in |
17165 | i[34567]86-*-linux* | x86_64-*-linux*) | |
17166 | case "$enable_cet" in | |
a0e1df88 | 17167 | auto) |
14e335ed | 17168 | # Check if target supports multi-byte NOPs |
edb07cb9 | 17169 | # and if compiler and assembler support CET insn. |
9051b548 | 17170 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 17171 | CFLAGS="$CFLAGS -fcf-protection" |
9069eb28 IT |
17172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
17173 | /* end confdefs.h. */ | |
17174 | ||
17175 | int | |
17176 | main () | |
17177 | { | |
14e335ed IT |
17178 | |
17179 | #if !defined(__SSE2__) | |
17180 | #error target does not support multi-byte NOPs | |
17181 | #else | |
9069eb28 | 17182 | asm ("setssbsy"); |
14e335ed IT |
17183 | #endif |
17184 | ||
9069eb28 IT |
17185 | ; |
17186 | return 0; | |
17187 | } | |
17188 | _ACEOF | |
17189 | if ac_fn_c_try_compile "$LINENO"; then : | |
17190 | enable_cet=yes | |
17191 | else | |
17192 | enable_cet=no | |
17193 | fi | |
17194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 17195 | CFLAGS="$cet_save_CFLAGS" |
9069eb28 IT |
17196 | ;; |
17197 | yes) | |
17198 | # Check if assembler supports CET. | |
17199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17200 | /* end confdefs.h. */ | |
17201 | ||
17202 | int | |
17203 | main () | |
17204 | { | |
17205 | asm ("setssbsy"); | |
17206 | ; | |
17207 | return 0; | |
17208 | } | |
17209 | _ACEOF | |
17210 | if ac_fn_c_try_compile "$LINENO"; then : | |
17211 | ||
17212 | else | |
22e05272 | 17213 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
9069eb28 IT |
17214 | fi |
17215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17216 | ;; | |
17217 | esac | |
17218 | ;; | |
17219 | *) | |
17220 | enable_cet=no | |
17221 | ;; | |
17222 | esac | |
17223 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 17224 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
17226 | $as_echo "yes" >&6; } | |
17227 | else | |
17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17229 | $as_echo "no" >&6; } | |
9069eb28 IT |
17230 | fi |
17231 | ||
3e405119 | 17232 | |
e08835fd YS |
17233 | # Always set -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 to sync with LLVM, |
17234 | # and keep struct *stat* have the same size. | |
17235 | case "${host}" in | |
17236 | mips*-*) FILE64_FLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;; | |
17237 | *) FILE64_FLAGS="" ;; | |
17238 | esac | |
17239 | ||
17240 | EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS $FILE64_FLAGS" | |
17241 | EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS $FILE64_FLAGS" | |
3e405119 | 17242 | EXTRA_ASFLAGS=$CET_FLAGS |
9069eb28 IT |
17243 | |
17244 | ||
17245 | ||
17246 | ||
f35db108 WM |
17247 | cat >confcache <<\_ACEOF |
17248 | # This file is a shell script that caches the results of configure | |
17249 | # tests run on this system so they can be shared between configure | |
17250 | # scripts and configure runs, see configure's option --config-cache. | |
17251 | # It is not useful on other systems. If it contains results you don't | |
17252 | # want to keep, you may remove or edit it. | |
17253 | # | |
17254 | # config.status only pays attention to the cache file if you give it | |
17255 | # the --recheck option to rerun configure. | |
17256 | # | |
17257 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17258 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17259 | # following values. | |
17260 | ||
17261 | _ACEOF | |
17262 | ||
17263 | # The following way of writing the cache mishandles newlines in values, | |
17264 | # but we know of no workaround that is simple, portable, and efficient. | |
17265 | # So, we kill variables containing newlines. | |
17266 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17267 | # and sets the high bit in the cache file unless we assign to the vars. | |
17268 | ( | |
17269 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17270 | eval ac_val=\$$ac_var | |
17271 | case $ac_val in #( | |
17272 | *${as_nl}*) | |
17273 | case $ac_var in #( | |
17274 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17275 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17276 | esac | |
17277 | case $ac_var in #( | |
17278 | _ | IFS | as_nl) ;; #( | |
17279 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17280 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17281 | esac ;; | |
17282 | esac | |
17283 | done | |
17284 | ||
17285 | (set) 2>&1 | | |
17286 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
17287 | *${as_nl}ac_space=\ *) | |
17288 | # `set' does not quote correctly, so add quotes: double-quote | |
17289 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
17290 | sed -n \ | |
17291 | "s/'/'\\\\''/g; | |
17292 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17293 | ;; #( | |
17294 | *) | |
17295 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17296 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
17297 | ;; | |
17298 | esac | | |
17299 | sort | |
17300 | ) | | |
17301 | sed ' | |
17302 | /^ac_cv_env_/b end | |
17303 | t clear | |
17304 | :clear | |
17305 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17306 | t end | |
17307 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17308 | :end' >>confcache | |
17309 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17310 | if test -w "$cache_file"; then | |
22e05272 | 17311 | if test "x$cache_file" != "x/dev/null"; then |
f35db108 WM |
17312 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17313 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
17314 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17315 | cat confcache >"$cache_file" | |
17316 | else | |
17317 | case $cache_file in #( | |
17318 | */* | ?:*) | |
17319 | mv -f confcache "$cache_file"$$ && | |
17320 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17321 | *) | |
17322 | mv -f confcache "$cache_file" ;; | |
17323 | esac | |
17324 | fi | |
17325 | fi | |
f35db108 WM |
17326 | else |
17327 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
17328 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
17329 | fi | |
17330 | fi | |
17331 | rm -f confcache | |
17332 | ||
17333 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17334 | # Let make expand exec_prefix. | |
17335 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17336 | ||
c915a581 | 17337 | DEFS=-DHAVE_CONFIG_H |
f35db108 WM |
17338 | |
17339 | ac_libobjs= | |
17340 | ac_ltlibobjs= | |
22e05272 | 17341 | U= |
f35db108 WM |
17342 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17343 | # 1. Remove the extension, and $U if already installed. | |
17344 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
17345 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17346 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17347 | # will be set to the directory where LIBOBJS objects are built. | |
17348 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17349 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
17350 | done | |
17351 | LIBOBJS=$ac_libobjs | |
17352 | ||
17353 | LTLIBOBJS=$ac_ltlibobjs | |
17354 | ||
17355 | ||
22e05272 JM |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17357 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17358 | if test -n "$am_sleep_pid"; then | |
17359 | # Hide warnings about reused PIDs. | |
17360 | wait $am_sleep_pid 2>/dev/null | |
17361 | fi | |
17362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17363 | $as_echo "done" >&6; } | |
c915a581 | 17364 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22e05272 | 17365 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
c915a581 JJ |
17366 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17367 | fi | |
17368 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 17369 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
c915a581 JJ |
17370 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17371 | fi | |
f35db108 WM |
17372 | if test -n "$EXEEXT"; then |
17373 | am__EXEEXT_TRUE= | |
17374 | am__EXEEXT_FALSE='#' | |
17375 | else | |
17376 | am__EXEEXT_TRUE='#' | |
17377 | am__EXEEXT_FALSE= | |
17378 | fi | |
17379 | ||
2b723e21 | 17380 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 17381 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
2b723e21 TT |
17382 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17383 | fi | |
f35db108 | 17384 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
22e05272 | 17385 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
f35db108 WM |
17386 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17387 | fi | |
17388 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
22e05272 | 17389 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
f35db108 WM |
17390 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17391 | fi | |
6a6d3817 IS |
17392 | if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then |
17393 | as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined. | |
17394 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17395 | fi | |
64548f3b | 17396 | if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then |
22e05272 | 17397 | as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined. |
cd0be65c WM |
17398 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17399 | fi | |
9065ada9 | 17400 | if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then |
22e05272 | 17401 | as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined. |
9065ada9 JJ |
17402 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17403 | fi | |
8a769f81 MM |
17404 | if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then |
17405 | as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined. | |
17406 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17407 | fi | |
8c4d267c | 17408 | if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then |
22e05272 | 17409 | as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined. |
f246eadc JH |
17410 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17411 | fi | |
4a7eaf5f | 17412 | if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then |
22e05272 | 17413 | as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined. |
4a7eaf5f YG |
17414 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17415 | fi | |
c915a581 | 17416 | if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then |
22e05272 | 17417 | as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined. |
c915a581 JJ |
17418 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17419 | fi | |
f35db108 | 17420 | |
22e05272 | 17421 | : "${CONFIG_STATUS=./config.status}" |
f35db108 WM |
17422 | ac_write_fail=0 |
17423 | ac_clean_files_save=$ac_clean_files | |
17424 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
17425 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
17426 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17427 | as_write_fail=0 | |
17428 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
17429 | #! $SHELL | |
17430 | # Generated by $as_me. | |
17431 | # Run this file to recreate the current configuration. | |
17432 | # Compiler output produced by configure, useful for debugging | |
17433 | # configure, is in config.log if it exists. | |
17434 | ||
17435 | debug=false | |
17436 | ac_cs_recheck=false | |
17437 | ac_cs_silent=false | |
17438 | ||
17439 | SHELL=\${CONFIG_SHELL-$SHELL} | |
17440 | export SHELL | |
17441 | _ASEOF | |
17442 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17443 | ## -------------------- ## | |
17444 | ## M4sh Initialization. ## | |
17445 | ## -------------------- ## | |
17446 | ||
17447 | # Be more Bourne compatible | |
17448 | DUALCASE=1; export DUALCASE # for MKS sh | |
17449 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
17450 | emulate sh | |
17451 | NULLCMD=: | |
17452 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
17453 | # is contrary to our usage. Disable this feature. | |
17454 | alias -g '${1+"$@"}'='"$@"' | |
17455 | setopt NO_GLOB_SUBST | |
17456 | else | |
17457 | case `(set -o) 2>/dev/null` in #( | |
17458 | *posix*) : | |
17459 | set -o posix ;; #( | |
17460 | *) : | |
17461 | ;; | |
17462 | esac | |
17463 | fi | |
17464 | ||
17465 | ||
17466 | as_nl=' | |
17467 | ' | |
17468 | export as_nl | |
17469 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17470 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17471 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17472 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17473 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17474 | # but without wasting forks for bash or zsh. | |
17475 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17476 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17477 | as_echo='print -r --' | |
17478 | as_echo_n='print -rn --' | |
17479 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17480 | as_echo='printf %s\n' | |
17481 | as_echo_n='printf %s' | |
17482 | else | |
17483 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17484 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17485 | as_echo_n='/usr/ucb/echo -n' | |
17486 | else | |
17487 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17488 | as_echo_n_body='eval | |
17489 | arg=$1; | |
17490 | case $arg in #( | |
17491 | *"$as_nl"*) | |
17492 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17493 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17494 | esac; | |
17495 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17496 | ' | |
17497 | export as_echo_n_body | |
17498 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17499 | fi | |
17500 | export as_echo_body | |
17501 | as_echo='sh -c $as_echo_body as_echo' | |
17502 | fi | |
17503 | ||
17504 | # The user is always right. | |
17505 | if test "${PATH_SEPARATOR+set}" != set; then | |
17506 | PATH_SEPARATOR=: | |
17507 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17508 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17509 | PATH_SEPARATOR=';' | |
17510 | } | |
17511 | fi | |
17512 | ||
17513 | ||
17514 | # IFS | |
17515 | # We need space, tab and new line, in precisely that order. Quoting is | |
17516 | # there to prevent editors from complaining about space-tab. | |
17517 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17518 | # splitting by setting IFS to empty value.) | |
17519 | IFS=" "" $as_nl" | |
17520 | ||
17521 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 17522 | as_myself= |
f35db108 WM |
17523 | case $0 in #(( |
17524 | *[\\/]* ) as_myself=$0 ;; | |
17525 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17526 | for as_dir in $PATH | |
17527 | do | |
17528 | IFS=$as_save_IFS | |
17529 | test -z "$as_dir" && as_dir=. | |
17530 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17531 | done | |
17532 | IFS=$as_save_IFS | |
17533 | ||
17534 | ;; | |
17535 | esac | |
17536 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17537 | # in which case we are not to be found in the path. | |
17538 | if test "x$as_myself" = x; then | |
17539 | as_myself=$0 | |
17540 | fi | |
17541 | if test ! -f "$as_myself"; then | |
17542 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17543 | exit 1 | |
17544 | fi | |
17545 | ||
17546 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17547 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17548 | # suppresses any "Segmentation fault" message there. '((' could | |
17549 | # trigger a bug in pdksh 5.2.14. | |
17550 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17551 | do eval test x\${$as_var+set} = xset \ | |
17552 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17553 | done | |
17554 | PS1='$ ' | |
17555 | PS2='> ' | |
17556 | PS4='+ ' | |
17557 | ||
17558 | # NLS nuisances. | |
17559 | LC_ALL=C | |
17560 | export LC_ALL | |
17561 | LANGUAGE=C | |
17562 | export LANGUAGE | |
17563 | ||
17564 | # CDPATH. | |
17565 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17566 | ||
17567 | ||
22e05272 JM |
17568 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17569 | # ---------------------------------------- | |
f35db108 WM |
17570 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17571 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 17572 | # script with STATUS, using 1 if that was 0. |
f35db108 WM |
17573 | as_fn_error () |
17574 | { | |
22e05272 JM |
17575 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17576 | if test "$4"; then | |
17577 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17578 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
f35db108 | 17579 | fi |
22e05272 | 17580 | $as_echo "$as_me: error: $2" >&2 |
f35db108 WM |
17581 | as_fn_exit $as_status |
17582 | } # as_fn_error | |
17583 | ||
17584 | ||
17585 | # as_fn_set_status STATUS | |
17586 | # ----------------------- | |
17587 | # Set $? to STATUS, without forking. | |
17588 | as_fn_set_status () | |
17589 | { | |
17590 | return $1 | |
17591 | } # as_fn_set_status | |
17592 | ||
17593 | # as_fn_exit STATUS | |
17594 | # ----------------- | |
17595 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17596 | as_fn_exit () | |
17597 | { | |
17598 | set +e | |
17599 | as_fn_set_status $1 | |
17600 | exit $1 | |
17601 | } # as_fn_exit | |
17602 | ||
17603 | # as_fn_unset VAR | |
17604 | # --------------- | |
17605 | # Portably unset VAR. | |
17606 | as_fn_unset () | |
17607 | { | |
17608 | { eval $1=; unset $1;} | |
17609 | } | |
17610 | as_unset=as_fn_unset | |
17611 | # as_fn_append VAR VALUE | |
17612 | # ---------------------- | |
17613 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17614 | # advantage of any shell optimizations that allow amortized linear growth over | |
17615 | # repeated appends, instead of the typical quadratic growth present in naive | |
17616 | # implementations. | |
17617 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
17618 | eval 'as_fn_append () | |
17619 | { | |
17620 | eval $1+=\$2 | |
17621 | }' | |
17622 | else | |
17623 | as_fn_append () | |
17624 | { | |
17625 | eval $1=\$$1\$2 | |
17626 | } | |
17627 | fi # as_fn_append | |
17628 | ||
17629 | # as_fn_arith ARG... | |
17630 | # ------------------ | |
17631 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
17632 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
17633 | # must be portable across $(()) and expr. | |
17634 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
17635 | eval 'as_fn_arith () | |
17636 | { | |
17637 | as_val=$(( $* )) | |
17638 | }' | |
17639 | else | |
17640 | as_fn_arith () | |
17641 | { | |
17642 | as_val=`expr "$@" || test $? -eq 1` | |
17643 | } | |
17644 | fi # as_fn_arith | |
17645 | ||
17646 | ||
17647 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
17648 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
17649 | as_expr=expr | |
17650 | else | |
17651 | as_expr=false | |
17652 | fi | |
17653 | ||
17654 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
17655 | as_basename=basename | |
17656 | else | |
17657 | as_basename=false | |
17658 | fi | |
17659 | ||
17660 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
17661 | as_dirname=dirname | |
17662 | else | |
17663 | as_dirname=false | |
17664 | fi | |
17665 | ||
17666 | as_me=`$as_basename -- "$0" || | |
17667 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17668 | X"$0" : 'X\(//\)$' \| \ | |
17669 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
17670 | $as_echo X/"$0" | | |
17671 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
17672 | s//\1/ | |
17673 | q | |
17674 | } | |
17675 | /^X\/\(\/\/\)$/{ | |
17676 | s//\1/ | |
17677 | q | |
17678 | } | |
17679 | /^X\/\(\/\).*/{ | |
17680 | s//\1/ | |
17681 | q | |
17682 | } | |
17683 | s/.*/./; q'` | |
17684 | ||
17685 | # Avoid depending upon Character Ranges. | |
17686 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17687 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17688 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17689 | as_cr_digits='0123456789' | |
17690 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17691 | ||
17692 | ECHO_C= ECHO_N= ECHO_T= | |
17693 | case `echo -n x` in #((((( | |
17694 | -n*) | |
17695 | case `echo 'xy\c'` in | |
17696 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
17697 | xy) ECHO_C='\c';; | |
17698 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
17699 | ECHO_T=' ';; | |
17700 | esac;; | |
17701 | *) | |
17702 | ECHO_N='-n';; | |
17703 | esac | |
17704 | ||
17705 | rm -f conf$$ conf$$.exe conf$$.file | |
17706 | if test -d conf$$.dir; then | |
17707 | rm -f conf$$.dir/conf$$.file | |
17708 | else | |
17709 | rm -f conf$$.dir | |
17710 | mkdir conf$$.dir 2>/dev/null | |
17711 | fi | |
17712 | if (echo >conf$$.file) 2>/dev/null; then | |
17713 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17714 | as_ln_s='ln -s' | |
17715 | # ... but there are two gotchas: | |
17716 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
17717 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 17718 | # In both cases, we have to default to `cp -pR'. |
f35db108 | 17719 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 17720 | as_ln_s='cp -pR' |
f35db108 WM |
17721 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17722 | as_ln_s=ln | |
17723 | else | |
22e05272 | 17724 | as_ln_s='cp -pR' |
f35db108 WM |
17725 | fi |
17726 | else | |
22e05272 | 17727 | as_ln_s='cp -pR' |
f35db108 WM |
17728 | fi |
17729 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
17730 | rmdir conf$$.dir 2>/dev/null | |
17731 | ||
17732 | ||
17733 | # as_fn_mkdir_p | |
17734 | # ------------- | |
17735 | # Create "$as_dir" as a directory, including parents if necessary. | |
17736 | as_fn_mkdir_p () | |
17737 | { | |
17738 | ||
17739 | case $as_dir in #( | |
17740 | -*) as_dir=./$as_dir;; | |
17741 | esac | |
17742 | test -d "$as_dir" || eval $as_mkdir_p || { | |
17743 | as_dirs= | |
17744 | while :; do | |
17745 | case $as_dir in #( | |
17746 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
17747 | *) as_qdir=$as_dir;; | |
17748 | esac | |
17749 | as_dirs="'$as_qdir' $as_dirs" | |
17750 | as_dir=`$as_dirname -- "$as_dir" || | |
17751 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17752 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17753 | X"$as_dir" : 'X\(//\)$' \| \ | |
17754 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17755 | $as_echo X"$as_dir" | | |
17756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17757 | s//\1/ | |
17758 | q | |
17759 | } | |
17760 | /^X\(\/\/\)[^/].*/{ | |
17761 | s//\1/ | |
17762 | q | |
17763 | } | |
17764 | /^X\(\/\/\)$/{ | |
17765 | s//\1/ | |
17766 | q | |
17767 | } | |
17768 | /^X\(\/\).*/{ | |
17769 | s//\1/ | |
17770 | q | |
17771 | } | |
17772 | s/.*/./; q'` | |
17773 | test -d "$as_dir" && break | |
17774 | done | |
17775 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 17776 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
f35db108 WM |
17777 | |
17778 | ||
17779 | } # as_fn_mkdir_p | |
17780 | if mkdir -p . 2>/dev/null; then | |
17781 | as_mkdir_p='mkdir -p "$as_dir"' | |
17782 | else | |
17783 | test -d ./-p && rmdir ./-p | |
17784 | as_mkdir_p=false | |
17785 | fi | |
17786 | ||
22e05272 JM |
17787 | |
17788 | # as_fn_executable_p FILE | |
17789 | # ----------------------- | |
17790 | # Test if FILE is an executable regular file. | |
17791 | as_fn_executable_p () | |
17792 | { | |
17793 | test -f "$1" && test -x "$1" | |
17794 | } # as_fn_executable_p | |
17795 | as_test_x='test -x' | |
17796 | as_executable_p=as_fn_executable_p | |
f35db108 WM |
17797 | |
17798 | # Sed expression to map a string onto a valid CPP name. | |
17799 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
17800 | ||
17801 | # Sed expression to map a string onto a valid variable name. | |
17802 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
17803 | ||
17804 | ||
17805 | exec 6>&1 | |
17806 | ## ----------------------------------- ## | |
17807 | ## Main body of $CONFIG_STATUS script. ## | |
17808 | ## ----------------------------------- ## | |
17809 | _ASEOF | |
17810 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17811 | ||
17812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17813 | # Save the log message, to keep $0 and so on meaningful, and to | |
17814 | # report actual input values of CONFIG_FILES etc. instead of their | |
17815 | # values after options handling. | |
17816 | ac_log=" | |
17817 | This file was extended by package-unused $as_me version-unused, which was | |
22e05272 | 17818 | generated by GNU Autoconf 2.69. Invocation command line was |
f35db108 WM |
17819 | |
17820 | CONFIG_FILES = $CONFIG_FILES | |
17821 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17822 | CONFIG_LINKS = $CONFIG_LINKS | |
17823 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17824 | $ $0 $@ | |
17825 | ||
17826 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17827 | " | |
17828 | ||
17829 | _ACEOF | |
17830 | ||
17831 | case $ac_config_files in *" | |
17832 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17833 | esac | |
17834 | ||
c915a581 JJ |
17835 | case $ac_config_headers in *" |
17836 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17837 | esac | |
f35db108 WM |
17838 | |
17839 | ||
17840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17841 | # Files that config.status was made for. | |
17842 | config_files="$ac_config_files" | |
c915a581 | 17843 | config_headers="$ac_config_headers" |
f35db108 WM |
17844 | config_commands="$ac_config_commands" |
17845 | ||
17846 | _ACEOF | |
17847 | ||
17848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17849 | ac_cs_usage="\ | |
17850 | \`$as_me' instantiates files and other configuration actions | |
17851 | from templates according to the current configuration. Unless the files | |
17852 | and actions are specified as TAGs, all are instantiated by default. | |
17853 | ||
17854 | Usage: $0 [OPTION]... [TAG]... | |
17855 | ||
17856 | -h, --help print this help, then exit | |
17857 | -V, --version print version number and configuration settings, then exit | |
22e05272 | 17858 | --config print configuration, then exit |
f35db108 WM |
17859 | -q, --quiet, --silent |
17860 | do not print progress messages | |
17861 | -d, --debug don't remove temporary files | |
17862 | --recheck update $as_me by reconfiguring in the same conditions | |
17863 | --file=FILE[:TEMPLATE] | |
17864 | instantiate the configuration file FILE | |
c915a581 JJ |
17865 | --header=FILE[:TEMPLATE] |
17866 | instantiate the configuration header FILE | |
f35db108 WM |
17867 | |
17868 | Configuration files: | |
17869 | $config_files | |
17870 | ||
c915a581 JJ |
17871 | Configuration headers: |
17872 | $config_headers | |
17873 | ||
f35db108 WM |
17874 | Configuration commands: |
17875 | $config_commands | |
17876 | ||
17877 | Report bugs to <libsanitizer>." | |
17878 | ||
17879 | _ACEOF | |
17880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 17881 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
f35db108 WM |
17882 | ac_cs_version="\\ |
17883 | package-unused config.status version-unused | |
22e05272 JM |
17884 | configured by $0, generated by GNU Autoconf 2.69, |
17885 | with options \\"\$ac_cs_config\\" | |
f35db108 | 17886 | |
22e05272 | 17887 | Copyright (C) 2012 Free Software Foundation, Inc. |
f35db108 WM |
17888 | This config.status script is free software; the Free Software Foundation |
17889 | gives unlimited permission to copy, distribute and modify it." | |
17890 | ||
17891 | ac_pwd='$ac_pwd' | |
17892 | srcdir='$srcdir' | |
17893 | INSTALL='$INSTALL' | |
17894 | MKDIR_P='$MKDIR_P' | |
17895 | AWK='$AWK' | |
17896 | test -n "\$AWK" || AWK=awk | |
17897 | _ACEOF | |
17898 | ||
17899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17900 | # The default lists apply if the user does not specify any file. | |
17901 | ac_need_defaults=: | |
17902 | while test $# != 0 | |
17903 | do | |
17904 | case $1 in | |
22e05272 | 17905 | --*=?*) |
f35db108 WM |
17906 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17907 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17908 | ac_shift=: | |
17909 | ;; | |
22e05272 JM |
17910 | --*=) |
17911 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17912 | ac_optarg= | |
17913 | ac_shift=: | |
17914 | ;; | |
f35db108 WM |
17915 | *) |
17916 | ac_option=$1 | |
17917 | ac_optarg=$2 | |
17918 | ac_shift=shift | |
17919 | ;; | |
17920 | esac | |
17921 | ||
17922 | case $ac_option in | |
17923 | # Handling of the options. | |
17924 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17925 | ac_cs_recheck=: ;; | |
17926 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17927 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
17928 | --config | --confi | --conf | --con | --co | --c ) |
17929 | $as_echo "$ac_cs_config"; exit ;; | |
f35db108 WM |
17930 | --debug | --debu | --deb | --de | --d | -d ) |
17931 | debug=: ;; | |
17932 | --file | --fil | --fi | --f ) | |
17933 | $ac_shift | |
17934 | case $ac_optarg in | |
17935 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 17936 | '') as_fn_error $? "missing file argument" ;; |
f35db108 WM |
17937 | esac |
17938 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17939 | ac_need_defaults=false;; | |
c915a581 JJ |
17940 | --header | --heade | --head | --hea ) |
17941 | $ac_shift | |
17942 | case $ac_optarg in | |
17943 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17944 | esac | |
17945 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
17946 | ac_need_defaults=false;; | |
17947 | --he | --h) | |
17948 | # Conflict between --help and --header | |
22e05272 | 17949 | as_fn_error $? "ambiguous option: \`$1' |
c915a581 JJ |
17950 | Try \`$0 --help' for more information.";; |
17951 | --help | --hel | -h ) | |
f35db108 WM |
17952 | $as_echo "$ac_cs_usage"; exit ;; |
17953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17954 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17955 | ac_cs_silent=: ;; | |
17956 | ||
17957 | # This is an error. | |
22e05272 | 17958 | -*) as_fn_error $? "unrecognized option: \`$1' |
f35db108 WM |
17959 | Try \`$0 --help' for more information." ;; |
17960 | ||
17961 | *) as_fn_append ac_config_targets " $1" | |
17962 | ac_need_defaults=false ;; | |
17963 | ||
17964 | esac | |
17965 | shift | |
17966 | done | |
17967 | ||
17968 | ac_configure_extra_args= | |
17969 | ||
17970 | if $ac_cs_silent; then | |
17971 | exec 6>/dev/null | |
17972 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17973 | fi | |
17974 | ||
17975 | _ACEOF | |
17976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17977 | if \$ac_cs_recheck; then | |
22e05272 | 17978 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
f35db108 WM |
17979 | shift |
17980 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17981 | CONFIG_SHELL='$SHELL' | |
17982 | export CONFIG_SHELL | |
17983 | exec "\$@" | |
17984 | fi | |
17985 | ||
17986 | _ACEOF | |
17987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17988 | exec 5>>config.log | |
17989 | { | |
17990 | echo | |
17991 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17992 | ## Running $as_me. ## | |
17993 | _ASBOX | |
17994 | $as_echo "$ac_log" | |
17995 | } >&5 | |
17996 | ||
17997 | _ACEOF | |
17998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17999 | # | |
18000 | # INIT-COMMANDS | |
18001 | # | |
2a6346c4 L |
18002 | |
18003 | srcdir="$srcdir" | |
18004 | host="$host" | |
18005 | target="$target" | |
18006 | with_multisubdir="$with_multisubdir" | |
18007 | with_multisrctop="$with_multisrctop" | |
18008 | with_target_subdir="$with_target_subdir" | |
18009 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
18010 | multi_basedir="$multi_basedir" | |
18011 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
18012 | CC="$CC" | |
18013 | CXX="$CXX" | |
18014 | GFORTRAN="$GFORTRAN" | |
22e05272 | 18015 | GDC="$GDC" |
8bc1fac7 | 18016 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
f35db108 WM |
18017 | |
18018 | ||
18019 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18020 | # if CDPATH is set. | |
18021 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18022 | ||
18023 | sed_quote_subst='$sed_quote_subst' | |
18024 | double_quote_subst='$double_quote_subst' | |
18025 | delay_variable_subst='$delay_variable_subst' | |
18026 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18027 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18028 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18029 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18030 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18031 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18032 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18033 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18034 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
18035 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18036 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18037 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18038 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18039 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18040 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18041 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18042 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18043 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18044 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18045 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18046 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18047 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18048 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18049 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18050 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18051 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18052 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18053 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18054 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
18055 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18056 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18057 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18058 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18059 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
18060 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18061 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
18062 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18063 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18064 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18065 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18066 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18067 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18068 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18069 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18070 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18071 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18072 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18073 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18074 | 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 |
18075 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
18076 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18077 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
f35db108 | 18078 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
a2479b3d | 18079 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18080 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
18081 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18082 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18083 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
18084 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18085 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18086 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18087 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18088 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18089 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18090 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18091 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18092 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18093 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18094 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18095 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18096 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18097 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18098 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18099 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18100 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18101 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18102 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18103 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18104 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18105 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 18106 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18107 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
18108 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18109 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18110 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18111 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18112 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18113 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18114 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 18115 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18116 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
18117 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18118 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18119 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18120 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18121 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
18122 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18123 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18124 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18125 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18126 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18127 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18128 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18129 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18130 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18131 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18132 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18133 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18134 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18135 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18136 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18137 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18138 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18139 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18140 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18141 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18142 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18143 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18144 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18145 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18146 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18147 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18148 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18149 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18150 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18151 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18152 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18153 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18154 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18155 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18156 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18157 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18158 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
f35db108 | 18159 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
a2479b3d | 18160 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18161 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
18162 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18163 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18164 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18165 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18166 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18167 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18168 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18169 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18170 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18171 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18172 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18173 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18174 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18175 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18176 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18177 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 18178 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18179 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
18180 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18181 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18182 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18183 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18184 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18185 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18186 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
a2479b3d | 18187 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' |
f35db108 WM |
18188 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
18189 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18190 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18191 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18192 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
f35db108 WM |
18193 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
18194 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18195 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18196 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18197 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18198 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18199 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18200 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18201 | ||
18202 | LTCC='$LTCC' | |
18203 | LTCFLAGS='$LTCFLAGS' | |
18204 | compiler='$compiler_DEFAULT' | |
18205 | ||
18206 | # A function that is used when there is no print builtin or printf. | |
18207 | func_fallback_echo () | |
18208 | { | |
18209 | eval 'cat <<_LTECHO_EOF | |
18210 | \$1 | |
18211 | _LTECHO_EOF' | |
18212 | } | |
18213 | ||
18214 | # Quote evaled strings. | |
18215 | for var in SHELL \ | |
18216 | ECHO \ | |
f35db108 WM |
18217 | SED \ |
18218 | GREP \ | |
18219 | EGREP \ | |
18220 | FGREP \ | |
18221 | LD \ | |
18222 | NM \ | |
18223 | LN_S \ | |
18224 | lt_SP2NL \ | |
18225 | lt_NL2SP \ | |
18226 | reload_flag \ | |
18227 | OBJDUMP \ | |
18228 | deplibs_check_method \ | |
18229 | file_magic_cmd \ | |
f35db108 WM |
18230 | AR \ |
18231 | AR_FLAGS \ | |
f35db108 WM |
18232 | STRIP \ |
18233 | RANLIB \ | |
18234 | CC \ | |
18235 | CFLAGS \ | |
18236 | compiler \ | |
18237 | lt_cv_sys_global_symbol_pipe \ | |
18238 | lt_cv_sys_global_symbol_to_cdecl \ | |
18239 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18240 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
f35db108 | 18241 | lt_prog_compiler_no_builtin_flag \ |
f35db108 | 18242 | lt_prog_compiler_wl \ |
a2479b3d | 18243 | lt_prog_compiler_pic \ |
f35db108 WM |
18244 | lt_prog_compiler_static \ |
18245 | lt_cv_prog_compiler_c_o \ | |
18246 | need_locks \ | |
f35db108 WM |
18247 | DSYMUTIL \ |
18248 | NMEDIT \ | |
18249 | LIPO \ | |
18250 | OTOOL \ | |
18251 | OTOOL64 \ | |
18252 | shrext_cmds \ | |
18253 | export_dynamic_flag_spec \ | |
18254 | whole_archive_flag_spec \ | |
18255 | compiler_needs_object \ | |
18256 | with_gnu_ld \ | |
18257 | allow_undefined_flag \ | |
18258 | no_undefined_flag \ | |
18259 | hardcode_libdir_flag_spec \ | |
a2479b3d | 18260 | hardcode_libdir_flag_spec_ld \ |
f35db108 | 18261 | hardcode_libdir_separator \ |
a2479b3d | 18262 | fix_srcfile_path \ |
f35db108 WM |
18263 | exclude_expsyms \ |
18264 | include_expsyms \ | |
18265 | file_list_spec \ | |
18266 | variables_saved_for_relink \ | |
18267 | libname_spec \ | |
18268 | library_names_spec \ | |
18269 | soname_spec \ | |
18270 | install_override_mode \ | |
18271 | finish_eval \ | |
18272 | old_striplib \ | |
18273 | striplib \ | |
18274 | compiler_lib_search_dirs \ | |
18275 | predep_objects \ | |
18276 | postdep_objects \ | |
18277 | predeps \ | |
18278 | postdeps \ | |
18279 | compiler_lib_search_path \ | |
18280 | LD_CXX \ | |
18281 | reload_flag_CXX \ | |
18282 | compiler_CXX \ | |
18283 | lt_prog_compiler_no_builtin_flag_CXX \ | |
f35db108 | 18284 | lt_prog_compiler_wl_CXX \ |
a2479b3d | 18285 | lt_prog_compiler_pic_CXX \ |
f35db108 WM |
18286 | lt_prog_compiler_static_CXX \ |
18287 | lt_cv_prog_compiler_c_o_CXX \ | |
18288 | export_dynamic_flag_spec_CXX \ | |
18289 | whole_archive_flag_spec_CXX \ | |
18290 | compiler_needs_object_CXX \ | |
18291 | with_gnu_ld_CXX \ | |
18292 | allow_undefined_flag_CXX \ | |
18293 | no_undefined_flag_CXX \ | |
18294 | hardcode_libdir_flag_spec_CXX \ | |
a2479b3d | 18295 | hardcode_libdir_flag_spec_ld_CXX \ |
f35db108 | 18296 | hardcode_libdir_separator_CXX \ |
a2479b3d | 18297 | fix_srcfile_path_CXX \ |
f35db108 WM |
18298 | exclude_expsyms_CXX \ |
18299 | include_expsyms_CXX \ | |
18300 | file_list_spec_CXX \ | |
18301 | compiler_lib_search_dirs_CXX \ | |
18302 | predep_objects_CXX \ | |
18303 | postdep_objects_CXX \ | |
18304 | predeps_CXX \ | |
18305 | postdeps_CXX \ | |
18306 | compiler_lib_search_path_CXX; do | |
18307 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18308 | *[\\\\\\\`\\"\\\$]*) | |
18309 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18310 | ;; | |
18311 | *) | |
18312 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18313 | ;; | |
18314 | esac | |
18315 | done | |
18316 | ||
18317 | # Double-quote double-evaled strings. | |
18318 | for var in reload_cmds \ | |
18319 | old_postinstall_cmds \ | |
18320 | old_postuninstall_cmds \ | |
18321 | old_archive_cmds \ | |
18322 | extract_expsyms_cmds \ | |
18323 | old_archive_from_new_cmds \ | |
18324 | old_archive_from_expsyms_cmds \ | |
18325 | archive_cmds \ | |
18326 | archive_expsym_cmds \ | |
18327 | module_cmds \ | |
18328 | module_expsym_cmds \ | |
18329 | export_symbols_cmds \ | |
18330 | prelink_cmds \ | |
f35db108 WM |
18331 | postinstall_cmds \ |
18332 | postuninstall_cmds \ | |
18333 | finish_cmds \ | |
18334 | sys_lib_search_path_spec \ | |
18335 | sys_lib_dlsearch_path_spec \ | |
18336 | reload_cmds_CXX \ | |
18337 | old_archive_cmds_CXX \ | |
18338 | old_archive_from_new_cmds_CXX \ | |
18339 | old_archive_from_expsyms_cmds_CXX \ | |
18340 | archive_cmds_CXX \ | |
18341 | archive_expsym_cmds_CXX \ | |
18342 | module_cmds_CXX \ | |
18343 | module_expsym_cmds_CXX \ | |
18344 | export_symbols_cmds_CXX \ | |
a2479b3d | 18345 | prelink_cmds_CXX; do |
f35db108 WM |
18346 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
18347 | *[\\\\\\\`\\"\\\$]*) | |
18348 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18349 | ;; | |
18350 | *) | |
18351 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18352 | ;; | |
18353 | esac | |
18354 | done | |
18355 | ||
18356 | ac_aux_dir='$ac_aux_dir' | |
18357 | xsi_shell='$xsi_shell' | |
18358 | lt_shell_append='$lt_shell_append' | |
18359 | ||
18360 | # See if we are running on zsh, and set the options which allow our | |
18361 | # commands through without removal of \ escapes INIT. | |
18362 | if test -n "\${ZSH_VERSION+set}" ; then | |
18363 | setopt NO_GLOB_SUBST | |
18364 | fi | |
18365 | ||
18366 | ||
18367 | PACKAGE='$PACKAGE' | |
18368 | VERSION='$VERSION' | |
18369 | TIMESTAMP='$TIMESTAMP' | |
18370 | RM='$RM' | |
18371 | ofile='$ofile' | |
18372 | ||
18373 | ||
18374 | ||
18375 | ||
18376 | ||
18377 | ||
c915a581 JJ |
18378 | GCC="$GCC" |
18379 | CC="$CC" | |
18380 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
18381 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
18382 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
18383 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
18384 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
18385 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
18386 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
18387 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
18388 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
18389 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
18390 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
18391 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
18392 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
18393 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
18394 | ||
18395 | ||
f35db108 WM |
18396 | _ACEOF |
18397 | ||
18398 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18399 | ||
18400 | # Handling of arguments. | |
18401 | for ac_config_target in $ac_config_targets | |
18402 | do | |
18403 | case $ac_config_target in | |
c915a581 | 18404 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
94213c10 | 18405 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
f35db108 | 18406 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
c915a581 | 18407 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
f35db108 | 18408 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
35814b03 | 18409 | "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;; |
c915a581 JJ |
18410 | "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;; |
18411 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
f35db108 WM |
18412 | "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;; |
18413 | "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;; | |
c915a581 | 18414 | "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;; |
ef1b3fda | 18415 | "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;; |
f35db108 | 18416 | "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;; |
de5a5fa1 | 18417 | "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;; |
cd0be65c | 18418 | "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;; |
8a769f81 | 18419 | "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;; |
f35db108 | 18420 | |
22e05272 | 18421 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
f35db108 WM |
18422 | esac |
18423 | done | |
18424 | ||
18425 | ||
18426 | # If the user did not use the arguments to specify the items to instantiate, | |
18427 | # then the envvar interface is used. Set only those that are not. | |
18428 | # We use the long form for the default assignment because of an extremely | |
18429 | # bizarre bug on SunOS 4.1.3. | |
18430 | if $ac_need_defaults; then | |
18431 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
c915a581 | 18432 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
f35db108 WM |
18433 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
18434 | fi | |
18435 | ||
18436 | # Have a temporary directory for convenience. Make it in the build tree | |
18437 | # simply because there is no reason against having it here, and in addition, | |
18438 | # creating and moving files from /tmp can sometimes cause problems. | |
18439 | # Hook for its removal unless debugging. | |
18440 | # Note that there is a small window in which the directory will not be cleaned: | |
18441 | # after its creation but before its name has been assigned to `$tmp'. | |
18442 | $debug || | |
18443 | { | |
22e05272 | 18444 | tmp= ac_tmp= |
f35db108 | 18445 | trap 'exit_status=$? |
22e05272 JM |
18446 | : "${ac_tmp:=$tmp}" |
18447 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
f35db108 WM |
18448 | ' 0 |
18449 | trap 'as_fn_exit 1' 1 2 13 15 | |
18450 | } | |
18451 | # Create a (secure) tmp directory for tmp files. | |
18452 | ||
18453 | { | |
18454 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22e05272 | 18455 | test -d "$tmp" |
f35db108 WM |
18456 | } || |
18457 | { | |
18458 | tmp=./conf$$-$RANDOM | |
18459 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
18460 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18461 | ac_tmp=$tmp | |
f35db108 WM |
18462 | |
18463 | # Set up the scripts for CONFIG_FILES section. | |
18464 | # No need to generate them if there are no CONFIG_FILES. | |
18465 | # This happens for instance with `./config.status config.h'. | |
18466 | if test -n "$CONFIG_FILES"; then | |
18467 | ||
18468 | ||
18469 | ac_cr=`echo X | tr X '\015'` | |
18470 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18471 | # But we know of no other shell where ac_cr would be empty at this | |
18472 | # point, so we can use a bashism as a fallback. | |
18473 | if test "x$ac_cr" = x; then | |
18474 | eval ac_cr=\$\'\\r\' | |
18475 | fi | |
18476 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18477 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 18478 | ac_cs_awk_cr='\\r' |
f35db108 WM |
18479 | else |
18480 | ac_cs_awk_cr=$ac_cr | |
18481 | fi | |
18482 | ||
22e05272 | 18483 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
f35db108 WM |
18484 | _ACEOF |
18485 | ||
18486 | ||
18487 | { | |
18488 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18489 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18490 | echo "_ACEOF" | |
18491 | } >conf$$subs.sh || | |
22e05272 JM |
18492 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18493 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
f35db108 WM |
18494 | ac_delim='%!_!# ' |
18495 | for ac_last_try in false false false false false :; do | |
18496 | . ./conf$$subs.sh || | |
22e05272 | 18497 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
18498 | |
18499 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18500 | if test $ac_delim_n = $ac_delim_num; then | |
18501 | break | |
18502 | elif $ac_last_try; then | |
22e05272 | 18503 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
18504 | else |
18505 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18506 | fi | |
18507 | done | |
18508 | rm -f conf$$subs.sh | |
18509 | ||
18510 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 18511 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
f35db108 WM |
18512 | _ACEOF |
18513 | sed -n ' | |
18514 | h | |
18515 | s/^/S["/; s/!.*/"]=/ | |
18516 | p | |
18517 | g | |
18518 | s/^[^!]*!// | |
18519 | :repl | |
18520 | t repl | |
18521 | s/'"$ac_delim"'$// | |
18522 | t delim | |
18523 | :nl | |
18524 | h | |
22e05272 | 18525 | s/\(.\{148\}\)..*/\1/ |
f35db108 WM |
18526 | t more1 |
18527 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18528 | p | |
18529 | n | |
18530 | b repl | |
18531 | :more1 | |
18532 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18533 | p | |
18534 | g | |
18535 | s/.\{148\}// | |
18536 | t nl | |
18537 | :delim | |
18538 | h | |
22e05272 | 18539 | s/\(.\{148\}\)..*/\1/ |
f35db108 WM |
18540 | t more2 |
18541 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18542 | p | |
18543 | b | |
18544 | :more2 | |
18545 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18546 | p | |
18547 | g | |
18548 | s/.\{148\}// | |
18549 | t delim | |
18550 | ' <conf$$subs.awk | sed ' | |
18551 | /^[^""]/{ | |
18552 | N | |
18553 | s/\n// | |
18554 | } | |
18555 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18556 | rm -f conf$$subs.awk | |
18557 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18558 | _ACAWK | |
22e05272 | 18559 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
f35db108 WM |
18560 | for (key in S) S_is_set[key] = 1 |
18561 | FS = "\a" | |
18562 | ||
18563 | } | |
18564 | { | |
18565 | line = $ 0 | |
18566 | nfields = split(line, field, "@") | |
18567 | substed = 0 | |
18568 | len = length(field[1]) | |
18569 | for (i = 2; i < nfields; i++) { | |
18570 | key = field[i] | |
18571 | keylen = length(key) | |
18572 | if (S_is_set[key]) { | |
18573 | value = S[key] | |
18574 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18575 | len += length(value) + length(field[++i]) | |
18576 | substed = 1 | |
18577 | } else | |
18578 | len += 1 + keylen | |
18579 | } | |
18580 | ||
18581 | print line | |
18582 | } | |
18583 | ||
18584 | _ACAWK | |
18585 | _ACEOF | |
18586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18587 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18588 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18589 | else | |
18590 | cat | |
22e05272 JM |
18591 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18592 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
f35db108 WM |
18593 | _ACEOF |
18594 | ||
22e05272 JM |
18595 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18596 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
f35db108 WM |
18597 | # trailing colons and then remove the whole line if VPATH becomes empty |
18598 | # (actually we leave an empty line to preserve line numbers). | |
18599 | if test "x$srcdir" = x.; then | |
22e05272 JM |
18600 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18601 | h | |
18602 | s/// | |
18603 | s/^/:/ | |
18604 | s/[ ]*$/:/ | |
18605 | s/:\$(srcdir):/:/g | |
18606 | s/:\${srcdir}:/:/g | |
18607 | s/:@srcdir@:/:/g | |
18608 | s/^:*// | |
f35db108 | 18609 | s/:*$// |
22e05272 JM |
18610 | x |
18611 | s/\(=[ ]*\).*/\1/ | |
18612 | G | |
18613 | s/\n// | |
f35db108 WM |
18614 | s/^[^=]*=[ ]*$// |
18615 | }' | |
18616 | fi | |
18617 | ||
18618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18619 | fi # test -n "$CONFIG_FILES" | |
18620 | ||
c915a581 JJ |
18621 | # Set up the scripts for CONFIG_HEADERS section. |
18622 | # No need to generate them if there are no CONFIG_HEADERS. | |
18623 | # This happens for instance with `./config.status Makefile'. | |
18624 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 18625 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
c915a581 JJ |
18626 | BEGIN { |
18627 | _ACEOF | |
18628 | ||
18629 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18630 | # here-document in config.status, that substitutes the proper values into | |
18631 | # config.h.in to produce config.h. | |
18632 | ||
18633 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18634 | # handling of long lines. | |
18635 | ac_delim='%!_!# ' | |
18636 | for ac_last_try in false false :; do | |
22e05272 JM |
18637 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18638 | if test -z "$ac_tt"; then | |
c915a581 JJ |
18639 | break |
18640 | elif $ac_last_try; then | |
22e05272 | 18641 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
c915a581 JJ |
18642 | else |
18643 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18644 | fi | |
18645 | done | |
18646 | ||
18647 | # For the awk script, D is an array of macro values keyed by name, | |
18648 | # likewise P contains macro parameters if any. Preserve backslash | |
18649 | # newline sequences. | |
18650 | ||
18651 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18652 | sed -n ' | |
18653 | s/.\{148\}/&'"$ac_delim"'/g | |
18654 | t rset | |
18655 | :rset | |
18656 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18657 | t def | |
18658 | d | |
18659 | :def | |
18660 | s/\\$// | |
18661 | t bsnl | |
18662 | s/["\\]/\\&/g | |
18663 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18664 | D["\1"]=" \3"/p | |
18665 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18666 | d | |
18667 | :bsnl | |
18668 | s/["\\]/\\&/g | |
18669 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18670 | D["\1"]=" \3\\\\\\n"\\/p | |
18671 | t cont | |
18672 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18673 | t cont | |
18674 | d | |
18675 | :cont | |
18676 | n | |
18677 | s/.\{148\}/&'"$ac_delim"'/g | |
18678 | t clear | |
18679 | :clear | |
18680 | s/\\$// | |
18681 | t bsnlc | |
18682 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18683 | d | |
18684 | :bsnlc | |
18685 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18686 | b cont | |
18687 | ' <confdefs.h | sed ' | |
18688 | s/'"$ac_delim"'/"\\\ | |
18689 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18690 | ||
18691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18692 | for (key in D) D_is_set[key] = 1 | |
18693 | FS = "\a" | |
18694 | } | |
18695 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18696 | line = \$ 0 | |
18697 | split(line, arg, " ") | |
18698 | if (arg[1] == "#") { | |
18699 | defundef = arg[2] | |
18700 | mac1 = arg[3] | |
18701 | } else { | |
18702 | defundef = substr(arg[1], 2) | |
18703 | mac1 = arg[2] | |
18704 | } | |
18705 | split(mac1, mac2, "(") #) | |
18706 | macro = mac2[1] | |
18707 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18708 | if (D_is_set[macro]) { | |
18709 | # Preserve the white space surrounding the "#". | |
18710 | print prefix "define", macro P[macro] D[macro] | |
18711 | next | |
18712 | } else { | |
18713 | # Replace #undef with comments. This is necessary, for example, | |
18714 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18715 | # on some systems where configure will not decide to define it. | |
18716 | if (defundef == "undef") { | |
18717 | print "/*", prefix defundef, macro, "*/" | |
18718 | next | |
18719 | } | |
18720 | } | |
18721 | } | |
18722 | { print } | |
18723 | _ACAWK | |
18724 | _ACEOF | |
18725 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 18726 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
c915a581 JJ |
18727 | fi # test -n "$CONFIG_HEADERS" |
18728 | ||
f35db108 | 18729 | |
c915a581 | 18730 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
f35db108 WM |
18731 | shift |
18732 | for ac_tag | |
18733 | do | |
18734 | case $ac_tag in | |
18735 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
18736 | esac | |
18737 | case $ac_mode$ac_tag in | |
18738 | :[FHL]*:*);; | |
22e05272 | 18739 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
f35db108 WM |
18740 | :[FH]-) ac_tag=-:-;; |
18741 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
18742 | esac | |
18743 | ac_save_IFS=$IFS | |
18744 | IFS=: | |
18745 | set x $ac_tag | |
18746 | IFS=$ac_save_IFS | |
18747 | shift | |
18748 | ac_file=$1 | |
18749 | shift | |
18750 | ||
18751 | case $ac_mode in | |
18752 | :L) ac_source=$1;; | |
18753 | :[FH]) | |
18754 | ac_file_inputs= | |
18755 | for ac_f | |
18756 | do | |
18757 | case $ac_f in | |
22e05272 | 18758 | -) ac_f="$ac_tmp/stdin";; |
f35db108 WM |
18759 | *) # Look for the file first in the build tree, then in the source tree |
18760 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
18761 | # because $ac_f cannot contain `:'. | |
18762 | test -f "$ac_f" || | |
18763 | case $ac_f in | |
18764 | [\\/$]*) false;; | |
18765 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
18766 | esac || | |
22e05272 | 18767 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
f35db108 WM |
18768 | esac |
18769 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
18770 | as_fn_append ac_file_inputs " '$ac_f'" | |
18771 | done | |
18772 | ||
18773 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18774 | # use $as_me), people would be surprised to read: | |
18775 | # /* config.h. Generated by config.status. */ | |
18776 | configure_input='Generated from '` | |
18777 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
18778 | `' by configure.' | |
18779 | if test x"$ac_file" != x-; then | |
18780 | configure_input="$ac_file. $configure_input" | |
18781 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
18782 | $as_echo "$as_me: creating $ac_file" >&6;} | |
18783 | fi | |
18784 | # Neutralize special characters interpreted by sed in replacement strings. | |
18785 | case $configure_input in #( | |
18786 | *\&* | *\|* | *\\* ) | |
18787 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
18788 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
18789 | *) ac_sed_conf_input=$configure_input;; | |
18790 | esac | |
18791 | ||
18792 | case $ac_tag in | |
22e05272 JM |
18793 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
18794 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
f35db108 WM |
18795 | esac |
18796 | ;; | |
18797 | esac | |
18798 | ||
18799 | ac_dir=`$as_dirname -- "$ac_file" || | |
18800 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18801 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18802 | X"$ac_file" : 'X\(//\)$' \| \ | |
18803 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
18804 | $as_echo X"$ac_file" | | |
18805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18806 | s//\1/ | |
18807 | q | |
18808 | } | |
18809 | /^X\(\/\/\)[^/].*/{ | |
18810 | s//\1/ | |
18811 | q | |
18812 | } | |
18813 | /^X\(\/\/\)$/{ | |
18814 | s//\1/ | |
18815 | q | |
18816 | } | |
18817 | /^X\(\/\).*/{ | |
18818 | s//\1/ | |
18819 | q | |
18820 | } | |
18821 | s/.*/./; q'` | |
18822 | as_dir="$ac_dir"; as_fn_mkdir_p | |
18823 | ac_builddir=. | |
18824 | ||
18825 | case "$ac_dir" in | |
18826 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18827 | *) | |
18828 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
18829 | # A ".." for each directory in $ac_dir_suffix. | |
18830 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
18831 | case $ac_top_builddir_sub in | |
18832 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18833 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18834 | esac ;; | |
18835 | esac | |
18836 | ac_abs_top_builddir=$ac_pwd | |
18837 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18838 | # for backward compatibility: | |
18839 | ac_top_builddir=$ac_top_build_prefix | |
18840 | ||
18841 | case $srcdir in | |
18842 | .) # We are building in place. | |
18843 | ac_srcdir=. | |
18844 | ac_top_srcdir=$ac_top_builddir_sub | |
18845 | ac_abs_top_srcdir=$ac_pwd ;; | |
18846 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
18847 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18848 | ac_top_srcdir=$srcdir | |
18849 | ac_abs_top_srcdir=$srcdir ;; | |
18850 | *) # Relative name. | |
18851 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18852 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18853 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
18854 | esac | |
18855 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
18856 | ||
18857 | ||
18858 | case $ac_mode in | |
18859 | :F) | |
18860 | # | |
18861 | # CONFIG_FILE | |
18862 | # | |
18863 | ||
18864 | case $INSTALL in | |
18865 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18866 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
18867 | esac | |
18868 | ac_MKDIR_P=$MKDIR_P | |
18869 | case $MKDIR_P in | |
18870 | [\\/$]* | ?:[\\/]* ) ;; | |
18871 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
18872 | esac | |
18873 | _ACEOF | |
18874 | ||
18875 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18876 | # If the template does not know about datarootdir, expand it. | |
18877 | # FIXME: This hack should be removed a few years after 2.60. | |
18878 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18879 | ac_sed_dataroot=' | |
18880 | /datarootdir/ { | |
18881 | p | |
18882 | q | |
18883 | } | |
18884 | /@datadir@/p | |
18885 | /@docdir@/p | |
18886 | /@infodir@/p | |
18887 | /@localedir@/p | |
18888 | /@mandir@/p' | |
18889 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18890 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18891 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18893 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18894 | _ACEOF | |
18895 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18896 | ac_datarootdir_hack=' | |
18897 | s&@datadir@&$datadir&g | |
18898 | s&@docdir@&$docdir&g | |
18899 | s&@infodir@&$infodir&g | |
18900 | s&@localedir@&$localedir&g | |
18901 | s&@mandir@&$mandir&g | |
18902 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18903 | esac | |
18904 | _ACEOF | |
18905 | ||
18906 | # Neutralize VPATH when `$srcdir' = `.'. | |
18907 | # Shell code in configure.ac might set extrasub. | |
18908 | # FIXME: do we really want to maintain this feature? | |
18909 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18910 | ac_sed_extra="$ac_vpsub | |
18911 | $extrasub | |
18912 | _ACEOF | |
18913 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18914 | :t | |
18915 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18916 | s|@configure_input@|$ac_sed_conf_input|;t t | |
18917 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18918 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18919 | s&@srcdir@&$ac_srcdir&;t t | |
18920 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18921 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18922 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18923 | s&@builddir@&$ac_builddir&;t t | |
18924 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18925 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18926 | s&@INSTALL@&$ac_INSTALL&;t t | |
18927 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
18928 | $ac_datarootdir_hack | |
18929 | " | |
22e05272 JM |
18930 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18931 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
f35db108 WM |
18932 | |
18933 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
18934 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18935 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18936 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
f35db108 | 18937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18938 | which seems to be undefined. Please make sure it is defined" >&5 |
f35db108 | 18939 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 18940 | which seems to be undefined. Please make sure it is defined" >&2;} |
f35db108 | 18941 | |
22e05272 | 18942 | rm -f "$ac_tmp/stdin" |
f35db108 | 18943 | case $ac_file in |
22e05272 JM |
18944 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18945 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
f35db108 | 18946 | esac \ |
22e05272 | 18947 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f35db108 | 18948 | ;; |
c915a581 JJ |
18949 | :H) |
18950 | # | |
18951 | # CONFIG_HEADER | |
18952 | # | |
18953 | if test x"$ac_file" != x-; then | |
18954 | { | |
18955 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
18956 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
18957 | } >"$ac_tmp/config.h" \ | |
18958 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18959 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
c915a581 JJ |
18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
18961 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18962 | else | |
18963 | rm -f "$ac_file" | |
22e05272 JM |
18964 | mv "$ac_tmp/config.h" "$ac_file" \ |
18965 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
c915a581 JJ |
18966 | fi |
18967 | else | |
18968 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
18969 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
18970 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
c915a581 JJ |
18971 | fi |
18972 | # Compute "$ac_file"'s index in $config_headers. | |
18973 | _am_arg="$ac_file" | |
18974 | _am_stamp_count=1 | |
18975 | for _am_header in $config_headers :; do | |
18976 | case $_am_header in | |
18977 | $_am_arg | $_am_arg:* ) | |
18978 | break ;; | |
18979 | * ) | |
18980 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18981 | esac | |
18982 | done | |
18983 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18984 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18985 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18986 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18987 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18988 | $as_echo X"$_am_arg" | | |
18989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18990 | s//\1/ | |
18991 | q | |
18992 | } | |
18993 | /^X\(\/\/\)[^/].*/{ | |
18994 | s//\1/ | |
18995 | q | |
18996 | } | |
18997 | /^X\(\/\/\)$/{ | |
18998 | s//\1/ | |
18999 | q | |
19000 | } | |
19001 | /^X\(\/\).*/{ | |
19002 | s//\1/ | |
19003 | q | |
19004 | } | |
19005 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19006 | ;; | |
f35db108 WM |
19007 | |
19008 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
19009 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19010 | ;; | |
19011 | esac | |
19012 | ||
19013 | ||
19014 | case $ac_file$ac_mode in | |
94213c10 MK |
19015 | "default-1":C) |
19016 | # Only add multilib support code if we just rebuilt the top-level | |
19017 | # Makefile. | |
19018 | case " $CONFIG_FILES " in | |
19019 | *" Makefile "*) | |
19020 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
19021 | ;; | |
19022 | esac ;; | |
f35db108 | 19023 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
22e05272 | 19024 | # Older Autoconf quotes --file arguments for eval, but not when files |
f35db108 WM |
19025 | # are listed without --file. Let's play safe and only enable the eval |
19026 | # if we detect the quoting. | |
8bc1fac7 IS |
19027 | case $CONFIG_FILES in |
19028 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19029 | *) set x $CONFIG_FILES ;; | |
19030 | esac | |
f35db108 | 19031 | shift |
8bc1fac7 | 19032 | for mf |
f35db108 WM |
19033 | do |
19034 | # Strip MF so we end up with the name of the file. | |
8bc1fac7 IS |
19035 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
19036 | # Check whether this is an Automake generated Makefile or not. | |
19037 | # We used to match only the files named 'Makefile.in', but | |
19038 | # some people rename them; so instead we look at the file content. | |
19039 | # Grep'ing the first line is not enough: some people post-process | |
19040 | # each Makefile.in and add a new line on top of each file to say so. | |
19041 | # Grep'ing the whole file is not good either: AIX grep has a line | |
f35db108 | 19042 | # limit of 2048, but all sed's we know have understand at least 4000. |
8bc1fac7 IS |
19043 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
19044 | dirpart=`$as_dirname -- "$mf" || | |
19045 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19046 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19047 | X"$mf" : 'X\(//\)$' \| \ | |
19048 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19049 | $as_echo X"$mf" | | |
f35db108 WM |
19050 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19051 | s//\1/ | |
19052 | q | |
19053 | } | |
19054 | /^X\(\/\/\)[^/].*/{ | |
19055 | s//\1/ | |
19056 | q | |
19057 | } | |
19058 | /^X\(\/\/\)$/{ | |
19059 | s//\1/ | |
19060 | q | |
19061 | } | |
19062 | /^X\(\/\).*/{ | |
19063 | s//\1/ | |
19064 | q | |
19065 | } | |
19066 | s/.*/./; q'` | |
8bc1fac7 IS |
19067 | else |
19068 | continue | |
19069 | fi | |
19070 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19071 | # from the Makefile without running 'make'. | |
19072 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19073 | test -z "$DEPDIR" && continue | |
19074 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19075 | test -z "$am__include" && continue | |
19076 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19077 | # Find all dependency output files, they are included files with | |
19078 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19079 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19080 | # expansion. | |
19081 | for file in `sed -n " | |
19082 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19083 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19084 | # Make sure the directory exists. | |
19085 | test -f "$dirpart/$file" && continue | |
19086 | fdir=`$as_dirname -- "$file" || | |
19087 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19088 | X"$file" : 'X\(//\)[^/]' \| \ | |
19089 | X"$file" : 'X\(//\)$' \| \ | |
19090 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19091 | $as_echo X"$file" | | |
19092 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
f35db108 WM |
19093 | s//\1/ |
19094 | q | |
19095 | } | |
8bc1fac7 | 19096 | /^X\(\/\/\)[^/].*/{ |
f35db108 WM |
19097 | s//\1/ |
19098 | q | |
19099 | } | |
8bc1fac7 IS |
19100 | /^X\(\/\/\)$/{ |
19101 | s//\1/ | |
19102 | q | |
19103 | } | |
19104 | /^X\(\/\).*/{ | |
f35db108 WM |
19105 | s//\1/ |
19106 | q | |
19107 | } | |
19108 | s/.*/./; q'` | |
8bc1fac7 IS |
19109 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
19110 | # echo "creating $dirpart/$file" | |
19111 | echo '# dummy' > "$dirpart/$file" | |
19112 | done | |
f35db108 WM |
19113 | done |
19114 | } | |
19115 | ;; | |
19116 | "libtool":C) | |
19117 | ||
19118 | # See if we are running on zsh, and set the options which allow our | |
19119 | # commands through without removal of \ escapes. | |
19120 | if test -n "${ZSH_VERSION+set}" ; then | |
19121 | setopt NO_GLOB_SUBST | |
19122 | fi | |
19123 | ||
19124 | cfgfile="${ofile}T" | |
19125 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19126 | $RM "$cfgfile" | |
19127 | ||
19128 | cat <<_LT_EOF >> "$cfgfile" | |
19129 | #! $SHELL | |
19130 | ||
19131 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19132 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19133 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19134 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19135 | # | |
19136 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
a2479b3d | 19137 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
f35db108 WM |
19138 | # Written by Gordon Matzigkeit, 1996 |
19139 | # | |
19140 | # This file is part of GNU Libtool. | |
19141 | # | |
19142 | # GNU Libtool is free software; you can redistribute it and/or | |
19143 | # modify it under the terms of the GNU General Public License as | |
19144 | # published by the Free Software Foundation; either version 2 of | |
19145 | # the License, or (at your option) any later version. | |
19146 | # | |
19147 | # As a special exception to the GNU General Public License, | |
19148 | # if you distribute this file as part of a program or library that | |
19149 | # is built using GNU Libtool, you may include this file under the | |
19150 | # same distribution terms that you use for the rest of that program. | |
19151 | # | |
19152 | # GNU Libtool is distributed in the hope that it will be useful, | |
19153 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19154 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19155 | # GNU General Public License for more details. | |
19156 | # | |
19157 | # You should have received a copy of the GNU General Public License | |
19158 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19159 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19160 | # obtained by writing to the Free Software Foundation, Inc., | |
19161 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19162 | ||
19163 | ||
19164 | # The names of the tagged configurations supported by this script. | |
19165 | available_tags="CXX " | |
19166 | ||
19167 | # ### BEGIN LIBTOOL CONFIG | |
19168 | ||
19169 | # Which release of libtool.m4 was used? | |
19170 | macro_version=$macro_version | |
19171 | macro_revision=$macro_revision | |
19172 | ||
19173 | # Whether or not to build shared libraries. | |
19174 | build_libtool_libs=$enable_shared | |
19175 | ||
19176 | # Whether or not to build static libraries. | |
19177 | build_old_libs=$enable_static | |
19178 | ||
19179 | # What type of objects to build. | |
19180 | pic_mode=$pic_mode | |
19181 | ||
19182 | # Whether or not to optimize for fast installation. | |
19183 | fast_install=$enable_fast_install | |
19184 | ||
19185 | # Shell to use when invoking shell scripts. | |
19186 | SHELL=$lt_SHELL | |
19187 | ||
19188 | # An echo program that protects backslashes. | |
19189 | ECHO=$lt_ECHO | |
19190 | ||
f35db108 WM |
19191 | # The host system. |
19192 | host_alias=$host_alias | |
19193 | host=$host | |
19194 | host_os=$host_os | |
19195 | ||
19196 | # The build system. | |
19197 | build_alias=$build_alias | |
19198 | build=$build | |
19199 | build_os=$build_os | |
19200 | ||
19201 | # A sed program that does not truncate output. | |
19202 | SED=$lt_SED | |
19203 | ||
19204 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19205 | Xsed="\$SED -e 1s/^X//" | |
19206 | ||
19207 | # A grep program that handles long lines. | |
19208 | GREP=$lt_GREP | |
19209 | ||
19210 | # An ERE matcher. | |
19211 | EGREP=$lt_EGREP | |
19212 | ||
19213 | # A literal string matcher. | |
19214 | FGREP=$lt_FGREP | |
19215 | ||
19216 | # A BSD- or MS-compatible name lister. | |
19217 | NM=$lt_NM | |
19218 | ||
19219 | # Whether we need soft or hard links. | |
19220 | LN_S=$lt_LN_S | |
19221 | ||
19222 | # What is the maximum length of a command? | |
19223 | max_cmd_len=$max_cmd_len | |
19224 | ||
19225 | # Object file suffix (normally "o"). | |
19226 | objext=$ac_objext | |
19227 | ||
19228 | # Executable file suffix (normally ""). | |
19229 | exeext=$exeext | |
19230 | ||
19231 | # whether the shell understands "unset". | |
19232 | lt_unset=$lt_unset | |
19233 | ||
19234 | # turn spaces into newlines. | |
19235 | SP2NL=$lt_lt_SP2NL | |
19236 | ||
19237 | # turn newlines into spaces. | |
19238 | NL2SP=$lt_lt_NL2SP | |
19239 | ||
f35db108 WM |
19240 | # An object symbol dumper. |
19241 | OBJDUMP=$lt_OBJDUMP | |
19242 | ||
19243 | # Method to check whether dependent libraries are shared objects. | |
19244 | deplibs_check_method=$lt_deplibs_check_method | |
19245 | ||
a2479b3d | 19246 | # Command to use when deplibs_check_method == "file_magic". |
f35db108 WM |
19247 | file_magic_cmd=$lt_file_magic_cmd |
19248 | ||
f35db108 WM |
19249 | # The archiver. |
19250 | AR=$lt_AR | |
f35db108 WM |
19251 | AR_FLAGS=$lt_AR_FLAGS |
19252 | ||
f35db108 WM |
19253 | # A symbol stripping program. |
19254 | STRIP=$lt_STRIP | |
19255 | ||
19256 | # Commands used to install an old-style archive. | |
19257 | RANLIB=$lt_RANLIB | |
19258 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19259 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19260 | ||
19261 | # Whether to use a lock for old archive extraction. | |
19262 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19263 | ||
19264 | # A C compiler. | |
19265 | LTCC=$lt_CC | |
19266 | ||
19267 | # LTCC compiler flags. | |
19268 | LTCFLAGS=$lt_CFLAGS | |
19269 | ||
19270 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19271 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19272 | ||
19273 | # Transform the output of nm in a proper C declaration. | |
19274 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19275 | ||
19276 | # Transform the output of nm in a C name address pair. | |
19277 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19278 | ||
19279 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19280 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19281 | ||
f35db108 WM |
19282 | # The name of the directory that contains temporary libtool files. |
19283 | objdir=$objdir | |
19284 | ||
19285 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19286 | MAGIC_CMD=$MAGIC_CMD | |
19287 | ||
19288 | # Must we lock files when doing compilation? | |
19289 | need_locks=$lt_need_locks | |
19290 | ||
f35db108 WM |
19291 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
19292 | DSYMUTIL=$lt_DSYMUTIL | |
19293 | ||
19294 | # Tool to change global to local symbols on Mac OS X. | |
19295 | NMEDIT=$lt_NMEDIT | |
19296 | ||
19297 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19298 | LIPO=$lt_LIPO | |
19299 | ||
19300 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19301 | OTOOL=$lt_OTOOL | |
19302 | ||
19303 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19304 | OTOOL64=$lt_OTOOL64 | |
19305 | ||
19306 | # Old archive suffix (normally "a"). | |
19307 | libext=$libext | |
19308 | ||
19309 | # Shared library suffix (normally ".so"). | |
19310 | shrext_cmds=$lt_shrext_cmds | |
19311 | ||
19312 | # The commands to extract the exported symbol list from a shared archive. | |
19313 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19314 | ||
19315 | # Variables whose values should be saved in libtool wrapper scripts and | |
19316 | # restored at link time. | |
19317 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19318 | ||
19319 | # Do we need the "lib" prefix for modules? | |
19320 | need_lib_prefix=$need_lib_prefix | |
19321 | ||
19322 | # Do we need a version for libraries? | |
19323 | need_version=$need_version | |
19324 | ||
19325 | # Library versioning type. | |
19326 | version_type=$version_type | |
19327 | ||
19328 | # Shared library runtime path variable. | |
19329 | runpath_var=$runpath_var | |
19330 | ||
19331 | # Shared library path variable. | |
19332 | shlibpath_var=$shlibpath_var | |
19333 | ||
19334 | # Is shlibpath searched before the hard-coded library search path? | |
19335 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19336 | ||
19337 | # Format of library name prefix. | |
19338 | libname_spec=$lt_libname_spec | |
19339 | ||
19340 | # List of archive names. First name is the real one, the rest are links. | |
19341 | # The last name is the one that the linker finds with -lNAME | |
19342 | library_names_spec=$lt_library_names_spec | |
19343 | ||
19344 | # The coded name of the library, if different from the real name. | |
19345 | soname_spec=$lt_soname_spec | |
19346 | ||
19347 | # Permission mode override for installation of shared libraries. | |
19348 | install_override_mode=$lt_install_override_mode | |
19349 | ||
19350 | # Command to use after installation of a shared archive. | |
19351 | postinstall_cmds=$lt_postinstall_cmds | |
19352 | ||
19353 | # Command to use after uninstallation of a shared archive. | |
19354 | postuninstall_cmds=$lt_postuninstall_cmds | |
19355 | ||
19356 | # Commands used to finish a libtool library installation in a directory. | |
19357 | finish_cmds=$lt_finish_cmds | |
19358 | ||
19359 | # As "finish_cmds", except a single script fragment to be evaled but | |
19360 | # not shown. | |
19361 | finish_eval=$lt_finish_eval | |
19362 | ||
19363 | # Whether we should hardcode library paths into libraries. | |
19364 | hardcode_into_libs=$hardcode_into_libs | |
19365 | ||
19366 | # Compile-time system search path for libraries. | |
19367 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19368 | ||
19369 | # Run-time system search path for libraries. | |
19370 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19371 | ||
19372 | # Whether dlopen is supported. | |
19373 | dlopen_support=$enable_dlopen | |
19374 | ||
19375 | # Whether dlopen of programs is supported. | |
19376 | dlopen_self=$enable_dlopen_self | |
19377 | ||
19378 | # Whether dlopen of statically linked programs is supported. | |
19379 | dlopen_self_static=$enable_dlopen_self_static | |
19380 | ||
19381 | # Commands to strip libraries. | |
19382 | old_striplib=$lt_old_striplib | |
19383 | striplib=$lt_striplib | |
19384 | ||
19385 | ||
19386 | # The linker used to build libraries. | |
19387 | LD=$lt_LD | |
19388 | ||
19389 | # How to create reloadable object files. | |
19390 | reload_flag=$lt_reload_flag | |
19391 | reload_cmds=$lt_reload_cmds | |
19392 | ||
19393 | # Commands used to build an old-style archive. | |
19394 | old_archive_cmds=$lt_old_archive_cmds | |
19395 | ||
19396 | # A language specific compiler. | |
19397 | CC=$lt_compiler | |
19398 | ||
19399 | # Is the compiler the GNU compiler? | |
19400 | with_gcc=$GCC | |
19401 | ||
19402 | # Compiler flag to turn off builtin functions. | |
19403 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19404 | ||
f35db108 WM |
19405 | # How to pass a linker flag through the compiler. |
19406 | wl=$lt_lt_prog_compiler_wl | |
19407 | ||
a2479b3d L |
19408 | # Additional compiler flags for building library objects. |
19409 | pic_flag=$lt_lt_prog_compiler_pic | |
19410 | ||
f35db108 WM |
19411 | # Compiler flag to prevent dynamic linking. |
19412 | link_static_flag=$lt_lt_prog_compiler_static | |
19413 | ||
19414 | # Does compiler simultaneously support -c and -o options? | |
19415 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19416 | ||
19417 | # Whether or not to add -lc for building shared libraries. | |
19418 | build_libtool_need_lc=$archive_cmds_need_lc | |
19419 | ||
19420 | # Whether or not to disallow shared libs when runtime libs are static. | |
19421 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19422 | ||
19423 | # Compiler flag to allow reflexive dlopens. | |
19424 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19425 | ||
19426 | # Compiler flag to generate shared objects directly from archives. | |
19427 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19428 | ||
19429 | # Whether the compiler copes with passing no objects directly. | |
19430 | compiler_needs_object=$lt_compiler_needs_object | |
19431 | ||
19432 | # Create an old-style archive from a shared archive. | |
19433 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19434 | ||
19435 | # Create a temporary old-style archive to link instead of a shared archive. | |
19436 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19437 | ||
19438 | # Commands used to build a shared archive. | |
19439 | archive_cmds=$lt_archive_cmds | |
19440 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19441 | ||
19442 | # Commands used to build a loadable module if different from building | |
19443 | # a shared archive. | |
19444 | module_cmds=$lt_module_cmds | |
19445 | module_expsym_cmds=$lt_module_expsym_cmds | |
19446 | ||
19447 | # Whether we are building with GNU ld or not. | |
19448 | with_gnu_ld=$lt_with_gnu_ld | |
19449 | ||
19450 | # Flag that allows shared libraries with undefined symbols to be built. | |
19451 | allow_undefined_flag=$lt_allow_undefined_flag | |
19452 | ||
19453 | # Flag that enforces no undefined symbols. | |
19454 | no_undefined_flag=$lt_no_undefined_flag | |
19455 | ||
19456 | # Flag to hardcode \$libdir into a binary during linking. | |
19457 | # This must work even if \$libdir does not exist | |
19458 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19459 | ||
a2479b3d L |
19460 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19461 | # during linking. This must work even if \$libdir does not exist. | |
19462 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19463 | ||
f35db108 WM |
19464 | # Whether we need a single "-rpath" flag with a separated argument. |
19465 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19466 | ||
19467 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19468 | # DIR into the resulting binary. | |
19469 | hardcode_direct=$hardcode_direct | |
19470 | ||
19471 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19472 | # DIR into the resulting binary and the resulting library dependency is | |
19473 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19474 | # library is relocated. | |
19475 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19476 | ||
19477 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19478 | # into the resulting binary. | |
19479 | hardcode_minus_L=$hardcode_minus_L | |
19480 | ||
19481 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19482 | # into the resulting binary. | |
19483 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19484 | ||
19485 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19486 | # into the library and all subsequent libraries and executables linked | |
19487 | # against it. | |
19488 | hardcode_automatic=$hardcode_automatic | |
19489 | ||
19490 | # Set to yes if linker adds runtime paths of dependent libraries | |
19491 | # to runtime path list. | |
19492 | inherit_rpath=$inherit_rpath | |
19493 | ||
19494 | # Whether libtool must link a program against all its dependency libraries. | |
19495 | link_all_deplibs=$link_all_deplibs | |
19496 | ||
a2479b3d L |
19497 | # Fix the shell variable \$srcfile for the compiler. |
19498 | fix_srcfile_path=$lt_fix_srcfile_path | |
19499 | ||
f35db108 WM |
19500 | # Set to "yes" if exported symbols are required. |
19501 | always_export_symbols=$always_export_symbols | |
19502 | ||
19503 | # The commands to list exported symbols. | |
19504 | export_symbols_cmds=$lt_export_symbols_cmds | |
19505 | ||
19506 | # Symbols that should not be listed in the preloaded symbols. | |
19507 | exclude_expsyms=$lt_exclude_expsyms | |
19508 | ||
19509 | # Symbols that must always be exported. | |
19510 | include_expsyms=$lt_include_expsyms | |
19511 | ||
19512 | # Commands necessary for linking programs (against libraries) with templates. | |
19513 | prelink_cmds=$lt_prelink_cmds | |
19514 | ||
f35db108 WM |
19515 | # Specify filename containing input files. |
19516 | file_list_spec=$lt_file_list_spec | |
19517 | ||
19518 | # How to hardcode a shared library path into an executable. | |
19519 | hardcode_action=$hardcode_action | |
19520 | ||
19521 | # The directories searched by this compiler when creating a shared library. | |
19522 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19523 | ||
19524 | # Dependencies to place before and after the objects being linked to | |
19525 | # create a shared library. | |
19526 | predep_objects=$lt_predep_objects | |
19527 | postdep_objects=$lt_postdep_objects | |
19528 | predeps=$lt_predeps | |
19529 | postdeps=$lt_postdeps | |
19530 | ||
19531 | # The library search path used internally by the compiler when linking | |
19532 | # a shared library. | |
19533 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19534 | ||
19535 | # ### END LIBTOOL CONFIG | |
19536 | ||
19537 | _LT_EOF | |
19538 | ||
19539 | case $host_os in | |
19540 | aix3*) | |
19541 | cat <<\_LT_EOF >> "$cfgfile" | |
19542 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19543 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19544 | # vanish in a puff of smoke. | |
19545 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19546 | COLLECT_NAMES= | |
19547 | export COLLECT_NAMES | |
19548 | fi | |
19549 | _LT_EOF | |
19550 | ;; | |
19551 | esac | |
19552 | ||
19553 | ||
19554 | ltmain="$ac_aux_dir/ltmain.sh" | |
19555 | ||
19556 | ||
19557 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19558 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19559 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19560 | # is reportedly fixed, but why not run on old versions too? | |
a2479b3d L |
19561 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
19562 | || (rm -f "$cfgfile"; exit 1) | |
19563 | ||
19564 | case $xsi_shell in | |
19565 | yes) | |
19566 | cat << \_LT_EOF >> "$cfgfile" | |
19567 | ||
19568 | # func_dirname file append nondir_replacement | |
19569 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19570 | # otherwise set result to NONDIR_REPLACEMENT. | |
19571 | func_dirname () | |
19572 | { | |
19573 | case ${1} in | |
19574 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19575 | * ) func_dirname_result="${3}" ;; | |
19576 | esac | |
19577 | } | |
19578 | ||
19579 | # func_basename file | |
19580 | func_basename () | |
19581 | { | |
19582 | func_basename_result="${1##*/}" | |
19583 | } | |
19584 | ||
19585 | # func_dirname_and_basename file append nondir_replacement | |
19586 | # perform func_basename and func_dirname in a single function | |
19587 | # call: | |
19588 | # dirname: Compute the dirname of FILE. If nonempty, | |
19589 | # add APPEND to the result, otherwise set result | |
19590 | # to NONDIR_REPLACEMENT. | |
19591 | # value returned in "$func_dirname_result" | |
19592 | # basename: Compute filename of FILE. | |
19593 | # value retuned in "$func_basename_result" | |
19594 | # Implementation must be kept synchronized with func_dirname | |
19595 | # and func_basename. For efficiency, we do not delegate to | |
19596 | # those functions but instead duplicate the functionality here. | |
19597 | func_dirname_and_basename () | |
19598 | { | |
19599 | case ${1} in | |
19600 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19601 | * ) func_dirname_result="${3}" ;; | |
19602 | esac | |
19603 | func_basename_result="${1##*/}" | |
19604 | } | |
19605 | ||
19606 | # func_stripname prefix suffix name | |
19607 | # strip PREFIX and SUFFIX off of NAME. | |
19608 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19609 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19610 | # dot (in which case that matches only a dot). | |
19611 | func_stripname () | |
19612 | { | |
19613 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19614 | # positional parameters, so assign one to ordinary parameter first. | |
19615 | func_stripname_result=${3} | |
19616 | func_stripname_result=${func_stripname_result#"${1}"} | |
19617 | func_stripname_result=${func_stripname_result%"${2}"} | |
19618 | } | |
19619 | ||
19620 | # func_opt_split | |
19621 | func_opt_split () | |
19622 | { | |
19623 | func_opt_split_opt=${1%%=*} | |
19624 | func_opt_split_arg=${1#*=} | |
19625 | } | |
19626 | ||
19627 | # func_lo2o object | |
19628 | func_lo2o () | |
19629 | { | |
19630 | case ${1} in | |
19631 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19632 | *) func_lo2o_result=${1} ;; | |
19633 | esac | |
19634 | } | |
19635 | ||
19636 | # func_xform libobj-or-source | |
19637 | func_xform () | |
19638 | { | |
19639 | func_xform_result=${1%.*}.lo | |
19640 | } | |
19641 | ||
19642 | # func_arith arithmetic-term... | |
19643 | func_arith () | |
19644 | { | |
19645 | func_arith_result=$(( $* )) | |
19646 | } | |
19647 | ||
19648 | # func_len string | |
19649 | # STRING may not start with a hyphen. | |
19650 | func_len () | |
19651 | { | |
19652 | func_len_result=${#1} | |
19653 | } | |
19654 | ||
19655 | _LT_EOF | |
19656 | ;; | |
19657 | *) # Bourne compatible functions. | |
19658 | cat << \_LT_EOF >> "$cfgfile" | |
19659 | ||
19660 | # func_dirname file append nondir_replacement | |
19661 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19662 | # otherwise set result to NONDIR_REPLACEMENT. | |
19663 | func_dirname () | |
19664 | { | |
19665 | # Extract subdirectory from the argument. | |
19666 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
19667 | if test "X$func_dirname_result" = "X${1}"; then | |
19668 | func_dirname_result="${3}" | |
19669 | else | |
19670 | func_dirname_result="$func_dirname_result${2}" | |
19671 | fi | |
19672 | } | |
19673 | ||
19674 | # func_basename file | |
19675 | func_basename () | |
19676 | { | |
19677 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
19678 | } | |
19679 | ||
19680 | ||
19681 | # func_stripname prefix suffix name | |
19682 | # strip PREFIX and SUFFIX off of NAME. | |
19683 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19684 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19685 | # dot (in which case that matches only a dot). | |
19686 | # func_strip_suffix prefix name | |
19687 | func_stripname () | |
19688 | { | |
19689 | case ${2} in | |
19690 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
19691 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
19692 | esac | |
19693 | } | |
19694 | ||
19695 | # sed scripts: | |
19696 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19697 | my_sed_long_arg='1s/^-[^=]*=//' | |
19698 | ||
19699 | # func_opt_split | |
19700 | func_opt_split () | |
19701 | { | |
19702 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
19703 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
19704 | } | |
19705 | ||
19706 | # func_lo2o object | |
19707 | func_lo2o () | |
19708 | { | |
19709 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
19710 | } | |
19711 | ||
19712 | # func_xform libobj-or-source | |
19713 | func_xform () | |
19714 | { | |
19715 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
19716 | } | |
19717 | ||
19718 | # func_arith arithmetic-term... | |
19719 | func_arith () | |
19720 | { | |
19721 | func_arith_result=`expr "$@"` | |
19722 | } | |
19723 | ||
19724 | # func_len string | |
19725 | # STRING may not start with a hyphen. | |
19726 | func_len () | |
19727 | { | |
19728 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19729 | } | |
19730 | ||
19731 | _LT_EOF | |
19732 | esac | |
19733 | ||
19734 | case $lt_shell_append in | |
19735 | yes) | |
19736 | cat << \_LT_EOF >> "$cfgfile" | |
19737 | ||
19738 | # func_append var value | |
19739 | # Append VALUE to the end of shell variable VAR. | |
19740 | func_append () | |
19741 | { | |
19742 | eval "$1+=\$2" | |
19743 | } | |
19744 | _LT_EOF | |
19745 | ;; | |
19746 | *) | |
19747 | cat << \_LT_EOF >> "$cfgfile" | |
19748 | ||
19749 | # func_append var value | |
19750 | # Append VALUE to the end of shell variable VAR. | |
19751 | func_append () | |
19752 | { | |
19753 | eval "$1=\$$1\$2" | |
19754 | } | |
19755 | ||
19756 | _LT_EOF | |
19757 | ;; | |
19758 | esac | |
19759 | ||
19760 | ||
19761 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19762 | || (rm -f "$cfgfile"; exit 1) | |
19763 | ||
19764 | mv -f "$cfgfile" "$ofile" || | |
f35db108 WM |
19765 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
19766 | chmod +x "$ofile" | |
19767 | ||
19768 | ||
19769 | cat <<_LT_EOF >> "$ofile" | |
19770 | ||
19771 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19772 | ||
19773 | # The linker used to build libraries. | |
19774 | LD=$lt_LD_CXX | |
19775 | ||
19776 | # How to create reloadable object files. | |
19777 | reload_flag=$lt_reload_flag_CXX | |
19778 | reload_cmds=$lt_reload_cmds_CXX | |
19779 | ||
19780 | # Commands used to build an old-style archive. | |
19781 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19782 | ||
19783 | # A language specific compiler. | |
19784 | CC=$lt_compiler_CXX | |
19785 | ||
19786 | # Is the compiler the GNU compiler? | |
19787 | with_gcc=$GCC_CXX | |
19788 | ||
19789 | # Compiler flag to turn off builtin functions. | |
19790 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19791 | ||
f35db108 WM |
19792 | # How to pass a linker flag through the compiler. |
19793 | wl=$lt_lt_prog_compiler_wl_CXX | |
19794 | ||
a2479b3d L |
19795 | # Additional compiler flags for building library objects. |
19796 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19797 | ||
f35db108 WM |
19798 | # Compiler flag to prevent dynamic linking. |
19799 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19800 | ||
19801 | # Does compiler simultaneously support -c and -o options? | |
19802 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19803 | ||
19804 | # Whether or not to add -lc for building shared libraries. | |
19805 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19806 | ||
19807 | # Whether or not to disallow shared libs when runtime libs are static. | |
19808 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19809 | ||
19810 | # Compiler flag to allow reflexive dlopens. | |
19811 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19812 | ||
19813 | # Compiler flag to generate shared objects directly from archives. | |
19814 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19815 | ||
19816 | # Whether the compiler copes with passing no objects directly. | |
19817 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19818 | ||
19819 | # Create an old-style archive from a shared archive. | |
19820 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19821 | ||
19822 | # Create a temporary old-style archive to link instead of a shared archive. | |
19823 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19824 | ||
19825 | # Commands used to build a shared archive. | |
19826 | archive_cmds=$lt_archive_cmds_CXX | |
19827 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19828 | ||
19829 | # Commands used to build a loadable module if different from building | |
19830 | # a shared archive. | |
19831 | module_cmds=$lt_module_cmds_CXX | |
19832 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19833 | ||
19834 | # Whether we are building with GNU ld or not. | |
19835 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19836 | ||
19837 | # Flag that allows shared libraries with undefined symbols to be built. | |
19838 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19839 | ||
19840 | # Flag that enforces no undefined symbols. | |
19841 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19842 | ||
19843 | # Flag to hardcode \$libdir into a binary during linking. | |
19844 | # This must work even if \$libdir does not exist | |
19845 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19846 | ||
a2479b3d L |
19847 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
19848 | # during linking. This must work even if \$libdir does not exist. | |
19849 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19850 | ||
f35db108 WM |
19851 | # Whether we need a single "-rpath" flag with a separated argument. |
19852 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19853 | ||
19854 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19855 | # DIR into the resulting binary. | |
19856 | hardcode_direct=$hardcode_direct_CXX | |
19857 | ||
19858 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19859 | # DIR into the resulting binary and the resulting library dependency is | |
19860 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19861 | # library is relocated. | |
19862 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19863 | ||
19864 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19865 | # into the resulting binary. | |
19866 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19867 | ||
19868 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19869 | # into the resulting binary. | |
19870 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19871 | ||
19872 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19873 | # into the library and all subsequent libraries and executables linked | |
19874 | # against it. | |
19875 | hardcode_automatic=$hardcode_automatic_CXX | |
19876 | ||
19877 | # Set to yes if linker adds runtime paths of dependent libraries | |
19878 | # to runtime path list. | |
19879 | inherit_rpath=$inherit_rpath_CXX | |
19880 | ||
19881 | # Whether libtool must link a program against all its dependency libraries. | |
19882 | link_all_deplibs=$link_all_deplibs_CXX | |
19883 | ||
a2479b3d L |
19884 | # Fix the shell variable \$srcfile for the compiler. |
19885 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19886 | ||
f35db108 WM |
19887 | # Set to "yes" if exported symbols are required. |
19888 | always_export_symbols=$always_export_symbols_CXX | |
19889 | ||
19890 | # The commands to list exported symbols. | |
19891 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19892 | ||
19893 | # Symbols that should not be listed in the preloaded symbols. | |
19894 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19895 | ||
19896 | # Symbols that must always be exported. | |
19897 | include_expsyms=$lt_include_expsyms_CXX | |
19898 | ||
19899 | # Commands necessary for linking programs (against libraries) with templates. | |
19900 | prelink_cmds=$lt_prelink_cmds_CXX | |
19901 | ||
f35db108 WM |
19902 | # Specify filename containing input files. |
19903 | file_list_spec=$lt_file_list_spec_CXX | |
19904 | ||
19905 | # How to hardcode a shared library path into an executable. | |
19906 | hardcode_action=$hardcode_action_CXX | |
19907 | ||
19908 | # The directories searched by this compiler when creating a shared library. | |
19909 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19910 | ||
19911 | # Dependencies to place before and after the objects being linked to | |
19912 | # create a shared library. | |
19913 | predep_objects=$lt_predep_objects_CXX | |
19914 | postdep_objects=$lt_postdep_objects_CXX | |
19915 | predeps=$lt_predeps_CXX | |
19916 | postdeps=$lt_postdeps_CXX | |
19917 | ||
19918 | # The library search path used internally by the compiler when linking | |
19919 | # a shared library. | |
19920 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19921 | ||
19922 | # ### END LIBTOOL TAG CONFIG: CXX | |
19923 | _LT_EOF | |
19924 | ||
c915a581 JJ |
19925 | ;; |
19926 | "gstdint.h":C) | |
19927 | if test "$GCC" = yes; then | |
19928 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
19929 | else | |
19930 | echo "/* generated for $CC */" > tmp-stdint.h | |
19931 | fi | |
19932 | ||
19933 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19934 | ||
19935 | #ifndef GCC_GENERATED_STDINT_H | |
19936 | #define GCC_GENERATED_STDINT_H 1 | |
19937 | ||
19938 | #include <sys/types.h> | |
19939 | EOF | |
19940 | ||
19941 | if test "$acx_cv_header_stdint" != stdint.h; then | |
19942 | echo "#include <stddef.h>" >> tmp-stdint.h | |
19943 | fi | |
19944 | if test "$acx_cv_header_stdint" != stddef.h; then | |
19945 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
19946 | fi | |
19947 | ||
19948 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19949 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
19950 | #ifdef __int8_t_defined | |
19951 | #define _INT8_T | |
19952 | #define _INT16_T | |
19953 | #define _INT32_T | |
19954 | #endif | |
19955 | #ifdef __uint32_t_defined | |
19956 | #define _UINT32_T | |
19957 | #endif | |
19958 | ||
19959 | EOF | |
19960 | ||
19961 | # ----------------- done header, emit basic int types ------------- | |
19962 | if test "$acx_cv_header_stdint" = stddef.h; then | |
19963 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
19964 | ||
19965 | #ifndef _UINT8_T | |
19966 | #define _UINT8_T | |
19967 | #ifndef __uint8_t_defined | |
19968 | #define __uint8_t_defined | |
19969 | #ifndef uint8_t | |
19970 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
19971 | #endif | |
19972 | #endif | |
19973 | #endif | |
19974 | ||
19975 | #ifndef _UINT16_T | |
19976 | #define _UINT16_T | |
19977 | #ifndef __uint16_t_defined | |
19978 | #define __uint16_t_defined | |
19979 | #ifndef uint16_t | |
19980 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
19981 | #endif | |
19982 | #endif | |
19983 | #endif | |
19984 | ||
19985 | #ifndef _UINT32_T | |
19986 | #define _UINT32_T | |
19987 | #ifndef __uint32_t_defined | |
19988 | #define __uint32_t_defined | |
19989 | #ifndef uint32_t | |
19990 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
19991 | #endif | |
19992 | #endif | |
19993 | #endif | |
19994 | ||
19995 | #ifndef _INT8_T | |
19996 | #define _INT8_T | |
19997 | #ifndef __int8_t_defined | |
19998 | #define __int8_t_defined | |
19999 | #ifndef int8_t | |
20000 | typedef $acx_cv_type_int8_t int8_t; | |
20001 | #endif | |
20002 | #endif | |
20003 | #endif | |
20004 | ||
20005 | #ifndef _INT16_T | |
20006 | #define _INT16_T | |
20007 | #ifndef __int16_t_defined | |
20008 | #define __int16_t_defined | |
20009 | #ifndef int16_t | |
20010 | typedef $acx_cv_type_int16_t int16_t; | |
20011 | #endif | |
20012 | #endif | |
20013 | #endif | |
20014 | ||
20015 | #ifndef _INT32_T | |
20016 | #define _INT32_T | |
20017 | #ifndef __int32_t_defined | |
20018 | #define __int32_t_defined | |
20019 | #ifndef int32_t | |
20020 | typedef $acx_cv_type_int32_t int32_t; | |
20021 | #endif | |
20022 | #endif | |
20023 | #endif | |
20024 | EOF | |
20025 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
20026 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20027 | ||
20028 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
20029 | #ifndef _INT8_T | |
20030 | #define _INT8_T | |
20031 | #endif | |
20032 | #ifndef _INT16_T | |
20033 | #define _INT16_T | |
20034 | #endif | |
20035 | #ifndef _INT32_T | |
20036 | #define _INT32_T | |
20037 | #endif | |
20038 | ||
20039 | #ifndef _UINT8_T | |
20040 | #define _UINT8_T | |
20041 | #ifndef __uint8_t_defined | |
20042 | #define __uint8_t_defined | |
20043 | #ifndef uint8_t | |
20044 | typedef u_int8_t uint8_t; | |
20045 | #endif | |
20046 | #endif | |
20047 | #endif | |
20048 | ||
20049 | #ifndef _UINT16_T | |
20050 | #define _UINT16_T | |
20051 | #ifndef __uint16_t_defined | |
20052 | #define __uint16_t_defined | |
20053 | #ifndef uint16_t | |
20054 | typedef u_int16_t uint16_t; | |
20055 | #endif | |
20056 | #endif | |
20057 | #endif | |
20058 | ||
20059 | #ifndef _UINT32_T | |
20060 | #define _UINT32_T | |
20061 | #ifndef __uint32_t_defined | |
20062 | #define __uint32_t_defined | |
20063 | #ifndef uint32_t | |
20064 | typedef u_int32_t uint32_t; | |
20065 | #endif | |
20066 | #endif | |
20067 | #endif | |
20068 | EOF | |
20069 | else | |
20070 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20071 | ||
20072 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
20073 | #ifndef _INT8_T | |
20074 | #define _INT8_T | |
20075 | #endif | |
20076 | #ifndef _INT16_T | |
20077 | #define _INT16_T | |
20078 | #endif | |
20079 | #ifndef _INT32_T | |
20080 | #define _INT32_T | |
20081 | #endif | |
20082 | #ifndef _UINT8_T | |
20083 | #define _UINT8_T | |
20084 | #endif | |
20085 | #ifndef _UINT16_T | |
20086 | #define _UINT16_T | |
20087 | #endif | |
20088 | #ifndef _UINT32_T | |
20089 | #define _UINT32_T | |
20090 | #endif | |
20091 | EOF | |
20092 | fi | |
20093 | ||
20094 | # ------------- done basic int types, emit int64_t types ------------ | |
20095 | if test "$ac_cv_type_uint64_t" = yes; then | |
20096 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20097 | ||
20098 | /* system headers have good uint64_t and int64_t */ | |
20099 | #ifndef _INT64_T | |
20100 | #define _INT64_T | |
20101 | #endif | |
20102 | #ifndef _UINT64_T | |
20103 | #define _UINT64_T | |
20104 | #endif | |
20105 | EOF | |
20106 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
20107 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20108 | ||
20109 | /* system headers have an u_int64_t (and int64_t) */ | |
20110 | #ifndef _INT64_T | |
20111 | #define _INT64_T | |
20112 | #endif | |
20113 | #ifndef _UINT64_T | |
20114 | #define _UINT64_T | |
20115 | #ifndef __uint64_t_defined | |
20116 | #define __uint64_t_defined | |
20117 | #ifndef uint64_t | |
20118 | typedef u_int64_t uint64_t; | |
20119 | #endif | |
20120 | #endif | |
20121 | #endif | |
20122 | EOF | |
20123 | elif test -n "$acx_cv_type_int64_t"; then | |
20124 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20125 | ||
20126 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
20127 | #ifndef _INT64_T | |
20128 | #define _INT64_T | |
20129 | #ifndef int64_t | |
20130 | typedef $acx_cv_type_int64_t int64_t; | |
20131 | #endif | |
20132 | #endif | |
20133 | #ifndef _UINT64_T | |
20134 | #define _UINT64_T | |
20135 | #ifndef __uint64_t_defined | |
20136 | #define __uint64_t_defined | |
20137 | #ifndef uint64_t | |
20138 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
20139 | #endif | |
20140 | #endif | |
20141 | #endif | |
20142 | EOF | |
20143 | else | |
20144 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20145 | ||
20146 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
20147 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
20148 | #ifndef _INT64_T | |
20149 | #define _INT64_T | |
20150 | #ifndef __int64_t_defined | |
20151 | #ifndef int64_t | |
20152 | typedef long long int64_t; | |
20153 | #endif | |
20154 | #endif | |
20155 | #endif | |
20156 | #ifndef _UINT64_T | |
20157 | #define _UINT64_T | |
20158 | #ifndef uint64_t | |
20159 | typedef unsigned long long uint64_t; | |
20160 | #endif | |
20161 | #endif | |
20162 | ||
20163 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
20164 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
20165 | does not implement __extension__. But that compiler doesn't define | |
20166 | __GNUC_MINOR__. */ | |
20167 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
20168 | # define __extension__ | |
20169 | # endif | |
20170 | ||
20171 | # ifndef _INT64_T | |
20172 | # define _INT64_T | |
20173 | # ifndef int64_t | |
20174 | __extension__ typedef long long int64_t; | |
20175 | # endif | |
20176 | # endif | |
20177 | # ifndef _UINT64_T | |
20178 | # define _UINT64_T | |
20179 | # ifndef uint64_t | |
20180 | __extension__ typedef unsigned long long uint64_t; | |
20181 | # endif | |
20182 | # endif | |
20183 | ||
20184 | #elif !defined __STRICT_ANSI__ | |
20185 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
20186 | ||
20187 | # ifndef _INT64_T | |
20188 | # define _INT64_T | |
20189 | # ifndef int64_t | |
20190 | typedef __int64 int64_t; | |
20191 | # endif | |
20192 | # endif | |
20193 | # ifndef _UINT64_T | |
20194 | # define _UINT64_T | |
20195 | # ifndef uint64_t | |
20196 | typedef unsigned __int64 uint64_t; | |
20197 | # endif | |
20198 | # endif | |
20199 | # endif /* compiler */ | |
20200 | ||
20201 | #endif /* ANSI version */ | |
20202 | EOF | |
20203 | fi | |
20204 | ||
20205 | # ------------- done int64_t types, emit intptr types ------------ | |
20206 | if test "$ac_cv_type_uintptr_t" != yes; then | |
20207 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20208 | ||
20209 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
20210 | #ifndef __uintptr_t_defined | |
20211 | #ifndef uintptr_t | |
20212 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
20213 | #endif | |
20214 | #endif | |
20215 | #ifndef __intptr_t_defined | |
20216 | #ifndef intptr_t | |
20217 | typedef $acx_cv_type_intptr_t intptr_t; | |
20218 | #endif | |
20219 | #endif | |
20220 | EOF | |
20221 | fi | |
20222 | ||
20223 | # ------------- done intptr types, emit int_least types ------------ | |
20224 | if test "$ac_cv_type_int_least32_t" != yes; then | |
20225 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20226 | ||
20227 | /* Define int_least types */ | |
20228 | typedef int8_t int_least8_t; | |
20229 | typedef int16_t int_least16_t; | |
20230 | typedef int32_t int_least32_t; | |
20231 | #ifdef _INT64_T | |
20232 | typedef int64_t int_least64_t; | |
20233 | #endif | |
20234 | ||
20235 | typedef uint8_t uint_least8_t; | |
20236 | typedef uint16_t uint_least16_t; | |
20237 | typedef uint32_t uint_least32_t; | |
20238 | #ifdef _UINT64_T | |
20239 | typedef uint64_t uint_least64_t; | |
20240 | #endif | |
20241 | EOF | |
20242 | fi | |
20243 | ||
20244 | # ------------- done intptr types, emit int_fast types ------------ | |
20245 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
20246 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20247 | ||
20248 | /* Define int_fast types. short is often slow */ | |
20249 | typedef int8_t int_fast8_t; | |
20250 | typedef int int_fast16_t; | |
20251 | typedef int32_t int_fast32_t; | |
20252 | #ifdef _INT64_T | |
20253 | typedef int64_t int_fast64_t; | |
20254 | #endif | |
20255 | ||
20256 | typedef uint8_t uint_fast8_t; | |
20257 | typedef unsigned int uint_fast16_t; | |
20258 | typedef uint32_t uint_fast32_t; | |
20259 | #ifdef _UINT64_T | |
20260 | typedef uint64_t uint_fast64_t; | |
20261 | #endif | |
20262 | EOF | |
20263 | fi | |
20264 | ||
20265 | if test "$ac_cv_type_uintmax_t" != yes; then | |
20266 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20267 | ||
20268 | /* Define intmax based on what we found */ | |
20269 | #ifndef intmax_t | |
20270 | #ifdef _INT64_T | |
20271 | typedef int64_t intmax_t; | |
20272 | #else | |
20273 | typedef long intmax_t; | |
20274 | #endif | |
20275 | #endif | |
20276 | #ifndef uintmax_t | |
20277 | #ifdef _UINT64_T | |
20278 | typedef uint64_t uintmax_t; | |
20279 | #else | |
20280 | typedef unsigned long uintmax_t; | |
20281 | #endif | |
20282 | #endif | |
20283 | EOF | |
20284 | fi | |
20285 | ||
20286 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
20287 | ||
20288 | #endif /* GCC_GENERATED_STDINT_H */ | |
20289 | EOF | |
20290 | ||
20291 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
20292 | rm -f tmp-stdint.h | |
20293 | else | |
20294 | mv -f tmp-stdint.h gstdint.h | |
20295 | fi | |
20296 | ||
f35db108 WM |
20297 | ;; |
20298 | "interception/Makefile":F) cat > vpsed$$ << \_EOF | |
20299 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
20300 | _EOF | |
20301 | sed -f vpsed$$ $ac_file > tmp$$ | |
20302 | mv tmp$$ $ac_file | |
20303 | rm vpsed$$ | |
20304 | echo 'MULTISUBDIR =' >> $ac_file | |
f64bcb29 L |
20305 | ml_norecursion=yes |
20306 | . ${multi_basedir}/config-ml.in | |
20307 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 WM |
20308 | ;; |
20309 | "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF | |
20310 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
c915a581 JJ |
20311 | _EOF |
20312 | sed -f vpsed$$ $ac_file > tmp$$ | |
20313 | mv tmp$$ $ac_file | |
20314 | rm vpsed$$ | |
20315 | echo 'MULTISUBDIR =' >> $ac_file | |
20316 | ml_norecursion=yes | |
20317 | . ${multi_basedir}/config-ml.in | |
20318 | { ml_norecursion=; unset ml_norecursion;} | |
20319 | ;; | |
20320 | "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF | |
20321 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
ef1b3fda KS |
20322 | _EOF |
20323 | sed -f vpsed$$ $ac_file > tmp$$ | |
20324 | mv tmp$$ $ac_file | |
20325 | rm vpsed$$ | |
20326 | echo 'MULTISUBDIR =' >> $ac_file | |
20327 | ml_norecursion=yes | |
20328 | . ${multi_basedir}/config-ml.in | |
20329 | { ml_norecursion=; unset ml_norecursion;} | |
20330 | ;; | |
20331 | "lsan/Makefile":F) cat > vpsed$$ << \_EOF | |
20332 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
f35db108 WM |
20333 | _EOF |
20334 | sed -f vpsed$$ $ac_file > tmp$$ | |
20335 | mv tmp$$ $ac_file | |
20336 | rm vpsed$$ | |
20337 | echo 'MULTISUBDIR =' >> $ac_file | |
f64bcb29 L |
20338 | ml_norecursion=yes |
20339 | . ${multi_basedir}/config-ml.in | |
20340 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 WM |
20341 | ;; |
20342 | "asan/Makefile":F) cat > vpsed$$ << \_EOF | |
20343 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
edb07cb9 MM |
20344 | _EOF |
20345 | sed -f vpsed$$ $ac_file > tmp$$ | |
20346 | mv tmp$$ $ac_file | |
20347 | rm vpsed$$ | |
20348 | echo 'MULTISUBDIR =' >> $ac_file | |
20349 | ml_norecursion=yes | |
20350 | . ${multi_basedir}/config-ml.in | |
20351 | { ml_norecursion=; unset ml_norecursion;} | |
20352 | ;; | |
8a769f81 | 20353 | "ubsan/Makefile":F) cat > vpsed$$ << \_EOF |
edb07cb9 | 20354 | s!`test -f '$<' || echo '$(srcdir)/'`!! |
de5a5fa1 MP |
20355 | _EOF |
20356 | sed -f vpsed$$ $ac_file > tmp$$ | |
20357 | mv tmp$$ $ac_file | |
20358 | rm vpsed$$ | |
20359 | echo 'MULTISUBDIR =' >> $ac_file | |
20360 | ml_norecursion=yes | |
20361 | . ${multi_basedir}/config-ml.in | |
20362 | { ml_norecursion=; unset ml_norecursion;} | |
20363 | ;; | |
8a769f81 | 20364 | "tsan/Makefile":F) cat > vpsed$$ << \_EOF |
de5a5fa1 | 20365 | s!`test -f '$<' || echo '$(srcdir)/'`!! |
f35db108 | 20366 | _EOF |
8a769f81 MM |
20367 | sed -f vpsed$$ $ac_file > tmp$$ |
20368 | mv tmp$$ $ac_file | |
20369 | rm vpsed$$ | |
20370 | echo 'MULTISUBDIR =' >> $ac_file | |
20371 | ml_norecursion=yes | |
20372 | . ${multi_basedir}/config-ml.in | |
20373 | { ml_norecursion=; unset ml_norecursion;} | |
f35db108 | 20374 | ;; |
8a769f81 | 20375 | "hwasan/Makefile":F) cat > vpsed$$ << \_EOF |
cd0be65c WM |
20376 | s!`test -f '$<' || echo '$(srcdir)/'`!! |
20377 | _EOF | |
20378 | sed -f vpsed$$ $ac_file > tmp$$ | |
20379 | mv tmp$$ $ac_file | |
20380 | rm vpsed$$ | |
20381 | echo 'MULTISUBDIR =' >> $ac_file | |
20382 | ml_norecursion=yes | |
20383 | . ${multi_basedir}/config-ml.in | |
20384 | { ml_norecursion=; unset ml_norecursion;} | |
20385 | ;; | |
f35db108 WM |
20386 | |
20387 | esac | |
20388 | done # for ac_tag | |
20389 | ||
20390 | ||
20391 | as_fn_exit 0 | |
20392 | _ACEOF | |
20393 | ac_clean_files=$ac_clean_files_save | |
20394 | ||
20395 | test $ac_write_fail = 0 || | |
22e05272 | 20396 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
f35db108 WM |
20397 | |
20398 | ||
20399 | # configure is writing to config.log, and then calls config.status. | |
20400 | # config.status does its own redirection, appending to config.log. | |
20401 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20402 | # by configure, so config.status won't be able to write to it; its | |
20403 | # output is simply discarded. So we exec the FD to /dev/null, | |
20404 | # effectively closing config.log, so it can be properly (re)opened and | |
20405 | # appended to by config.status. When coming back to configure, we | |
20406 | # need to make the FD available again. | |
20407 | if test "$no_create" != yes; then | |
20408 | ac_cs_success=: | |
20409 | ac_config_status_args= | |
20410 | test "$silent" = yes && | |
20411 | ac_config_status_args="$ac_config_status_args --quiet" | |
20412 | exec 5>/dev/null | |
20413 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20414 | exec 5>>config.log | |
20415 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20416 | # would make configure fail if this is the last instruction. | |
22e05272 | 20417 | $ac_cs_success || as_fn_exit 1 |
f35db108 WM |
20418 | fi |
20419 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
20420 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20421 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20422 | fi | |
20423 |