]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. |
4 | # | |
5 | # | |
0b6e3127 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
b4c522fa | 7 | # |
b4c522fa IB |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
b4c522fa IB |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
b4c522fa IB |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
b4c522fa IB |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
235d1c46 | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
b4c522fa IB |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
235d1c46 | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
b4c522fa IB |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
b4c522fa IB |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b4c522fa IB |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
b4c522fa IB |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
b4c522fa IB |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
b4c522fa IB |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b4c522fa | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
b4c522fa IB |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
b4c522fa IB |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
b4c522fa | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
b4c522fa IB |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
b4c522fa IB |
541 | fi |
542 | else | |
22e05272 | 543 | as_ln_s='cp -pR' |
b4c522fa IB |
544 | fi |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
b4c522fa IB |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
b4c522fa IB |
569 | |
570 | # Name of the host. | |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b4c522fa IB |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='package-unused' | |
589 | PACKAGE_TARNAME='libphobos' | |
590 | PACKAGE_VERSION='version-unused' | |
591 | PACKAGE_STRING='package-unused version-unused' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='' | |
594 | ||
595 | ac_unique_file="libdruntime/gcc/attribute.d" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
599 | #ifdef HAVE_SYS_TYPES_H | |
600 | # include <sys/types.h> | |
601 | #endif | |
602 | #ifdef HAVE_SYS_STAT_H | |
603 | # include <sys/stat.h> | |
604 | #endif | |
605 | #ifdef STDC_HEADERS | |
606 | # include <stdlib.h> | |
607 | # include <stddef.h> | |
608 | #else | |
609 | # ifdef HAVE_STDLIB_H | |
610 | # include <stdlib.h> | |
611 | # endif | |
612 | #endif | |
613 | #ifdef HAVE_STRING_H | |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 | # include <memory.h> | |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
619 | #ifdef HAVE_STRINGS_H | |
620 | # include <strings.h> | |
621 | #endif | |
622 | #ifdef HAVE_INTTYPES_H | |
623 | # include <inttypes.h> | |
624 | #endif | |
625 | #ifdef HAVE_STDINT_H | |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
629 | # include <unistd.h> | |
630 | #endif" | |
631 | ||
632 | ac_subst_vars='am__EXEEXT_FALSE | |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
38c3017f | 636 | WARN_DFLAGS |
85041a5b | 637 | libtool_VERSION |
b4c522fa | 638 | SPEC_PHOBOS_DEPS |
c0dbfbd7 | 639 | CHECKING_DFLAGS |
261bd78d IB |
640 | ENABLE_LIBDRUNTIME_ONLY_FALSE |
641 | ENABLE_LIBDRUNTIME_ONLY_TRUE | |
bca0a321 RO |
642 | ENABLE_LIBPHOBOS_FALSE |
643 | ENABLE_LIBPHOBOS_TRUE | |
b4c522fa | 644 | gdc_include_dir |
ac67752d IB |
645 | libphobos_toolexeclibdir |
646 | libphobos_toolexecdir | |
b4c522fa | 647 | gcc_version |
bb50312e | 648 | LIBZ |
b4c522fa IB |
649 | BACKTRACE_SUPPORTS_THREADS |
650 | BACKTRACE_USES_MALLOC | |
651 | BACKTRACE_SUPPORTED | |
652 | LIBBACKTRACE | |
653 | LIBATOMIC | |
654 | DCFG_HAVE_LIBATOMIC | |
655 | DCFG_HAVE_64BIT_ATOMICS | |
656 | DCFG_HAVE_ATOMIC_BUILTINS | |
36d7f151 | 657 | DCFG_HAVE_QSORT_R |
ba838aa6 | 658 | OS_LINK_SPEC |
235d1c46 | 659 | DCFG_DLPI_TLS_MODID |
0b6e3127 RO |
660 | DRUNTIME_OS_MINFO_BRACKETING_FALSE |
661 | DRUNTIME_OS_MINFO_BRACKETING_TRUE | |
b4c522fa IB |
662 | DCFG_MINFO_BRACKETING |
663 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE | |
664 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE | |
665 | DCFG_ARM_EABI_UNWINDER | |
666 | DCFG_THREAD_MODEL | |
72c136c9 IB |
667 | DRUNTIME_OS_POSIX_FALSE |
668 | DRUNTIME_OS_POSIX_TRUE | |
b4c522fa IB |
669 | DRUNTIME_OS_SOLARIS_FALSE |
670 | DRUNTIME_OS_SOLARIS_TRUE | |
671 | DRUNTIME_OS_MINGW_FALSE | |
672 | DRUNTIME_OS_MINGW_TRUE | |
673 | DRUNTIME_OS_LINUX_FALSE | |
674 | DRUNTIME_OS_LINUX_TRUE | |
675 | DRUNTIME_OS_OPENBSD_FALSE | |
676 | DRUNTIME_OS_OPENBSD_TRUE | |
677 | DRUNTIME_OS_NETBSD_FALSE | |
678 | DRUNTIME_OS_NETBSD_TRUE | |
679 | DRUNTIME_OS_FREEBSD_FALSE | |
680 | DRUNTIME_OS_FREEBSD_TRUE | |
681 | DRUNTIME_OS_DRAGONFLYBSD_FALSE | |
682 | DRUNTIME_OS_DRAGONFLYBSD_TRUE | |
683 | DRUNTIME_OS_DARWIN_FALSE | |
684 | DRUNTIME_OS_DARWIN_TRUE | |
685 | DRUNTIME_OS_ANDROID_FALSE | |
686 | DRUNTIME_OS_ANDROID_TRUE | |
687 | DRUNTIME_OS_AIX_FALSE | |
688 | DRUNTIME_OS_AIX_TRUE | |
88e508f9 RD |
689 | DRUNTIME_CPU_S390_FALSE |
690 | DRUNTIME_CPU_S390_TRUE | |
691 | DRUNTIME_CPU_SYSTEMZ_FALSE | |
692 | DRUNTIME_CPU_SYSTEMZ_TRUE | |
2493e718 IB |
693 | DRUNTIME_CPU_X86_FALSE |
694 | DRUNTIME_CPU_X86_TRUE | |
2493e718 IB |
695 | DRUNTIME_CPU_POWERPC_FALSE |
696 | DRUNTIME_CPU_POWERPC_TRUE | |
697 | DRUNTIME_CPU_MIPS_FALSE | |
698 | DRUNTIME_CPU_MIPS_TRUE | |
699 | DRUNTIME_CPU_ARM_FALSE | |
700 | DRUNTIME_CPU_ARM_TRUE | |
701 | DRUNTIME_CPU_AARCH64_FALSE | |
702 | DRUNTIME_CPU_AARCH64_TRUE | |
b4c522fa IB |
703 | libphobos_srcdir |
704 | libphobos_builddir | |
705 | get_gcc_base_ver | |
706 | phobos_compiler_shared_flag | |
707 | phobos_compiler_pic_flag | |
b4c522fa IB |
708 | OTOOL64 |
709 | OTOOL | |
710 | LIPO | |
711 | NMEDIT | |
712 | DSYMUTIL | |
713 | OBJDUMP | |
714 | LN_S | |
715 | NM | |
716 | ac_ct_DUMPBIN | |
717 | DUMPBIN | |
718 | LD | |
719 | FGREP | |
b4c522fa IB |
720 | SED |
721 | LIBTOOL | |
722 | CFLAGS_FOR_BUILD | |
723 | CC_FOR_BUILD | |
724 | AR | |
5dbab7b3 | 725 | DCFG_ENABLE_CET |
0ed75760 | 726 | CET_DFLAGS |
08c1d39d | 727 | CET_FLAGS |
b4c522fa IB |
728 | RANLIB |
729 | MAINT | |
730 | MAINTAINER_MODE_FALSE | |
731 | MAINTAINER_MODE_TRUE | |
732 | GDCFLAGS | |
733 | GDC | |
734 | CCASFLAGS | |
735 | CCAS | |
22e05272 JM |
736 | AM_BACKSLASH |
737 | AM_DEFAULT_VERBOSITY | |
738 | AM_DEFAULT_V | |
739 | AM_V | |
b4c522fa IB |
740 | am__untar |
741 | am__tar | |
742 | AMTAR | |
743 | am__leading_dot | |
744 | SET_MAKE | |
745 | AWK | |
746 | mkdir_p | |
747 | MKDIR_P | |
748 | INSTALL_STRIP_PROGRAM | |
749 | STRIP | |
750 | install_sh | |
751 | MAKEINFO | |
752 | AUTOHEADER | |
753 | AUTOMAKE | |
754 | AUTOCONF | |
755 | ACLOCAL | |
756 | VERSION | |
757 | PACKAGE | |
758 | CYGPATH_W | |
759 | am__isrc | |
760 | INSTALL_DATA | |
761 | INSTALL_SCRIPT | |
762 | INSTALL_PROGRAM | |
235d1c46 RO |
763 | EGREP |
764 | GREP | |
765 | CPP | |
766 | OBJEXT | |
767 | EXEEXT | |
768 | ac_ct_CC | |
769 | CPPFLAGS | |
770 | LDFLAGS | |
771 | CFLAGS | |
772 | CC | |
b4c522fa IB |
773 | target_os |
774 | target_vendor | |
775 | target_cpu | |
776 | target | |
777 | host_os | |
778 | host_vendor | |
779 | host_cpu | |
780 | host | |
781 | build_os | |
782 | build_vendor | |
783 | build_cpu | |
784 | build | |
785 | multi_basedir | |
786 | target_alias | |
787 | host_alias | |
788 | build_alias | |
789 | LIBS | |
790 | ECHO_T | |
791 | ECHO_N | |
792 | ECHO_C | |
793 | DEFS | |
794 | mandir | |
795 | localedir | |
796 | libdir | |
797 | psdir | |
798 | pdfdir | |
799 | dvidir | |
800 | htmldir | |
801 | infodir | |
802 | docdir | |
803 | oldincludedir | |
804 | includedir | |
805 | localstatedir | |
806 | sharedstatedir | |
807 | sysconfdir | |
808 | datadir | |
809 | datarootdir | |
810 | libexecdir | |
811 | sbindir | |
812 | bindir | |
813 | program_transform_name | |
814 | prefix | |
815 | exec_prefix | |
816 | PACKAGE_URL | |
817 | PACKAGE_BUGREPORT | |
818 | PACKAGE_STRING | |
819 | PACKAGE_VERSION | |
820 | PACKAGE_TARNAME | |
821 | PACKAGE_NAME | |
822 | PATH_SEPARATOR | |
823 | SHELL' | |
0b6e3127 | 824 | ac_subst_files='DRTSTUFF_SPEC' |
b4c522fa IB |
825 | ac_user_opts=' |
826 | enable_option_checking | |
827 | enable_multilib | |
22e05272 | 828 | enable_silent_rules |
b4c522fa | 829 | enable_maintainer_mode |
08c1d39d | 830 | enable_cet |
b4c522fa IB |
831 | enable_shared |
832 | enable_static | |
833 | with_pic | |
834 | enable_fast_install | |
835 | with_gnu_ld | |
836 | enable_libtool_lock | |
837 | with_gcc_major_version_only | |
838 | enable_werror | |
b4c522fa IB |
839 | with_libatomic |
840 | with_libbacktrace | |
841 | with_target_system_zlib | |
842 | with_cross_host | |
ac67752d | 843 | enable_version_specific_runtime_libs |
e8e66971 | 844 | with_toolexeclibdir |
bca0a321 | 845 | enable_libphobos |
371d1011 | 846 | with_libphobos_druntime_only |
c0dbfbd7 | 847 | enable_libphobos_checking |
b4c522fa IB |
848 | ' |
849 | ac_precious_vars='build_alias | |
850 | host_alias | |
851 | target_alias | |
235d1c46 RO |
852 | CC |
853 | CFLAGS | |
854 | LDFLAGS | |
855 | LIBS | |
856 | CPPFLAGS | |
857 | CPP' | |
b4c522fa IB |
858 | |
859 | ||
860 | # Initialize some variables set by options. | |
861 | ac_init_help= | |
862 | ac_init_version=false | |
863 | ac_unrecognized_opts= | |
864 | ac_unrecognized_sep= | |
865 | # The variables have the same names as the options, with | |
866 | # dashes changed to underlines. | |
867 | cache_file=/dev/null | |
868 | exec_prefix=NONE | |
869 | no_create= | |
870 | no_recursion= | |
871 | prefix=NONE | |
872 | program_prefix=NONE | |
873 | program_suffix=NONE | |
874 | program_transform_name=s,x,x, | |
875 | silent= | |
876 | site= | |
877 | srcdir= | |
878 | verbose= | |
879 | x_includes=NONE | |
880 | x_libraries=NONE | |
881 | ||
882 | # Installation directory options. | |
883 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
884 | # and all the variables that are supposed to be based on exec_prefix | |
885 | # by default will actually change. | |
886 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
887 | # (The list follows the same order as the GNU Coding Standards.) | |
888 | bindir='${exec_prefix}/bin' | |
889 | sbindir='${exec_prefix}/sbin' | |
890 | libexecdir='${exec_prefix}/libexec' | |
891 | datarootdir='${prefix}/share' | |
892 | datadir='${datarootdir}' | |
893 | sysconfdir='${prefix}/etc' | |
894 | sharedstatedir='${prefix}/com' | |
895 | localstatedir='${prefix}/var' | |
896 | includedir='${prefix}/include' | |
897 | oldincludedir='/usr/include' | |
898 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
899 | infodir='${datarootdir}/info' | |
900 | htmldir='${docdir}' | |
901 | dvidir='${docdir}' | |
902 | pdfdir='${docdir}' | |
903 | psdir='${docdir}' | |
904 | libdir='${exec_prefix}/lib' | |
905 | localedir='${datarootdir}/locale' | |
906 | mandir='${datarootdir}/man' | |
907 | ||
908 | ac_prev= | |
909 | ac_dashdash= | |
910 | for ac_option | |
911 | do | |
912 | # If the previous option needs an argument, assign it. | |
913 | if test -n "$ac_prev"; then | |
914 | eval $ac_prev=\$ac_option | |
915 | ac_prev= | |
916 | continue | |
917 | fi | |
918 | ||
919 | case $ac_option in | |
22e05272 JM |
920 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
921 | *=) ac_optarg= ;; | |
922 | *) ac_optarg=yes ;; | |
b4c522fa IB |
923 | esac |
924 | ||
925 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
926 | ||
927 | case $ac_dashdash$ac_option in | |
928 | --) | |
929 | ac_dashdash=yes ;; | |
930 | ||
931 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
932 | ac_prev=bindir ;; | |
933 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
934 | bindir=$ac_optarg ;; | |
935 | ||
936 | -build | --build | --buil | --bui | --bu) | |
937 | ac_prev=build_alias ;; | |
938 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
939 | build_alias=$ac_optarg ;; | |
940 | ||
941 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
942 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
943 | ac_prev=cache_file ;; | |
944 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
945 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
946 | cache_file=$ac_optarg ;; | |
947 | ||
948 | --config-cache | -C) | |
949 | cache_file=config.cache ;; | |
950 | ||
951 | -datadir | --datadir | --datadi | --datad) | |
952 | ac_prev=datadir ;; | |
953 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
954 | datadir=$ac_optarg ;; | |
955 | ||
956 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
957 | | --dataroo | --dataro | --datar) | |
958 | ac_prev=datarootdir ;; | |
959 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
960 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
961 | datarootdir=$ac_optarg ;; | |
962 | ||
963 | -disable-* | --disable-*) | |
964 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
965 | # Reject names that are not valid shell variable names. | |
966 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 967 | as_fn_error $? "invalid feature name: $ac_useropt" |
b4c522fa IB |
968 | ac_useropt_orig=$ac_useropt |
969 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
970 | case $ac_user_opts in | |
971 | *" | |
972 | "enable_$ac_useropt" | |
973 | "*) ;; | |
974 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
975 | ac_unrecognized_sep=', ';; | |
976 | esac | |
977 | eval enable_$ac_useropt=no ;; | |
978 | ||
979 | -docdir | --docdir | --docdi | --doc | --do) | |
980 | ac_prev=docdir ;; | |
981 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
982 | docdir=$ac_optarg ;; | |
983 | ||
984 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
985 | ac_prev=dvidir ;; | |
986 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
987 | dvidir=$ac_optarg ;; | |
988 | ||
989 | -enable-* | --enable-*) | |
990 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
991 | # Reject names that are not valid shell variable names. | |
992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
b4c522fa IB |
994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1004 | ||
1005 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1006 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1007 | | --exec | --exe | --ex) | |
1008 | ac_prev=exec_prefix ;; | |
1009 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1010 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1011 | | --exec=* | --exe=* | --ex=*) | |
1012 | exec_prefix=$ac_optarg ;; | |
1013 | ||
1014 | -gas | --gas | --ga | --g) | |
1015 | # Obsolete; use --with-gas. | |
1016 | with_gas=yes ;; | |
1017 | ||
1018 | -help | --help | --hel | --he | -h) | |
1019 | ac_init_help=long ;; | |
1020 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1021 | ac_init_help=recursive ;; | |
1022 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1023 | ac_init_help=short ;; | |
1024 | ||
1025 | -host | --host | --hos | --ho) | |
1026 | ac_prev=host_alias ;; | |
1027 | -host=* | --host=* | --hos=* | --ho=*) | |
1028 | host_alias=$ac_optarg ;; | |
1029 | ||
1030 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1031 | ac_prev=htmldir ;; | |
1032 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1033 | | --ht=*) | |
1034 | htmldir=$ac_optarg ;; | |
1035 | ||
1036 | -includedir | --includedir | --includedi | --included | --include \ | |
1037 | | --includ | --inclu | --incl | --inc) | |
1038 | ac_prev=includedir ;; | |
1039 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1040 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1041 | includedir=$ac_optarg ;; | |
1042 | ||
1043 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1044 | ac_prev=infodir ;; | |
1045 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1046 | infodir=$ac_optarg ;; | |
1047 | ||
1048 | -libdir | --libdir | --libdi | --libd) | |
1049 | ac_prev=libdir ;; | |
1050 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1051 | libdir=$ac_optarg ;; | |
1052 | ||
1053 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1054 | | --libexe | --libex | --libe) | |
1055 | ac_prev=libexecdir ;; | |
1056 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1057 | | --libexe=* | --libex=* | --libe=*) | |
1058 | libexecdir=$ac_optarg ;; | |
1059 | ||
1060 | -localedir | --localedir | --localedi | --localed | --locale) | |
1061 | ac_prev=localedir ;; | |
1062 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1063 | localedir=$ac_optarg ;; | |
1064 | ||
1065 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1066 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1067 | ac_prev=localstatedir ;; | |
1068 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1069 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1070 | localstatedir=$ac_optarg ;; | |
1071 | ||
1072 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1073 | ac_prev=mandir ;; | |
1074 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1075 | mandir=$ac_optarg ;; | |
1076 | ||
1077 | -nfp | --nfp | --nf) | |
1078 | # Obsolete; use --without-fp. | |
1079 | with_fp=no ;; | |
1080 | ||
1081 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1082 | | --no-cr | --no-c | -n) | |
1083 | no_create=yes ;; | |
1084 | ||
1085 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1086 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1087 | no_recursion=yes ;; | |
1088 | ||
1089 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1090 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1091 | | --oldin | --oldi | --old | --ol | --o) | |
1092 | ac_prev=oldincludedir ;; | |
1093 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1094 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1095 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1096 | oldincludedir=$ac_optarg ;; | |
1097 | ||
1098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1099 | ac_prev=prefix ;; | |
1100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1101 | prefix=$ac_optarg ;; | |
1102 | ||
1103 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1104 | | --program-pre | --program-pr | --program-p) | |
1105 | ac_prev=program_prefix ;; | |
1106 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1107 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1108 | program_prefix=$ac_optarg ;; | |
1109 | ||
1110 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1111 | | --program-suf | --program-su | --program-s) | |
1112 | ac_prev=program_suffix ;; | |
1113 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1114 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1115 | program_suffix=$ac_optarg ;; | |
1116 | ||
1117 | -program-transform-name | --program-transform-name \ | |
1118 | | --program-transform-nam | --program-transform-na \ | |
1119 | | --program-transform-n | --program-transform- \ | |
1120 | | --program-transform | --program-transfor \ | |
1121 | | --program-transfo | --program-transf \ | |
1122 | | --program-trans | --program-tran \ | |
1123 | | --progr-tra | --program-tr | --program-t) | |
1124 | ac_prev=program_transform_name ;; | |
1125 | -program-transform-name=* | --program-transform-name=* \ | |
1126 | | --program-transform-nam=* | --program-transform-na=* \ | |
1127 | | --program-transform-n=* | --program-transform-=* \ | |
1128 | | --program-transform=* | --program-transfor=* \ | |
1129 | | --program-transfo=* | --program-transf=* \ | |
1130 | | --program-trans=* | --program-tran=* \ | |
1131 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1132 | program_transform_name=$ac_optarg ;; | |
1133 | ||
1134 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1135 | ac_prev=pdfdir ;; | |
1136 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1137 | pdfdir=$ac_optarg ;; | |
1138 | ||
1139 | -psdir | --psdir | --psdi | --psd | --ps) | |
1140 | ac_prev=psdir ;; | |
1141 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1142 | psdir=$ac_optarg ;; | |
1143 | ||
1144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1145 | | -silent | --silent | --silen | --sile | --sil) | |
1146 | silent=yes ;; | |
1147 | ||
1148 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1149 | ac_prev=sbindir ;; | |
1150 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1151 | | --sbi=* | --sb=*) | |
1152 | sbindir=$ac_optarg ;; | |
1153 | ||
1154 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1155 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1156 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1157 | | --sha | --sh) | |
1158 | ac_prev=sharedstatedir ;; | |
1159 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1160 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1161 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1162 | | --sha=* | --sh=*) | |
1163 | sharedstatedir=$ac_optarg ;; | |
1164 | ||
1165 | -site | --site | --sit) | |
1166 | ac_prev=site ;; | |
1167 | -site=* | --site=* | --sit=*) | |
1168 | site=$ac_optarg ;; | |
1169 | ||
1170 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1171 | ac_prev=srcdir ;; | |
1172 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1173 | srcdir=$ac_optarg ;; | |
1174 | ||
1175 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1176 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1177 | ac_prev=sysconfdir ;; | |
1178 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1179 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1180 | sysconfdir=$ac_optarg ;; | |
1181 | ||
1182 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1183 | ac_prev=target_alias ;; | |
1184 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1185 | target_alias=$ac_optarg ;; | |
1186 | ||
1187 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1188 | verbose=yes ;; | |
1189 | ||
1190 | -version | --version | --versio | --versi | --vers | -V) | |
1191 | ac_init_version=: ;; | |
1192 | ||
1193 | -with-* | --with-*) | |
1194 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1195 | # Reject names that are not valid shell variable names. | |
1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1197 | as_fn_error $? "invalid package name: $ac_useropt" |
b4c522fa IB |
1198 | ac_useropt_orig=$ac_useropt |
1199 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1200 | case $ac_user_opts in | |
1201 | *" | |
1202 | "with_$ac_useropt" | |
1203 | "*) ;; | |
1204 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1205 | ac_unrecognized_sep=', ';; | |
1206 | esac | |
1207 | eval with_$ac_useropt=\$ac_optarg ;; | |
1208 | ||
1209 | -without-* | --without-*) | |
1210 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1211 | # Reject names that are not valid shell variable names. | |
1212 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1213 | as_fn_error $? "invalid package name: $ac_useropt" |
b4c522fa IB |
1214 | ac_useropt_orig=$ac_useropt |
1215 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1216 | case $ac_user_opts in | |
1217 | *" | |
1218 | "with_$ac_useropt" | |
1219 | "*) ;; | |
1220 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1221 | ac_unrecognized_sep=', ';; | |
1222 | esac | |
1223 | eval with_$ac_useropt=no ;; | |
1224 | ||
1225 | --x) | |
1226 | # Obsolete; use --with-x. | |
1227 | with_x=yes ;; | |
1228 | ||
1229 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1230 | | --x-incl | --x-inc | --x-in | --x-i) | |
1231 | ac_prev=x_includes ;; | |
1232 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1233 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1234 | x_includes=$ac_optarg ;; | |
1235 | ||
1236 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1237 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1238 | ac_prev=x_libraries ;; | |
1239 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1240 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1241 | x_libraries=$ac_optarg ;; | |
1242 | ||
22e05272 JM |
1243 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1244 | Try \`$0 --help' for more information" | |
b4c522fa IB |
1245 | ;; |
1246 | ||
1247 | *=*) | |
1248 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1249 | # Reject names that are not valid shell variable names. | |
1250 | case $ac_envvar in #( | |
1251 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1252 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
b4c522fa IB |
1253 | esac |
1254 | eval $ac_envvar=\$ac_optarg | |
1255 | export $ac_envvar ;; | |
1256 | ||
1257 | *) | |
1258 | # FIXME: should be removed in autoconf 3.0. | |
1259 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1260 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1261 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
22e05272 | 1262 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
b4c522fa IB |
1263 | ;; |
1264 | ||
1265 | esac | |
1266 | done | |
1267 | ||
1268 | if test -n "$ac_prev"; then | |
1269 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1270 | as_fn_error $? "missing argument to $ac_option" |
b4c522fa IB |
1271 | fi |
1272 | ||
1273 | if test -n "$ac_unrecognized_opts"; then | |
1274 | case $enable_option_checking in | |
1275 | no) ;; | |
22e05272 | 1276 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
b4c522fa IB |
1277 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1278 | esac | |
1279 | fi | |
1280 | ||
1281 | # Check all directory arguments for consistency. | |
1282 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1283 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1284 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
d8b1f499 | 1285 | libdir localedir mandir |
b4c522fa IB |
1286 | do |
1287 | eval ac_val=\$$ac_var | |
1288 | # Remove trailing slashes. | |
1289 | case $ac_val in | |
1290 | */ ) | |
1291 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1292 | eval $ac_var=\$ac_val;; | |
1293 | esac | |
1294 | # Be sure to have absolute directory names. | |
1295 | case $ac_val in | |
1296 | [\\/$]* | ?:[\\/]* ) continue;; | |
1297 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1298 | esac | |
22e05272 | 1299 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
b4c522fa IB |
1300 | done |
1301 | ||
1302 | # There might be people who depend on the old broken behavior: `$host' | |
1303 | # used to hold the argument of --host etc. | |
1304 | # FIXME: To remove some day. | |
1305 | build=$build_alias | |
1306 | host=$host_alias | |
1307 | target=$target_alias | |
1308 | ||
1309 | # FIXME: To remove some day. | |
1310 | if test "x$host_alias" != x; then | |
1311 | if test "x$build_alias" = x; then | |
1312 | cross_compiling=maybe | |
b4c522fa IB |
1313 | elif test "x$build_alias" != "x$host_alias"; then |
1314 | cross_compiling=yes | |
1315 | fi | |
1316 | fi | |
1317 | ||
1318 | ac_tool_prefix= | |
1319 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1320 | ||
1321 | test "$silent" = yes && exec 6>/dev/null | |
1322 | ||
1323 | ||
1324 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1325 | ac_ls_di=`ls -di .` && | |
1326 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1327 | as_fn_error $? "working directory cannot be determined" |
b4c522fa | 1328 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1329 | as_fn_error $? "pwd does not report name of working directory" |
b4c522fa IB |
1330 | |
1331 | ||
1332 | # Find the source files, if location was not specified. | |
1333 | if test -z "$srcdir"; then | |
1334 | ac_srcdir_defaulted=yes | |
1335 | # Try the directory containing this script, then the parent directory. | |
1336 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1337 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1338 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1339 | X"$as_myself" : 'X\(//\)$' \| \ | |
1340 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1341 | $as_echo X"$as_myself" | | |
1342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1343 | s//\1/ | |
1344 | q | |
1345 | } | |
1346 | /^X\(\/\/\)[^/].*/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | /^X\(\/\/\)$/{ | |
1351 | s//\1/ | |
1352 | q | |
1353 | } | |
1354 | /^X\(\/\).*/{ | |
1355 | s//\1/ | |
1356 | q | |
1357 | } | |
1358 | s/.*/./; q'` | |
1359 | srcdir=$ac_confdir | |
1360 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1361 | srcdir=.. | |
1362 | fi | |
1363 | else | |
1364 | ac_srcdir_defaulted=no | |
1365 | fi | |
1366 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1367 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1368 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
b4c522fa IB |
1369 | fi |
1370 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1371 | ac_abs_confdir=`( | |
22e05272 | 1372 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
b4c522fa IB |
1373 | pwd)` |
1374 | # When building in place, set srcdir=. | |
1375 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1376 | srcdir=. | |
1377 | fi | |
1378 | # Remove unnecessary trailing slashes from srcdir. | |
1379 | # Double slashes in file names in object file debugging info | |
1380 | # mess up M-x gdb in Emacs. | |
1381 | case $srcdir in | |
1382 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1383 | esac | |
1384 | for ac_var in $ac_precious_vars; do | |
1385 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1386 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1387 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1388 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1389 | done | |
1390 | ||
1391 | # | |
1392 | # Report the --help message. | |
1393 | # | |
1394 | if test "$ac_init_help" = "long"; then | |
1395 | # Omit some internal or obsolete options to make the list less imposing. | |
1396 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1397 | cat <<_ACEOF | |
1398 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1399 | ||
1400 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1401 | ||
1402 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1403 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1404 | ||
1405 | Defaults for the options are specified in brackets. | |
1406 | ||
1407 | Configuration: | |
1408 | -h, --help display this help and exit | |
1409 | --help=short display options specific to this package | |
1410 | --help=recursive display the short help of all the included packages | |
1411 | -V, --version display version information and exit | |
22e05272 | 1412 | -q, --quiet, --silent do not print \`checking ...' messages |
b4c522fa IB |
1413 | --cache-file=FILE cache test results in FILE [disabled] |
1414 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1415 | -n, --no-create do not create output files | |
1416 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1417 | ||
1418 | Installation directories: | |
1419 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1420 | [$ac_default_prefix] | |
1421 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1422 | [PREFIX] | |
1423 | ||
1424 | By default, \`make install' will install all the files in | |
1425 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1426 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1427 | for instance \`--prefix=\$HOME'. | |
1428 | ||
1429 | For better control, use the options below. | |
1430 | ||
1431 | Fine tuning of the installation directories: | |
1432 | --bindir=DIR user executables [EPREFIX/bin] | |
1433 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1434 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1435 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1436 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1437 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1438 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1439 | --includedir=DIR C header files [PREFIX/include] | |
1440 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1441 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1442 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1443 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1444 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1445 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1446 | --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos] | |
1447 | --htmldir=DIR html documentation [DOCDIR] | |
1448 | --dvidir=DIR dvi documentation [DOCDIR] | |
1449 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1450 | --psdir=DIR ps documentation [DOCDIR] | |
1451 | _ACEOF | |
1452 | ||
1453 | cat <<\_ACEOF | |
1454 | ||
1455 | Program names: | |
1456 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1457 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1458 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1459 | ||
1460 | System types: | |
1461 | --build=BUILD configure for building on BUILD [guessed] | |
1462 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1463 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1464 | _ACEOF | |
1465 | fi | |
1466 | ||
1467 | if test -n "$ac_init_help"; then | |
1468 | case $ac_init_help in | |
1469 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1470 | esac | |
1471 | cat <<\_ACEOF | |
1472 | ||
1473 | Optional Features: | |
1474 | --disable-option-checking ignore unrecognized --enable/--with options | |
1475 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1476 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1477 | --enable-multilib build many library versions (default) | |
22e05272 JM |
1478 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1479 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1480 | --enable-maintainer-mode | |
1481 | enable make rules and dependencies not useful (and | |
1482 | sometimes confusing) to the casual installer | |
4c1a5d8b | 1483 | --enable-cet enable Intel CET in target libraries [default=auto] |
b4c522fa IB |
1484 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1485 | --enable-static[=PKGS] build static libraries [default=yes] | |
1486 | --enable-fast-install[=PKGS] | |
1487 | optimize for fast installation [default=yes] | |
1488 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1489 | --enable-werror turns on -Werror [default=no] | |
ac67752d IB |
1490 | --enable-version-specific-runtime-libs |
1491 | Specify that runtime libraries should be installed | |
1492 | in a compiler-specific directory | |
bca0a321 | 1493 | --enable-libphobos Enable libphobos |
c0dbfbd7 IB |
1494 | --enable-libphobos-checking[=LIST] |
1495 | enable expensive run-time checks. With LIST, enable | |
1496 | only specific categories of checks. Categories are: | |
1497 | yes,no,all,none,release. Flags are: assert or other | |
1498 | strings | |
b4c522fa IB |
1499 | |
1500 | Optional Packages: | |
1501 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1502 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1503 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1504 | both] | |
1505 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1506 | --with-gcc-major-version-only | |
1507 | use only GCC major number in filesystem paths | |
1508 | --without-libatomic Do not use libatomic in core.atomic (default: auto) | |
1509 | --without-libbacktrace Do not use libbacktrace in core.runtime (default: | |
1510 | auto) | |
bb50312e | 1511 | --with-target-system-zlib={yes,no,auto} |
b4c522fa IB |
1512 | use installed libz (default: no) |
1513 | --with-cross-host=HOST configuring with a cross compiler | |
e8e66971 MR |
1514 | --with-toolexeclibdir=DIR |
1515 | install libraries built with a cross compiler within | |
1516 | DIR | |
261bd78d IB |
1517 | --with-libphobos-druntime-only={yes,no,auto} |
1518 | build only the druntime library (default: auto) | |
b4c522fa IB |
1519 | |
1520 | Some influential environment variables: | |
1521 | CC C compiler command | |
1522 | CFLAGS C compiler flags | |
1523 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1524 | nonstandard directory <lib dir> | |
1525 | LIBS libraries to pass to the linker, e.g. -l<library> | |
22e05272 | 1526 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
b4c522fa | 1527 | you have headers in a nonstandard directory <include dir> |
235d1c46 | 1528 | CPP C preprocessor |
b4c522fa IB |
1529 | CCAS assembler compiler command (defaults to CC) |
1530 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1531 | GDC D compiler command | |
1532 | GDCFLAGS D compiler flags | |
b4c522fa IB |
1533 | |
1534 | Use these variables to override the choices made by `configure' or to help | |
1535 | it to find libraries and programs with nonstandard names/locations. | |
1536 | ||
1537 | Report bugs to the package provider. | |
1538 | _ACEOF | |
1539 | ac_status=$? | |
1540 | fi | |
1541 | ||
1542 | if test "$ac_init_help" = "recursive"; then | |
1543 | # If there are subdirs, report their specific --help. | |
1544 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1545 | test -d "$ac_dir" || | |
1546 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1547 | continue | |
1548 | ac_builddir=. | |
1549 | ||
1550 | case "$ac_dir" in | |
1551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1552 | *) | |
1553 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1554 | # A ".." for each directory in $ac_dir_suffix. | |
1555 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1556 | case $ac_top_builddir_sub in | |
1557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1559 | esac ;; | |
1560 | esac | |
1561 | ac_abs_top_builddir=$ac_pwd | |
1562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1563 | # for backward compatibility: | |
1564 | ac_top_builddir=$ac_top_build_prefix | |
1565 | ||
1566 | case $srcdir in | |
1567 | .) # We are building in place. | |
1568 | ac_srcdir=. | |
1569 | ac_top_srcdir=$ac_top_builddir_sub | |
1570 | ac_abs_top_srcdir=$ac_pwd ;; | |
1571 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1572 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1573 | ac_top_srcdir=$srcdir | |
1574 | ac_abs_top_srcdir=$srcdir ;; | |
1575 | *) # Relative name. | |
1576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1577 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1579 | esac | |
1580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1581 | ||
1582 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1583 | # Check for guested configure. | |
1584 | if test -f "$ac_srcdir/configure.gnu"; then | |
1585 | echo && | |
1586 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1587 | elif test -f "$ac_srcdir/configure"; then | |
1588 | echo && | |
1589 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1590 | else | |
1591 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1592 | fi || ac_status=$? | |
1593 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1594 | done | |
1595 | fi | |
1596 | ||
1597 | test -n "$ac_init_help" && exit $ac_status | |
1598 | if $ac_init_version; then | |
1599 | cat <<\_ACEOF | |
1600 | package-unused configure version-unused | |
22e05272 | 1601 | generated by GNU Autoconf 2.69 |
b4c522fa | 1602 | |
0b6e3127 | 1603 | Copyright (C) 2012 Free Software Foundation, Inc. |
b4c522fa IB |
1604 | This configure script is free software; the Free Software Foundation |
1605 | gives unlimited permission to copy, distribute and modify it. | |
1606 | _ACEOF | |
1607 | exit | |
1608 | fi | |
1609 | ||
1610 | ## ------------------------ ## | |
1611 | ## Autoconf initialization. ## | |
1612 | ## ------------------------ ## | |
1613 | ||
1614 | # ac_fn_c_try_compile LINENO | |
1615 | # -------------------------- | |
1616 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1617 | ac_fn_c_try_compile () | |
1618 | { | |
1619 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1620 | rm -f conftest.$ac_objext | |
1621 | if { { ac_try="$ac_compile" | |
1622 | case "(($ac_try" in | |
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1624 | *) ac_try_echo=$ac_try;; | |
1625 | esac | |
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1627 | $as_echo "$ac_try_echo"; } >&5 | |
1628 | (eval "$ac_compile") 2>conftest.err | |
1629 | ac_status=$? | |
1630 | if test -s conftest.err; then | |
1631 | grep -v '^ *+' conftest.err >conftest.er1 | |
1632 | cat conftest.er1 >&5 | |
1633 | mv -f conftest.er1 conftest.err | |
1634 | fi | |
1635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1636 | test $ac_status = 0; } && { | |
1637 | test -z "$ac_c_werror_flag" || | |
1638 | test ! -s conftest.err | |
1639 | } && test -s conftest.$ac_objext; then : | |
1640 | ac_retval=0 | |
1641 | else | |
1642 | $as_echo "$as_me: failed program was:" >&5 | |
1643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1644 | ||
1645 | ac_retval=1 | |
1646 | fi | |
22e05272 JM |
1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1648 | as_fn_set_status $ac_retval | |
b4c522fa IB |
1649 | |
1650 | } # ac_fn_c_try_compile | |
1651 | ||
235d1c46 RO |
1652 | # ac_fn_c_try_cpp LINENO |
1653 | # ---------------------- | |
1654 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1655 | ac_fn_c_try_cpp () | |
b4c522fa IB |
1656 | { |
1657 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
235d1c46 | 1658 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
b4c522fa IB |
1659 | case "(($ac_try" in |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
235d1c46 | 1665 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
b4c522fa IB |
1666 | ac_status=$? |
1667 | if test -s conftest.err; then | |
1668 | grep -v '^ *+' conftest.err >conftest.er1 | |
1669 | cat conftest.er1 >&5 | |
1670 | mv -f conftest.er1 conftest.err | |
1671 | fi | |
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
235d1c46 RO |
1673 | test $ac_status = 0; } > conftest.i && { |
1674 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
b4c522fa | 1675 | test ! -s conftest.err |
235d1c46 | 1676 | }; then : |
b4c522fa IB |
1677 | ac_retval=0 |
1678 | else | |
1679 | $as_echo "$as_me: failed program was:" >&5 | |
1680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1681 | ||
235d1c46 | 1682 | ac_retval=1 |
b4c522fa | 1683 | fi |
22e05272 JM |
1684 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1685 | as_fn_set_status $ac_retval | |
b4c522fa | 1686 | |
235d1c46 | 1687 | } # ac_fn_c_try_cpp |
b4c522fa | 1688 | |
235d1c46 RO |
1689 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1690 | # ------------------------------------------------------- | |
1691 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1692 | # the include files in INCLUDES and setting the cache variable VAR | |
1693 | # accordingly. | |
1694 | ac_fn_c_check_header_mongrel () | |
1695 | { | |
1696 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1697 | if eval \${$3+:} false; then : | |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1699 | $as_echo_n "checking for $2... " >&6; } | |
1700 | if eval \${$3+:} false; then : | |
1701 | $as_echo_n "(cached) " >&6 | |
1702 | fi | |
1703 | eval ac_res=\$$3 | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1705 | $as_echo "$ac_res" >&6; } | |
1706 | else | |
1707 | # Is the header compilable? | |
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1709 | $as_echo_n "checking $2 usability... " >&6; } | |
1710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1711 | /* end confdefs.h. */ | |
1712 | $4 | |
1713 | #include <$2> | |
1714 | _ACEOF | |
1715 | if ac_fn_c_try_compile "$LINENO"; then : | |
1716 | ac_header_compiler=yes | |
1717 | else | |
1718 | ac_header_compiler=no | |
1719 | fi | |
1720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1722 | $as_echo "$ac_header_compiler" >&6; } | |
1723 | ||
1724 | # Is the header present? | |
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1726 | $as_echo_n "checking $2 presence... " >&6; } | |
1727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1728 | /* end confdefs.h. */ | |
1729 | #include <$2> | |
1730 | _ACEOF | |
1731 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1732 | ac_header_preproc=yes | |
1733 | else | |
1734 | ac_header_preproc=no | |
1735 | fi | |
1736 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1738 | $as_echo "$ac_header_preproc" >&6; } | |
1739 | ||
1740 | # So? What about this header? | |
1741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1742 | yes:no: ) | |
1743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1744 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1746 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1747 | ;; | |
1748 | no:yes:* ) | |
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1750 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1752 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1754 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1756 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1758 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1759 | ;; | |
1760 | esac | |
1761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1762 | $as_echo_n "checking for $2... " >&6; } | |
1763 | if eval \${$3+:} false; then : | |
1764 | $as_echo_n "(cached) " >&6 | |
1765 | else | |
1766 | eval "$3=\$ac_header_compiler" | |
1767 | fi | |
1768 | eval ac_res=\$$3 | |
1769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1770 | $as_echo "$ac_res" >&6; } | |
1771 | fi | |
1772 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1773 | ||
1774 | } # ac_fn_c_check_header_mongrel | |
1775 | ||
1776 | # ac_fn_c_try_run LINENO | |
1777 | # ---------------------- | |
1778 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1779 | # that executables *can* be run. | |
1780 | ac_fn_c_try_run () | |
b4c522fa IB |
1781 | { |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
b4c522fa IB |
1783 | if { { ac_try="$ac_link" |
1784 | case "(($ac_try" in | |
1785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1786 | *) ac_try_echo=$ac_try;; | |
1787 | esac | |
1788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1789 | $as_echo "$ac_try_echo"; } >&5 | |
235d1c46 | 1790 | (eval "$ac_link") 2>&5 |
b4c522fa | 1791 | ac_status=$? |
b4c522fa | 1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
235d1c46 RO |
1793 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1794 | { { case "(($ac_try" in | |
1795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1796 | *) ac_try_echo=$ac_try;; | |
1797 | esac | |
1798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1799 | $as_echo "$ac_try_echo"; } >&5 | |
1800 | (eval "$ac_try") 2>&5 | |
1801 | ac_status=$? | |
1802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1803 | test $ac_status = 0; }; }; then : | |
b4c522fa IB |
1804 | ac_retval=0 |
1805 | else | |
235d1c46 RO |
1806 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
1807 | $as_echo "$as_me: failed program was:" >&5 | |
b4c522fa IB |
1808 | sed 's/^/| /' conftest.$ac_ext >&5 |
1809 | ||
235d1c46 | 1810 | ac_retval=$ac_status |
b4c522fa | 1811 | fi |
b4c522fa | 1812 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
22e05272 JM |
1813 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1814 | as_fn_set_status $ac_retval | |
b4c522fa | 1815 | |
235d1c46 | 1816 | } # ac_fn_c_try_run |
b4c522fa IB |
1817 | |
1818 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1819 | # ------------------------------------------------------- | |
1820 | # Tests whether HEADER exists and can be compiled using the include files in | |
1821 | # INCLUDES, setting the cache variable VAR accordingly. | |
1822 | ac_fn_c_check_header_compile () | |
1823 | { | |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1826 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1827 | if eval \${$3+:} false; then : |
b4c522fa IB |
1828 | $as_echo_n "(cached) " >&6 |
1829 | else | |
1830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1831 | /* end confdefs.h. */ | |
1832 | $4 | |
1833 | #include <$2> | |
1834 | _ACEOF | |
1835 | if ac_fn_c_try_compile "$LINENO"; then : | |
1836 | eval "$3=yes" | |
1837 | else | |
1838 | eval "$3=no" | |
1839 | fi | |
1840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1841 | fi | |
1842 | eval ac_res=\$$3 | |
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1844 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1845 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b4c522fa IB |
1846 | |
1847 | } # ac_fn_c_check_header_compile | |
1848 | ||
235d1c46 RO |
1849 | # ac_fn_d_try_compile LINENO |
1850 | # -------------------------- | |
1851 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1852 | ac_fn_d_try_compile () | |
b4c522fa IB |
1853 | { |
1854 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
235d1c46 RO |
1855 | rm -f conftest.$ac_objext |
1856 | if { { ac_try="$ac_compile" | |
b4c522fa IB |
1857 | case "(($ac_try" in |
1858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1859 | *) ac_try_echo=$ac_try;; | |
1860 | esac | |
1861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1862 | $as_echo "$ac_try_echo"; } >&5 | |
235d1c46 | 1863 | (eval "$ac_compile") 2>conftest.err |
b4c522fa IB |
1864 | ac_status=$? |
1865 | if test -s conftest.err; then | |
1866 | grep -v '^ *+' conftest.err >conftest.er1 | |
1867 | cat conftest.er1 >&5 | |
1868 | mv -f conftest.er1 conftest.err | |
1869 | fi | |
1870 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
235d1c46 RO |
1871 | test $ac_status = 0; } && { |
1872 | test -z "$ac_d_werror_flag" || | |
b4c522fa | 1873 | test ! -s conftest.err |
235d1c46 | 1874 | } && test -s conftest.$ac_objext; then : |
b4c522fa IB |
1875 | ac_retval=0 |
1876 | else | |
1877 | $as_echo "$as_me: failed program was:" >&5 | |
1878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1879 | ||
235d1c46 | 1880 | ac_retval=1 |
b4c522fa | 1881 | fi |
22e05272 JM |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1883 | as_fn_set_status $ac_retval | |
b4c522fa | 1884 | |
235d1c46 | 1885 | } # ac_fn_d_try_compile |
b4c522fa | 1886 | |
235d1c46 RO |
1887 | # ac_fn_c_try_link LINENO |
1888 | # ----------------------- | |
1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1890 | ac_fn_c_try_link () | |
b4c522fa IB |
1891 | { |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
235d1c46 | 1893 | rm -f conftest.$ac_objext conftest$ac_exeext |
b4c522fa IB |
1894 | if { { ac_try="$ac_link" |
1895 | case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
235d1c46 | 1901 | (eval "$ac_link") 2>conftest.err |
b4c522fa | 1902 | ac_status=$? |
235d1c46 RO |
1903 | if test -s conftest.err; then |
1904 | grep -v '^ *+' conftest.err >conftest.er1 | |
1905 | cat conftest.er1 >&5 | |
1906 | mv -f conftest.er1 conftest.err | |
1907 | fi | |
b4c522fa | 1908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
235d1c46 RO |
1909 | test $ac_status = 0; } && { |
1910 | test -z "$ac_c_werror_flag" || | |
1911 | test ! -s conftest.err | |
1912 | } && test -s conftest$ac_exeext && { | |
1913 | test "$cross_compiling" = yes || | |
1914 | test -x conftest$ac_exeext | |
1915 | }; then : | |
b4c522fa IB |
1916 | ac_retval=0 |
1917 | else | |
235d1c46 | 1918 | $as_echo "$as_me: failed program was:" >&5 |
b4c522fa IB |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 |
1920 | ||
235d1c46 | 1921 | ac_retval=1 |
b4c522fa | 1922 | fi |
235d1c46 RO |
1923 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1924 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1925 | # interfere with the next link command; also delete a directory that is | |
1926 | # left behind by Apple's compiler. We do this before executing the actions. | |
b4c522fa | 1927 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
22e05272 JM |
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1929 | as_fn_set_status $ac_retval | |
b4c522fa | 1930 | |
235d1c46 | 1931 | } # ac_fn_c_try_link |
b4c522fa IB |
1932 | |
1933 | # ac_fn_c_check_func LINENO FUNC VAR | |
1934 | # ---------------------------------- | |
1935 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1936 | ac_fn_c_check_func () | |
1937 | { | |
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1940 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1941 | if eval \${$3+:} false; then : |
b4c522fa IB |
1942 | $as_echo_n "(cached) " >&6 |
1943 | else | |
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1945 | /* end confdefs.h. */ | |
1946 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1947 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1948 | #define $2 innocuous_$2 | |
1949 | ||
1950 | /* System header to define __stub macros and hopefully few prototypes, | |
1951 | which can conflict with char $2 (); below. | |
1952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1953 | <limits.h> exists even on freestanding compilers. */ | |
1954 | ||
1955 | #ifdef __STDC__ | |
1956 | # include <limits.h> | |
1957 | #else | |
1958 | # include <assert.h> | |
1959 | #endif | |
1960 | ||
1961 | #undef $2 | |
1962 | ||
1963 | /* Override any GCC internal prototype to avoid an error. | |
1964 | Use char because int might match the return type of a GCC | |
1965 | builtin and then its argument prototype would still apply. */ | |
1966 | #ifdef __cplusplus | |
1967 | extern "C" | |
1968 | #endif | |
1969 | char $2 (); | |
1970 | /* The GNU C library defines this for functions which it implements | |
1971 | to always fail with ENOSYS. Some functions are actually named | |
1972 | something starting with __ and the normal name is an alias. */ | |
1973 | #if defined __stub_$2 || defined __stub___$2 | |
1974 | choke me | |
1975 | #endif | |
1976 | ||
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | return $2 (); | |
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | if ac_fn_c_try_link "$LINENO"; then : | |
1986 | eval "$3=yes" | |
1987 | else | |
1988 | eval "$3=no" | |
1989 | fi | |
1990 | rm -f core conftest.err conftest.$ac_objext \ | |
1991 | conftest$ac_exeext conftest.$ac_ext | |
1992 | fi | |
1993 | eval ac_res=\$$3 | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1995 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b4c522fa IB |
1997 | |
1998 | } # ac_fn_c_check_func | |
1999 | ||
235d1c46 RO |
2000 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2001 | # ---------------------------------------------------- | |
2002 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2003 | # INCLUDES, setting cache variable VAR accordingly. | |
2004 | ac_fn_c_check_member () | |
2005 | { | |
2006 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2008 | $as_echo_n "checking for $2.$3... " >&6; } | |
2009 | if eval \${$4+:} false; then : | |
2010 | $as_echo_n "(cached) " >&6 | |
2011 | else | |
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2013 | /* end confdefs.h. */ | |
2014 | $5 | |
2015 | int | |
2016 | main () | |
2017 | { | |
2018 | static $2 ac_aggr; | |
2019 | if (ac_aggr.$3) | |
2020 | return 0; | |
2021 | ; | |
2022 | return 0; | |
2023 | } | |
2024 | _ACEOF | |
2025 | if ac_fn_c_try_compile "$LINENO"; then : | |
2026 | eval "$4=yes" | |
2027 | else | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2029 | /* end confdefs.h. */ | |
2030 | $5 | |
2031 | int | |
2032 | main () | |
2033 | { | |
2034 | static $2 ac_aggr; | |
2035 | if (sizeof ac_aggr.$3) | |
2036 | return 0; | |
2037 | ; | |
2038 | return 0; | |
2039 | } | |
2040 | _ACEOF | |
2041 | if ac_fn_c_try_compile "$LINENO"; then : | |
2042 | eval "$4=yes" | |
2043 | else | |
2044 | eval "$4=no" | |
2045 | fi | |
2046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2047 | fi | |
2048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2049 | fi | |
2050 | eval ac_res=\$$4 | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2052 | $as_echo "$ac_res" >&6; } | |
2053 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2054 | ||
2055 | } # ac_fn_c_check_member | |
2056 | ||
2057 | # ac_fn_d_try_link LINENO | |
2058 | # ----------------------- | |
2059 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
b4c522fa IB |
2060 | ac_fn_d_try_link () |
2061 | { | |
2062 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2064 | if { { ac_try="$ac_link" | |
2065 | case "(($ac_try" in | |
2066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2067 | *) ac_try_echo=$ac_try;; | |
2068 | esac | |
2069 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2070 | $as_echo "$ac_try_echo"; } >&5 | |
2071 | (eval "$ac_link") 2>conftest.err | |
2072 | ac_status=$? | |
2073 | if test -s conftest.err; then | |
2074 | grep -v '^ *+' conftest.err >conftest.er1 | |
2075 | cat conftest.er1 >&5 | |
2076 | mv -f conftest.er1 conftest.err | |
2077 | fi | |
2078 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2079 | test $ac_status = 0; } && { | |
2080 | test -z "$ac_d_werror_flag" || | |
2081 | test ! -s conftest.err | |
2082 | } && test -s conftest$ac_exeext && { | |
2083 | test "$cross_compiling" = yes || | |
22e05272 | 2084 | test -x conftest$ac_exeext |
b4c522fa IB |
2085 | }; then : |
2086 | ac_retval=0 | |
2087 | else | |
2088 | $as_echo "$as_me: failed program was:" >&5 | |
2089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2090 | ||
2091 | ac_retval=1 | |
2092 | fi | |
2093 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2094 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2095 | # interfere with the next link command; also delete a directory that is | |
2096 | # left behind by Apple's compiler. We do this before executing the actions. | |
2097 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
2098 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2099 | as_fn_set_status $ac_retval | |
b4c522fa IB |
2100 | |
2101 | } # ac_fn_d_try_link | |
b4c522fa IB |
2102 | cat >config.log <<_ACEOF |
2103 | This file contains any messages produced by compilers while | |
2104 | running configure, to aid debugging if configure makes a mistake. | |
2105 | ||
2106 | It was created by package-unused $as_me version-unused, which was | |
22e05272 | 2107 | generated by GNU Autoconf 2.69. Invocation command line was |
b4c522fa IB |
2108 | |
2109 | $ $0 $@ | |
2110 | ||
2111 | _ACEOF | |
2112 | exec 5>>config.log | |
2113 | { | |
2114 | cat <<_ASUNAME | |
2115 | ## --------- ## | |
2116 | ## Platform. ## | |
2117 | ## --------- ## | |
2118 | ||
2119 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2120 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2121 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2122 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2123 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2124 | ||
2125 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2126 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2127 | ||
2128 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2129 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2130 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2131 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2132 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2133 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2134 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2135 | ||
2136 | _ASUNAME | |
2137 | ||
2138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2139 | for as_dir in $PATH | |
2140 | do | |
2141 | IFS=$as_save_IFS | |
2142 | test -z "$as_dir" && as_dir=. | |
2143 | $as_echo "PATH: $as_dir" | |
2144 | done | |
2145 | IFS=$as_save_IFS | |
2146 | ||
2147 | } >&5 | |
2148 | ||
2149 | cat >&5 <<_ACEOF | |
2150 | ||
2151 | ||
2152 | ## ----------- ## | |
2153 | ## Core tests. ## | |
2154 | ## ----------- ## | |
2155 | ||
2156 | _ACEOF | |
2157 | ||
2158 | ||
2159 | # Keep a trace of the command line. | |
2160 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2161 | # Strip out --silent because we don't want to record it for future runs. | |
2162 | # Also quote any args containing shell meta-characters. | |
2163 | # Make two passes to allow for proper duplicate-argument suppression. | |
2164 | ac_configure_args= | |
2165 | ac_configure_args0= | |
2166 | ac_configure_args1= | |
2167 | ac_must_keep_next=false | |
2168 | for ac_pass in 1 2 | |
2169 | do | |
2170 | for ac_arg | |
2171 | do | |
2172 | case $ac_arg in | |
2173 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2174 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2175 | | -silent | --silent | --silen | --sile | --sil) | |
2176 | continue ;; | |
2177 | *\'*) | |
2178 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2179 | esac | |
2180 | case $ac_pass in | |
2181 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2182 | 2) | |
2183 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2184 | if test $ac_must_keep_next = true; then | |
2185 | ac_must_keep_next=false # Got value, back to normal. | |
2186 | else | |
2187 | case $ac_arg in | |
2188 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2189 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2190 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2191 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2192 | case "$ac_configure_args0 " in | |
2193 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2194 | esac | |
2195 | ;; | |
2196 | -* ) ac_must_keep_next=true ;; | |
2197 | esac | |
2198 | fi | |
2199 | as_fn_append ac_configure_args " '$ac_arg'" | |
2200 | ;; | |
2201 | esac | |
2202 | done | |
2203 | done | |
2204 | { ac_configure_args0=; unset ac_configure_args0;} | |
2205 | { ac_configure_args1=; unset ac_configure_args1;} | |
2206 | ||
2207 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2208 | # config.log. We remove comments because anyway the quotes in there | |
2209 | # would cause problems or look ugly. | |
2210 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2211 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2212 | trap 'exit_status=$? | |
2213 | # Save into config.log some information that might help in debugging. | |
2214 | { | |
2215 | echo | |
2216 | ||
22e05272 | 2217 | $as_echo "## ---------------- ## |
b4c522fa | 2218 | ## Cache variables. ## |
22e05272 | 2219 | ## ---------------- ##" |
b4c522fa IB |
2220 | echo |
2221 | # The following way of writing the cache mishandles newlines in values, | |
2222 | ( | |
2223 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2224 | eval ac_val=\$$ac_var | |
2225 | case $ac_val in #( | |
2226 | *${as_nl}*) | |
2227 | case $ac_var in #( | |
2228 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2229 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2230 | esac | |
2231 | case $ac_var in #( | |
2232 | _ | IFS | as_nl) ;; #( | |
2233 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2234 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2235 | esac ;; | |
2236 | esac | |
2237 | done | |
2238 | (set) 2>&1 | | |
2239 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2240 | *${as_nl}ac_space=\ *) | |
2241 | sed -n \ | |
2242 | "s/'\''/'\''\\\\'\'''\''/g; | |
2243 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2244 | ;; #( | |
2245 | *) | |
2246 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2247 | ;; | |
2248 | esac | | |
2249 | sort | |
2250 | ) | |
2251 | echo | |
2252 | ||
22e05272 | 2253 | $as_echo "## ----------------- ## |
b4c522fa | 2254 | ## Output variables. ## |
22e05272 | 2255 | ## ----------------- ##" |
b4c522fa IB |
2256 | echo |
2257 | for ac_var in $ac_subst_vars | |
2258 | do | |
2259 | eval ac_val=\$$ac_var | |
2260 | case $ac_val in | |
2261 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2262 | esac | |
2263 | $as_echo "$ac_var='\''$ac_val'\''" | |
2264 | done | sort | |
2265 | echo | |
2266 | ||
2267 | if test -n "$ac_subst_files"; then | |
22e05272 | 2268 | $as_echo "## ------------------- ## |
b4c522fa | 2269 | ## File substitutions. ## |
22e05272 | 2270 | ## ------------------- ##" |
b4c522fa IB |
2271 | echo |
2272 | for ac_var in $ac_subst_files | |
2273 | do | |
2274 | eval ac_val=\$$ac_var | |
2275 | case $ac_val in | |
2276 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2277 | esac | |
2278 | $as_echo "$ac_var='\''$ac_val'\''" | |
2279 | done | sort | |
2280 | echo | |
2281 | fi | |
2282 | ||
2283 | if test -s confdefs.h; then | |
22e05272 | 2284 | $as_echo "## ----------- ## |
b4c522fa | 2285 | ## confdefs.h. ## |
22e05272 | 2286 | ## ----------- ##" |
b4c522fa IB |
2287 | echo |
2288 | cat confdefs.h | |
2289 | echo | |
2290 | fi | |
2291 | test "$ac_signal" != 0 && | |
2292 | $as_echo "$as_me: caught signal $ac_signal" | |
2293 | $as_echo "$as_me: exit $exit_status" | |
2294 | } >&5 | |
2295 | rm -f core *.core core.conftest.* && | |
2296 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2297 | exit $exit_status | |
2298 | ' 0 | |
2299 | for ac_signal in 1 2 13 15; do | |
2300 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2301 | done | |
2302 | ac_signal=0 | |
2303 | ||
2304 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2305 | rm -f -r conftest* confdefs.h | |
2306 | ||
2307 | $as_echo "/* confdefs.h */" > confdefs.h | |
2308 | ||
2309 | # Predefined preprocessor variables. | |
2310 | ||
2311 | cat >>confdefs.h <<_ACEOF | |
2312 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2313 | _ACEOF | |
2314 | ||
2315 | cat >>confdefs.h <<_ACEOF | |
2316 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2317 | _ACEOF | |
2318 | ||
2319 | cat >>confdefs.h <<_ACEOF | |
2320 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2321 | _ACEOF | |
2322 | ||
2323 | cat >>confdefs.h <<_ACEOF | |
2324 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2325 | _ACEOF | |
2326 | ||
2327 | cat >>confdefs.h <<_ACEOF | |
2328 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2329 | _ACEOF | |
2330 | ||
2331 | cat >>confdefs.h <<_ACEOF | |
2332 | #define PACKAGE_URL "$PACKAGE_URL" | |
2333 | _ACEOF | |
2334 | ||
2335 | ||
2336 | # Let the site file select an alternate cache file if it wants to. | |
2337 | # Prefer an explicitly selected file to automatically selected ones. | |
2338 | ac_site_file1=NONE | |
2339 | ac_site_file2=NONE | |
2340 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2341 | # We do not want a PATH search for config.site. |
2342 | case $CONFIG_SITE in #(( | |
2343 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2344 | */*) ac_site_file1=$CONFIG_SITE;; | |
2345 | *) ac_site_file1=./$CONFIG_SITE;; | |
2346 | esac | |
b4c522fa IB |
2347 | elif test "x$prefix" != xNONE; then |
2348 | ac_site_file1=$prefix/share/config.site | |
2349 | ac_site_file2=$prefix/etc/config.site | |
2350 | else | |
2351 | ac_site_file1=$ac_default_prefix/share/config.site | |
2352 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2353 | fi | |
2354 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2355 | do | |
2356 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2357 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
b4c522fa IB |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2359 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2360 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2361 | . "$ac_site_file" \ |
2362 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2363 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2364 | as_fn_error $? "failed to load site script $ac_site_file | |
2365 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa IB |
2366 | fi |
2367 | done | |
2368 | ||
2369 | if test -r "$cache_file"; then | |
22e05272 JM |
2370 | # Some versions of bash will fail to source /dev/null (special files |
2371 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2372 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
b4c522fa IB |
2373 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2374 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2375 | case $cache_file in | |
2376 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2377 | *) . "./$cache_file";; | |
2378 | esac | |
2379 | fi | |
2380 | else | |
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2382 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2383 | >$cache_file | |
2384 | fi | |
2385 | ||
2386 | # Check that the precious variables saved in the cache have kept the same | |
2387 | # value. | |
2388 | ac_cache_corrupted=false | |
2389 | for ac_var in $ac_precious_vars; do | |
2390 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2391 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2392 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2393 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2394 | case $ac_old_set,$ac_new_set in | |
2395 | set,) | |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2397 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2398 | ac_cache_corrupted=: ;; | |
2399 | ,set) | |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2401 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2402 | ac_cache_corrupted=: ;; | |
2403 | ,);; | |
2404 | *) | |
2405 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2406 | # differences in whitespace do not lead to failure. | |
2407 | ac_old_val_w=`echo x $ac_old_val` | |
2408 | ac_new_val_w=`echo x $ac_new_val` | |
2409 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2411 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2412 | ac_cache_corrupted=: | |
2413 | else | |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2415 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2416 | eval $ac_var=\$ac_old_val | |
2417 | fi | |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2419 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2421 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2422 | fi;; | |
2423 | esac | |
2424 | # Pass precious variables to config.status. | |
2425 | if test "$ac_new_set" = set; then | |
2426 | case $ac_new_val in | |
2427 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2428 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2429 | esac | |
2430 | case " $ac_configure_args " in | |
2431 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2432 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2433 | esac | |
2434 | fi | |
2435 | done | |
2436 | if $ac_cache_corrupted; then | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2438 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2440 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2441 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b4c522fa IB |
2442 | fi |
2443 | ## -------------------- ## | |
2444 | ## Main body of script. ## | |
2445 | ## -------------------- ## | |
2446 | ||
2447 | ac_ext=c | |
2448 | ac_cpp='$CPP $CPPFLAGS' | |
2449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2452 | ||
2453 | ||
2454 | ||
2455 | ||
2456 | ||
2457 | ||
2458 | ac_config_headers="$ac_config_headers config.h" | |
2459 | ||
2460 | ||
2461 | # Default to --enable-multilib | |
2462 | # Check whether --enable-multilib was given. | |
2463 | if test "${enable_multilib+set}" = set; then : | |
2464 | enableval=$enable_multilib; case "$enableval" in | |
2465 | yes) multilib=yes ;; | |
2466 | no) multilib=no ;; | |
22e05272 | 2467 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
b4c522fa IB |
2468 | esac |
2469 | else | |
2470 | multilib=yes | |
2471 | fi | |
2472 | ||
2473 | ||
2474 | # We may get other options which we leave undocumented: | |
2475 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2476 | # See config-ml.in if you want the gory details. | |
2477 | ||
2478 | if test "$srcdir" = "."; then | |
2479 | if test "$with_target_subdir" != "."; then | |
2480 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2481 | else | |
2482 | multi_basedir="$srcdir/$with_multisrctop.." | |
2483 | fi | |
2484 | else | |
2485 | multi_basedir="$srcdir/.." | |
2486 | fi | |
2487 | ||
2488 | ||
2489 | # Even if the default multilib is not a cross compilation, | |
2490 | # it may be that some of the other multilibs are. | |
2491 | if test $cross_compiling = no && test $multilib = yes \ | |
2492 | && test "x${with_multisubdir}" != x ; then | |
2493 | cross_compiling=maybe | |
2494 | fi | |
2495 | ||
2496 | ac_config_commands="$ac_config_commands default-1" | |
2497 | ||
2498 | ac_aux_dir= | |
2499 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2500 | if test -f "$ac_dir/install-sh"; then |
2501 | ac_aux_dir=$ac_dir | |
2502 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2503 | break | |
2504 | elif test -f "$ac_dir/install.sh"; then | |
2505 | ac_aux_dir=$ac_dir | |
2506 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2507 | break | |
2508 | elif test -f "$ac_dir/shtool"; then | |
2509 | ac_aux_dir=$ac_dir | |
2510 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2511 | break | |
2512 | fi | |
b4c522fa IB |
2513 | done |
2514 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2515 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
b4c522fa IB |
2516 | fi |
2517 | ||
2518 | # These three variables are undocumented and unsupported, | |
2519 | # and are intended to be withdrawn in a future Autoconf release. | |
2520 | # They can cause serious problems if a builder's source tree is in a directory | |
2521 | # whose full name contains unusual characters. | |
2522 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2523 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2524 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2525 | ||
2526 | ||
2527 | # Make sure we can run config.sub. | |
2528 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2529 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
b4c522fa IB |
2530 | |
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2532 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2533 | if ${ac_cv_build+:} false; then : |
b4c522fa IB |
2534 | $as_echo_n "(cached) " >&6 |
2535 | else | |
2536 | ac_build_alias=$build_alias | |
2537 | test "x$ac_build_alias" = x && | |
2538 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2539 | test "x$ac_build_alias" = x && | |
22e05272 | 2540 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
b4c522fa | 2541 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2542 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
b4c522fa IB |
2543 | |
2544 | fi | |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2546 | $as_echo "$ac_cv_build" >&6; } | |
2547 | case $ac_cv_build in | |
2548 | *-*-*) ;; | |
22e05272 | 2549 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
b4c522fa IB |
2550 | esac |
2551 | build=$ac_cv_build | |
2552 | ac_save_IFS=$IFS; IFS='-' | |
2553 | set x $ac_cv_build | |
2554 | shift | |
2555 | build_cpu=$1 | |
2556 | build_vendor=$2 | |
2557 | shift; shift | |
2558 | # Remember, the first character of IFS is used to create $*, | |
2559 | # except with old shells: | |
2560 | build_os=$* | |
2561 | IFS=$ac_save_IFS | |
2562 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2563 | ||
2564 | ||
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2566 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2567 | if ${ac_cv_host+:} false; then : |
b4c522fa IB |
2568 | $as_echo_n "(cached) " >&6 |
2569 | else | |
2570 | if test "x$host_alias" = x; then | |
2571 | ac_cv_host=$ac_cv_build | |
2572 | else | |
2573 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2574 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
b4c522fa IB |
2575 | fi |
2576 | ||
2577 | fi | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2579 | $as_echo "$ac_cv_host" >&6; } | |
2580 | case $ac_cv_host in | |
2581 | *-*-*) ;; | |
22e05272 | 2582 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
b4c522fa IB |
2583 | esac |
2584 | host=$ac_cv_host | |
2585 | ac_save_IFS=$IFS; IFS='-' | |
2586 | set x $ac_cv_host | |
2587 | shift | |
2588 | host_cpu=$1 | |
2589 | host_vendor=$2 | |
2590 | shift; shift | |
2591 | # Remember, the first character of IFS is used to create $*, | |
2592 | # except with old shells: | |
2593 | host_os=$* | |
2594 | IFS=$ac_save_IFS | |
2595 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2596 | ||
2597 | ||
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2599 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2600 | if ${ac_cv_target+:} false; then : |
b4c522fa IB |
2601 | $as_echo_n "(cached) " >&6 |
2602 | else | |
2603 | if test "x$target_alias" = x; then | |
2604 | ac_cv_target=$ac_cv_host | |
2605 | else | |
2606 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2607 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
b4c522fa IB |
2608 | fi |
2609 | ||
2610 | fi | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2612 | $as_echo "$ac_cv_target" >&6; } | |
2613 | case $ac_cv_target in | |
2614 | *-*-*) ;; | |
22e05272 | 2615 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
b4c522fa IB |
2616 | esac |
2617 | target=$ac_cv_target | |
2618 | ac_save_IFS=$IFS; IFS='-' | |
2619 | set x $ac_cv_target | |
2620 | shift | |
2621 | target_cpu=$1 | |
2622 | target_vendor=$2 | |
2623 | shift; shift | |
2624 | # Remember, the first character of IFS is used to create $*, | |
2625 | # except with old shells: | |
2626 | target_os=$* | |
2627 | IFS=$ac_save_IFS | |
2628 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2629 | ||
2630 | ||
2631 | # The aliases save the names the user supplied, while $host etc. | |
2632 | # will get canonicalized. | |
2633 | test -n "$target_alias" && | |
2634 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2635 | NONENONEs,x,x, && | |
2636 | program_prefix=${target_alias}- | |
2637 | ||
235d1c46 RO |
2638 | # Expand $ac_aux_dir to an absolute path. |
2639 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
b4c522fa | 2640 | |
235d1c46 RO |
2641 | ac_ext=c |
2642 | ac_cpp='$CPP $CPPFLAGS' | |
2643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2646 | if test -n "$ac_tool_prefix"; then | |
2647 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2648 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2650 | $as_echo_n "checking for $ac_word... " >&6; } | |
2651 | if ${ac_cv_prog_CC+:} false; then : | |
b4c522fa IB |
2652 | $as_echo_n "(cached) " >&6 |
2653 | else | |
235d1c46 RO |
2654 | if test -n "$CC"; then |
2655 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2656 | else | |
2657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b4c522fa IB |
2658 | for as_dir in $PATH |
2659 | do | |
2660 | IFS=$as_save_IFS | |
2661 | test -z "$as_dir" && as_dir=. | |
235d1c46 RO |
2662 | for ac_exec_ext in '' $ac_executable_extensions; do |
2663 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2664 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2666 | break 2 | |
2667 | fi | |
2668 | done | |
b4c522fa IB |
2669 | done |
2670 | IFS=$as_save_IFS | |
2671 | ||
b4c522fa | 2672 | fi |
b4c522fa | 2673 | fi |
235d1c46 RO |
2674 | CC=$ac_cv_prog_CC |
2675 | if test -n "$CC"; then | |
2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2677 | $as_echo "$CC" >&6; } | |
2678 | else | |
2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2680 | $as_echo "no" >&6; } | |
2681 | fi | |
b4c522fa | 2682 | |
b4c522fa | 2683 | |
b4c522fa | 2684 | fi |
235d1c46 RO |
2685 | if test -z "$ac_cv_prog_CC"; then |
2686 | ac_ct_CC=$CC | |
2687 | # Extract the first word of "gcc", so it can be a program name with args. | |
2688 | set dummy gcc; ac_word=$2 | |
b4c522fa IB |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2690 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 2691 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
b4c522fa IB |
2692 | $as_echo_n "(cached) " >&6 |
2693 | else | |
235d1c46 RO |
2694 | if test -n "$ac_ct_CC"; then |
2695 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b4c522fa IB |
2696 | else |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 2704 | ac_cv_prog_ac_ct_CC="gcc" |
b4c522fa IB |
2705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2706 | break 2 | |
2707 | fi | |
2708 | done | |
2709 | done | |
2710 | IFS=$as_save_IFS | |
2711 | ||
2712 | fi | |
2713 | fi | |
235d1c46 RO |
2714 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2715 | if test -n "$ac_ct_CC"; then | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2717 | $as_echo "$ac_ct_CC" >&6; } | |
b4c522fa IB |
2718 | else |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2720 | $as_echo "no" >&6; } | |
2721 | fi | |
2722 | ||
235d1c46 RO |
2723 | if test "x$ac_ct_CC" = x; then |
2724 | CC="" | |
2725 | else | |
2726 | case $cross_compiling:$ac_tool_warned in | |
2727 | yes:) | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2729 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2730 | ac_tool_warned=yes ;; | |
2731 | esac | |
2732 | CC=$ac_ct_CC | |
2733 | fi | |
2734 | else | |
2735 | CC="$ac_cv_prog_CC" | |
b4c522fa | 2736 | fi |
235d1c46 RO |
2737 | |
2738 | if test -z "$CC"; then | |
2739 | if test -n "$ac_tool_prefix"; then | |
2740 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2741 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
b4c522fa IB |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2743 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 2744 | if ${ac_cv_prog_CC+:} false; then : |
b4c522fa IB |
2745 | $as_echo_n "(cached) " >&6 |
2746 | else | |
235d1c46 RO |
2747 | if test -n "$CC"; then |
2748 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b4c522fa IB |
2749 | else |
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2751 | for as_dir in $PATH | |
2752 | do | |
2753 | IFS=$as_save_IFS | |
2754 | test -z "$as_dir" && as_dir=. | |
2755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 2757 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b4c522fa IB |
2758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2759 | break 2 | |
2760 | fi | |
2761 | done | |
2762 | done | |
2763 | IFS=$as_save_IFS | |
2764 | ||
2765 | fi | |
2766 | fi | |
235d1c46 RO |
2767 | CC=$ac_cv_prog_CC |
2768 | if test -n "$CC"; then | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2770 | $as_echo "$CC" >&6; } | |
b4c522fa IB |
2771 | else |
2772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2773 | $as_echo "no" >&6; } | |
2774 | fi | |
2775 | ||
b4c522fa | 2776 | |
b4c522fa IB |
2777 | fi |
2778 | fi | |
235d1c46 RO |
2779 | if test -z "$CC"; then |
2780 | # Extract the first word of "cc", so it can be a program name with args. | |
2781 | set dummy cc; ac_word=$2 | |
b4c522fa IB |
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2783 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 2784 | if ${ac_cv_prog_CC+:} false; then : |
b4c522fa IB |
2785 | $as_echo_n "(cached) " >&6 |
2786 | else | |
235d1c46 RO |
2787 | if test -n "$CC"; then |
2788 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b4c522fa | 2789 | else |
235d1c46 | 2790 | ac_prog_rejected=no |
b4c522fa IB |
2791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2792 | for as_dir in $PATH | |
2793 | do | |
2794 | IFS=$as_save_IFS | |
2795 | test -z "$as_dir" && as_dir=. | |
2796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 RO |
2798 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2799 | ac_prog_rejected=yes | |
2800 | continue | |
2801 | fi | |
2802 | ac_cv_prog_CC="cc" | |
b4c522fa IB |
2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2804 | break 2 | |
2805 | fi | |
2806 | done | |
2807 | done | |
2808 | IFS=$as_save_IFS | |
2809 | ||
235d1c46 RO |
2810 | if test $ac_prog_rejected = yes; then |
2811 | # We found a bogon in the path, so make sure we never use it. | |
2812 | set dummy $ac_cv_prog_CC | |
2813 | shift | |
2814 | if test $# != 0; then | |
2815 | # We chose a different compiler from the bogus one. | |
2816 | # However, it has the same basename, so the bogon will be chosen | |
2817 | # first if we set CC to just the basename; use the full file name. | |
2818 | shift | |
2819 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2820 | fi | |
b4c522fa IB |
2821 | fi |
2822 | fi | |
235d1c46 RO |
2823 | fi |
2824 | CC=$ac_cv_prog_CC | |
2825 | if test -n "$CC"; then | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2827 | $as_echo "$CC" >&6; } | |
b4c522fa IB |
2828 | else |
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2830 | $as_echo "no" >&6; } | |
b4c522fa IB |
2831 | fi |
2832 | ||
2833 | ||
22e05272 | 2834 | fi |
235d1c46 RO |
2835 | if test -z "$CC"; then |
2836 | if test -n "$ac_tool_prefix"; then | |
2837 | for ac_prog in cl.exe | |
2838 | do | |
2839 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2840 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4c522fa IB |
2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2842 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2843 | if ${ac_cv_prog_CC+:} false; then : |
b4c522fa IB |
2844 | $as_echo_n "(cached) " >&6 |
2845 | else | |
2846 | if test -n "$CC"; then | |
2847 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2848 | else | |
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2850 | for as_dir in $PATH | |
2851 | do | |
2852 | IFS=$as_save_IFS | |
2853 | test -z "$as_dir" && as_dir=. | |
2854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2855 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 2856 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b4c522fa IB |
2857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2858 | break 2 | |
2859 | fi | |
2860 | done | |
2861 | done | |
2862 | IFS=$as_save_IFS | |
2863 | ||
2864 | fi | |
2865 | fi | |
2866 | CC=$ac_cv_prog_CC | |
2867 | if test -n "$CC"; then | |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2869 | $as_echo "$CC" >&6; } | |
2870 | else | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2872 | $as_echo "no" >&6; } | |
2873 | fi | |
2874 | ||
2875 | ||
235d1c46 RO |
2876 | test -n "$CC" && break |
2877 | done | |
b4c522fa | 2878 | fi |
235d1c46 | 2879 | if test -z "$CC"; then |
b4c522fa | 2880 | ac_ct_CC=$CC |
235d1c46 RO |
2881 | for ac_prog in cl.exe |
2882 | do | |
2883 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2884 | set dummy $ac_prog; ac_word=$2 | |
b4c522fa IB |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2886 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2887 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
b4c522fa IB |
2888 | $as_echo_n "(cached) " >&6 |
2889 | else | |
2890 | if test -n "$ac_ct_CC"; then | |
2891 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2892 | else | |
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2894 | for as_dir in $PATH | |
2895 | do | |
2896 | IFS=$as_save_IFS | |
2897 | test -z "$as_dir" && as_dir=. | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 2900 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b4c522fa IB |
2901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2902 | break 2 | |
2903 | fi | |
2904 | done | |
2905 | done | |
2906 | IFS=$as_save_IFS | |
2907 | ||
2908 | fi | |
2909 | fi | |
2910 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2911 | if test -n "$ac_ct_CC"; then | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2913 | $as_echo "$ac_ct_CC" >&6; } | |
2914 | else | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2916 | $as_echo "no" >&6; } | |
2917 | fi | |
235d1c46 RO |
2918 | |
2919 | ||
2920 | test -n "$ac_ct_CC" && break | |
2921 | done | |
b4c522fa IB |
2922 | |
2923 | if test "x$ac_ct_CC" = x; then | |
2924 | CC="" | |
2925 | else | |
2926 | case $cross_compiling:$ac_tool_warned in | |
2927 | yes:) | |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2929 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2930 | ac_tool_warned=yes ;; | |
2931 | esac | |
2932 | CC=$ac_ct_CC | |
2933 | fi | |
2934 | fi | |
2935 | ||
2936 | fi | |
2937 | ||
2938 | ||
2939 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2940 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
2941 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2942 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa IB |
2943 | |
2944 | # Provide some information about the compiler. | |
2945 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2946 | set X $ac_compile | |
2947 | ac_compiler=$2 | |
2948 | for ac_option in --version -v -V -qversion; do | |
2949 | { { ac_try="$ac_compiler $ac_option >&5" | |
2950 | case "(($ac_try" in | |
2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2952 | *) ac_try_echo=$ac_try;; | |
2953 | esac | |
2954 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2955 | $as_echo "$ac_try_echo"; } >&5 | |
2956 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2957 | ac_status=$? | |
2958 | if test -s conftest.err; then | |
2959 | sed '10a\ | |
2960 | ... rest of stderr output deleted ... | |
2961 | 10q' conftest.err >conftest.er1 | |
2962 | cat conftest.er1 >&5 | |
b4c522fa | 2963 | fi |
22e05272 | 2964 | rm -f conftest.er1 conftest.err |
b4c522fa IB |
2965 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2966 | test $ac_status = 0; } | |
2967 | done | |
2968 | ||
2969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2970 | /* end confdefs.h. */ | |
2971 | ||
2972 | int | |
2973 | main () | |
2974 | { | |
2975 | ||
2976 | ; | |
2977 | return 0; | |
2978 | } | |
2979 | _ACEOF | |
2980 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 2981 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b4c522fa IB |
2982 | # Try to create an executable without -o first, disregard a.out. |
2983 | # It will help us diagnose broken compilers, and finding out an intuition | |
2984 | # of exeext. | |
22e05272 JM |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2986 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
b4c522fa IB |
2987 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2988 | ||
2989 | # The possible output files: | |
2990 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2991 | ||
2992 | ac_rmfiles= | |
2993 | for ac_file in $ac_files | |
2994 | do | |
2995 | case $ac_file in | |
2996 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2997 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2998 | esac | |
2999 | done | |
3000 | rm -f $ac_rmfiles | |
3001 | ||
3002 | if { { ac_try="$ac_link_default" | |
3003 | case "(($ac_try" in | |
3004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3005 | *) ac_try_echo=$ac_try;; | |
3006 | esac | |
3007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3008 | $as_echo "$ac_try_echo"; } >&5 | |
3009 | (eval "$ac_link_default") 2>&5 | |
3010 | ac_status=$? | |
3011 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3012 | test $ac_status = 0; }; then : | |
3013 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3014 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3015 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3016 | # so that the user can short-circuit this test for compilers unknown to | |
3017 | # Autoconf. | |
3018 | for ac_file in $ac_files '' | |
3019 | do | |
3020 | test -f "$ac_file" || continue | |
3021 | case $ac_file in | |
3022 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3023 | ;; | |
3024 | [ab].out ) | |
3025 | # We found the default executable, but exeext='' is most | |
3026 | # certainly right. | |
3027 | break;; | |
3028 | *.* ) | |
3029 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3030 | then :; else | |
3031 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3032 | fi | |
3033 | # We set ac_cv_exeext here because the later test for it is not | |
3034 | # safe: cross compilers may not add the suffix if given an `-o' | |
3035 | # argument, so we may need to know it at that point already. | |
3036 | # Even if this section looks crufty: it has the advantage of | |
3037 | # actually working. | |
3038 | break;; | |
3039 | * ) | |
3040 | break;; | |
3041 | esac | |
3042 | done | |
3043 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3044 | ||
3045 | else | |
3046 | ac_file='' | |
3047 | fi | |
b4c522fa | 3048 | if test -z "$ac_file"; then : |
22e05272 JM |
3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3050 | $as_echo "no" >&6; } | |
3051 | $as_echo "$as_me: failed program was:" >&5 | |
b4c522fa IB |
3052 | sed 's/^/| /' conftest.$ac_ext >&5 |
3053 | ||
3054 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3055 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3056 | as_fn_error 77 "C compiler cannot create executables |
3057 | See \`config.log' for more details" "$LINENO" 5; } | |
3058 | else | |
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3060 | $as_echo "yes" >&6; } | |
b4c522fa | 3061 | fi |
22e05272 JM |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3063 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3065 | $as_echo "$ac_file" >&6; } | |
b4c522fa IB |
3066 | ac_exeext=$ac_cv_exeext |
3067 | ||
22e05272 | 3068 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b4c522fa | 3069 | ac_clean_files=$ac_clean_files_save |
b4c522fa IB |
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3071 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3072 | if { { ac_try="$ac_link" | |
3073 | case "(($ac_try" in | |
3074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3075 | *) ac_try_echo=$ac_try;; | |
3076 | esac | |
3077 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3078 | $as_echo "$ac_try_echo"; } >&5 | |
3079 | (eval "$ac_link") 2>&5 | |
3080 | ac_status=$? | |
3081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3082 | test $ac_status = 0; }; then : | |
3083 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3084 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3085 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3086 | # `rm'. | |
3087 | for ac_file in conftest.exe conftest conftest.*; do | |
3088 | test -f "$ac_file" || continue | |
3089 | case $ac_file in | |
3090 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3091 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3092 | break;; | |
3093 | * ) break;; | |
3094 | esac | |
3095 | done | |
3096 | else | |
3097 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3098 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3099 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3100 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa | 3101 | fi |
22e05272 | 3102 | rm -f conftest conftest$ac_cv_exeext |
b4c522fa IB |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3104 | $as_echo "$ac_cv_exeext" >&6; } | |
3105 | ||
3106 | rm -f conftest.$ac_ext | |
3107 | EXEEXT=$ac_cv_exeext | |
3108 | ac_exeext=$EXEEXT | |
22e05272 JM |
3109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3110 | /* end confdefs.h. */ | |
3111 | #include <stdio.h> | |
3112 | int | |
3113 | main () | |
3114 | { | |
3115 | FILE *f = fopen ("conftest.out", "w"); | |
3116 | return ferror (f) || fclose (f) != 0; | |
3117 | ||
3118 | ; | |
3119 | return 0; | |
3120 | } | |
3121 | _ACEOF | |
3122 | ac_clean_files="$ac_clean_files conftest.out" | |
3123 | # Check that the compiler produces executables we can run. If not, either | |
3124 | # the compiler is broken, or we cross compile. | |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3126 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3127 | if test "$cross_compiling" != yes; then | |
3128 | { { ac_try="$ac_link" | |
3129 | case "(($ac_try" in | |
3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3131 | *) ac_try_echo=$ac_try;; | |
3132 | esac | |
3133 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3134 | $as_echo "$ac_try_echo"; } >&5 | |
3135 | (eval "$ac_link") 2>&5 | |
3136 | ac_status=$? | |
3137 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3138 | test $ac_status = 0; } | |
3139 | if { ac_try='./conftest$ac_cv_exeext' | |
3140 | { { case "(($ac_try" in | |
3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3142 | *) ac_try_echo=$ac_try;; | |
3143 | esac | |
3144 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3145 | $as_echo "$ac_try_echo"; } >&5 | |
3146 | (eval "$ac_try") 2>&5 | |
3147 | ac_status=$? | |
3148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3149 | test $ac_status = 0; }; }; then | |
3150 | cross_compiling=no | |
3151 | else | |
3152 | if test "$cross_compiling" = maybe; then | |
3153 | cross_compiling=yes | |
3154 | else | |
3155 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3157 | as_fn_error $? "cannot run C compiled programs. | |
3158 | If you meant to cross compile, use \`--host'. | |
3159 | See \`config.log' for more details" "$LINENO" 5; } | |
3160 | fi | |
3161 | fi | |
3162 | fi | |
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3164 | $as_echo "$cross_compiling" >&6; } | |
3165 | ||
3166 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3167 | ac_clean_files=$ac_clean_files_save | |
b4c522fa IB |
3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3169 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3170 | if ${ac_cv_objext+:} false; then : |
b4c522fa IB |
3171 | $as_echo_n "(cached) " >&6 |
3172 | else | |
3173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3174 | /* end confdefs.h. */ | |
3175 | ||
3176 | int | |
3177 | main () | |
3178 | { | |
3179 | ||
3180 | ; | |
3181 | return 0; | |
3182 | } | |
3183 | _ACEOF | |
3184 | rm -f conftest.o conftest.obj | |
3185 | if { { ac_try="$ac_compile" | |
3186 | case "(($ac_try" in | |
3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3188 | *) ac_try_echo=$ac_try;; | |
3189 | esac | |
3190 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3191 | $as_echo "$ac_try_echo"; } >&5 | |
3192 | (eval "$ac_compile") 2>&5 | |
3193 | ac_status=$? | |
3194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3195 | test $ac_status = 0; }; then : | |
3196 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3197 | test -f "$ac_file" || continue; | |
3198 | case $ac_file in | |
3199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3200 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3201 | break;; | |
3202 | esac | |
3203 | done | |
3204 | else | |
3205 | $as_echo "$as_me: failed program was:" >&5 | |
3206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3207 | ||
3208 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3209 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3210 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3211 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa IB |
3212 | fi |
3213 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3214 | fi | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3216 | $as_echo "$ac_cv_objext" >&6; } | |
3217 | OBJEXT=$ac_cv_objext | |
3218 | ac_objext=$OBJEXT | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3220 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3221 | if ${ac_cv_c_compiler_gnu+:} false; then : |
b4c522fa IB |
3222 | $as_echo_n "(cached) " >&6 |
3223 | else | |
3224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3225 | /* end confdefs.h. */ | |
3226 | ||
3227 | int | |
3228 | main () | |
3229 | { | |
3230 | #ifndef __GNUC__ | |
3231 | choke me | |
3232 | #endif | |
3233 | ||
3234 | ; | |
3235 | return 0; | |
3236 | } | |
3237 | _ACEOF | |
3238 | if ac_fn_c_try_compile "$LINENO"; then : | |
3239 | ac_compiler_gnu=yes | |
3240 | else | |
3241 | ac_compiler_gnu=no | |
3242 | fi | |
3243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3244 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3245 | ||
3246 | fi | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3248 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3249 | if test $ac_compiler_gnu = yes; then | |
3250 | GCC=yes | |
3251 | else | |
3252 | GCC= | |
3253 | fi | |
3254 | ac_test_CFLAGS=${CFLAGS+set} | |
3255 | ac_save_CFLAGS=$CFLAGS | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3257 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3258 | if ${ac_cv_prog_cc_g+:} false; then : |
b4c522fa IB |
3259 | $as_echo_n "(cached) " >&6 |
3260 | else | |
3261 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3262 | ac_c_werror_flag=yes | |
3263 | ac_cv_prog_cc_g=no | |
3264 | CFLAGS="-g" | |
3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3266 | /* end confdefs.h. */ | |
3267 | ||
3268 | int | |
3269 | main () | |
3270 | { | |
3271 | ||
3272 | ; | |
3273 | return 0; | |
3274 | } | |
3275 | _ACEOF | |
3276 | if ac_fn_c_try_compile "$LINENO"; then : | |
3277 | ac_cv_prog_cc_g=yes | |
3278 | else | |
3279 | CFLAGS="" | |
3280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3281 | /* end confdefs.h. */ | |
3282 | ||
3283 | int | |
3284 | main () | |
3285 | { | |
3286 | ||
3287 | ; | |
3288 | return 0; | |
3289 | } | |
3290 | _ACEOF | |
3291 | if ac_fn_c_try_compile "$LINENO"; then : | |
3292 | ||
3293 | else | |
3294 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3295 | CFLAGS="-g" | |
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 | /* end confdefs.h. */ | |
3298 | ||
3299 | int | |
3300 | main () | |
3301 | { | |
3302 | ||
3303 | ; | |
3304 | return 0; | |
3305 | } | |
3306 | _ACEOF | |
3307 | if ac_fn_c_try_compile "$LINENO"; then : | |
3308 | ac_cv_prog_cc_g=yes | |
3309 | fi | |
3310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3311 | fi | |
3312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3313 | fi | |
3314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3315 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3316 | fi | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3318 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3319 | if test "$ac_test_CFLAGS" = set; then | |
3320 | CFLAGS=$ac_save_CFLAGS | |
3321 | elif test $ac_cv_prog_cc_g = yes; then | |
3322 | if test "$GCC" = yes; then | |
3323 | CFLAGS="-g -O2" | |
3324 | else | |
3325 | CFLAGS="-g" | |
3326 | fi | |
3327 | else | |
3328 | if test "$GCC" = yes; then | |
3329 | CFLAGS="-O2" | |
3330 | else | |
3331 | CFLAGS= | |
3332 | fi | |
3333 | fi | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3335 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3336 | if ${ac_cv_prog_cc_c89+:} false; then : |
b4c522fa IB |
3337 | $as_echo_n "(cached) " >&6 |
3338 | else | |
3339 | ac_cv_prog_cc_c89=no | |
3340 | ac_save_CC=$CC | |
3341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3342 | /* end confdefs.h. */ | |
3343 | #include <stdarg.h> | |
3344 | #include <stdio.h> | |
22e05272 | 3345 | struct stat; |
b4c522fa IB |
3346 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3347 | struct buf { int x; }; | |
3348 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3349 | static char *e (p, i) | |
3350 | char **p; | |
3351 | int i; | |
3352 | { | |
3353 | return p[i]; | |
3354 | } | |
3355 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3356 | { | |
3357 | char *s; | |
3358 | va_list v; | |
3359 | va_start (v,p); | |
3360 | s = g (p, va_arg (v,int)); | |
3361 | va_end (v); | |
3362 | return s; | |
3363 | } | |
3364 | ||
3365 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3366 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3367 | These don't provoke an error unfortunately, instead are silently treated | |
3368 | as 'x'. The following induces an error, until -std is added to get | |
3369 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3370 | array size at least. It's necessary to write '\x00'==0 to get something | |
3371 | that's true only with -std. */ | |
3372 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3373 | ||
3374 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3375 | inside strings and character constants. */ | |
3376 | #define FOO(x) 'x' | |
3377 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3378 | ||
3379 | int test (int i, double x); | |
3380 | struct s1 {int (*f) (int a);}; | |
3381 | struct s2 {int (*f) (double a);}; | |
3382 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3383 | int argc; | |
3384 | char **argv; | |
3385 | int | |
3386 | main () | |
3387 | { | |
3388 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3389 | ; | |
3390 | return 0; | |
3391 | } | |
3392 | _ACEOF | |
3393 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3394 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3395 | do | |
3396 | CC="$ac_save_CC $ac_arg" | |
3397 | if ac_fn_c_try_compile "$LINENO"; then : | |
3398 | ac_cv_prog_cc_c89=$ac_arg | |
3399 | fi | |
3400 | rm -f core conftest.err conftest.$ac_objext | |
3401 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3402 | done | |
3403 | rm -f conftest.$ac_ext | |
3404 | CC=$ac_save_CC | |
3405 | ||
3406 | fi | |
3407 | # AC_CACHE_VAL | |
3408 | case "x$ac_cv_prog_cc_c89" in | |
3409 | x) | |
3410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3411 | $as_echo "none needed" >&6; } ;; | |
3412 | xno) | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3414 | $as_echo "unsupported" >&6; } ;; | |
3415 | *) | |
3416 | CC="$CC $ac_cv_prog_cc_c89" | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3418 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3419 | esac | |
3420 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3421 | ||
3422 | fi | |
3423 | ||
3424 | ac_ext=c | |
3425 | ac_cpp='$CPP $CPPFLAGS' | |
3426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3429 | ||
22e05272 JM |
3430 | ac_ext=c |
3431 | ac_cpp='$CPP $CPPFLAGS' | |
3432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3436 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3437 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3438 | $as_echo_n "(cached) " >&6 | |
3439 | else | |
3440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3441 | /* end confdefs.h. */ | |
3442 | ||
3443 | int | |
3444 | main () | |
3445 | { | |
3446 | ||
3447 | ; | |
3448 | return 0; | |
3449 | } | |
3450 | _ACEOF | |
3451 | # Make sure it works both with $CC and with simple cc. | |
3452 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3453 | # compilers refuse to overwrite an existing .o file with -o, | |
3454 | # though they will create one. | |
3455 | am_cv_prog_cc_c_o=yes | |
3456 | for am_i in 1 2; do | |
3457 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3458 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3459 | ac_status=$? | |
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3461 | (exit $ac_status); } \ | |
3462 | && test -f conftest2.$ac_objext; then | |
3463 | : OK | |
3464 | else | |
3465 | am_cv_prog_cc_c_o=no | |
3466 | break | |
3467 | fi | |
3468 | done | |
3469 | rm -f core conftest* | |
3470 | unset am_i | |
3471 | fi | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3473 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3474 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3475 | # Losing compiler, so override with the script. | |
3476 | # FIXME: It is wrong to rewrite CC. | |
3477 | # But if we don't then we get into trouble of one sort or another. | |
3478 | # A longer-term fix would be to have automake use am__CC in this case, | |
3479 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3480 | CC="$am_aux_dir/compile $CC" | |
3481 | fi | |
3482 | ac_ext=c | |
3483 | ac_cpp='$CPP $CPPFLAGS' | |
3484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3487 | ||
3488 | ||
b4c522fa IB |
3489 | |
3490 | ac_ext=c | |
3491 | ac_cpp='$CPP $CPPFLAGS' | |
3492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
235d1c46 RO |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3496 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3497 | # On Suns, sometimes $CPP names a directory. | |
3498 | if test -n "$CPP" && test -d "$CPP"; then | |
3499 | CPP= | |
3500 | fi | |
3501 | if test -z "$CPP"; then | |
3502 | if ${ac_cv_prog_CPP+:} false; then : | |
b4c522fa IB |
3503 | $as_echo_n "(cached) " >&6 |
3504 | else | |
235d1c46 RO |
3505 | # Double quotes because CPP needs to be expanded |
3506 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3507 | do | |
3508 | ac_preproc_ok=false | |
3509 | for ac_c_preproc_warn_flag in '' yes | |
b4c522fa | 3510 | do |
235d1c46 RO |
3511 | # Use a header file that comes with gcc, so configuring glibc |
3512 | # with a fresh cross-compiler works. | |
3513 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3514 | # <limits.h> exists even on freestanding compilers. | |
3515 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3516 | # not just through cpp. "Syntax error" is here to catch this case. | |
3517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3518 | /* end confdefs.h. */ | |
3519 | #ifdef __STDC__ | |
3520 | # include <limits.h> | |
3521 | #else | |
3522 | # include <assert.h> | |
3523 | #endif | |
3524 | Syntax error | |
3525 | _ACEOF | |
3526 | if ac_fn_c_try_cpp "$LINENO"; then : | |
b4c522fa | 3527 | |
b4c522fa | 3528 | else |
235d1c46 RO |
3529 | # Broken: fails on valid input. |
3530 | continue | |
b4c522fa | 3531 | fi |
235d1c46 | 3532 | rm -f conftest.err conftest.i conftest.$ac_ext |
b4c522fa | 3533 | |
235d1c46 RO |
3534 | # OK, works on sane cases. Now check whether nonexistent headers |
3535 | # can be detected and how. | |
3536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3537 | /* end confdefs.h. */ | |
3538 | #include <ac_nonexistent.h> | |
3539 | _ACEOF | |
3540 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3541 | # Broken: success on invalid input. | |
3542 | continue | |
b4c522fa | 3543 | else |
235d1c46 RO |
3544 | # Passes both tests. |
3545 | ac_preproc_ok=: | |
3546 | break | |
3547 | fi | |
3548 | rm -f conftest.err conftest.i conftest.$ac_ext | |
b4c522fa | 3549 | |
235d1c46 RO |
3550 | done |
3551 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3552 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3553 | if $ac_preproc_ok; then : | |
3554 | break | |
b4c522fa | 3555 | fi |
235d1c46 RO |
3556 | |
3557 | done | |
3558 | ac_cv_prog_CPP=$CPP | |
3559 | ||
b4c522fa | 3560 | fi |
235d1c46 | 3561 | CPP=$ac_cv_prog_CPP |
b4c522fa | 3562 | else |
235d1c46 | 3563 | ac_cv_prog_CPP=$CPP |
b4c522fa | 3564 | fi |
235d1c46 RO |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3566 | $as_echo "$CPP" >&6; } | |
3567 | ac_preproc_ok=false | |
3568 | for ac_c_preproc_warn_flag in '' yes | |
3569 | do | |
3570 | # Use a header file that comes with gcc, so configuring glibc | |
3571 | # with a fresh cross-compiler works. | |
3572 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3573 | # <limits.h> exists even on freestanding compilers. | |
3574 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3575 | # not just through cpp. "Syntax error" is here to catch this case. | |
3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3577 | /* end confdefs.h. */ | |
3578 | #ifdef __STDC__ | |
3579 | # include <limits.h> | |
3580 | #else | |
3581 | # include <assert.h> | |
3582 | #endif | |
3583 | Syntax error | |
3584 | _ACEOF | |
3585 | if ac_fn_c_try_cpp "$LINENO"; then : | |
b4c522fa | 3586 | |
b4c522fa | 3587 | else |
235d1c46 RO |
3588 | # Broken: fails on valid input. |
3589 | continue | |
b4c522fa | 3590 | fi |
235d1c46 | 3591 | rm -f conftest.err conftest.i conftest.$ac_ext |
b4c522fa | 3592 | |
235d1c46 RO |
3593 | # OK, works on sane cases. Now check whether nonexistent headers |
3594 | # can be detected and how. | |
3595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3596 | /* end confdefs.h. */ | |
3597 | #include <ac_nonexistent.h> | |
3598 | _ACEOF | |
3599 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3600 | # Broken: success on invalid input. | |
3601 | continue | |
b4c522fa | 3602 | else |
235d1c46 RO |
3603 | # Passes both tests. |
3604 | ac_preproc_ok=: | |
3605 | break | |
3606 | fi | |
3607 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3608 | ||
b4c522fa | 3609 | done |
235d1c46 RO |
3610 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3611 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3612 | if $ac_preproc_ok; then : | |
b4c522fa | 3613 | |
b4c522fa | 3614 | else |
235d1c46 RO |
3615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3616 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3617 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3618 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa IB |
3619 | fi |
3620 | ||
235d1c46 RO |
3621 | ac_ext=c |
3622 | ac_cpp='$CPP $CPPFLAGS' | |
3623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4c522fa | 3626 | |
235d1c46 RO |
3627 | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3629 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3630 | if ${ac_cv_path_GREP+:} false; then : | |
b4c522fa IB |
3631 | $as_echo_n "(cached) " >&6 |
3632 | else | |
235d1c46 RO |
3633 | if test -z "$GREP"; then |
3634 | ac_path_GREP_found=false | |
3635 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3637 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
b4c522fa IB |
3638 | do |
3639 | IFS=$as_save_IFS | |
3640 | test -z "$as_dir" && as_dir=. | |
235d1c46 | 3641 | for ac_prog in grep ggrep; do |
b4c522fa | 3642 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
3643 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3644 | as_fn_executable_p "$ac_path_GREP" || continue | |
3645 | # Check for GNU ac_path_GREP and select it if it is found. | |
3646 | # Check for GNU $ac_path_GREP | |
3647 | case `"$ac_path_GREP" --version 2>&1` in | |
3648 | *GNU*) | |
3649 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3650 | *) | |
3651 | ac_count=0 | |
3652 | $as_echo_n 0123456789 >"conftest.in" | |
3653 | while : | |
3654 | do | |
3655 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3656 | mv "conftest.tmp" "conftest.in" | |
3657 | cp "conftest.in" "conftest.nl" | |
3658 | $as_echo 'GREP' >> "conftest.nl" | |
3659 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3660 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3661 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3662 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3663 | # Best one so far, save it but keep looking for a better one | |
3664 | ac_cv_path_GREP="$ac_path_GREP" | |
3665 | ac_path_GREP_max=$ac_count | |
3666 | fi | |
3667 | # 10*(2^10) chars as input seems more than enough | |
3668 | test $ac_count -gt 10 && break | |
b4c522fa | 3669 | done |
235d1c46 RO |
3670 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3671 | esac | |
b4c522fa | 3672 | |
235d1c46 RO |
3673 | $ac_path_GREP_found && break 3 |
3674 | done | |
3675 | done | |
3676 | done | |
3677 | IFS=$as_save_IFS | |
3678 | if test -z "$ac_cv_path_GREP"; then | |
3679 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
b4c522fa | 3680 | fi |
b4c522fa | 3681 | else |
235d1c46 | 3682 | ac_cv_path_GREP=$GREP |
b4c522fa IB |
3683 | fi |
3684 | ||
b4c522fa | 3685 | fi |
235d1c46 RO |
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3687 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3688 | GREP="$ac_cv_path_GREP" | |
3689 | ||
3690 | ||
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3692 | $as_echo_n "checking for egrep... " >&6; } | |
3693 | if ${ac_cv_path_EGREP+:} false; then : | |
b4c522fa IB |
3694 | $as_echo_n "(cached) " >&6 |
3695 | else | |
235d1c46 RO |
3696 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3697 | then ac_cv_path_EGREP="$GREP -E" | |
3698 | else | |
3699 | if test -z "$EGREP"; then | |
3700 | ac_path_EGREP_found=false | |
3701 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3703 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3704 | do | |
b4c522fa IB |
3705 | IFS=$as_save_IFS |
3706 | test -z "$as_dir" && as_dir=. | |
235d1c46 | 3707 | for ac_prog in egrep; do |
b4c522fa | 3708 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
3709 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3710 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3711 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3712 | # Check for GNU $ac_path_EGREP | |
3713 | case `"$ac_path_EGREP" --version 2>&1` in | |
3714 | *GNU*) | |
3715 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3716 | *) | |
3717 | ac_count=0 | |
3718 | $as_echo_n 0123456789 >"conftest.in" | |
3719 | while : | |
3720 | do | |
3721 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3722 | mv "conftest.tmp" "conftest.in" | |
3723 | cp "conftest.in" "conftest.nl" | |
3724 | $as_echo 'EGREP' >> "conftest.nl" | |
3725 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3726 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3727 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3728 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3729 | # Best one so far, save it but keep looking for a better one | |
3730 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3731 | ac_path_EGREP_max=$ac_count | |
3732 | fi | |
3733 | # 10*(2^10) chars as input seems more than enough | |
3734 | test $ac_count -gt 10 && break | |
b4c522fa | 3735 | done |
235d1c46 RO |
3736 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3737 | esac | |
b4c522fa | 3738 | |
235d1c46 RO |
3739 | $ac_path_EGREP_found && break 3 |
3740 | done | |
b4c522fa | 3741 | done |
b4c522fa IB |
3742 | done |
3743 | IFS=$as_save_IFS | |
235d1c46 RO |
3744 | if test -z "$ac_cv_path_EGREP"; then |
3745 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
b4c522fa | 3746 | fi |
235d1c46 RO |
3747 | else |
3748 | ac_cv_path_EGREP=$EGREP | |
b4c522fa IB |
3749 | fi |
3750 | ||
235d1c46 | 3751 | fi |
b4c522fa | 3752 | fi |
235d1c46 RO |
3753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3754 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3755 | EGREP="$ac_cv_path_EGREP" | |
b4c522fa IB |
3756 | |
3757 | ||
235d1c46 RO |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3759 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3760 | if ${ac_cv_header_stdc+:} false; then : | |
b4c522fa IB |
3761 | $as_echo_n "(cached) " >&6 |
3762 | else | |
3763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3764 | /* end confdefs.h. */ | |
235d1c46 RO |
3765 | #include <stdlib.h> |
3766 | #include <stdarg.h> | |
3767 | #include <string.h> | |
3768 | #include <float.h> | |
b4c522fa IB |
3769 | |
3770 | int | |
3771 | main () | |
3772 | { | |
b4c522fa IB |
3773 | |
3774 | ; | |
3775 | return 0; | |
3776 | } | |
3777 | _ACEOF | |
3778 | if ac_fn_c_try_compile "$LINENO"; then : | |
235d1c46 | 3779 | ac_cv_header_stdc=yes |
b4c522fa | 3780 | else |
235d1c46 | 3781 | ac_cv_header_stdc=no |
b4c522fa IB |
3782 | fi |
3783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4c522fa | 3784 | |
235d1c46 RO |
3785 | if test $ac_cv_header_stdc = yes; then |
3786 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3788 | /* end confdefs.h. */ | |
3789 | #include <string.h> | |
3790 | ||
3791 | _ACEOF | |
3792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3793 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3794 | ||
b4c522fa | 3795 | else |
235d1c46 | 3796 | ac_cv_header_stdc=no |
b4c522fa | 3797 | fi |
235d1c46 | 3798 | rm -f conftest* |
b4c522fa | 3799 | |
235d1c46 RO |
3800 | fi |
3801 | ||
3802 | if test $ac_cv_header_stdc = yes; then | |
3803 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3805 | /* end confdefs.h. */ | |
3806 | #include <stdlib.h> | |
b4c522fa | 3807 | |
b4c522fa | 3808 | _ACEOF |
235d1c46 RO |
3809 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3810 | $EGREP "free" >/dev/null 2>&1; then : | |
3811 | ||
b4c522fa | 3812 | else |
235d1c46 RO |
3813 | ac_cv_header_stdc=no |
3814 | fi | |
3815 | rm -f conftest* | |
3816 | ||
3817 | fi | |
3818 | ||
3819 | if test $ac_cv_header_stdc = yes; then | |
3820 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3821 | if test "$cross_compiling" = yes; then : | |
3822 | : | |
3823 | else | |
3824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b4c522fa | 3825 | /* end confdefs.h. */ |
235d1c46 RO |
3826 | #include <ctype.h> |
3827 | #include <stdlib.h> | |
3828 | #if ((' ' & 0x0FF) == 0x020) | |
3829 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3830 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3831 | #else | |
3832 | # define ISLOWER(c) \ | |
3833 | (('a' <= (c) && (c) <= 'i') \ | |
3834 | || ('j' <= (c) && (c) <= 'r') \ | |
3835 | || ('s' <= (c) && (c) <= 'z')) | |
3836 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3837 | #endif | |
b4c522fa | 3838 | |
235d1c46 | 3839 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b4c522fa IB |
3840 | int |
3841 | main () | |
3842 | { | |
235d1c46 RO |
3843 | int i; |
3844 | for (i = 0; i < 256; i++) | |
3845 | if (XOR (islower (i), ISLOWER (i)) | |
3846 | || toupper (i) != TOUPPER (i)) | |
3847 | return 2; | |
b4c522fa IB |
3848 | return 0; |
3849 | } | |
3850 | _ACEOF | |
235d1c46 | 3851 | if ac_fn_c_try_run "$LINENO"; then : |
b4c522fa IB |
3852 | |
3853 | else | |
235d1c46 | 3854 | ac_cv_header_stdc=no |
b4c522fa | 3855 | fi |
235d1c46 RO |
3856 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3857 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b4c522fa | 3858 | fi |
235d1c46 | 3859 | |
b4c522fa | 3860 | fi |
b4c522fa | 3861 | fi |
235d1c46 RO |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3863 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3864 | if test $ac_cv_header_stdc = yes; then | |
b4c522fa | 3865 | |
235d1c46 | 3866 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b4c522fa | 3867 | |
235d1c46 | 3868 | fi |
b4c522fa | 3869 | |
235d1c46 RO |
3870 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3871 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3872 | inttypes.h stdint.h unistd.h | |
3873 | do : | |
3874 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3875 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3876 | " | |
3877 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3878 | cat >>confdefs.h <<_ACEOF | |
3879 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b4c522fa | 3880 | _ACEOF |
235d1c46 | 3881 | |
b4c522fa | 3882 | fi |
235d1c46 | 3883 | |
b4c522fa | 3884 | done |
b4c522fa | 3885 | |
b4c522fa | 3886 | |
235d1c46 RO |
3887 | |
3888 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3889 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3890 | MINIX=yes | |
3891 | else | |
3892 | MINIX= | |
b4c522fa IB |
3893 | fi |
3894 | ||
b4c522fa | 3895 | |
235d1c46 RO |
3896 | if test "$MINIX" = yes; then |
3897 | ||
3898 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3899 | ||
3900 | ||
3901 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3902 | ||
3903 | ||
3904 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3905 | ||
3906 | fi | |
3907 | ||
3908 | ||
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3910 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3911 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
22e05272 JM |
3912 | $as_echo_n "(cached) " >&6 |
3913 | else | |
3914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3915 | /* end confdefs.h. */ | |
3916 | ||
235d1c46 RO |
3917 | # define __EXTENSIONS__ 1 |
3918 | $ac_includes_default | |
22e05272 JM |
3919 | int |
3920 | main () | |
3921 | { | |
3922 | ||
3923 | ; | |
3924 | return 0; | |
3925 | } | |
3926 | _ACEOF | |
235d1c46 RO |
3927 | if ac_fn_c_try_compile "$LINENO"; then : |
3928 | ac_cv_safe_to_define___extensions__=yes | |
3929 | else | |
3930 | ac_cv_safe_to_define___extensions__=no | |
22e05272 | 3931 | fi |
235d1c46 | 3932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22e05272 | 3933 | fi |
235d1c46 RO |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3935 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3936 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3937 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
22e05272 | 3938 | |
235d1c46 | 3939 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
22e05272 | 3940 | |
235d1c46 RO |
3941 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3942 | ||
3943 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3944 | ||
3945 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3946 | ||
3947 | ||
3948 | ||
3949 | target_alias=${target_alias-$target} | |
3950 | ||
3951 | ||
3952 | # 1.11.1: Require that version of automake. | |
3953 | # foreign: Don't require README, INSTALL, NEWS, etc. | |
3954 | # no-define: Don't define PACKAGE and VERSION. | |
3955 | # no-dependencies: Don't generate automatic dependencies. | |
3956 | # (because it breaks when using bootstrap-lean, since some of the | |
3957 | # headers are gone at "make install" time). | |
3958 | # subdir-objects: Build objects in sub-directories. | |
3959 | # -Wall: Issue all automake warnings. | |
3960 | # -Wno-portability: Don't warn about constructs supported by GNU make. | |
3961 | # (because GCC requires GNU make anyhow). | |
3962 | # -Wno-override: Overrides used in testsuite. | |
3963 | am__api_version='1.15' | |
3964 | ||
3965 | # Find a good install program. We prefer a C program (faster), | |
3966 | # so one script is as good as another. But avoid the broken or | |
3967 | # incompatible versions: | |
3968 | # SysV /etc/install, /usr/sbin/install | |
3969 | # SunOS /usr/etc/install | |
3970 | # IRIX /sbin/install | |
3971 | # AIX /bin/install | |
3972 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3973 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3974 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3975 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3976 | # OS/2's system install, which has a completely different semantic | |
3977 | # ./install, which can be erroneously created by make from ./install.sh. | |
3978 | # Reject install programs that cannot install multiple files. | |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3980 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3981 | if test -z "$INSTALL"; then | |
3982 | if ${ac_cv_path_install+:} false; then : | |
b4c522fa IB |
3983 | $as_echo_n "(cached) " >&6 |
3984 | else | |
235d1c46 | 3985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b4c522fa IB |
3986 | for as_dir in $PATH |
3987 | do | |
3988 | IFS=$as_save_IFS | |
3989 | test -z "$as_dir" && as_dir=. | |
235d1c46 RO |
3990 | # Account for people who put trailing slashes in PATH elements. |
3991 | case $as_dir/ in #(( | |
3992 | ./ | .// | /[cC]/* | \ | |
3993 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3994 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3995 | /usr/ucb/* ) ;; | |
3996 | *) | |
3997 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3998 | # Don't use installbsd from OSF since it installs stuff as root | |
3999 | # by default. | |
4000 | for ac_prog in ginstall scoinst install; do | |
4001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4002 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4003 | if test $ac_prog = install && | |
4004 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4005 | # AIX install. It has an incompatible calling convention. | |
4006 | : | |
4007 | elif test $ac_prog = install && | |
4008 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4009 | # program-specific install script used by HP pwplus--don't use. | |
4010 | : | |
4011 | else | |
4012 | rm -rf conftest.one conftest.two conftest.dir | |
4013 | echo one > conftest.one | |
4014 | echo two > conftest.two | |
4015 | mkdir conftest.dir | |
4016 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4017 | test -s conftest.one && test -s conftest.two && | |
4018 | test -s conftest.dir/conftest.one && | |
4019 | test -s conftest.dir/conftest.two | |
4020 | then | |
4021 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4022 | break 3 | |
4023 | fi | |
4024 | fi | |
4025 | fi | |
4026 | done | |
4027 | done | |
4028 | ;; | |
4029 | esac | |
4030 | ||
b4c522fa IB |
4031 | done |
4032 | IFS=$as_save_IFS | |
4033 | ||
235d1c46 RO |
4034 | rm -rf conftest.one conftest.two conftest.dir |
4035 | ||
b4c522fa | 4036 | fi |
235d1c46 RO |
4037 | if test "${ac_cv_path_install+set}" = set; then |
4038 | INSTALL=$ac_cv_path_install | |
4039 | else | |
4040 | # As a last resort, use the slow shell script. Don't cache a | |
4041 | # value for INSTALL within a source directory, because that will | |
4042 | # break other packages using the cache if that directory is | |
4043 | # removed, or if the value is a relative name. | |
4044 | INSTALL=$ac_install_sh | |
4045 | fi | |
b4c522fa | 4046 | fi |
235d1c46 RO |
4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4048 | $as_echo "$INSTALL" >&6; } | |
4049 | ||
4050 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4051 | # It thinks the first close brace ends the variable substitution. | |
4052 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4053 | ||
4054 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4055 | ||
4056 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4057 | ||
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4059 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4060 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4061 | # name. Accept space and tab only in the latter. | |
4062 | am_lf=' | |
4063 | ' | |
4064 | case `pwd` in | |
4065 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4066 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4067 | esac | |
4068 | case $srcdir in | |
4069 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4070 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4071 | esac | |
4072 | ||
4073 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4074 | # arguments. Must try -L first in case configure is actually a | |
4075 | # symlink; some systems play weird games with the mod time of symlinks | |
4076 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4077 | # directory). | |
4078 | if ( | |
4079 | am_has_slept=no | |
4080 | for am_try in 1 2; do | |
4081 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4082 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4083 | if test "$*" = "X"; then | |
4084 | # -L didn't work. | |
4085 | set X `ls -t "$srcdir/configure" conftest.file` | |
4086 | fi | |
4087 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4088 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4089 | ||
4090 | # If neither matched, then we have a broken ls. This can happen | |
4091 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4092 | # broken ls alias from the environment. This has actually | |
4093 | # happened. Such a system could not be considered "sane". | |
4094 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4095 | alias in your environment" "$LINENO" 5 | |
4096 | fi | |
4097 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4098 | break | |
4099 | fi | |
4100 | # Just in case. | |
4101 | sleep 1 | |
4102 | am_has_slept=yes | |
4103 | done | |
4104 | test "$2" = conftest.file | |
4105 | ) | |
4106 | then | |
4107 | # Ok. | |
4108 | : | |
b4c522fa | 4109 | else |
235d1c46 RO |
4110 | as_fn_error $? "newly created file is older than distributed files! |
4111 | Check your system clock" "$LINENO" 5 | |
4112 | fi | |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4114 | $as_echo "yes" >&6; } | |
4115 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4116 | # generated files are strictly newer. | |
4117 | am_sleep_pid= | |
4118 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4119 | ( sleep 1 ) & | |
4120 | am_sleep_pid=$! | |
b4c522fa IB |
4121 | fi |
4122 | ||
235d1c46 RO |
4123 | rm -f conftest.file |
4124 | ||
4125 | test "$program_prefix" != NONE && | |
4126 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4127 | # Use a double $ so make ignores it. | |
4128 | test "$program_suffix" != NONE && | |
4129 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4130 | # Double any \ or $. | |
4131 | # By default was `s,x,x', remove it if useless. | |
4132 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4133 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
b4c522fa | 4134 | |
235d1c46 RO |
4135 | if test x"${MISSING+set}" != xset; then |
4136 | case $am_aux_dir in | |
4137 | *\ * | *\ *) | |
4138 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4139 | *) | |
4140 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4141 | esac | |
b4c522fa | 4142 | fi |
235d1c46 RO |
4143 | # Use eval to expand $SHELL |
4144 | if eval "$MISSING --is-lightweight"; then | |
4145 | am_missing_run="$MISSING " | |
4146 | else | |
4147 | am_missing_run= | |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4149 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4150 | fi | |
4151 | ||
4152 | if test x"${install_sh+set}" != xset; then | |
4153 | case $am_aux_dir in | |
4154 | *\ * | *\ *) | |
4155 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4156 | *) | |
4157 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4158 | esac | |
4159 | fi | |
4160 | ||
4161 | # Installed binaries are usually stripped using 'strip' when the user | |
4162 | # run "make install-strip". However 'strip' might not be the right | |
4163 | # tool to use in cross-compilation environments, therefore Automake | |
4164 | # will honor the 'STRIP' environment variable to overrule this program. | |
4165 | if test "$cross_compiling" != no; then | |
4166 | if test -n "$ac_tool_prefix"; then | |
4167 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4168 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b4c522fa IB |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4170 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 4171 | if ${ac_cv_prog_STRIP+:} false; then : |
b4c522fa IB |
4172 | $as_echo_n "(cached) " >&6 |
4173 | else | |
235d1c46 RO |
4174 | if test -n "$STRIP"; then |
4175 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
b4c522fa IB |
4176 | else |
4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4178 | for as_dir in $PATH | |
4179 | do | |
4180 | IFS=$as_save_IFS | |
4181 | test -z "$as_dir" && as_dir=. | |
4182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 4184 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b4c522fa IB |
4185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4186 | break 2 | |
4187 | fi | |
4188 | done | |
4189 | done | |
4190 | IFS=$as_save_IFS | |
4191 | ||
4192 | fi | |
4193 | fi | |
235d1c46 RO |
4194 | STRIP=$ac_cv_prog_STRIP |
4195 | if test -n "$STRIP"; then | |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4197 | $as_echo "$STRIP" >&6; } | |
b4c522fa IB |
4198 | else |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4200 | $as_echo "no" >&6; } | |
4201 | fi | |
4202 | ||
b4c522fa | 4203 | |
235d1c46 RO |
4204 | fi |
4205 | if test -z "$ac_cv_prog_STRIP"; then | |
4206 | ac_ct_STRIP=$STRIP | |
4207 | # Extract the first word of "strip", so it can be a program name with args. | |
4208 | set dummy strip; ac_word=$2 | |
b4c522fa IB |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4210 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 4211 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
b4c522fa IB |
4212 | $as_echo_n "(cached) " >&6 |
4213 | else | |
235d1c46 RO |
4214 | if test -n "$ac_ct_STRIP"; then |
4215 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
b4c522fa IB |
4216 | else |
4217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4218 | for as_dir in $PATH | |
4219 | do | |
4220 | IFS=$as_save_IFS | |
4221 | test -z "$as_dir" && as_dir=. | |
4222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 4224 | ac_cv_prog_ac_ct_STRIP="strip" |
b4c522fa IB |
4225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4226 | break 2 | |
4227 | fi | |
4228 | done | |
4229 | done | |
4230 | IFS=$as_save_IFS | |
4231 | ||
4232 | fi | |
4233 | fi | |
235d1c46 RO |
4234 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4235 | if test -n "$ac_ct_STRIP"; then | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4237 | $as_echo "$ac_ct_STRIP" >&6; } | |
b4c522fa IB |
4238 | else |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4240 | $as_echo "no" >&6; } | |
4241 | fi | |
4242 | ||
235d1c46 RO |
4243 | if test "x$ac_ct_STRIP" = x; then |
4244 | STRIP=":" | |
4245 | else | |
4246 | case $cross_compiling:$ac_tool_warned in | |
4247 | yes:) | |
4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4250 | ac_tool_warned=yes ;; | |
4251 | esac | |
4252 | STRIP=$ac_ct_STRIP | |
b4c522fa | 4253 | fi |
b4c522fa | 4254 | else |
235d1c46 | 4255 | STRIP="$ac_cv_prog_STRIP" |
b4c522fa IB |
4256 | fi |
4257 | ||
b4c522fa | 4258 | fi |
235d1c46 | 4259 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b4c522fa | 4260 | |
235d1c46 RO |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4262 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4263 | if test -z "$MKDIR_P"; then | |
4264 | if ${ac_cv_path_mkdir+:} false; then : | |
b4c522fa IB |
4265 | $as_echo_n "(cached) " >&6 |
4266 | else | |
235d1c46 RO |
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4268 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
b4c522fa IB |
4269 | do |
4270 | IFS=$as_save_IFS | |
4271 | test -z "$as_dir" && as_dir=. | |
235d1c46 RO |
4272 | for ac_prog in mkdir gmkdir; do |
4273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4274 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4275 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4276 | 'mkdir (GNU coreutils) '* | \ | |
4277 | 'mkdir (coreutils) '* | \ | |
4278 | 'mkdir (fileutils) '4.1*) | |
4279 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4280 | break 3;; | |
4281 | esac | |
4282 | done | |
4283 | done | |
b4c522fa IB |
4284 | done |
4285 | IFS=$as_save_IFS | |
4286 | ||
4287 | fi | |
b4c522fa | 4288 | |
235d1c46 RO |
4289 | test -d ./--version && rmdir ./--version |
4290 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4291 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4292 | else | |
4293 | # As a last resort, use the slow shell script. Don't cache a | |
4294 | # value for MKDIR_P within a source directory, because that will | |
4295 | # break other packages using the cache if that directory is | |
4296 | # removed, or if the value is a relative name. | |
4297 | MKDIR_P="$ac_install_sh -d" | |
4298 | fi | |
b4c522fa | 4299 | fi |
235d1c46 RO |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4301 | $as_echo "$MKDIR_P" >&6; } | |
4302 | ||
4303 | for ac_prog in gawk mawk nawk awk | |
4304 | do | |
4305 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4306 | set dummy $ac_prog; ac_word=$2 | |
b4c522fa IB |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4308 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 4309 | if ${ac_cv_prog_AWK+:} false; then : |
b4c522fa IB |
4310 | $as_echo_n "(cached) " >&6 |
4311 | else | |
235d1c46 RO |
4312 | if test -n "$AWK"; then |
4313 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b4c522fa IB |
4314 | else |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4316 | for as_dir in $PATH | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 4322 | ac_cv_prog_AWK="$ac_prog" |
b4c522fa IB |
4323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4324 | break 2 | |
4325 | fi | |
4326 | done | |
4327 | done | |
4328 | IFS=$as_save_IFS | |
4329 | ||
4330 | fi | |
4331 | fi | |
235d1c46 RO |
4332 | AWK=$ac_cv_prog_AWK |
4333 | if test -n "$AWK"; then | |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4335 | $as_echo "$AWK" >&6; } | |
b4c522fa IB |
4336 | else |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4338 | $as_echo "no" >&6; } | |
4339 | fi | |
4340 | ||
b4c522fa | 4341 | |
235d1c46 RO |
4342 | test -n "$AWK" && break |
4343 | done | |
b4c522fa IB |
4344 | |
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4346 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4347 | set x ${MAKE-make} | |
4348 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 4349 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
b4c522fa IB |
4350 | $as_echo_n "(cached) " >&6 |
4351 | else | |
4352 | cat >conftest.make <<\_ACEOF | |
4353 | SHELL = /bin/sh | |
4354 | all: | |
4355 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4356 | _ACEOF | |
22e05272 | 4357 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
b4c522fa IB |
4358 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4359 | *@@@%%%=?*=@@@%%%*) | |
4360 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4361 | *) | |
4362 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4363 | esac | |
4364 | rm -f conftest.make | |
4365 | fi | |
4366 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4368 | $as_echo "yes" >&6; } | |
4369 | SET_MAKE= | |
4370 | else | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4372 | $as_echo "no" >&6; } | |
4373 | SET_MAKE="MAKE=${MAKE-make}" | |
4374 | fi | |
4375 | ||
235d1c46 RO |
4376 | rm -rf .tst 2>/dev/null |
4377 | mkdir .tst 2>/dev/null | |
4378 | if test -d .tst; then | |
4379 | am__leading_dot=. | |
4380 | else | |
4381 | am__leading_dot=_ | |
4382 | fi | |
4383 | rmdir .tst 2>/dev/null | |
b4c522fa | 4384 | |
235d1c46 RO |
4385 | # Check whether --enable-silent-rules was given. |
4386 | if test "${enable_silent_rules+set}" = set; then : | |
4387 | enableval=$enable_silent_rules; | |
4388 | fi | |
b4c522fa | 4389 | |
235d1c46 RO |
4390 | case $enable_silent_rules in # ((( |
4391 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4392 | no) AM_DEFAULT_VERBOSITY=1;; | |
4393 | *) AM_DEFAULT_VERBOSITY=1;; | |
b4c522fa | 4394 | esac |
235d1c46 RO |
4395 | am_make=${MAKE-make} |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4397 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4398 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4399 | $as_echo_n "(cached) " >&6 | |
4400 | else | |
4401 | if $as_echo 'TRUE=$(BAR$(V)) | |
4402 | BAR0=false | |
4403 | BAR1=true | |
4404 | V=1 | |
4405 | am__doit: | |
4406 | @$(TRUE) | |
4407 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4408 | am_cv_make_support_nested_variables=yes | |
4409 | else | |
4410 | am_cv_make_support_nested_variables=no | |
4411 | fi | |
4412 | fi | |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4414 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4415 | if test $am_cv_make_support_nested_variables = yes; then | |
4416 | AM_V='$(V)' | |
4417 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4418 | else | |
4419 | AM_V=$AM_DEFAULT_VERBOSITY | |
4420 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4421 | fi | |
4422 | AM_BACKSLASH='\' | |
b4c522fa | 4423 | |
235d1c46 RO |
4424 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4425 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4426 | # is not polluted with repeated "-I." | |
4427 | am__isrc=' -I$(srcdir)' | |
4428 | # test to see if srcdir already configured | |
4429 | if test -f $srcdir/config.status; then | |
4430 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4431 | fi | |
4432 | fi | |
b4c522fa | 4433 | |
235d1c46 RO |
4434 | # test whether we have cygpath |
4435 | if test -z "$CYGPATH_W"; then | |
4436 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4437 | CYGPATH_W='cygpath -w' | |
4438 | else | |
4439 | CYGPATH_W=echo | |
4440 | fi | |
4441 | fi | |
b4c522fa | 4442 | |
b4c522fa | 4443 | |
235d1c46 RO |
4444 | # Define the identity of the package. |
4445 | PACKAGE='libphobos' | |
4446 | VERSION='version-unused' | |
b4c522fa IB |
4447 | |
4448 | ||
235d1c46 | 4449 | # Some tools Automake needs. |
b4c522fa | 4450 | |
235d1c46 | 4451 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
b4c522fa IB |
4452 | |
4453 | ||
235d1c46 | 4454 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
b4c522fa IB |
4455 | |
4456 | ||
235d1c46 | 4457 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
b4c522fa IB |
4458 | |
4459 | ||
235d1c46 | 4460 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
b4c522fa IB |
4461 | |
4462 | ||
235d1c46 | 4463 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
b4c522fa | 4464 | |
235d1c46 RO |
4465 | # For better backward compatibility. To be removed once Automake 1.9.x |
4466 | # dies out for good. For more background, see: | |
4467 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4468 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4469 | mkdir_p='$(MKDIR_P)' | |
b4c522fa | 4470 | |
235d1c46 RO |
4471 | # We need awk for the "check" target (and possibly the TAP driver). The |
4472 | # system "awk" is bad on some platforms. | |
4473 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4474 | # in the wild :-( We should find a proper way to deprecate it ... | |
4475 | AMTAR='$${TAR-tar}' | |
b4c522fa | 4476 | |
b4c522fa | 4477 | |
235d1c46 RO |
4478 | # We'll loop over all known methods to create a tar archive until one works. |
4479 | _am_tools='gnutar pax cpio none' | |
b4c522fa | 4480 | |
235d1c46 | 4481 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
b4c522fa | 4482 | |
b4c522fa | 4483 | |
b4c522fa | 4484 | |
b4c522fa | 4485 | |
b4c522fa | 4486 | |
b4c522fa | 4487 | |
235d1c46 RO |
4488 | # POSIX will say in a future version that running "rm -f" with no argument |
4489 | # is OK; and we want to be able to make that assumption in our Makefile | |
4490 | # recipes. So use an aggressive probe to check that the usage we want is | |
4491 | # actually supported "in the wild" to an acceptable degree. | |
4492 | # See automake bug#10828. | |
4493 | # To make any issue more visible, cause the running configure to be aborted | |
4494 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4495 | # user can still override this though. | |
4496 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4497 | cat >&2 <<'END' | |
4498 | Oops! | |
4499 | ||
4500 | Your 'rm' program seems unable to run without file operands specified | |
4501 | on the command line, even when the '-f' option is present. This is contrary | |
4502 | to the behaviour of most rm programs out there, and not conforming with | |
4503 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
b4c522fa | 4504 | |
235d1c46 RO |
4505 | Please tell bug-automake@gnu.org about your system, including the value |
4506 | of your $PATH and any error possibly output before this message. This | |
4507 | can help us improve future automake versions. | |
b4c522fa | 4508 | |
235d1c46 RO |
4509 | END |
4510 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4511 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4512 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4513 | echo >&2 | |
4514 | else | |
4515 | cat >&2 <<'END' | |
4516 | Aborting the configuration process, to ensure you take notice of the issue. | |
b4c522fa | 4517 | |
235d1c46 RO |
4518 | You can download and install GNU coreutils to get an 'rm' implementation |
4519 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
b4c522fa | 4520 | |
235d1c46 RO |
4521 | If you want to complete the configuration process using your problematic |
4522 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4523 | to "yes", and re-run configure. | |
b4c522fa | 4524 | |
235d1c46 RO |
4525 | END |
4526 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4527 | fi | |
4528 | fi | |
b4c522fa IB |
4529 | |
4530 | ||
4531 | ||
4532 | ||
235d1c46 | 4533 | # By default we simply use the C compiler to build assembly code. |
b4c522fa | 4534 | |
235d1c46 RO |
4535 | test "${CCAS+set}" = set || CCAS=$CC |
4536 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
b4c522fa IB |
4537 | |
4538 | ||
4539 | ||
235d1c46 RO |
4540 | ac_ext=c |
4541 | ac_cpp='$CPP $CPPFLAGS' | |
4542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4545 | if test -n "$ac_tool_prefix"; then | |
4546 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4547 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4549 | $as_echo_n "checking for $ac_word... " >&6; } | |
4550 | if ${ac_cv_prog_CC+:} false; then : | |
b4c522fa IB |
4551 | $as_echo_n "(cached) " >&6 |
4552 | else | |
235d1c46 RO |
4553 | if test -n "$CC"; then |
4554 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4555 | else | |
4556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b4c522fa IB |
4557 | for as_dir in $PATH |
4558 | do | |
4559 | IFS=$as_save_IFS | |
4560 | test -z "$as_dir" && as_dir=. | |
b4c522fa | 4561 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
4562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4563 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4565 | break 2 | |
4566 | fi | |
4567 | done | |
b4c522fa IB |
4568 | done |
4569 | IFS=$as_save_IFS | |
b4c522fa IB |
4570 | |
4571 | fi | |
235d1c46 RO |
4572 | fi |
4573 | CC=$ac_cv_prog_CC | |
4574 | if test -n "$CC"; then | |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4576 | $as_echo "$CC" >&6; } | |
4577 | else | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4579 | $as_echo "no" >&6; } | |
4580 | fi | |
b4c522fa IB |
4581 | |
4582 | ||
235d1c46 RO |
4583 | fi |
4584 | if test -z "$ac_cv_prog_CC"; then | |
4585 | ac_ct_CC=$CC | |
4586 | # Extract the first word of "gcc", so it can be a program name with args. | |
4587 | set dummy gcc; ac_word=$2 | |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4589 | $as_echo_n "checking for $ac_word... " >&6; } | |
4590 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
b4c522fa IB |
4591 | $as_echo_n "(cached) " >&6 |
4592 | else | |
235d1c46 RO |
4593 | if test -n "$ac_ct_CC"; then |
4594 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4595 | else | |
4596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4597 | for as_dir in $PATH | |
b4c522fa IB |
4598 | do |
4599 | IFS=$as_save_IFS | |
4600 | test -z "$as_dir" && as_dir=. | |
b4c522fa | 4601 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
4602 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4603 | ac_cv_prog_ac_ct_CC="gcc" | |
4604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4605 | break 2 | |
4606 | fi | |
4607 | done | |
b4c522fa IB |
4608 | done |
4609 | IFS=$as_save_IFS | |
235d1c46 RO |
4610 | |
4611 | fi | |
4612 | fi | |
4613 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4614 | if test -n "$ac_ct_CC"; then | |
4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4616 | $as_echo "$ac_ct_CC" >&6; } | |
b4c522fa | 4617 | else |
235d1c46 RO |
4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4619 | $as_echo "no" >&6; } | |
b4c522fa IB |
4620 | fi |
4621 | ||
235d1c46 RO |
4622 | if test "x$ac_ct_CC" = x; then |
4623 | CC="" | |
4624 | else | |
4625 | case $cross_compiling:$ac_tool_warned in | |
4626 | yes:) | |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4629 | ac_tool_warned=yes ;; | |
4630 | esac | |
4631 | CC=$ac_ct_CC | |
4632 | fi | |
4633 | else | |
4634 | CC="$ac_cv_prog_CC" | |
b4c522fa | 4635 | fi |
b4c522fa | 4636 | |
235d1c46 RO |
4637 | if test -z "$CC"; then |
4638 | if test -n "$ac_tool_prefix"; then | |
4639 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4640 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4642 | $as_echo_n "checking for $ac_word... " >&6; } | |
4643 | if ${ac_cv_prog_CC+:} false; then : | |
b4c522fa IB |
4644 | $as_echo_n "(cached) " >&6 |
4645 | else | |
235d1c46 RO |
4646 | if test -n "$CC"; then |
4647 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4648 | else | |
4649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4650 | for as_dir in $PATH | |
b4c522fa IB |
4651 | do |
4652 | IFS=$as_save_IFS | |
4653 | test -z "$as_dir" && as_dir=. | |
b4c522fa | 4654 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
4655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4656 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4658 | break 2 | |
4659 | fi | |
4660 | done | |
b4c522fa IB |
4661 | done |
4662 | IFS=$as_save_IFS | |
b4c522fa | 4663 | |
b4c522fa | 4664 | fi |
235d1c46 RO |
4665 | fi |
4666 | CC=$ac_cv_prog_CC | |
4667 | if test -n "$CC"; then | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4669 | $as_echo "$CC" >&6; } | |
4670 | else | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4672 | $as_echo "no" >&6; } | |
4673 | fi | |
b4c522fa IB |
4674 | |
4675 | ||
235d1c46 RO |
4676 | fi |
4677 | fi | |
4678 | if test -z "$CC"; then | |
4679 | # Extract the first word of "cc", so it can be a program name with args. | |
4680 | set dummy cc; ac_word=$2 | |
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4682 | $as_echo_n "checking for $ac_word... " >&6; } | |
4683 | if ${ac_cv_prog_CC+:} false; then : | |
b4c522fa IB |
4684 | $as_echo_n "(cached) " >&6 |
4685 | else | |
235d1c46 RO |
4686 | if test -n "$CC"; then |
4687 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4688 | else | |
4689 | ac_prog_rejected=no | |
4690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4691 | for as_dir in $PATH | |
b4c522fa IB |
4692 | do |
4693 | IFS=$as_save_IFS | |
4694 | test -z "$as_dir" && as_dir=. | |
b4c522fa | 4695 | for ac_exec_ext in '' $ac_executable_extensions; do |
235d1c46 RO |
4696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4697 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4698 | ac_prog_rejected=yes | |
4699 | continue | |
4700 | fi | |
4701 | ac_cv_prog_CC="cc" | |
4702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4703 | break 2 | |
4704 | fi | |
4705 | done | |
b4c522fa IB |
4706 | done |
4707 | IFS=$as_save_IFS | |
b4c522fa | 4708 | |
235d1c46 RO |
4709 | if test $ac_prog_rejected = yes; then |
4710 | # We found a bogon in the path, so make sure we never use it. | |
4711 | set dummy $ac_cv_prog_CC | |
4712 | shift | |
4713 | if test $# != 0; then | |
4714 | # We chose a different compiler from the bogus one. | |
4715 | # However, it has the same basename, so the bogon will be chosen | |
4716 | # first if we set CC to just the basename; use the full file name. | |
4717 | shift | |
4718 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4719 | fi | |
b4c522fa | 4720 | fi |
b4c522fa IB |
4721 | fi |
4722 | fi | |
235d1c46 RO |
4723 | CC=$ac_cv_prog_CC |
4724 | if test -n "$CC"; then | |
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4726 | $as_echo "$CC" >&6; } | |
b4c522fa IB |
4727 | else |
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4729 | $as_echo "no" >&6; } | |
4730 | fi | |
b4c522fa IB |
4731 | |
4732 | ||
b4c522fa | 4733 | fi |
235d1c46 RO |
4734 | if test -z "$CC"; then |
4735 | if test -n "$ac_tool_prefix"; then | |
4736 | for ac_prog in cl.exe | |
b4c522fa IB |
4737 | do |
4738 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4739 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4741 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 4742 | if ${ac_cv_prog_CC+:} false; then : |
b4c522fa IB |
4743 | $as_echo_n "(cached) " >&6 |
4744 | else | |
235d1c46 RO |
4745 | if test -n "$CC"; then |
4746 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b4c522fa IB |
4747 | else |
4748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4749 | for as_dir in $PATH | |
4750 | do | |
4751 | IFS=$as_save_IFS | |
4752 | test -z "$as_dir" && as_dir=. | |
4753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4754 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 4755 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b4c522fa IB |
4756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4757 | break 2 | |
4758 | fi | |
4759 | done | |
4760 | done | |
4761 | IFS=$as_save_IFS | |
4762 | ||
4763 | fi | |
4764 | fi | |
235d1c46 RO |
4765 | CC=$ac_cv_prog_CC |
4766 | if test -n "$CC"; then | |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4768 | $as_echo "$CC" >&6; } | |
b4c522fa IB |
4769 | else |
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4771 | $as_echo "no" >&6; } | |
4772 | fi | |
4773 | ||
4774 | ||
235d1c46 | 4775 | test -n "$CC" && break |
b4c522fa IB |
4776 | done |
4777 | fi | |
235d1c46 RO |
4778 | if test -z "$CC"; then |
4779 | ac_ct_CC=$CC | |
4780 | for ac_prog in cl.exe | |
b4c522fa IB |
4781 | do |
4782 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4783 | set dummy $ac_prog; ac_word=$2 | |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4785 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 4786 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
b4c522fa IB |
4787 | $as_echo_n "(cached) " >&6 |
4788 | else | |
235d1c46 RO |
4789 | if test -n "$ac_ct_CC"; then |
4790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b4c522fa IB |
4791 | else |
4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4793 | for as_dir in $PATH | |
4794 | do | |
4795 | IFS=$as_save_IFS | |
4796 | test -z "$as_dir" && as_dir=. | |
4797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 4799 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b4c522fa IB |
4800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4801 | break 2 | |
4802 | fi | |
4803 | done | |
4804 | done | |
4805 | IFS=$as_save_IFS | |
4806 | ||
4807 | fi | |
4808 | fi | |
235d1c46 RO |
4809 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4810 | if test -n "$ac_ct_CC"; then | |
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4812 | $as_echo "$ac_ct_CC" >&6; } | |
b4c522fa IB |
4813 | else |
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4815 | $as_echo "no" >&6; } | |
4816 | fi | |
4817 | ||
4818 | ||
235d1c46 | 4819 | test -n "$ac_ct_CC" && break |
b4c522fa IB |
4820 | done |
4821 | ||
235d1c46 RO |
4822 | if test "x$ac_ct_CC" = x; then |
4823 | CC="" | |
b4c522fa IB |
4824 | else |
4825 | case $cross_compiling:$ac_tool_warned in | |
4826 | yes:) | |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4828 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4829 | ac_tool_warned=yes ;; | |
4830 | esac | |
235d1c46 | 4831 | CC=$ac_ct_CC |
b4c522fa IB |
4832 | fi |
4833 | fi | |
4834 | ||
b4c522fa | 4835 | fi |
b4c522fa IB |
4836 | |
4837 | ||
235d1c46 RO |
4838 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4840 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4841 | See \`config.log' for more details" "$LINENO" 5; } | |
b4c522fa | 4842 | |
235d1c46 RO |
4843 | # Provide some information about the compiler. |
4844 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4845 | set X $ac_compile | |
4846 | ac_compiler=$2 | |
4847 | for ac_option in --version -v -V -qversion; do | |
4848 | { { ac_try="$ac_compiler $ac_option >&5" | |
4849 | case "(($ac_try" in | |
4850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4851 | *) ac_try_echo=$ac_try;; | |
4852 | esac | |
4853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4854 | $as_echo "$ac_try_echo"; } >&5 | |
4855 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4856 | ac_status=$? | |
4857 | if test -s conftest.err; then | |
4858 | sed '10a\ | |
4859 | ... rest of stderr output deleted ... | |
4860 | 10q' conftest.err >conftest.er1 | |
4861 | cat conftest.er1 >&5 | |
4862 | fi | |
4863 | rm -f conftest.er1 conftest.err | |
4864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4865 | test $ac_status = 0; } | |
4866 | done | |
b4c522fa | 4867 | |
235d1c46 RO |
4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4869 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4870 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4871 | $as_echo_n "(cached) " >&6 | |
4872 | else | |
4873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4874 | /* end confdefs.h. */ | |
b4c522fa | 4875 | |
235d1c46 RO |
4876 | int |
4877 | main () | |
4878 | { | |
4879 | #ifndef __GNUC__ | |
4880 | choke me | |
4881 | #endif | |
b4c522fa | 4882 | |
235d1c46 RO |
4883 | ; |
4884 | return 0; | |
4885 | } | |
4886 | _ACEOF | |
4887 | if ac_fn_c_try_compile "$LINENO"; then : | |
4888 | ac_compiler_gnu=yes | |
b4c522fa | 4889 | else |
235d1c46 | 4890 | ac_compiler_gnu=no |
b4c522fa | 4891 | fi |
235d1c46 RO |
4892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4893 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b4c522fa | 4894 | |
235d1c46 RO |
4895 | fi |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4897 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4898 | if test $ac_compiler_gnu = yes; then | |
4899 | GCC=yes | |
b4c522fa | 4900 | else |
235d1c46 | 4901 | GCC= |
b4c522fa | 4902 | fi |
235d1c46 RO |
4903 | ac_test_CFLAGS=${CFLAGS+set} |
4904 | ac_save_CFLAGS=$CFLAGS | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4906 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4907 | if ${ac_cv_prog_cc_g+:} false; then : | |
b4c522fa IB |
4908 | $as_echo_n "(cached) " >&6 |
4909 | else | |
235d1c46 RO |
4910 | ac_save_c_werror_flag=$ac_c_werror_flag |
4911 | ac_c_werror_flag=yes | |
4912 | ac_cv_prog_cc_g=no | |
4913 | CFLAGS="-g" | |
4914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4915 | /* end confdefs.h. */ | |
b4c522fa | 4916 | |
235d1c46 RO |
4917 | int |
4918 | main () | |
4919 | { | |
b4c522fa | 4920 | |
235d1c46 RO |
4921 | ; |
4922 | return 0; | |
4923 | } | |
4924 | _ACEOF | |
4925 | if ac_fn_c_try_compile "$LINENO"; then : | |
4926 | ac_cv_prog_cc_g=yes | |
4927 | else | |
4928 | CFLAGS="" | |
4929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4930 | /* end confdefs.h. */ | |
b4c522fa | 4931 | |
235d1c46 RO |
4932 | int |
4933 | main () | |
4934 | { | |
b4c522fa | 4935 | |
235d1c46 RO |
4936 | ; |
4937 | return 0; | |
4938 | } | |
4939 | _ACEOF | |
4940 | if ac_fn_c_try_compile "$LINENO"; then : | |
b4c522fa | 4941 | |
235d1c46 RO |
4942 | else |
4943 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4944 | CFLAGS="-g" | |
4945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4946 | /* end confdefs.h. */ | |
b4c522fa | 4947 | |
235d1c46 RO |
4948 | int |
4949 | main () | |
4950 | { | |
b4c522fa | 4951 | |
235d1c46 RO |
4952 | ; |
4953 | return 0; | |
4954 | } | |
4955 | _ACEOF | |
4956 | if ac_fn_c_try_compile "$LINENO"; then : | |
4957 | ac_cv_prog_cc_g=yes | |
4958 | fi | |
4959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4960 | fi | |
4961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4962 | fi | |
4963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4964 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4965 | fi | |
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4967 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4968 | if test "$ac_test_CFLAGS" = set; then | |
4969 | CFLAGS=$ac_save_CFLAGS | |
4970 | elif test $ac_cv_prog_cc_g = yes; then | |
4971 | if test "$GCC" = yes; then | |
4972 | CFLAGS="-g -O2" | |
4973 | else | |
4974 | CFLAGS="-g" | |
4975 | fi | |
4976 | else | |
4977 | if test "$GCC" = yes; then | |
4978 | CFLAGS="-O2" | |
4979 | else | |
4980 | CFLAGS= | |
4981 | fi | |
4982 | fi | |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4984 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4985 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4986 | $as_echo_n "(cached) " >&6 | |
4987 | else | |
4988 | ac_cv_prog_cc_c89=no | |
4989 | ac_save_CC=$CC | |
4990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4991 | /* end confdefs.h. */ | |
4992 | #include <stdarg.h> | |
4993 | #include <stdio.h> | |
4994 | struct stat; | |
4995 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4996 | struct buf { int x; }; | |
4997 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4998 | static char *e (p, i) | |
4999 | char **p; | |
5000 | int i; | |
5001 | { | |
5002 | return p[i]; | |
5003 | } | |
5004 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5005 | { | |
5006 | char *s; | |
5007 | va_list v; | |
5008 | va_start (v,p); | |
5009 | s = g (p, va_arg (v,int)); | |
5010 | va_end (v); | |
5011 | return s; | |
5012 | } | |
5013 | ||
5014 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5015 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5016 | These don't provoke an error unfortunately, instead are silently treated | |
5017 | as 'x'. The following induces an error, until -std is added to get | |
5018 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5019 | array size at least. It's necessary to write '\x00'==0 to get something | |
5020 | that's true only with -std. */ | |
5021 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5022 | ||
5023 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5024 | inside strings and character constants. */ | |
5025 | #define FOO(x) 'x' | |
5026 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5027 | ||
5028 | int test (int i, double x); | |
5029 | struct s1 {int (*f) (int a);}; | |
5030 | struct s2 {int (*f) (double a);}; | |
5031 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5032 | int argc; | |
5033 | char **argv; | |
5034 | int | |
5035 | main () | |
5036 | { | |
5037 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5038 | ; | |
5039 | return 0; | |
5040 | } | |
5041 | _ACEOF | |
5042 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5043 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5044 | do | |
5045 | CC="$ac_save_CC $ac_arg" | |
5046 | if ac_fn_c_try_compile "$LINENO"; then : | |
5047 | ac_cv_prog_cc_c89=$ac_arg | |
5048 | fi | |
5049 | rm -f core conftest.err conftest.$ac_objext | |
5050 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5051 | done | |
5052 | rm -f conftest.$ac_ext | |
5053 | CC=$ac_save_CC | |
5054 | ||
5055 | fi | |
5056 | # AC_CACHE_VAL | |
5057 | case "x$ac_cv_prog_cc_c89" in | |
5058 | x) | |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5060 | $as_echo "none needed" >&6; } ;; | |
5061 | xno) | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5063 | $as_echo "unsupported" >&6; } ;; | |
5064 | *) | |
5065 | CC="$CC $ac_cv_prog_cc_c89" | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5067 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5068 | esac | |
5069 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5070 | ||
5071 | fi | |
5072 | ||
5073 | ac_ext=c | |
5074 | ac_cpp='$CPP $CPPFLAGS' | |
5075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5078 | ||
5079 | ac_ext=c | |
5080 | ac_cpp='$CPP $CPPFLAGS' | |
5081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5085 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5086 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5087 | $as_echo_n "(cached) " >&6 | |
5088 | else | |
5089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5090 | /* end confdefs.h. */ | |
5091 | ||
5092 | int | |
5093 | main () | |
5094 | { | |
5095 | ||
5096 | ; | |
5097 | return 0; | |
5098 | } | |
5099 | _ACEOF | |
5100 | # Make sure it works both with $CC and with simple cc. | |
5101 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5102 | # compilers refuse to overwrite an existing .o file with -o, | |
5103 | # though they will create one. | |
5104 | am_cv_prog_cc_c_o=yes | |
5105 | for am_i in 1 2; do | |
5106 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5107 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5108 | ac_status=$? | |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5110 | (exit $ac_status); } \ | |
5111 | && test -f conftest2.$ac_objext; then | |
5112 | : OK | |
5113 | else | |
5114 | am_cv_prog_cc_c_o=no | |
5115 | break | |
5116 | fi | |
5117 | done | |
5118 | rm -f core conftest* | |
5119 | unset am_i | |
5120 | fi | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5122 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5123 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5124 | # Losing compiler, so override with the script. | |
5125 | # FIXME: It is wrong to rewrite CC. | |
5126 | # But if we don't then we get into trouble of one sort or another. | |
5127 | # A longer-term fix would be to have automake use am__CC in this case, | |
5128 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5129 | CC="$am_aux_dir/compile $CC" | |
5130 | fi | |
5131 | ac_ext=c | |
5132 | ac_cpp='$CPP $CPPFLAGS' | |
5133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5136 | ||
5137 | ||
5138 | ac_ext=d | |
5139 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
5140 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5141 | ac_compiler_gnu=yes | |
5142 | if test -n "$ac_tool_prefix"; then | |
5143 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5144 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5146 | $as_echo_n "checking for $ac_word... " >&6; } | |
5147 | if ${ac_cv_prog_GDC+:} false; then : | |
5148 | $as_echo_n "(cached) " >&6 | |
5149 | else | |
5150 | if test -n "$GDC"; then | |
5151 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5152 | else | |
5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5154 | for as_dir in $PATH | |
5155 | do | |
5156 | IFS=$as_save_IFS | |
5157 | test -z "$as_dir" && as_dir=. | |
5158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5159 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5160 | ac_cv_prog_GDC="${ac_tool_prefix}gdc" | |
5161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5162 | break 2 | |
5163 | fi | |
5164 | done | |
5165 | done | |
5166 | IFS=$as_save_IFS | |
5167 | ||
5168 | fi | |
5169 | fi | |
5170 | GDC=$ac_cv_prog_GDC | |
5171 | if test -n "$GDC"; then | |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5173 | $as_echo "$GDC" >&6; } | |
5174 | else | |
5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5176 | $as_echo "no" >&6; } | |
5177 | fi | |
5178 | ||
5179 | ||
5180 | fi | |
5181 | if test -z "$ac_cv_prog_GDC"; then | |
5182 | ac_ct_GDC=$GDC | |
5183 | # Extract the first word of "gdc", so it can be a program name with args. | |
5184 | set dummy gdc; ac_word=$2 | |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5186 | $as_echo_n "checking for $ac_word... " >&6; } | |
5187 | if ${ac_cv_prog_ac_ct_GDC+:} false; then : | |
5188 | $as_echo_n "(cached) " >&6 | |
5189 | else | |
5190 | if test -n "$ac_ct_GDC"; then | |
5191 | ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test. | |
5192 | else | |
5193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5194 | for as_dir in $PATH | |
5195 | do | |
5196 | IFS=$as_save_IFS | |
5197 | test -z "$as_dir" && as_dir=. | |
5198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5199 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5200 | ac_cv_prog_ac_ct_GDC="gdc" | |
5201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5202 | break 2 | |
5203 | fi | |
5204 | done | |
5205 | done | |
5206 | IFS=$as_save_IFS | |
5207 | ||
5208 | fi | |
5209 | fi | |
5210 | ac_ct_GDC=$ac_cv_prog_ac_ct_GDC | |
5211 | if test -n "$ac_ct_GDC"; then | |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5 | |
5213 | $as_echo "$ac_ct_GDC" >&6; } | |
5214 | else | |
5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5216 | $as_echo "no" >&6; } | |
5217 | fi | |
5218 | ||
5219 | if test "x$ac_ct_GDC" = x; then | |
5220 | GDC="" | |
5221 | else | |
5222 | case $cross_compiling:$ac_tool_warned in | |
5223 | yes:) | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5226 | ac_tool_warned=yes ;; | |
5227 | esac | |
5228 | GDC=$ac_ct_GDC | |
5229 | fi | |
5230 | else | |
5231 | GDC="$ac_cv_prog_GDC" | |
5232 | fi | |
5233 | ||
5234 | if test -z "$GDC"; then | |
5235 | if test -n "$ac_tool_prefix"; then | |
5236 | # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. | |
5237 | set dummy ${ac_tool_prefix}gdc; ac_word=$2 | |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5239 | $as_echo_n "checking for $ac_word... " >&6; } | |
5240 | if ${ac_cv_prog_GDC+:} false; then : | |
5241 | $as_echo_n "(cached) " >&6 | |
5242 | else | |
5243 | if test -n "$GDC"; then | |
5244 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5245 | else | |
5246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5247 | for as_dir in $PATH | |
5248 | do | |
5249 | IFS=$as_save_IFS | |
5250 | test -z "$as_dir" && as_dir=. | |
5251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5253 | ac_cv_prog_GDC="$ac_tool_prefix}gdc" | |
5254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5255 | break 2 | |
5256 | fi | |
5257 | done | |
5258 | done | |
5259 | IFS=$as_save_IFS | |
5260 | ||
5261 | fi | |
5262 | fi | |
5263 | GDC=$ac_cv_prog_GDC | |
5264 | if test -n "$GDC"; then | |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5266 | $as_echo "$GDC" >&6; } | |
5267 | else | |
5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5269 | $as_echo "no" >&6; } | |
5270 | fi | |
5271 | ||
5272 | ||
5273 | fi | |
5274 | fi | |
5275 | if test -z "$GDC"; then | |
5276 | # Extract the first word of "gdc", so it can be a program name with args. | |
5277 | set dummy gdc; ac_word=$2 | |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5279 | $as_echo_n "checking for $ac_word... " >&6; } | |
5280 | if ${ac_cv_prog_GDC+:} false; then : | |
5281 | $as_echo_n "(cached) " >&6 | |
5282 | else | |
5283 | if test -n "$GDC"; then | |
5284 | ac_cv_prog_GDC="$GDC" # Let the user override the test. | |
5285 | else | |
5286 | ac_prog_rejected=no | |
5287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5288 | for as_dir in $PATH | |
5289 | do | |
5290 | IFS=$as_save_IFS | |
5291 | test -z "$as_dir" && as_dir=. | |
5292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5294 | if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then | |
5295 | ac_prog_rejected=yes | |
5296 | continue | |
5297 | fi | |
5298 | ac_cv_prog_GDC="gdc" | |
5299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5300 | break 2 | |
5301 | fi | |
5302 | done | |
5303 | done | |
5304 | IFS=$as_save_IFS | |
5305 | ||
5306 | if test $ac_prog_rejected = yes; then | |
5307 | # We found a bogon in the path, so make sure we never use it. | |
5308 | set dummy $ac_cv_prog_GDC | |
5309 | shift | |
5310 | if test $# != 0; then | |
5311 | # We chose a different compiler from the bogus one. | |
5312 | # However, it has the same basename, so the bogon will be chosen | |
5313 | # first if we set GDC to just the basename; use the full file name. | |
5314 | shift | |
5315 | ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@" | |
5316 | fi | |
5317 | fi | |
5318 | fi | |
5319 | fi | |
5320 | GDC=$ac_cv_prog_GDC | |
5321 | if test -n "$GDC"; then | |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5 | |
5323 | $as_echo "$GDC" >&6; } | |
5324 | else | |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5326 | $as_echo "no" >&6; } | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | fi | |
5331 | ||
5332 | ||
5333 | # Provide some information about the compiler. | |
5334 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5 | |
5335 | set X $ac_compile | |
5336 | ac_compiler=$2 | |
5337 | { { ac_try="$ac_compiler --version >&5" | |
5338 | case "(($ac_try" in | |
5339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5340 | *) ac_try_echo=$ac_try;; | |
5341 | esac | |
5342 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5343 | $as_echo "$ac_try_echo"; } >&5 | |
5344 | (eval "$ac_compiler --version >&5") 2>conftest.err | |
5345 | ac_status=$? | |
5346 | if test -s conftest.err; then | |
5347 | sed '10a\ | |
5348 | ... rest of stderr output deleted ... | |
5349 | 10q' conftest.err >conftest.er1 | |
5350 | cat conftest.er1 >&5 | |
5351 | fi | |
5352 | rm -f conftest.er1 conftest.err | |
5353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5354 | test $ac_status = 0; } | |
5355 | ac_ext=c | |
5356 | ac_cpp='$CPP $CPPFLAGS' | |
5357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5360 | ||
5361 | ||
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5 | |
5363 | $as_echo_n "checking for absolute libphobos source path... " >&6; } | |
5364 | if ${phobos_cv_abs_srcdir+:} false; then : | |
5365 | $as_echo_n "(cached) " >&6 | |
5366 | else | |
5367 | phobos_cv_abs_srcdir=`cd $srcdir && pwd` | |
5368 | fi | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5 | |
5370 | $as_echo "$phobos_cv_abs_srcdir" >&6; } | |
5371 | if test -d "$phobos_cv_abs_srcdir"; then : | |
5372 | ||
5373 | else | |
5374 | as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5 | |
5375 | fi | |
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | gdc_save_DFLAGS=$GDCFLAGS | |
5381 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS" | |
5382 | ||
5383 | ac_ext=d | |
5384 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
5385 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5386 | ac_compiler_gnu=yes | |
5387 | ||
5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5 | |
5389 | $as_echo_n "checking If $GDC can compile D sources... " >&6; } | |
5390 | cat > conftest.$ac_ext <<_ACEOF | |
5391 | module mod; | |
5392 | ||
5393 | ||
5394 | extern(C) int main() { | |
5395 | return 0; | |
5396 | } | |
5397 | _ACEOF | |
5398 | if ac_fn_d_try_compile "$LINENO"; then : | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5400 | $as_echo "yes" >&6; } | |
5401 | else | |
5402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5403 | $as_echo "no" >&6; } | |
5404 | as_fn_error $? "can't compile D sources!" "$LINENO" 5 | |
5405 | fi | |
5406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5407 | ac_ext=c | |
5408 | ac_cpp='$CPP $CPPFLAGS' | |
5409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5412 | ||
5413 | ||
5414 | GDCFLAGS=$gdc_save_DFLAGS | |
5415 | ||
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
5422 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5423 | # Check whether --enable-maintainer-mode was given. | |
5424 | if test "${enable_maintainer_mode+set}" = set; then : | |
5425 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
5426 | else | |
5427 | USE_MAINTAINER_MODE=no | |
5428 | fi | |
5429 | ||
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
5431 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5432 | if test $USE_MAINTAINER_MODE = yes; then | |
5433 | MAINTAINER_MODE_TRUE= | |
5434 | MAINTAINER_MODE_FALSE='#' | |
5435 | else | |
5436 | MAINTAINER_MODE_TRUE='#' | |
5437 | MAINTAINER_MODE_FALSE= | |
5438 | fi | |
5439 | ||
5440 | MAINT=$MAINTAINER_MODE_TRUE | |
5441 | ||
5442 | ||
5443 | if test -n "$ac_tool_prefix"; then | |
5444 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5445 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5447 | $as_echo_n "checking for $ac_word... " >&6; } | |
5448 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5449 | $as_echo_n "(cached) " >&6 | |
5450 | else | |
5451 | if test -n "$RANLIB"; then | |
5452 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5453 | else | |
5454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5455 | for as_dir in $PATH | |
5456 | do | |
5457 | IFS=$as_save_IFS | |
5458 | test -z "$as_dir" && as_dir=. | |
5459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5460 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5461 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5462 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5463 | break 2 | |
5464 | fi | |
5465 | done | |
5466 | done | |
5467 | IFS=$as_save_IFS | |
5468 | ||
5469 | fi | |
5470 | fi | |
5471 | RANLIB=$ac_cv_prog_RANLIB | |
5472 | if test -n "$RANLIB"; then | |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5474 | $as_echo "$RANLIB" >&6; } | |
5475 | else | |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5477 | $as_echo "no" >&6; } | |
5478 | fi | |
5479 | ||
5480 | ||
5481 | fi | |
5482 | if test -z "$ac_cv_prog_RANLIB"; then | |
5483 | ac_ct_RANLIB=$RANLIB | |
5484 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5485 | set dummy ranlib; ac_word=$2 | |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5487 | $as_echo_n "checking for $ac_word... " >&6; } | |
5488 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5489 | $as_echo_n "(cached) " >&6 | |
5490 | else | |
5491 | if test -n "$ac_ct_RANLIB"; then | |
5492 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5493 | else | |
5494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5495 | for as_dir in $PATH | |
5496 | do | |
5497 | IFS=$as_save_IFS | |
5498 | test -z "$as_dir" && as_dir=. | |
5499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5500 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5501 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5502 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5503 | break 2 | |
5504 | fi | |
5505 | done | |
5506 | done | |
5507 | IFS=$as_save_IFS | |
5508 | ||
5509 | fi | |
5510 | fi | |
5511 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5512 | if test -n "$ac_ct_RANLIB"; then | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5514 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5515 | else | |
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5517 | $as_echo "no" >&6; } | |
5518 | fi | |
5519 | ||
5520 | if test "x$ac_ct_RANLIB" = x; then | |
5521 | RANLIB=":" | |
5522 | else | |
5523 | case $cross_compiling:$ac_tool_warned in | |
5524 | yes:) | |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5526 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5527 | ac_tool_warned=yes ;; | |
5528 | esac | |
5529 | RANLIB=$ac_ct_RANLIB | |
5530 | fi | |
5531 | else | |
5532 | RANLIB="$ac_cv_prog_RANLIB" | |
5533 | fi | |
5534 | ||
5535 | ||
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5537 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5538 | set x ${MAKE-make} | |
5539 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5540 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
5541 | $as_echo_n "(cached) " >&6 | |
5542 | else | |
5543 | cat >conftest.make <<\_ACEOF | |
5544 | SHELL = /bin/sh | |
5545 | all: | |
5546 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5547 | _ACEOF | |
5548 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5549 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5550 | *@@@%%%=?*=@@@%%%*) | |
5551 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5552 | *) | |
5553 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5554 | esac | |
5555 | rm -f conftest.make | |
5556 | fi | |
5557 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5559 | $as_echo "yes" >&6; } | |
5560 | SET_MAKE= | |
5561 | else | |
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5563 | $as_echo "no" >&6; } | |
5564 | SET_MAKE="MAKE=${MAKE-make}" | |
5565 | fi | |
5566 | ||
5567 | ||
08c1d39d L |
5568 | # Add CET specific flags if CET is enabled |
5569 | # Check whether --enable-cet was given. | |
5570 | if test "${enable_cet+set}" = set; then : | |
5571 | enableval=$enable_cet; | |
5572 | case "$enableval" in | |
5573 | yes|no|auto) ;; | |
5574 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
5575 | esac | |
5576 | ||
5577 | else | |
4c1a5d8b | 5578 | enable_cet=auto |
08c1d39d L |
5579 | fi |
5580 | ||
5581 | ||
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
5583 | $as_echo_n "checking for CET support... " >&6; } | |
5584 | ||
9051b548 | 5585 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
08c1d39d L |
5586 | case "$host" in |
5587 | i[34567]86-*-linux* | x86_64-*-linux*) | |
5588 | case "$enable_cet" in | |
5589 | auto) | |
5590 | # Check if target supports multi-byte NOPs | |
285d81be | 5591 | # and if compiler and assembler support CET insn. |
9051b548 | 5592 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 5593 | CFLAGS="$CFLAGS -fcf-protection" |
08c1d39d L |
5594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5595 | /* end confdefs.h. */ | |
5596 | ||
5597 | int | |
5598 | main () | |
5599 | { | |
5600 | ||
5601 | #if !defined(__SSE2__) | |
5602 | #error target does not support multi-byte NOPs | |
5603 | #else | |
5604 | asm ("setssbsy"); | |
5605 | #endif | |
5606 | ||
5607 | ; | |
5608 | return 0; | |
5609 | } | |
5610 | _ACEOF | |
5611 | if ac_fn_c_try_compile "$LINENO"; then : | |
5612 | enable_cet=yes | |
5613 | else | |
5614 | enable_cet=no | |
5615 | fi | |
5616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 5617 | CFLAGS="$cet_save_CFLAGS" |
08c1d39d L |
5618 | ;; |
5619 | yes) | |
5620 | # Check if assembler supports CET. | |
5621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5622 | /* end confdefs.h. */ | |
5623 | ||
5624 | int | |
5625 | main () | |
5626 | { | |
5627 | asm ("setssbsy"); | |
5628 | ; | |
5629 | return 0; | |
5630 | } | |
5631 | _ACEOF | |
5632 | if ac_fn_c_try_compile "$LINENO"; then : | |
5633 | ||
5634 | else | |
5635 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 | |
5636 | fi | |
5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5638 | ;; | |
5639 | esac | |
5640 | ;; | |
5641 | *) | |
5642 | enable_cet=no | |
5643 | ;; | |
5644 | esac | |
5645 | if test x$enable_cet = xyes; then | |
5646 | CET_FLAGS="-fcf-protection -mshstk" | |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5648 | $as_echo "yes" >&6; } | |
5649 | else | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5651 | $as_echo "no" >&6; } | |
5652 | fi | |
5653 | ||
5654 | ||
0ed75760 | 5655 | # To ensure that runtime code for CET is compiled in, add in D version flags. |
5dbab7b3 IB |
5656 | if test x$enable_cet = xyes; then : |
5657 | ||
0ed75760 | 5658 | CET_DFLAGS="$CET_FLAGS -fversion=CET" |
5dbab7b3 IB |
5659 | DCFG_ENABLE_CET=true |
5660 | ||
5661 | else | |
5662 | ||
5663 | CET_DFLAGS= | |
5664 | DCFG_ENABLE_CET=false | |
285d81be | 5665 | |
0ed75760 | 5666 | fi |
08c1d39d | 5667 | |
5dbab7b3 IB |
5668 | |
5669 | ||
235d1c46 RO |
5670 | # This should be inherited in the recursive make, but ensure it is defined. |
5671 | test "$AR" || AR=ar | |
5672 | ||
5673 | ||
5674 | CC_FOR_BUILD=${CC_FOR_BUILD:-gcc} | |
5675 | ||
5676 | ||
5677 | ||
5678 | # Enable libtool | |
5679 | case `pwd` in | |
5680 | *\ * | *\ *) | |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5682 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5683 | esac | |
5684 | ||
5685 | ||
5686 | ||
5687 | macro_version='2.2.7a' | |
5688 | macro_revision='1.3134' | |
5689 | ||
5690 | ||
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5701 | ||
5702 | ltmain="$ac_aux_dir/ltmain.sh" | |
5703 | ||
5704 | # Backslashify metacharacters that are still active within | |
5705 | # double-quoted strings. | |
5706 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5707 | ||
5708 | # Same as above, but do not quote variable references. | |
5709 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5710 | ||
5711 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5712 | # double_quote_subst'ed string. | |
5713 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5714 | ||
5715 | # Sed substitution to delay expansion of an escaped single quote. | |
5716 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5717 | ||
5718 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5719 | no_glob_subst='s/\*/\\\*/g' | |
5720 | ||
5721 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5722 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5723 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5724 | ||
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5726 | $as_echo_n "checking how to print strings... " >&6; } | |
5727 | # Test print first, because it will be a builtin if present. | |
5728 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5729 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5730 | ECHO='print -r --' | |
5731 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5732 | ECHO='printf %s\n' | |
5733 | else | |
5734 | # Use this function as a fallback that always works. | |
5735 | func_fallback_echo () | |
5736 | { | |
5737 | eval 'cat <<_LTECHO_EOF | |
5738 | $1 | |
5739 | _LTECHO_EOF' | |
5740 | } | |
5741 | ECHO='func_fallback_echo' | |
5742 | fi | |
5743 | ||
5744 | # func_echo_all arg... | |
5745 | # Invoke $ECHO with all args, space-separated. | |
5746 | func_echo_all () | |
5747 | { | |
5748 | $ECHO "" | |
5749 | } | |
5750 | ||
5751 | case "$ECHO" in | |
5752 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5753 | $as_echo "printf" >&6; } ;; | |
5754 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5755 | $as_echo "print -r" >&6; } ;; | |
5756 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5757 | $as_echo "cat" >&6; } ;; | |
5758 | esac | |
5759 | ||
5760 | ||
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | ||
5769 | ||
5770 | ||
5771 | ||
5772 | ||
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5774 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5775 | if ${ac_cv_path_SED+:} false; then : | |
5776 | $as_echo_n "(cached) " >&6 | |
5777 | else | |
5778 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5779 | for ac_i in 1 2 3 4 5 6 7; do | |
5780 | ac_script="$ac_script$as_nl$ac_script" | |
5781 | done | |
5782 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5783 | { ac_script=; unset ac_script;} | |
5784 | if test -z "$SED"; then | |
5785 | ac_path_SED_found=false | |
5786 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5788 | for as_dir in $PATH | |
5789 | do | |
5790 | IFS=$as_save_IFS | |
5791 | test -z "$as_dir" && as_dir=. | |
5792 | for ac_prog in sed gsed; do | |
5793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5794 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5795 | as_fn_executable_p "$ac_path_SED" || continue | |
5796 | # Check for GNU ac_path_SED and select it if it is found. | |
5797 | # Check for GNU $ac_path_SED | |
5798 | case `"$ac_path_SED" --version 2>&1` in | |
5799 | *GNU*) | |
5800 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5801 | *) | |
5802 | ac_count=0 | |
5803 | $as_echo_n 0123456789 >"conftest.in" | |
5804 | while : | |
5805 | do | |
5806 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5807 | mv "conftest.tmp" "conftest.in" | |
5808 | cp "conftest.in" "conftest.nl" | |
5809 | $as_echo '' >> "conftest.nl" | |
5810 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5811 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5812 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5813 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5814 | # Best one so far, save it but keep looking for a better one | |
5815 | ac_cv_path_SED="$ac_path_SED" | |
5816 | ac_path_SED_max=$ac_count | |
5817 | fi | |
5818 | # 10*(2^10) chars as input seems more than enough | |
5819 | test $ac_count -gt 10 && break | |
5820 | done | |
5821 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5822 | esac | |
5823 | ||
5824 | $ac_path_SED_found && break 3 | |
5825 | done | |
5826 | done | |
5827 | done | |
5828 | IFS=$as_save_IFS | |
5829 | if test -z "$ac_cv_path_SED"; then | |
5830 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5831 | fi | |
5832 | else | |
5833 | ac_cv_path_SED=$SED | |
5834 | fi | |
5835 | ||
5836 | fi | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5838 | $as_echo "$ac_cv_path_SED" >&6; } | |
5839 | SED="$ac_cv_path_SED" | |
5840 | rm -f conftest.sed | |
5841 | ||
5842 | test -z "$SED" && SED=sed | |
5843 | Xsed="$SED -e 1s/^X//" | |
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
5850 | ||
5851 | ||
5852 | ||
5853 | ||
5854 | ||
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5856 | $as_echo_n "checking for fgrep... " >&6; } | |
5857 | if ${ac_cv_path_FGREP+:} false; then : | |
5858 | $as_echo_n "(cached) " >&6 | |
5859 | else | |
5860 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5861 | then ac_cv_path_FGREP="$GREP -F" | |
5862 | else | |
5863 | if test -z "$FGREP"; then | |
5864 | ac_path_FGREP_found=false | |
5865 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5867 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5868 | do | |
5869 | IFS=$as_save_IFS | |
5870 | test -z "$as_dir" && as_dir=. | |
5871 | for ac_prog in fgrep; do | |
5872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5873 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5874 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5875 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5876 | # Check for GNU $ac_path_FGREP | |
5877 | case `"$ac_path_FGREP" --version 2>&1` in | |
5878 | *GNU*) | |
5879 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5880 | *) | |
5881 | ac_count=0 | |
5882 | $as_echo_n 0123456789 >"conftest.in" | |
5883 | while : | |
5884 | do | |
5885 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5886 | mv "conftest.tmp" "conftest.in" | |
5887 | cp "conftest.in" "conftest.nl" | |
5888 | $as_echo 'FGREP' >> "conftest.nl" | |
5889 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5890 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5891 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5892 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5893 | # Best one so far, save it but keep looking for a better one | |
5894 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5895 | ac_path_FGREP_max=$ac_count | |
5896 | fi | |
5897 | # 10*(2^10) chars as input seems more than enough | |
5898 | test $ac_count -gt 10 && break | |
5899 | done | |
5900 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5901 | esac | |
5902 | ||
5903 | $ac_path_FGREP_found && break 3 | |
5904 | done | |
5905 | done | |
5906 | done | |
5907 | IFS=$as_save_IFS | |
5908 | if test -z "$ac_cv_path_FGREP"; then | |
5909 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5910 | fi | |
5911 | else | |
5912 | ac_cv_path_FGREP=$FGREP | |
5913 | fi | |
5914 | ||
5915 | fi | |
5916 | fi | |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5918 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5919 | FGREP="$ac_cv_path_FGREP" | |
5920 | ||
5921 | ||
5922 | test -z "$GREP" && GREP=grep | |
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | ||
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | # Check whether --with-gnu-ld was given. | |
5943 | if test "${with_gnu_ld+set}" = set; then : | |
5944 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5945 | else | |
5946 | with_gnu_ld=no | |
5947 | fi | |
5948 | ||
5949 | ac_prog=ld | |
5950 | if test "$GCC" = yes; then | |
5951 | # Check if gcc -print-prog-name=ld gives a path. | |
5952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5953 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5954 | case $host in | |
5955 | *-*-mingw*) | |
5956 | # gcc leaves a trailing carriage return which upsets mingw | |
5957 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5958 | *) | |
5959 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5960 | esac | |
5961 | case $ac_prog in | |
5962 | # Accept absolute paths. | |
5963 | [\\/]* | ?:[\\/]*) | |
5964 | re_direlt='/[^/][^/]*/\.\./' | |
5965 | # Canonicalize the pathname of ld | |
5966 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5967 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5968 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5969 | done | |
5970 | test -z "$LD" && LD="$ac_prog" | |
5971 | ;; | |
5972 | "") | |
5973 | # If it fails, then pretend we aren't using GCC. | |
5974 | ac_prog=ld | |
5975 | ;; | |
5976 | *) | |
5977 | # If it is relative, then search for the first ld in PATH. | |
5978 | with_gnu_ld=unknown | |
5979 | ;; | |
5980 | esac | |
5981 | elif test "$with_gnu_ld" = yes; then | |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5983 | $as_echo_n "checking for GNU ld... " >&6; } | |
5984 | else | |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5986 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5987 | fi | |
5988 | if ${lt_cv_path_LD+:} false; then : | |
5989 | $as_echo_n "(cached) " >&6 | |
5990 | else | |
5991 | if test -z "$LD"; then | |
5992 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5993 | for ac_dir in $PATH; do | |
5994 | IFS="$lt_save_ifs" | |
5995 | test -z "$ac_dir" && ac_dir=. | |
5996 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5997 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5998 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5999 | # but apparently some variants of GNU ld only accept -v. | |
6000 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6001 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6002 | *GNU* | *'with BFD'*) | |
6003 | test "$with_gnu_ld" != no && break | |
6004 | ;; | |
6005 | *) | |
6006 | test "$with_gnu_ld" != yes && break | |
6007 | ;; | |
6008 | esac | |
6009 | fi | |
6010 | done | |
6011 | IFS="$lt_save_ifs" | |
6012 | else | |
6013 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6014 | fi | |
6015 | fi | |
6016 | ||
6017 | LD="$lt_cv_path_LD" | |
6018 | if test -n "$LD"; then | |
6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6020 | $as_echo "$LD" >&6; } | |
6021 | else | |
6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6023 | $as_echo "no" >&6; } | |
6024 | fi | |
6025 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6027 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6028 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
6029 | $as_echo_n "(cached) " >&6 | |
6030 | else | |
6031 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6032 | case `$LD -v 2>&1 </dev/null` in | |
6033 | *GNU* | *'with BFD'*) | |
6034 | lt_cv_prog_gnu_ld=yes | |
6035 | ;; | |
6036 | *) | |
6037 | lt_cv_prog_gnu_ld=no | |
6038 | ;; | |
6039 | esac | |
6040 | fi | |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6042 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6043 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6044 | ||
6045 | ||
6046 | ||
6047 | ||
6048 | ||
6049 | ||
6050 | ||
6051 | ||
6052 | ||
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6054 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6055 | if ${lt_cv_path_NM+:} false; then : | |
6056 | $as_echo_n "(cached) " >&6 | |
6057 | else | |
6058 | if test -n "$NM"; then | |
6059 | # Let the user override the test. | |
6060 | lt_cv_path_NM="$NM" | |
6061 | else | |
6062 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6063 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6064 | lt_nm_to_check="$lt_nm_to_check nm" | |
6065 | fi | |
6066 | for lt_tmp_nm in $lt_nm_to_check; do | |
6067 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6068 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6069 | IFS="$lt_save_ifs" | |
6070 | test -z "$ac_dir" && ac_dir=. | |
6071 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6072 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6073 | # Check to see if the nm accepts a BSD-compat flag. | |
6074 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6075 | # nm: unknown option "B" ignored | |
6076 | # Tru64's nm complains that /dev/null is an invalid object file | |
6077 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6078 | */dev/null* | *'Invalid file or object type'*) | |
6079 | lt_cv_path_NM="$tmp_nm -B" | |
6080 | break | |
6081 | ;; | |
6082 | *) | |
6083 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6084 | */dev/null*) | |
6085 | lt_cv_path_NM="$tmp_nm -p" | |
6086 | break | |
6087 | ;; | |
6088 | *) | |
6089 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6090 | continue # so that we can try to find one that supports BSD flags | |
6091 | ;; | |
6092 | esac | |
6093 | ;; | |
6094 | esac | |
6095 | fi | |
6096 | done | |
6097 | IFS="$lt_save_ifs" | |
6098 | done | |
6099 | : ${lt_cv_path_NM=no} | |
6100 | fi | |
6101 | fi | |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6103 | $as_echo "$lt_cv_path_NM" >&6; } | |
6104 | if test "$lt_cv_path_NM" != "no"; then | |
6105 | NM="$lt_cv_path_NM" | |
6106 | else | |
6107 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6108 | if test -n "$DUMPBIN"; then : | |
6109 | # Let the user override the test. | |
6110 | else | |
6111 | if test -n "$ac_tool_prefix"; then | |
6112 | for ac_prog in dumpbin "link -dump" | |
6113 | do | |
6114 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6115 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6117 | $as_echo_n "checking for $ac_word... " >&6; } | |
6118 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6119 | $as_echo_n "(cached) " >&6 | |
6120 | else | |
6121 | if test -n "$DUMPBIN"; then | |
6122 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6123 | else | |
6124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6125 | for as_dir in $PATH | |
6126 | do | |
6127 | IFS=$as_save_IFS | |
6128 | test -z "$as_dir" && as_dir=. | |
6129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6130 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6131 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6133 | break 2 | |
6134 | fi | |
6135 | done | |
6136 | done | |
6137 | IFS=$as_save_IFS | |
6138 | ||
6139 | fi | |
6140 | fi | |
6141 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6142 | if test -n "$DUMPBIN"; then | |
6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6144 | $as_echo "$DUMPBIN" >&6; } | |
6145 | else | |
6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6147 | $as_echo "no" >&6; } | |
6148 | fi | |
6149 | ||
6150 | ||
6151 | test -n "$DUMPBIN" && break | |
6152 | done | |
6153 | fi | |
6154 | if test -z "$DUMPBIN"; then | |
6155 | ac_ct_DUMPBIN=$DUMPBIN | |
6156 | for ac_prog in dumpbin "link -dump" | |
6157 | do | |
6158 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6159 | set dummy $ac_prog; ac_word=$2 | |
6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6161 | $as_echo_n "checking for $ac_word... " >&6; } | |
6162 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6163 | $as_echo_n "(cached) " >&6 | |
6164 | else | |
6165 | if test -n "$ac_ct_DUMPBIN"; then | |
6166 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6167 | else | |
6168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6169 | for as_dir in $PATH | |
6170 | do | |
6171 | IFS=$as_save_IFS | |
6172 | test -z "$as_dir" && as_dir=. | |
6173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6175 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6177 | break 2 | |
6178 | fi | |
6179 | done | |
6180 | done | |
6181 | IFS=$as_save_IFS | |
6182 | ||
6183 | fi | |
6184 | fi | |
6185 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6186 | if test -n "$ac_ct_DUMPBIN"; then | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6188 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6189 | else | |
6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6191 | $as_echo "no" >&6; } | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | test -n "$ac_ct_DUMPBIN" && break | |
6196 | done | |
6197 | ||
6198 | if test "x$ac_ct_DUMPBIN" = x; then | |
6199 | DUMPBIN=":" | |
6200 | else | |
6201 | case $cross_compiling:$ac_tool_warned in | |
6202 | yes:) | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6204 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6205 | ac_tool_warned=yes ;; | |
6206 | esac | |
6207 | DUMPBIN=$ac_ct_DUMPBIN | |
6208 | fi | |
6209 | fi | |
6210 | ||
6211 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6212 | *COFF*) | |
6213 | DUMPBIN="$DUMPBIN -symbols" | |
6214 | ;; | |
6215 | *) | |
6216 | DUMPBIN=: | |
6217 | ;; | |
6218 | esac | |
6219 | fi | |
6220 | ||
6221 | if test "$DUMPBIN" != ":"; then | |
6222 | NM="$DUMPBIN" | |
6223 | fi | |
6224 | fi | |
6225 | test -z "$NM" && NM=nm | |
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6233 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6234 | if ${lt_cv_nm_interface+:} false; then : | |
6235 | $as_echo_n "(cached) " >&6 | |
6236 | else | |
6237 | lt_cv_nm_interface="BSD nm" | |
6238 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6239 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6240 | (eval "$ac_compile" 2>conftest.err) | |
6241 | cat conftest.err >&5 | |
6242 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6243 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6244 | cat conftest.err >&5 | |
6245 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6246 | cat conftest.out >&5 | |
6247 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6248 | lt_cv_nm_interface="MS dumpbin" | |
6249 | fi | |
6250 | rm -f conftest* | |
6251 | fi | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6253 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6254 | ||
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6256 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6257 | LN_S=$as_ln_s | |
6258 | if test "$LN_S" = "ln -s"; then | |
6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6260 | $as_echo "yes" >&6; } | |
6261 | else | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6263 | $as_echo "no, using $LN_S" >&6; } | |
6264 | fi | |
6265 | ||
6266 | # find the maximum length of command line arguments | |
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6268 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6269 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6270 | $as_echo_n "(cached) " >&6 | |
6271 | else | |
6272 | i=0 | |
6273 | teststring="ABCD" | |
6274 | ||
6275 | case $build_os in | |
6276 | msdosdjgpp*) | |
6277 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6278 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6279 | # during glob expansion). Even if it were fixed, the result of this | |
6280 | # check would be larger than it should be. | |
6281 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6282 | ;; | |
6283 | ||
6284 | gnu*) | |
6285 | # Under GNU Hurd, this test is not required because there is | |
6286 | # no limit to the length of command line arguments. | |
6287 | # Libtool will interpret -1 as no limit whatsoever | |
6288 | lt_cv_sys_max_cmd_len=-1; | |
6289 | ;; | |
6290 | ||
6291 | cygwin* | mingw* | cegcc*) | |
6292 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6293 | # about 5 minutes as the teststring grows exponentially. | |
6294 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6295 | # you end up with a "frozen" computer, even though with patience | |
6296 | # the test eventually succeeds (with a max line length of 256k). | |
6297 | # Instead, let's just punt: use the minimum linelength reported by | |
6298 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6299 | lt_cv_sys_max_cmd_len=8192; | |
6300 | ;; | |
6301 | ||
6302 | mint*) | |
6303 | # On MiNT this can take a long time and run out of memory. | |
6304 | lt_cv_sys_max_cmd_len=8192; | |
6305 | ;; | |
6306 | ||
6307 | amigaos*) | |
6308 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6309 | # So we just punt and use a minimum line length of 8192. | |
6310 | lt_cv_sys_max_cmd_len=8192; | |
6311 | ;; | |
6312 | ||
6313 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6314 | # This has been around since 386BSD, at least. Likely further. | |
6315 | if test -x /sbin/sysctl; then | |
6316 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6317 | elif test -x /usr/sbin/sysctl; then | |
6318 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6319 | else | |
6320 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6321 | fi | |
6322 | # And add a safety zone | |
6323 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6324 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6325 | ;; | |
6326 | ||
6327 | interix*) | |
6328 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6329 | lt_cv_sys_max_cmd_len=196608 | |
6330 | ;; | |
6331 | ||
6332 | osf*) | |
6333 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6334 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6335 | # nice to cause kernel panics so lets avoid the loop below. | |
6336 | # First set a reasonable default. | |
6337 | lt_cv_sys_max_cmd_len=16384 | |
6338 | # | |
6339 | if test -x /sbin/sysconfig; then | |
6340 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6341 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6342 | esac | |
6343 | fi | |
6344 | ;; | |
6345 | sco3.2v5*) | |
6346 | lt_cv_sys_max_cmd_len=102400 | |
6347 | ;; | |
6348 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6349 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6350 | if test -n "$kargmax"; then | |
6351 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6352 | else | |
6353 | lt_cv_sys_max_cmd_len=32768 | |
6354 | fi | |
6355 | ;; | |
6356 | *) | |
6357 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6358 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6359 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6360 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6361 | else | |
6362 | # Make teststring a little bigger before we do anything with it. | |
6363 | # a 1K string should be a reasonable start. | |
6364 | for i in 1 2 3 4 5 6 7 8 ; do | |
6365 | teststring=$teststring$teststring | |
6366 | done | |
6367 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6368 | # If test is not a shell built-in, we'll probably end up computing a | |
6369 | # maximum length that is only half of the actual maximum length, but | |
6370 | # we can't tell. | |
6371 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6372 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6373 | test $i != 17 # 1/2 MB should be enough | |
6374 | do | |
6375 | i=`expr $i + 1` | |
b4c522fa IB |
6376 | teststring=$teststring$teststring |
6377 | done | |
6378 | # Only check the string length outside the loop. | |
6379 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6380 | teststring= | |
6381 | # Add a significant safety factor because C++ compilers can tack on | |
6382 | # massive amounts of additional arguments before passing them to the | |
6383 | # linker. It appears as though 1/2 is a usable value. | |
6384 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6385 | fi | |
6386 | ;; | |
6387 | esac | |
6388 | ||
6389 | fi | |
6390 | ||
6391 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6393 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6394 | else | |
6395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6396 | $as_echo "none" >&6; } | |
6397 | fi | |
6398 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | : ${CP="cp -f"} | |
6406 | : ${MV="mv -f"} | |
6407 | : ${RM="rm -f"} | |
6408 | ||
6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6410 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6411 | # Try some XSI features | |
6412 | xsi_shell=no | |
6413 | ( _lt_dummy="a/b/c" | |
6414 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6415 | = c,a/b,, \ | |
6416 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6417 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6418 | && xsi_shell=yes | |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6420 | $as_echo "$xsi_shell" >&6; } | |
6421 | ||
6422 | ||
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6424 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6425 | lt_shell_append=no | |
6426 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6427 | >/dev/null 2>&1 \ | |
6428 | && lt_shell_append=yes | |
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6430 | $as_echo "$lt_shell_append" >&6; } | |
6431 | ||
6432 | ||
6433 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6434 | lt_unset=unset | |
6435 | else | |
6436 | lt_unset=false | |
6437 | fi | |
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | # test EBCDIC or ASCII | |
6444 | case `echo X|tr X '\101'` in | |
6445 | A) # ASCII based system | |
6446 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6447 | lt_SP2NL='tr \040 \012' | |
6448 | lt_NL2SP='tr \015\012 \040\040' | |
6449 | ;; | |
6450 | *) # EBCDIC based system | |
6451 | lt_SP2NL='tr \100 \n' | |
6452 | lt_NL2SP='tr \r\n \100\100' | |
6453 | ;; | |
6454 | esac | |
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6465 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 6466 | if ${lt_cv_ld_reload_flag+:} false; then : |
b4c522fa IB |
6467 | $as_echo_n "(cached) " >&6 |
6468 | else | |
6469 | lt_cv_ld_reload_flag='-r' | |
6470 | fi | |
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6472 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6473 | reload_flag=$lt_cv_ld_reload_flag | |
6474 | case $reload_flag in | |
6475 | "" | " "*) ;; | |
6476 | *) reload_flag=" $reload_flag" ;; | |
6477 | esac | |
6478 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6479 | case $host_os in | |
6480 | darwin*) | |
6481 | if test "$GCC" = yes; then | |
6482 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6483 | else | |
6484 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6485 | fi | |
6486 | ;; | |
6487 | esac | |
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | if test -n "$ac_tool_prefix"; then | |
6498 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6499 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6501 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6502 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
b4c522fa IB |
6503 | $as_echo_n "(cached) " >&6 |
6504 | else | |
6505 | if test -n "$OBJDUMP"; then | |
6506 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6507 | else | |
6508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6509 | for as_dir in $PATH | |
6510 | do | |
6511 | IFS=$as_save_IFS | |
6512 | test -z "$as_dir" && as_dir=. | |
6513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6515 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6517 | break 2 | |
6518 | fi | |
6519 | done | |
6520 | done | |
6521 | IFS=$as_save_IFS | |
6522 | ||
6523 | fi | |
6524 | fi | |
6525 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6526 | if test -n "$OBJDUMP"; then | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6528 | $as_echo "$OBJDUMP" >&6; } | |
6529 | else | |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6531 | $as_echo "no" >&6; } | |
6532 | fi | |
6533 | ||
6534 | ||
6535 | fi | |
6536 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6537 | ac_ct_OBJDUMP=$OBJDUMP | |
6538 | # Extract the first word of "objdump", so it can be a program name with args. | |
6539 | set dummy objdump; ac_word=$2 | |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6541 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6542 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
b4c522fa IB |
6543 | $as_echo_n "(cached) " >&6 |
6544 | else | |
6545 | if test -n "$ac_ct_OBJDUMP"; then | |
6546 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6547 | else | |
6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6549 | for as_dir in $PATH | |
6550 | do | |
6551 | IFS=$as_save_IFS | |
6552 | test -z "$as_dir" && as_dir=. | |
6553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6555 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6557 | break 2 | |
6558 | fi | |
6559 | done | |
6560 | done | |
6561 | IFS=$as_save_IFS | |
6562 | ||
6563 | fi | |
6564 | fi | |
6565 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6566 | if test -n "$ac_ct_OBJDUMP"; then | |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6568 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6569 | else | |
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6571 | $as_echo "no" >&6; } | |
6572 | fi | |
6573 | ||
6574 | if test "x$ac_ct_OBJDUMP" = x; then | |
6575 | OBJDUMP="false" | |
6576 | else | |
6577 | case $cross_compiling:$ac_tool_warned in | |
6578 | yes:) | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6581 | ac_tool_warned=yes ;; | |
6582 | esac | |
6583 | OBJDUMP=$ac_ct_OBJDUMP | |
6584 | fi | |
6585 | else | |
6586 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6587 | fi | |
6588 | ||
6589 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6600 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 6601 | if ${lt_cv_deplibs_check_method+:} false; then : |
b4c522fa IB |
6602 | $as_echo_n "(cached) " >&6 |
6603 | else | |
6604 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6605 | lt_cv_file_magic_test_file= | |
6606 | lt_cv_deplibs_check_method='unknown' | |
6607 | # Need to set the preceding variable on all platforms that support | |
6608 | # interlibrary dependencies. | |
6609 | # 'none' -- dependencies not supported. | |
6610 | # `unknown' -- same as none, but documents that we really don't know. | |
6611 | # 'pass_all' -- all dependencies passed with no checks. | |
6612 | # 'test_compile' -- check by making test program. | |
6613 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6614 | # which responds to the $file_magic_cmd with a given extended regex. | |
6615 | # If you have `file' or equivalent on your system and you're not sure | |
6616 | # whether `pass_all' will *always* work, you probably want this one. | |
6617 | ||
6618 | case $host_os in | |
6619 | aix[4-9]*) | |
6620 | lt_cv_deplibs_check_method=pass_all | |
6621 | ;; | |
6622 | ||
6623 | beos*) | |
6624 | lt_cv_deplibs_check_method=pass_all | |
6625 | ;; | |
6626 | ||
6627 | bsdi[45]*) | |
6628 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6629 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6630 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6631 | ;; | |
6632 | ||
6633 | cygwin*) | |
6634 | # func_win32_libid is a shell function defined in ltmain.sh | |
6635 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6636 | lt_cv_file_magic_cmd='func_win32_libid' | |
6637 | ;; | |
6638 | ||
6639 | mingw* | pw32*) | |
6640 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6641 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6642 | # unless we find 'file', for example because we are cross-compiling. | |
6643 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6644 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6645 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6646 | lt_cv_file_magic_cmd='func_win32_libid' | |
6647 | else | |
6648 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6649 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6650 | fi | |
6651 | ;; | |
6652 | ||
6653 | cegcc*) | |
6654 | # use the weaker test based on 'objdump'. See mingw*. | |
6655 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6656 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6657 | ;; | |
6658 | ||
6659 | darwin* | rhapsody*) | |
6660 | lt_cv_deplibs_check_method=pass_all | |
6661 | ;; | |
6662 | ||
6663 | freebsd* | dragonfly*) | |
6664 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6665 | case $host_cpu in | |
6666 | i*86 ) | |
6667 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6668 | # Let's accept both of them until this is cleared up. | |
6669 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6670 | lt_cv_file_magic_cmd=/usr/bin/file | |
6671 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6672 | ;; | |
6673 | esac | |
6674 | else | |
6675 | lt_cv_deplibs_check_method=pass_all | |
6676 | fi | |
6677 | ;; | |
6678 | ||
6679 | gnu*) | |
6680 | lt_cv_deplibs_check_method=pass_all | |
6681 | ;; | |
6682 | ||
6683 | haiku*) | |
6684 | lt_cv_deplibs_check_method=pass_all | |
6685 | ;; | |
6686 | ||
6687 | hpux10.20* | hpux11*) | |
6688 | lt_cv_file_magic_cmd=/usr/bin/file | |
6689 | case $host_cpu in | |
6690 | ia64*) | |
6691 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6692 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6693 | ;; | |
6694 | hppa*64*) | |
6695 | 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]' | |
6696 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6697 | ;; | |
6698 | *) | |
6699 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6700 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6701 | ;; | |
6702 | esac | |
6703 | ;; | |
6704 | ||
6705 | interix[3-9]*) | |
6706 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6707 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6708 | ;; | |
6709 | ||
6710 | irix5* | irix6* | nonstopux*) | |
6711 | case $LD in | |
6712 | *-32|*"-32 ") libmagic=32-bit;; | |
6713 | *-n32|*"-n32 ") libmagic=N32;; | |
6714 | *-64|*"-64 ") libmagic=64-bit;; | |
6715 | *) libmagic=never-match;; | |
6716 | esac | |
6717 | lt_cv_deplibs_check_method=pass_all | |
6718 | ;; | |
6719 | ||
6720 | # This must be Linux ELF. | |
e9085da5 | 6721 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b4c522fa IB |
6722 | lt_cv_deplibs_check_method=pass_all |
6723 | ;; | |
6724 | ||
6725 | netbsd*) | |
6726 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6727 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6728 | else | |
6729 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6730 | fi | |
6731 | ;; | |
6732 | ||
6733 | newos6*) | |
6734 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6735 | lt_cv_file_magic_cmd=/usr/bin/file | |
6736 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6737 | ;; | |
6738 | ||
6739 | *nto* | *qnx*) | |
6740 | lt_cv_deplibs_check_method=pass_all | |
6741 | ;; | |
6742 | ||
6743 | openbsd*) | |
6744 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6745 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6746 | else | |
6747 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6748 | fi | |
6749 | ;; | |
6750 | ||
6751 | osf3* | osf4* | osf5*) | |
6752 | lt_cv_deplibs_check_method=pass_all | |
6753 | ;; | |
6754 | ||
6755 | rdos*) | |
6756 | lt_cv_deplibs_check_method=pass_all | |
6757 | ;; | |
6758 | ||
6759 | solaris*) | |
6760 | lt_cv_deplibs_check_method=pass_all | |
6761 | ;; | |
6762 | ||
6763 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6764 | lt_cv_deplibs_check_method=pass_all | |
6765 | ;; | |
6766 | ||
6767 | sysv4 | sysv4.3*) | |
6768 | case $host_vendor in | |
6769 | motorola) | |
6770 | 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]' | |
6771 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6772 | ;; | |
6773 | ncr) | |
6774 | lt_cv_deplibs_check_method=pass_all | |
6775 | ;; | |
6776 | sequent) | |
6777 | lt_cv_file_magic_cmd='/bin/file' | |
6778 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6779 | ;; | |
6780 | sni) | |
6781 | lt_cv_file_magic_cmd='/bin/file' | |
6782 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6783 | lt_cv_file_magic_test_file=/lib/libc.so | |
6784 | ;; | |
6785 | siemens) | |
6786 | lt_cv_deplibs_check_method=pass_all | |
6787 | ;; | |
6788 | pc) | |
6789 | lt_cv_deplibs_check_method=pass_all | |
6790 | ;; | |
6791 | esac | |
6792 | ;; | |
6793 | ||
6794 | tpf*) | |
6795 | lt_cv_deplibs_check_method=pass_all | |
6796 | ;; | |
6797 | esac | |
6798 | ||
6799 | fi | |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6801 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6802 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6803 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6804 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | if test -n "$ac_tool_prefix"; then | |
6818 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6819 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6821 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6822 | if ${ac_cv_prog_AR+:} false; then : |
b4c522fa IB |
6823 | $as_echo_n "(cached) " >&6 |
6824 | else | |
6825 | if test -n "$AR"; then | |
6826 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6827 | else | |
6828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6829 | for as_dir in $PATH | |
6830 | do | |
6831 | IFS=$as_save_IFS | |
6832 | test -z "$as_dir" && as_dir=. | |
6833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6835 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6837 | break 2 | |
6838 | fi | |
6839 | done | |
6840 | done | |
6841 | IFS=$as_save_IFS | |
6842 | ||
6843 | fi | |
6844 | fi | |
6845 | AR=$ac_cv_prog_AR | |
6846 | if test -n "$AR"; then | |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6848 | $as_echo "$AR" >&6; } | |
6849 | else | |
6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6851 | $as_echo "no" >&6; } | |
6852 | fi | |
6853 | ||
6854 | ||
6855 | fi | |
6856 | if test -z "$ac_cv_prog_AR"; then | |
6857 | ac_ct_AR=$AR | |
6858 | # Extract the first word of "ar", so it can be a program name with args. | |
6859 | set dummy ar; ac_word=$2 | |
6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6861 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6862 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
b4c522fa IB |
6863 | $as_echo_n "(cached) " >&6 |
6864 | else | |
6865 | if test -n "$ac_ct_AR"; then | |
6866 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6867 | else | |
6868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6869 | for as_dir in $PATH | |
6870 | do | |
6871 | IFS=$as_save_IFS | |
6872 | test -z "$as_dir" && as_dir=. | |
6873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6875 | ac_cv_prog_ac_ct_AR="ar" |
6876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6877 | break 2 | |
6878 | fi | |
6879 | done | |
6880 | done | |
6881 | IFS=$as_save_IFS | |
6882 | ||
6883 | fi | |
6884 | fi | |
6885 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6886 | if test -n "$ac_ct_AR"; then | |
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6888 | $as_echo "$ac_ct_AR" >&6; } | |
6889 | else | |
6890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6891 | $as_echo "no" >&6; } | |
6892 | fi | |
6893 | ||
6894 | if test "x$ac_ct_AR" = x; then | |
6895 | AR="false" | |
6896 | else | |
6897 | case $cross_compiling:$ac_tool_warned in | |
6898 | yes:) | |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6901 | ac_tool_warned=yes ;; | |
6902 | esac | |
6903 | AR=$ac_ct_AR | |
6904 | fi | |
6905 | else | |
6906 | AR="$ac_cv_prog_AR" | |
6907 | fi | |
6908 | ||
6909 | test -z "$AR" && AR=ar | |
6910 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6911 | ||
6912 | ||
6913 | ||
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | if test -n "$ac_tool_prefix"; then | |
6923 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6924 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6926 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6927 | if ${ac_cv_prog_STRIP+:} false; then : |
b4c522fa IB |
6928 | $as_echo_n "(cached) " >&6 |
6929 | else | |
6930 | if test -n "$STRIP"; then | |
6931 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6932 | else | |
6933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6934 | for as_dir in $PATH | |
6935 | do | |
6936 | IFS=$as_save_IFS | |
6937 | test -z "$as_dir" && as_dir=. | |
6938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6940 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6942 | break 2 | |
6943 | fi | |
6944 | done | |
6945 | done | |
6946 | IFS=$as_save_IFS | |
6947 | ||
6948 | fi | |
6949 | fi | |
6950 | STRIP=$ac_cv_prog_STRIP | |
6951 | if test -n "$STRIP"; then | |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6953 | $as_echo "$STRIP" >&6; } | |
6954 | else | |
6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6956 | $as_echo "no" >&6; } | |
6957 | fi | |
6958 | ||
6959 | ||
6960 | fi | |
6961 | if test -z "$ac_cv_prog_STRIP"; then | |
6962 | ac_ct_STRIP=$STRIP | |
6963 | # Extract the first word of "strip", so it can be a program name with args. | |
6964 | set dummy strip; ac_word=$2 | |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6966 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6967 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
b4c522fa IB |
6968 | $as_echo_n "(cached) " >&6 |
6969 | else | |
6970 | if test -n "$ac_ct_STRIP"; then | |
6971 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6972 | else | |
6973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6974 | for as_dir in $PATH | |
6975 | do | |
6976 | IFS=$as_save_IFS | |
6977 | test -z "$as_dir" && as_dir=. | |
6978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6979 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
6980 | ac_cv_prog_ac_ct_STRIP="strip" |
6981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6982 | break 2 | |
6983 | fi | |
6984 | done | |
6985 | done | |
6986 | IFS=$as_save_IFS | |
6987 | ||
6988 | fi | |
6989 | fi | |
6990 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6991 | if test -n "$ac_ct_STRIP"; then | |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6993 | $as_echo "$ac_ct_STRIP" >&6; } | |
6994 | else | |
6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6996 | $as_echo "no" >&6; } | |
6997 | fi | |
6998 | ||
6999 | if test "x$ac_ct_STRIP" = x; then | |
7000 | STRIP=":" | |
7001 | else | |
7002 | case $cross_compiling:$ac_tool_warned in | |
7003 | yes:) | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7005 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7006 | ac_tool_warned=yes ;; | |
7007 | esac | |
7008 | STRIP=$ac_ct_STRIP | |
7009 | fi | |
7010 | else | |
7011 | STRIP="$ac_cv_prog_STRIP" | |
7012 | fi | |
7013 | ||
7014 | test -z "$STRIP" && STRIP=: | |
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | if test -n "$ac_tool_prefix"; then | |
7022 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7023 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7025 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7026 | if ${ac_cv_prog_RANLIB+:} false; then : |
b4c522fa IB |
7027 | $as_echo_n "(cached) " >&6 |
7028 | else | |
7029 | if test -n "$RANLIB"; then | |
7030 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7031 | else | |
7032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7033 | for as_dir in $PATH | |
7034 | do | |
7035 | IFS=$as_save_IFS | |
7036 | test -z "$as_dir" && as_dir=. | |
7037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
7039 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7041 | break 2 | |
7042 | fi | |
7043 | done | |
7044 | done | |
7045 | IFS=$as_save_IFS | |
7046 | ||
7047 | fi | |
7048 | fi | |
7049 | RANLIB=$ac_cv_prog_RANLIB | |
7050 | if test -n "$RANLIB"; then | |
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7052 | $as_echo "$RANLIB" >&6; } | |
7053 | else | |
7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7055 | $as_echo "no" >&6; } | |
7056 | fi | |
7057 | ||
7058 | ||
7059 | fi | |
7060 | if test -z "$ac_cv_prog_RANLIB"; then | |
7061 | ac_ct_RANLIB=$RANLIB | |
7062 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7063 | set dummy ranlib; ac_word=$2 | |
7064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7065 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7066 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
b4c522fa IB |
7067 | $as_echo_n "(cached) " >&6 |
7068 | else | |
7069 | if test -n "$ac_ct_RANLIB"; then | |
7070 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7071 | else | |
7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7073 | for as_dir in $PATH | |
7074 | do | |
7075 | IFS=$as_save_IFS | |
7076 | test -z "$as_dir" && as_dir=. | |
7077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7078 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
7079 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7081 | break 2 | |
7082 | fi | |
7083 | done | |
7084 | done | |
7085 | IFS=$as_save_IFS | |
7086 | ||
7087 | fi | |
7088 | fi | |
7089 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7090 | if test -n "$ac_ct_RANLIB"; then | |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7092 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7093 | else | |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7095 | $as_echo "no" >&6; } | |
7096 | fi | |
7097 | ||
7098 | if test "x$ac_ct_RANLIB" = x; then | |
7099 | RANLIB=":" | |
7100 | else | |
7101 | case $cross_compiling:$ac_tool_warned in | |
7102 | yes:) | |
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7105 | ac_tool_warned=yes ;; | |
7106 | esac | |
7107 | RANLIB=$ac_ct_RANLIB | |
7108 | fi | |
7109 | else | |
7110 | RANLIB="$ac_cv_prog_RANLIB" | |
7111 | fi | |
7112 | ||
7113 | test -z "$RANLIB" && RANLIB=: | |
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | ||
7120 | # Determine commands to create old-style static archives. | |
7121 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7122 | old_postinstall_cmds='chmod 644 $oldlib' | |
7123 | old_postuninstall_cmds= | |
7124 | ||
7125 | if test -n "$RANLIB"; then | |
7126 | case $host_os in | |
7127 | openbsd*) | |
7128 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7129 | ;; | |
7130 | *) | |
7131 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7132 | ;; | |
7133 | esac | |
7134 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7135 | fi | |
7136 | ||
7137 | case $host_os in | |
7138 | darwin*) | |
7139 | lock_old_archive_extraction=yes ;; | |
7140 | *) | |
7141 | lock_old_archive_extraction=no ;; | |
7142 | esac | |
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | ||
7153 | ||
7154 | ||
7155 | ||
7156 | ||
7157 | ||
7158 | ||
7159 | ||
7160 | ||
7161 | ||
7162 | ||
7163 | ||
7164 | ||
7165 | ||
7166 | ||
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
7172 | ||
7173 | ||
7174 | ||
7175 | ||
7176 | ||
7177 | ||
7178 | ||
7179 | ||
7180 | ||
7181 | ||
7182 | # If no C compiler was specified, use CC. | |
7183 | LTCC=${LTCC-"$CC"} | |
7184 | ||
7185 | # If no C compiler flags were specified, use CFLAGS. | |
7186 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7187 | ||
7188 | # Allow CC to be a program name with arguments. | |
7189 | compiler=$CC | |
7190 | ||
7191 | ||
7192 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7194 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 7195 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
b4c522fa IB |
7196 | $as_echo_n "(cached) " >&6 |
7197 | else | |
7198 | ||
7199 | # These are sane defaults that work on at least a few old systems. | |
7200 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7201 | ||
7202 | # Character class describing NM global symbol codes. | |
7203 | symcode='[BCDEGRST]' | |
7204 | ||
7205 | # Regexp to match symbols that can be accessed directly from C. | |
7206 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7207 | ||
7208 | # Define system-specific variables. | |
7209 | case $host_os in | |
7210 | aix*) | |
7211 | symcode='[BCDT]' | |
7212 | ;; | |
7213 | cygwin* | mingw* | pw32* | cegcc*) | |
7214 | symcode='[ABCDGISTW]' | |
7215 | ;; | |
7216 | hpux*) | |
7217 | if test "$host_cpu" = ia64; then | |
7218 | symcode='[ABCDEGRST]' | |
7219 | fi | |
7220 | ;; | |
7221 | irix* | nonstopux*) | |
7222 | symcode='[BCDEGRST]' | |
7223 | ;; | |
7224 | osf*) | |
7225 | symcode='[BCDEGQRST]' | |
7226 | ;; | |
7227 | solaris*) | |
7228 | symcode='[BDRT]' | |
7229 | ;; | |
7230 | sco3.2v5*) | |
7231 | symcode='[DT]' | |
7232 | ;; | |
7233 | sysv4.2uw2*) | |
7234 | symcode='[DT]' | |
7235 | ;; | |
7236 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7237 | symcode='[ABDT]' | |
7238 | ;; | |
7239 | sysv4) | |
7240 | symcode='[DFNSTU]' | |
7241 | ;; | |
7242 | esac | |
7243 | ||
7244 | # If we're using GNU nm, then use its standard symbol codes. | |
7245 | case `$NM -V 2>&1` in | |
7246 | *GNU* | *'with BFD'*) | |
7247 | symcode='[ABCDGIRSTW]' ;; | |
7248 | esac | |
7249 | ||
7250 | # Transform an extracted symbol line into a proper C declaration. | |
7251 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7252 | # so use this general approach. | |
7253 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7254 | ||
7255 | # Transform an extracted symbol line into symbol name and symbol address | |
7256 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7257 | 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'" | |
7258 | ||
7259 | # Handle CRLF in mingw tool chain | |
7260 | opt_cr= | |
7261 | case $build_os in | |
7262 | mingw*) | |
7263 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7264 | ;; | |
7265 | esac | |
7266 | ||
7267 | # Try without a prefix underscore, then with it. | |
7268 | for ac_symprfx in "" "_"; do | |
7269 | ||
7270 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7271 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7272 | ||
7273 | # Write the raw and C identifiers. | |
7274 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7275 | # Fake it for dumpbin and say T for any non-static function | |
7276 | # and D for any global variable. | |
7277 | # Also find C++ and __fastcall symbols from MSVC++, | |
7278 | # which start with @ or ?. | |
7279 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7280 | " {last_section=section; section=\$ 3};"\ | |
7281 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7282 | " \$ 0!~/External *\|/{next};"\ | |
7283 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7284 | " {if(hide[section]) next};"\ | |
7285 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7286 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7287 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7288 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7289 | " ' prfx=^$ac_symprfx" | |
7290 | else | |
7291 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7292 | fi | |
7293 | ||
7294 | # Check to see that the pipe works correctly. | |
7295 | pipe_works=no | |
7296 | ||
7297 | rm -f conftest* | |
7298 | cat > conftest.$ac_ext <<_LT_EOF | |
7299 | #ifdef __cplusplus | |
7300 | extern "C" { | |
7301 | #endif | |
7302 | char nm_test_var; | |
7303 | void nm_test_func(void); | |
7304 | void nm_test_func(void){} | |
7305 | #ifdef __cplusplus | |
7306 | } | |
7307 | #endif | |
7308 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7309 | _LT_EOF | |
7310 | ||
7311 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7312 | (eval $ac_compile) 2>&5 | |
7313 | ac_status=$? | |
7314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7315 | test $ac_status = 0; }; then | |
7316 | # Now try to grab the symbols. | |
7317 | nlist=conftest.nm | |
7318 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7319 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7320 | ac_status=$? | |
7321 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7322 | test $ac_status = 0; } && test -s "$nlist"; then | |
7323 | # Try sorting and uniquifying the output. | |
7324 | if sort "$nlist" | uniq > "$nlist"T; then | |
7325 | mv -f "$nlist"T "$nlist" | |
7326 | else | |
7327 | rm -f "$nlist"T | |
7328 | fi | |
7329 | ||
7330 | # Make sure that we snagged all the symbols we need. | |
7331 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7332 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7333 | cat <<_LT_EOF > conftest.$ac_ext | |
7334 | #ifdef __cplusplus | |
7335 | extern "C" { | |
7336 | #endif | |
7337 | ||
7338 | _LT_EOF | |
7339 | # Now generate the symbol file. | |
7340 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7341 | ||
7342 | cat <<_LT_EOF >> conftest.$ac_ext | |
7343 | ||
7344 | /* The mapping between symbol names and symbols. */ | |
7345 | const struct { | |
7346 | const char *name; | |
7347 | void *address; | |
7348 | } | |
7349 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7350 | { | |
7351 | { "@PROGRAM@", (void *) 0 }, | |
7352 | _LT_EOF | |
7353 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7354 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7355 | {0, (void *) 0} | |
7356 | }; | |
7357 | ||
7358 | /* This works around a problem in FreeBSD linker */ | |
7359 | #ifdef FREEBSD_WORKAROUND | |
7360 | static const void *lt_preloaded_setup() { | |
7361 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7362 | } | |
7363 | #endif | |
7364 | ||
7365 | #ifdef __cplusplus | |
7366 | } | |
7367 | #endif | |
7368 | _LT_EOF | |
7369 | # Now try linking the two files. | |
7370 | mv conftest.$ac_objext conftstm.$ac_objext | |
7371 | lt_save_LIBS="$LIBS" | |
7372 | lt_save_CFLAGS="$CFLAGS" | |
7373 | LIBS="conftstm.$ac_objext" | |
7374 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7375 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7376 | (eval $ac_link) 2>&5 | |
7377 | ac_status=$? | |
7378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7379 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7380 | pipe_works=yes | |
7381 | fi | |
7382 | LIBS="$lt_save_LIBS" | |
7383 | CFLAGS="$lt_save_CFLAGS" | |
7384 | else | |
7385 | echo "cannot find nm_test_func in $nlist" >&5 | |
7386 | fi | |
7387 | else | |
7388 | echo "cannot find nm_test_var in $nlist" >&5 | |
7389 | fi | |
7390 | else | |
7391 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7392 | fi | |
7393 | else | |
7394 | echo "$progname: failed program was:" >&5 | |
7395 | cat conftest.$ac_ext >&5 | |
7396 | fi | |
7397 | rm -rf conftest* conftst* | |
7398 | ||
7399 | # Do not use the global_symbol_pipe unless it works. | |
7400 | if test "$pipe_works" = yes; then | |
7401 | break | |
7402 | else | |
7403 | lt_cv_sys_global_symbol_pipe= | |
7404 | fi | |
7405 | done | |
7406 | ||
7407 | fi | |
7408 | ||
7409 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7410 | lt_cv_sys_global_symbol_to_cdecl= | |
7411 | fi | |
7412 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7414 | $as_echo "failed" >&6; } | |
7415 | else | |
7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7417 | $as_echo "ok" >&6; } | |
7418 | fi | |
7419 | ||
7420 | ||
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | ||
7427 | ||
7428 | ||
7429 | ||
7430 | ||
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | ||
7438 | ||
b4c522fa IB |
7439 | |
7440 | ||
7441 | # Check whether --enable-libtool-lock was given. | |
7442 | if test "${enable_libtool_lock+set}" = set; then : | |
7443 | enableval=$enable_libtool_lock; | |
7444 | fi | |
7445 | ||
7446 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7447 | ||
7448 | # Some flags need to be propagated to the compiler or linker for good | |
7449 | # libtool support. | |
7450 | case $host in | |
7451 | ia64-*-hpux*) | |
7452 | # Find out which ABI we are using. | |
7453 | echo 'int i;' > conftest.$ac_ext | |
7454 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7455 | (eval $ac_compile) 2>&5 | |
7456 | ac_status=$? | |
7457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7458 | test $ac_status = 0; }; then | |
7459 | case `/usr/bin/file conftest.$ac_objext` in | |
7460 | *ELF-32*) | |
7461 | HPUX_IA64_MODE="32" | |
7462 | ;; | |
7463 | *ELF-64*) | |
7464 | HPUX_IA64_MODE="64" | |
7465 | ;; | |
7466 | esac | |
7467 | fi | |
7468 | rm -rf conftest* | |
7469 | ;; | |
7470 | *-*-irix6*) | |
7471 | # Find out which ABI we are using. | |
7472 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7473 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7474 | (eval $ac_compile) 2>&5 | |
7475 | ac_status=$? | |
7476 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7477 | test $ac_status = 0; }; then | |
7478 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7479 | case `/usr/bin/file conftest.$ac_objext` in | |
7480 | *32-bit*) | |
7481 | LD="${LD-ld} -melf32bsmip" | |
7482 | ;; | |
7483 | *N32*) | |
7484 | LD="${LD-ld} -melf32bmipn32" | |
7485 | ;; | |
7486 | *64-bit*) | |
7487 | LD="${LD-ld} -melf64bmip" | |
7488 | ;; | |
7489 | esac | |
7490 | else | |
7491 | case `/usr/bin/file conftest.$ac_objext` in | |
7492 | *32-bit*) | |
7493 | LD="${LD-ld} -32" | |
7494 | ;; | |
7495 | *N32*) | |
7496 | LD="${LD-ld} -n32" | |
7497 | ;; | |
7498 | *64-bit*) | |
7499 | LD="${LD-ld} -64" | |
7500 | ;; | |
7501 | esac | |
7502 | fi | |
7503 | fi | |
7504 | rm -rf conftest* | |
7505 | ;; | |
7506 | ||
7507 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7508 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7509 | # Find out which ABI we are using. | |
7510 | echo 'int i;' > conftest.$ac_ext | |
7511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7512 | (eval $ac_compile) 2>&5 | |
7513 | ac_status=$? | |
7514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7515 | test $ac_status = 0; }; then | |
7516 | case `/usr/bin/file conftest.o` in | |
7517 | *32-bit*) | |
7518 | case $host in | |
7519 | x86_64-*kfreebsd*-gnu) | |
7520 | LD="${LD-ld} -m elf_i386_fbsd" | |
7521 | ;; | |
7522 | x86_64-*linux*) | |
7523 | case `/usr/bin/file conftest.o` in | |
7524 | *x86-64*) | |
7525 | LD="${LD-ld} -m elf32_x86_64" | |
7526 | ;; | |
7527 | *) | |
7528 | LD="${LD-ld} -m elf_i386" | |
7529 | ;; | |
7530 | esac | |
7531 | ;; | |
7532 | powerpc64le-*linux*) | |
7533 | LD="${LD-ld} -m elf32lppclinux" | |
7534 | ;; | |
7535 | powerpc64-*linux*) | |
7536 | LD="${LD-ld} -m elf32ppclinux" | |
7537 | ;; | |
7538 | s390x-*linux*) | |
7539 | LD="${LD-ld} -m elf_s390" | |
7540 | ;; | |
7541 | sparc64-*linux*) | |
7542 | LD="${LD-ld} -m elf32_sparc" | |
7543 | ;; | |
7544 | esac | |
7545 | ;; | |
7546 | *64-bit*) | |
7547 | case $host in | |
7548 | x86_64-*kfreebsd*-gnu) | |
7549 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7550 | ;; | |
7551 | x86_64-*linux*) | |
7552 | LD="${LD-ld} -m elf_x86_64" | |
7553 | ;; | |
7554 | powerpcle-*linux*) | |
7555 | LD="${LD-ld} -m elf64lppc" | |
7556 | ;; | |
7557 | powerpc-*linux*) | |
7558 | LD="${LD-ld} -m elf64ppc" | |
7559 | ;; | |
7560 | s390*-*linux*|s390*-*tpf*) | |
7561 | LD="${LD-ld} -m elf64_s390" | |
7562 | ;; | |
7563 | sparc*-*linux*) | |
7564 | LD="${LD-ld} -m elf64_sparc" | |
7565 | ;; | |
7566 | esac | |
7567 | ;; | |
7568 | esac | |
7569 | fi | |
7570 | rm -rf conftest* | |
7571 | ;; | |
7572 | ||
7573 | *-*-sco3.2v5*) | |
7574 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7575 | SAVE_CFLAGS="$CFLAGS" | |
7576 | CFLAGS="$CFLAGS -belf" | |
7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7578 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 7579 | if ${lt_cv_cc_needs_belf+:} false; then : |
b4c522fa IB |
7580 | $as_echo_n "(cached) " >&6 |
7581 | else | |
7582 | ac_ext=c | |
7583 | ac_cpp='$CPP $CPPFLAGS' | |
7584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7587 | ||
7588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7589 | /* end confdefs.h. */ | |
7590 | ||
7591 | int | |
7592 | main () | |
7593 | { | |
7594 | ||
7595 | ; | |
7596 | return 0; | |
7597 | } | |
7598 | _ACEOF | |
7599 | if ac_fn_c_try_link "$LINENO"; then : | |
7600 | lt_cv_cc_needs_belf=yes | |
7601 | else | |
7602 | lt_cv_cc_needs_belf=no | |
7603 | fi | |
7604 | rm -f core conftest.err conftest.$ac_objext \ | |
7605 | conftest$ac_exeext conftest.$ac_ext | |
7606 | ac_ext=c | |
7607 | ac_cpp='$CPP $CPPFLAGS' | |
7608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7611 | ||
7612 | fi | |
7613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7614 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7615 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7616 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7617 | CFLAGS="$SAVE_CFLAGS" | |
7618 | fi | |
7619 | ;; | |
7620 | sparc*-*solaris*) | |
7621 | # Find out which ABI we are using. | |
7622 | echo 'int i;' > conftest.$ac_ext | |
7623 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7624 | (eval $ac_compile) 2>&5 | |
7625 | ac_status=$? | |
7626 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7627 | test $ac_status = 0; }; then | |
7628 | case `/usr/bin/file conftest.o` in | |
7629 | *64-bit*) | |
7630 | case $lt_cv_prog_gnu_ld in | |
7631 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7632 | *) | |
7633 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7634 | LD="${LD-ld} -64" | |
7635 | fi | |
7636 | ;; | |
7637 | esac | |
7638 | ;; | |
7639 | esac | |
7640 | fi | |
7641 | rm -rf conftest* | |
7642 | ;; | |
7643 | esac | |
7644 | ||
7645 | need_locks="$enable_libtool_lock" | |
7646 | ||
7647 | ||
7648 | case $host_os in | |
7649 | rhapsody* | darwin*) | |
7650 | if test -n "$ac_tool_prefix"; then | |
7651 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7652 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7654 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7655 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
b4c522fa IB |
7656 | $as_echo_n "(cached) " >&6 |
7657 | else | |
7658 | if test -n "$DSYMUTIL"; then | |
7659 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7660 | else | |
7661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7662 | for as_dir in $PATH | |
7663 | do | |
7664 | IFS=$as_save_IFS | |
7665 | test -z "$as_dir" && as_dir=. | |
7666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b4c522fa IB |
7668 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7670 | break 2 | |
7671 | fi | |
7672 | done | |
7673 | done | |
7674 | IFS=$as_save_IFS | |
7675 | ||
7676 | fi | |
7677 | fi | |
7678 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7679 | if test -n "$DSYMUTIL"; then | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7681 | $as_echo "$DSYMUTIL" >&6; } | |
7682 | else | |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7684 | $as_echo "no" >&6; } | |
7685 | fi | |
7686 | ||
7687 | ||
7688 | fi | |
7689 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7690 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7691 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7692 | set dummy dsymutil; ac_word=$2 | |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7694 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7695 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
b4c522fa IB |
7696 | $as_echo_n "(cached) " >&6 |
7697 | else | |
7698 | if test -n "$ac_ct_DSYMUTIL"; then | |
7699 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7700 | else | |
7701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7702 | for as_dir in $PATH | |
7703 | do | |
7704 | IFS=$as_save_IFS | |
7705 | test -z "$as_dir" && as_dir=. | |
7706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7707 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 7708 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b4c522fa IB |
7709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7710 | break 2 | |
7711 | fi | |
7712 | done | |
7713 | done | |
7714 | IFS=$as_save_IFS | |
7715 | ||
7716 | fi | |
7717 | fi | |
235d1c46 RO |
7718 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7719 | if test -n "$ac_ct_DSYMUTIL"; then | |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7721 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
b4c522fa IB |
7722 | else |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7724 | $as_echo "no" >&6; } | |
7725 | fi | |
7726 | ||
235d1c46 RO |
7727 | if test "x$ac_ct_DSYMUTIL" = x; then |
7728 | DSYMUTIL=":" | |
b4c522fa IB |
7729 | else |
7730 | case $cross_compiling:$ac_tool_warned in | |
7731 | yes:) | |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7733 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7734 | ac_tool_warned=yes ;; | |
7735 | esac | |
235d1c46 | 7736 | DSYMUTIL=$ac_ct_DSYMUTIL |
b4c522fa IB |
7737 | fi |
7738 | else | |
235d1c46 | 7739 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
b4c522fa IB |
7740 | fi |
7741 | ||
7742 | if test -n "$ac_tool_prefix"; then | |
235d1c46 RO |
7743 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7744 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b4c522fa IB |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7746 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 7747 | if ${ac_cv_prog_NMEDIT+:} false; then : |
b4c522fa IB |
7748 | $as_echo_n "(cached) " >&6 |
7749 | else | |
235d1c46 RO |
7750 | if test -n "$NMEDIT"; then |
7751 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
b4c522fa IB |
7752 | else |
7753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7754 | for as_dir in $PATH | |
7755 | do | |
7756 | IFS=$as_save_IFS | |
7757 | test -z "$as_dir" && as_dir=. | |
7758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 7760 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b4c522fa IB |
7761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7762 | break 2 | |
7763 | fi | |
7764 | done | |
7765 | done | |
7766 | IFS=$as_save_IFS | |
7767 | ||
7768 | fi | |
7769 | fi | |
235d1c46 RO |
7770 | NMEDIT=$ac_cv_prog_NMEDIT |
7771 | if test -n "$NMEDIT"; then | |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7773 | $as_echo "$NMEDIT" >&6; } | |
b4c522fa IB |
7774 | else |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7776 | $as_echo "no" >&6; } | |
7777 | fi | |
7778 | ||
7779 | ||
7780 | fi | |
235d1c46 RO |
7781 | if test -z "$ac_cv_prog_NMEDIT"; then |
7782 | ac_ct_NMEDIT=$NMEDIT | |
7783 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7784 | set dummy nmedit; ac_word=$2 | |
b4c522fa IB |
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7786 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 7787 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
b4c522fa IB |
7788 | $as_echo_n "(cached) " >&6 |
7789 | else | |
235d1c46 RO |
7790 | if test -n "$ac_ct_NMEDIT"; then |
7791 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
b4c522fa IB |
7792 | else |
7793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7794 | for as_dir in $PATH | |
7795 | do | |
7796 | IFS=$as_save_IFS | |
7797 | test -z "$as_dir" && as_dir=. | |
7798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 7800 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b4c522fa IB |
7801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7802 | break 2 | |
7803 | fi | |
7804 | done | |
7805 | done | |
7806 | IFS=$as_save_IFS | |
7807 | ||
7808 | fi | |
7809 | fi | |
235d1c46 RO |
7810 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7811 | if test -n "$ac_ct_NMEDIT"; then | |
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7813 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
b4c522fa IB |
7814 | else |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7816 | $as_echo "no" >&6; } | |
7817 | fi | |
7818 | ||
235d1c46 RO |
7819 | if test "x$ac_ct_NMEDIT" = x; then |
7820 | NMEDIT=":" | |
b4c522fa IB |
7821 | else |
7822 | case $cross_compiling:$ac_tool_warned in | |
7823 | yes:) | |
7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7826 | ac_tool_warned=yes ;; | |
7827 | esac | |
235d1c46 | 7828 | NMEDIT=$ac_ct_NMEDIT |
b4c522fa IB |
7829 | fi |
7830 | else | |
235d1c46 | 7831 | NMEDIT="$ac_cv_prog_NMEDIT" |
b4c522fa IB |
7832 | fi |
7833 | ||
7834 | if test -n "$ac_tool_prefix"; then | |
235d1c46 RO |
7835 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7836 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b4c522fa IB |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7838 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 7839 | if ${ac_cv_prog_LIPO+:} false; then : |
b4c522fa IB |
7840 | $as_echo_n "(cached) " >&6 |
7841 | else | |
235d1c46 RO |
7842 | if test -n "$LIPO"; then |
7843 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
b4c522fa IB |
7844 | else |
7845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7846 | for as_dir in $PATH | |
7847 | do | |
7848 | IFS=$as_save_IFS | |
7849 | test -z "$as_dir" && as_dir=. | |
7850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 7852 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b4c522fa IB |
7853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7854 | break 2 | |
7855 | fi | |
7856 | done | |
7857 | done | |
7858 | IFS=$as_save_IFS | |
7859 | ||
7860 | fi | |
7861 | fi | |
235d1c46 RO |
7862 | LIPO=$ac_cv_prog_LIPO |
7863 | if test -n "$LIPO"; then | |
7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7865 | $as_echo "$LIPO" >&6; } | |
b4c522fa IB |
7866 | else |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7868 | $as_echo "no" >&6; } | |
7869 | fi | |
7870 | ||
7871 | ||
7872 | fi | |
235d1c46 RO |
7873 | if test -z "$ac_cv_prog_LIPO"; then |
7874 | ac_ct_LIPO=$LIPO | |
7875 | # Extract the first word of "lipo", so it can be a program name with args. | |
7876 | set dummy lipo; ac_word=$2 | |
b4c522fa IB |
7877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7878 | $as_echo_n "checking for $ac_word... " >&6; } | |
235d1c46 | 7879 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
b4c522fa IB |
7880 | $as_echo_n "(cached) " >&6 |
7881 | else | |
235d1c46 RO |
7882 | if test -n "$ac_ct_LIPO"; then |
7883 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
b4c522fa IB |
7884 | else |
7885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7886 | for as_dir in $PATH | |
7887 | do | |
7888 | IFS=$as_save_IFS | |
7889 | test -z "$as_dir" && as_dir=. | |
7890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
235d1c46 | 7892 | ac_cv_prog_ac_ct_LIPO="lipo" |
b4c522fa IB |
7893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7894 | break 2 | |
7895 | fi | |
7896 | done | |
7897 | done | |
7898 | IFS=$as_save_IFS | |
7899 | ||
7900 | fi | |
7901 | fi | |
235d1c46 RO |
7902 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7903 | if test -n "$ac_ct_LIPO"; then | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7905 | $as_echo "$ac_ct_LIPO" >&6; } | |
b4c522fa IB |
7906 | else |
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7908 | $as_echo "no" >&6; } | |
7909 | fi | |
7910 | ||
235d1c46 RO |
7911 | if test "x$ac_ct_LIPO" = x; then |
7912 | LIPO=":" | |
b4c522fa IB |
7913 | else |
7914 | case $cross_compiling:$ac_tool_warned in | |
7915 | yes:) | |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7918 | ac_tool_warned=yes ;; | |
7919 | esac | |
235d1c46 | 7920 | LIPO=$ac_ct_LIPO |
b4c522fa IB |
7921 | fi |
7922 | else | |
235d1c46 | 7923 | LIPO="$ac_cv_prog_LIPO" |
b4c522fa IB |
7924 | fi |
7925 | ||
235d1c46 RO |
7926 | if test -n "$ac_tool_prefix"; then |
7927 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7928 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7930 | $as_echo_n "checking for $ac_word... " >&6; } | |
7931 | if ${ac_cv_prog_OTOOL+:} false; then : | |
b4c522fa IB |
7932 | $as_echo_n "(cached) " >&6 |
7933 | else | |
235d1c46 RO |
7934 | if test -n "$OTOOL"; then |
7935 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
b4c522fa | 7936 | else |
235d1c46 RO |
7937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7938 | for as_dir in $PATH | |
7939 | do | |
7940 | IFS=$as_save_IFS | |
7941 | test -z "$as_dir" && as_dir=. | |
7942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7944 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7946 | break 2 | |
7947 | fi | |
7948 | done | |
7949 | done | |
7950 | IFS=$as_save_IFS | |
b4c522fa | 7951 | |
b4c522fa | 7952 | fi |
b4c522fa | 7953 | fi |
235d1c46 RO |
7954 | OTOOL=$ac_cv_prog_OTOOL |
7955 | if test -n "$OTOOL"; then | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7957 | $as_echo "$OTOOL" >&6; } | |
b4c522fa | 7958 | else |
235d1c46 RO |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7960 | $as_echo "no" >&6; } | |
b4c522fa | 7961 | fi |
b4c522fa | 7962 | |
235d1c46 | 7963 | |
b4c522fa | 7964 | fi |
235d1c46 RO |
7965 | if test -z "$ac_cv_prog_OTOOL"; then |
7966 | ac_ct_OTOOL=$OTOOL | |
7967 | # Extract the first word of "otool", so it can be a program name with args. | |
7968 | set dummy otool; ac_word=$2 | |
7969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7970 | $as_echo_n "checking for $ac_word... " >&6; } | |
7971 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
b4c522fa IB |
7972 | $as_echo_n "(cached) " >&6 |
7973 | else | |
235d1c46 RO |
7974 | if test -n "$ac_ct_OTOOL"; then |
7975 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7976 | else | |
7977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7978 | for as_dir in $PATH | |
b4c522fa | 7979 | do |
235d1c46 RO |
7980 | IFS=$as_save_IFS |
7981 | test -z "$as_dir" && as_dir=. | |
7982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7983 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7984 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7986 | break 2 | |
7987 | fi | |
7988 | done | |
7989 | done | |
7990 | IFS=$as_save_IFS | |
b4c522fa | 7991 | |
235d1c46 RO |
7992 | fi |
7993 | fi | |
7994 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7995 | if test -n "$ac_ct_OTOOL"; then | |
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7997 | $as_echo "$ac_ct_OTOOL" >&6; } | |
b4c522fa | 7998 | else |
235d1c46 RO |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8000 | $as_echo "no" >&6; } | |
b4c522fa | 8001 | fi |
b4c522fa | 8002 | |
235d1c46 RO |
8003 | if test "x$ac_ct_OTOOL" = x; then |
8004 | OTOOL=":" | |
8005 | else | |
8006 | case $cross_compiling:$ac_tool_warned in | |
8007 | yes:) | |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8010 | ac_tool_warned=yes ;; | |
8011 | esac | |
8012 | OTOOL=$ac_ct_OTOOL | |
8013 | fi | |
b4c522fa | 8014 | else |
235d1c46 | 8015 | OTOOL="$ac_cv_prog_OTOOL" |
b4c522fa | 8016 | fi |
b4c522fa | 8017 | |
235d1c46 RO |
8018 | if test -n "$ac_tool_prefix"; then |
8019 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8020 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8022 | $as_echo_n "checking for $ac_word... " >&6; } | |
8023 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8024 | $as_echo_n "(cached) " >&6 | |
8025 | else | |
8026 | if test -n "$OTOOL64"; then | |
8027 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8028 | else | |
8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8030 | for as_dir in $PATH | |
8031 | do | |
8032 | IFS=$as_save_IFS | |
8033 | test -z "$as_dir" && as_dir=. | |
8034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8036 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8038 | break 2 | |
8039 | fi | |
b4c522fa | 8040 | done |
235d1c46 RO |
8041 | done |
8042 | IFS=$as_save_IFS | |
8043 | ||
8044 | fi | |
8045 | fi | |
8046 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8047 | if test -n "$OTOOL64"; then | |
8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8049 | $as_echo "$OTOOL64" >&6; } | |
8050 | else | |
8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8052 | $as_echo "no" >&6; } | |
b4c522fa IB |
8053 | fi |
8054 | ||
b4c522fa IB |
8055 | |
8056 | fi | |
235d1c46 RO |
8057 | if test -z "$ac_cv_prog_OTOOL64"; then |
8058 | ac_ct_OTOOL64=$OTOOL64 | |
8059 | # Extract the first word of "otool64", so it can be a program name with args. | |
8060 | set dummy otool64; ac_word=$2 | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8062 | $as_echo_n "checking for $ac_word... " >&6; } | |
8063 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8064 | $as_echo_n "(cached) " >&6 | |
b4c522fa | 8065 | else |
235d1c46 RO |
8066 | if test -n "$ac_ct_OTOOL64"; then |
8067 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8068 | else | |
8069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8070 | for as_dir in $PATH | |
b4c522fa | 8071 | do |
235d1c46 RO |
8072 | IFS=$as_save_IFS |
8073 | test -z "$as_dir" && as_dir=. | |
8074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8076 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8078 | break 2 | |
8079 | fi | |
8080 | done | |
8081 | done | |
8082 | IFS=$as_save_IFS | |
b4c522fa | 8083 | |
b4c522fa | 8084 | fi |
235d1c46 RO |
8085 | fi |
8086 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8087 | if test -n "$ac_ct_OTOOL64"; then | |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8089 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
b4c522fa | 8090 | else |
235d1c46 RO |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8092 | $as_echo "no" >&6; } | |
b4c522fa | 8093 | fi |
b4c522fa | 8094 | |
235d1c46 RO |
8095 | if test "x$ac_ct_OTOOL64" = x; then |
8096 | OTOOL64=":" | |
8097 | else | |
8098 | case $cross_compiling:$ac_tool_warned in | |
8099 | yes:) | |
8100 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8101 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8102 | ac_tool_warned=yes ;; | |
8103 | esac | |
8104 | OTOOL64=$ac_ct_OTOOL64 | |
8105 | fi | |
b4c522fa | 8106 | else |
235d1c46 | 8107 | OTOOL64="$ac_cv_prog_OTOOL64" |
b4c522fa IB |
8108 | fi |
8109 | ||
b4c522fa IB |
8110 | |
8111 | ||
b4c522fa | 8112 | |
b4c522fa | 8113 | |
b4c522fa | 8114 | |
b4c522fa | 8115 | |
b4c522fa | 8116 | |
b4c522fa | 8117 | |
b4c522fa | 8118 | |
b4c522fa | 8119 | |
b4c522fa | 8120 | |
b4c522fa | 8121 | |
b4c522fa | 8122 | |
235d1c46 RO |
8123 | |
8124 | ||
8125 | ||
8126 | ||
8127 | ||
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8137 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8138 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8139 | $as_echo_n "(cached) " >&6 | |
b4c522fa | 8140 | else |
235d1c46 RO |
8141 | lt_cv_apple_cc_single_mod=no |
8142 | if test -z "${LT_MULTI_MODULE}"; then | |
8143 | # By default we will add the -single_module flag. You can override | |
8144 | # by either setting the environment variable LT_MULTI_MODULE | |
8145 | # non-empty at configure time, or by adding -multi_module to the | |
8146 | # link flags. | |
8147 | rm -rf libconftest.dylib* | |
8148 | echo "int foo(void){return 1;}" > conftest.c | |
8149 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8150 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8151 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8152 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8153 | _lt_result=$? | |
8154 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8155 | lt_cv_apple_cc_single_mod=yes | |
8156 | else | |
8157 | cat conftest.err >&5 | |
8158 | fi | |
8159 | rm -rf libconftest.dylib* | |
8160 | rm -f conftest.* | |
8161 | fi | |
8162 | fi | |
8163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8164 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8166 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8167 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8168 | $as_echo_n "(cached) " >&6 | |
8169 | else | |
8170 | lt_cv_ld_exported_symbols_list=no | |
8171 | save_LDFLAGS=$LDFLAGS | |
8172 | echo "_main" > conftest.sym | |
8173 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b4c522fa | 8175 | /* end confdefs.h. */ |
b4c522fa | 8176 | |
b4c522fa IB |
8177 | int |
8178 | main () | |
8179 | { | |
235d1c46 RO |
8180 | |
8181 | ; | |
b4c522fa IB |
8182 | return 0; |
8183 | } | |
8184 | _ACEOF | |
235d1c46 RO |
8185 | if ac_fn_c_try_link "$LINENO"; then : |
8186 | lt_cv_ld_exported_symbols_list=yes | |
b4c522fa | 8187 | else |
235d1c46 | 8188 | lt_cv_ld_exported_symbols_list=no |
b4c522fa | 8189 | fi |
235d1c46 RO |
8190 | rm -f core conftest.err conftest.$ac_objext \ |
8191 | conftest$ac_exeext conftest.$ac_ext | |
8192 | LDFLAGS="$save_LDFLAGS" | |
b4c522fa IB |
8193 | |
8194 | fi | |
235d1c46 RO |
8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8196 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8198 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8199 | if ${lt_cv_ld_force_load+:} false; then : | |
8200 | $as_echo_n "(cached) " >&6 | |
8201 | else | |
8202 | lt_cv_ld_force_load=no | |
8203 | cat > conftest.c << _LT_EOF | |
8204 | int forced_loaded() { return 2;} | |
8205 | _LT_EOF | |
8206 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8207 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8208 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8209 | $AR cru libconftest.a conftest.o 2>&5 | |
8210 | cat > conftest.c << _LT_EOF | |
8211 | int main() { return 0;} | |
8212 | _LT_EOF | |
8213 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8214 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8215 | _lt_result=$? | |
8216 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8217 | lt_cv_ld_force_load=yes | |
8218 | else | |
8219 | cat conftest.err >&5 | |
8220 | fi | |
8221 | rm -f conftest.err libconftest.a conftest conftest.c | |
8222 | rm -rf conftest.dSYM | |
b4c522fa IB |
8223 | |
8224 | fi | |
235d1c46 RO |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8226 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
8227 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
8228 | # build without first building modern cctools / linker. | |
8229 | case $host_cpu-$host_os in | |
8230 | *-rhapsody* | *-darwin1.[012]) | |
235d1c46 | 8231 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 8232 | *-darwin1.*) |
235d1c46 | 8233 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
8234 | *-darwin*) |
8235 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
8236 | # deployment target is forced to an earlier version. | |
8237 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
8238 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
8239 | ;; | |
235d1c46 | 8240 | 10.[012][,.]*) |
1352bc88 IS |
8241 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8242 | ;; | |
8243 | *) | |
8244 | ;; | |
8245 | esac | |
235d1c46 RO |
8246 | ;; |
8247 | esac | |
8248 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8249 | _lt_dar_single_mod='$single_module' | |
8250 | fi | |
8251 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8252 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8253 | else | |
8254 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8255 | fi | |
8256 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8257 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8258 | else | |
8259 | _lt_dsymutil= | |
8260 | fi | |
8261 | ;; | |
8262 | esac | |
b4c522fa IB |
8263 | |
8264 | for ac_header in dlfcn.h | |
8265 | do : | |
8266 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8267 | " | |
22e05272 | 8268 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b4c522fa IB |
8269 | cat >>confdefs.h <<_ACEOF |
8270 | #define HAVE_DLFCN_H 1 | |
8271 | _ACEOF | |
8272 | ||
8273 | fi | |
8274 | ||
8275 | done | |
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | # Set options | |
8282 | enable_dlopen=yes | |
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | enable_win32_dll=no | |
8288 | ||
8289 | ||
8290 | # Check whether --enable-shared was given. | |
8291 | if test "${enable_shared+set}" = set; then : | |
8292 | enableval=$enable_shared; p=${PACKAGE-default} | |
8293 | case $enableval in | |
8294 | yes) enable_shared=yes ;; | |
8295 | no) enable_shared=no ;; | |
8296 | *) | |
8297 | enable_shared=no | |
8298 | # Look at the argument we got. We use all the common list separators. | |
8299 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8300 | for pkg in $enableval; do | |
8301 | IFS="$lt_save_ifs" | |
8302 | if test "X$pkg" = "X$p"; then | |
8303 | enable_shared=yes | |
8304 | fi | |
8305 | done | |
8306 | IFS="$lt_save_ifs" | |
8307 | ;; | |
8308 | esac | |
8309 | else | |
8310 | enable_shared=yes | |
8311 | fi | |
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | ||
8318 | ||
8319 | ||
8320 | ||
8321 | # Check whether --enable-static was given. | |
8322 | if test "${enable_static+set}" = set; then : | |
8323 | enableval=$enable_static; p=${PACKAGE-default} | |
8324 | case $enableval in | |
8325 | yes) enable_static=yes ;; | |
8326 | no) enable_static=no ;; | |
8327 | *) | |
8328 | enable_static=no | |
8329 | # Look at the argument we got. We use all the common list separators. | |
8330 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8331 | for pkg in $enableval; do | |
8332 | IFS="$lt_save_ifs" | |
8333 | if test "X$pkg" = "X$p"; then | |
8334 | enable_static=yes | |
8335 | fi | |
8336 | done | |
8337 | IFS="$lt_save_ifs" | |
8338 | ;; | |
8339 | esac | |
8340 | else | |
8341 | enable_static=yes | |
8342 | fi | |
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
8348 | ||
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | # Check whether --with-pic was given. | |
8354 | if test "${with_pic+set}" = set; then : | |
8355 | withval=$with_pic; pic_mode="$withval" | |
8356 | else | |
8357 | pic_mode=default | |
8358 | fi | |
8359 | ||
8360 | ||
8361 | test -z "$pic_mode" && pic_mode=default | |
8362 | ||
8363 | ||
8364 | ||
8365 | ||
8366 | ||
8367 | ||
8368 | ||
8369 | # Check whether --enable-fast-install was given. | |
8370 | if test "${enable_fast_install+set}" = set; then : | |
8371 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8372 | case $enableval in | |
8373 | yes) enable_fast_install=yes ;; | |
8374 | no) enable_fast_install=no ;; | |
8375 | *) | |
8376 | enable_fast_install=no | |
8377 | # Look at the argument we got. We use all the common list separators. | |
8378 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8379 | for pkg in $enableval; do | |
8380 | IFS="$lt_save_ifs" | |
8381 | if test "X$pkg" = "X$p"; then | |
8382 | enable_fast_install=yes | |
8383 | fi | |
8384 | done | |
8385 | IFS="$lt_save_ifs" | |
8386 | ;; | |
8387 | esac | |
8388 | else | |
8389 | enable_fast_install=yes | |
8390 | fi | |
8391 | ||
8392 | ||
8393 | ||
8394 | ||
8395 | ||
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
8401 | ||
8402 | # This can be used to rebuild libtool when needed | |
8403 | LIBTOOL_DEPS="$ltmain" | |
8404 | ||
8405 | # Always use our own libtool. | |
8406 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | ||
8412 | ||
8413 | ||
8414 | ||
8415 | ||
8416 | ||
8417 | ||
8418 | ||
8419 | ||
8420 | ||
8421 | ||
8422 | ||
8423 | ||
8424 | ||
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | test -z "$LN_S" && LN_S="ln -s" | |
8434 | ||
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | ||
8448 | if test -n "${ZSH_VERSION+set}" ; then | |
8449 | setopt NO_GLOB_SUBST | |
8450 | fi | |
8451 | ||
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8453 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8454 | if ${lt_cv_objdir+:} false; then : |
b4c522fa IB |
8455 | $as_echo_n "(cached) " >&6 |
8456 | else | |
8457 | rm -f .libs 2>/dev/null | |
8458 | mkdir .libs 2>/dev/null | |
8459 | if test -d .libs; then | |
8460 | lt_cv_objdir=.libs | |
8461 | else | |
8462 | # MS-DOS does not allow filenames that begin with a dot. | |
8463 | lt_cv_objdir=_libs | |
8464 | fi | |
8465 | rmdir .libs 2>/dev/null | |
8466 | fi | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8468 | $as_echo "$lt_cv_objdir" >&6; } | |
8469 | objdir=$lt_cv_objdir | |
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | cat >>confdefs.h <<_ACEOF | |
8476 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8477 | _ACEOF | |
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | case $host_os in | |
8483 | aix3*) | |
8484 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8485 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8486 | # vanish in a puff of smoke. | |
8487 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8488 | COLLECT_NAMES= | |
8489 | export COLLECT_NAMES | |
8490 | fi | |
8491 | ;; | |
8492 | esac | |
8493 | ||
8494 | # Global variables: | |
8495 | ofile=libtool | |
8496 | can_build_shared=yes | |
8497 | ||
8498 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8499 | # which needs '.lib'). | |
8500 | libext=a | |
8501 | ||
8502 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8503 | ||
8504 | old_CC="$CC" | |
8505 | old_CFLAGS="$CFLAGS" | |
8506 | ||
8507 | # Set sane defaults for various variables | |
8508 | test -z "$CC" && CC=cc | |
8509 | test -z "$LTCC" && LTCC=$CC | |
8510 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8511 | test -z "$LD" && LD=ld | |
8512 | test -z "$ac_objext" && ac_objext=o | |
8513 | ||
8514 | for cc_temp in $compiler""; do | |
8515 | case $cc_temp in | |
8516 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8517 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8518 | \-*) ;; | |
8519 | *) break;; | |
8520 | esac | |
8521 | done | |
8522 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8523 | ||
8524 | ||
8525 | # Only perform the check for file, if the check method requires it | |
8526 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8527 | case $deplibs_check_method in | |
8528 | file_magic*) | |
8529 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8531 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8532 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
b4c522fa IB |
8533 | $as_echo_n "(cached) " >&6 |
8534 | else | |
8535 | case $MAGIC_CMD in | |
8536 | [\\/*] | ?:[\\/]*) | |
8537 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8538 | ;; | |
8539 | *) | |
8540 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8541 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8542 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8543 | for ac_dir in $ac_dummy; do | |
8544 | IFS="$lt_save_ifs" | |
8545 | test -z "$ac_dir" && ac_dir=. | |
8546 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8547 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8548 | if test -n "$file_magic_test_file"; then | |
8549 | case $deplibs_check_method in | |
8550 | "file_magic "*) | |
8551 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8552 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8553 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8554 | $EGREP "$file_magic_regex" > /dev/null; then | |
8555 | : | |
8556 | else | |
8557 | cat <<_LT_EOF 1>&2 | |
8558 | ||
8559 | *** Warning: the command libtool uses to detect shared libraries, | |
8560 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8561 | *** The result is that libtool may fail to recognize shared libraries | |
8562 | *** as such. This will affect the creation of libtool libraries that | |
8563 | *** depend on shared libraries, but programs linked with such libtool | |
8564 | *** libraries will work regardless of this problem. Nevertheless, you | |
8565 | *** may want to report the problem to your system manager and/or to | |
8566 | *** bug-libtool@gnu.org | |
8567 | ||
8568 | _LT_EOF | |
8569 | fi ;; | |
8570 | esac | |
8571 | fi | |
8572 | break | |
8573 | fi | |
8574 | done | |
8575 | IFS="$lt_save_ifs" | |
8576 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8577 | ;; | |
8578 | esac | |
8579 | fi | |
8580 | ||
8581 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8582 | if test -n "$MAGIC_CMD"; then | |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8584 | $as_echo "$MAGIC_CMD" >&6; } | |
8585 | else | |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8587 | $as_echo "no" >&6; } | |
8588 | fi | |
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | ||
8594 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8595 | if test -n "$ac_tool_prefix"; then | |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8597 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8598 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
b4c522fa IB |
8599 | $as_echo_n "(cached) " >&6 |
8600 | else | |
8601 | case $MAGIC_CMD in | |
8602 | [\\/*] | ?:[\\/]*) | |
8603 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8604 | ;; | |
8605 | *) | |
8606 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8607 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8608 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8609 | for ac_dir in $ac_dummy; do | |
8610 | IFS="$lt_save_ifs" | |
8611 | test -z "$ac_dir" && ac_dir=. | |
8612 | if test -f $ac_dir/file; then | |
8613 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8614 | if test -n "$file_magic_test_file"; then | |
8615 | case $deplibs_check_method in | |
8616 | "file_magic "*) | |
8617 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8618 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8619 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8620 | $EGREP "$file_magic_regex" > /dev/null; then | |
8621 | : | |
8622 | else | |
8623 | cat <<_LT_EOF 1>&2 | |
8624 | ||
8625 | *** Warning: the command libtool uses to detect shared libraries, | |
8626 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8627 | *** The result is that libtool may fail to recognize shared libraries | |
8628 | *** as such. This will affect the creation of libtool libraries that | |
8629 | *** depend on shared libraries, but programs linked with such libtool | |
8630 | *** libraries will work regardless of this problem. Nevertheless, you | |
8631 | *** may want to report the problem to your system manager and/or to | |
8632 | *** bug-libtool@gnu.org | |
8633 | ||
8634 | _LT_EOF | |
8635 | fi ;; | |
8636 | esac | |
8637 | fi | |
8638 | break | |
8639 | fi | |
8640 | done | |
8641 | IFS="$lt_save_ifs" | |
8642 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8643 | ;; | |
8644 | esac | |
8645 | fi | |
8646 | ||
8647 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8648 | if test -n "$MAGIC_CMD"; then | |
8649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8650 | $as_echo "$MAGIC_CMD" >&6; } | |
8651 | else | |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8653 | $as_echo "no" >&6; } | |
8654 | fi | |
8655 | ||
8656 | ||
8657 | else | |
8658 | MAGIC_CMD=: | |
8659 | fi | |
8660 | fi | |
8661 | ||
8662 | fi | |
8663 | ;; | |
8664 | esac | |
8665 | ||
8666 | # Use C for the default configuration in the libtool script | |
8667 | ||
8668 | lt_save_CC="$CC" | |
8669 | ac_ext=c | |
8670 | ac_cpp='$CPP $CPPFLAGS' | |
8671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8674 | ||
8675 | ||
8676 | # Source file extension for C test sources. | |
8677 | ac_ext=c | |
8678 | ||
8679 | # Object file extension for compiled C test sources. | |
8680 | objext=o | |
8681 | objext=$objext | |
8682 | ||
8683 | # Code to be used in simple compile tests | |
8684 | lt_simple_compile_test_code="int some_variable = 0;" | |
8685 | ||
8686 | # Code to be used in simple link tests | |
8687 | lt_simple_link_test_code='int main(){return(0);}' | |
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | # If no C compiler was specified, use CC. | |
8696 | LTCC=${LTCC-"$CC"} | |
8697 | ||
8698 | # If no C compiler flags were specified, use CFLAGS. | |
8699 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8700 | ||
8701 | # Allow CC to be a program name with arguments. | |
8702 | compiler=$CC | |
8703 | ||
8704 | # Save the default compiler, since it gets overwritten when the other | |
8705 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8706 | compiler_DEFAULT=$CC | |
8707 | ||
8708 | # save warnings/boilerplate of simple test code | |
8709 | ac_outfile=conftest.$ac_objext | |
8710 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8711 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8712 | _lt_compiler_boilerplate=`cat conftest.err` | |
8713 | $RM conftest* | |
8714 | ||
8715 | ac_outfile=conftest.$ac_objext | |
8716 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8717 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8718 | _lt_linker_boilerplate=`cat conftest.err` | |
8719 | $RM -r conftest* | |
8720 | ||
8721 | ||
8722 | ## CAVEAT EMPTOR: | |
8723 | ## There is no encapsulation within the following macros, do not change | |
8724 | ## the running order or otherwise move them around unless you know exactly | |
8725 | ## what you are doing... | |
8726 | if test -n "$compiler"; then | |
8727 | ||
8728 | lt_prog_compiler_no_builtin_flag= | |
8729 | ||
8730 | if test "$GCC" = yes; then | |
8731 | case $cc_basename in | |
8732 | nvcc*) | |
8733 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8734 | *) | |
8735 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8736 | esac | |
8737 | ||
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8739 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 8740 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
b4c522fa IB |
8741 | $as_echo_n "(cached) " >&6 |
8742 | else | |
8743 | lt_cv_prog_compiler_rtti_exceptions=no | |
8744 | ac_outfile=conftest.$ac_objext | |
8745 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8746 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8747 | # Insert the option either (1) after the last *FLAGS variable, or | |
8748 | # (2) before a word containing "conftest.", or (3) at the end. | |
8749 | # Note that $ac_compile itself does not contain backslashes and begins | |
8750 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8751 | # The option is referenced via a variable to avoid confusing sed. | |
8752 | lt_compile=`echo "$ac_compile" | $SED \ | |
8753 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8754 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8755 | -e 's:$: $lt_compiler_flag:'` | |
8756 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8757 | (eval "$lt_compile" 2>conftest.err) | |
8758 | ac_status=$? | |
8759 | cat conftest.err >&5 | |
8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8761 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8762 | # The compiler can only warn and ignore the option if not recognized | |
8763 | # So say no if there are warnings other than the usual output. | |
8764 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8765 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8766 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8767 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8768 | fi | |
8769 | fi | |
8770 | $RM conftest* | |
8771 | ||
8772 | fi | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8774 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8775 | ||
8776 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8777 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8778 | else | |
8779 | : | |
8780 | fi | |
8781 | ||
8782 | fi | |
8783 | ||
8784 | ||
8785 | ||
8786 | ||
8787 | ||
8788 | ||
8789 | lt_prog_compiler_wl= | |
8790 | lt_prog_compiler_pic= | |
8791 | lt_prog_compiler_static= | |
8792 | ||
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8794 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8795 | ||
8796 | if test "$GCC" = yes; then | |
8797 | lt_prog_compiler_wl='-Wl,' | |
8798 | lt_prog_compiler_static='-static' | |
8799 | ||
8800 | case $host_os in | |
8801 | aix*) | |
8802 | # All AIX code is PIC. | |
8803 | if test "$host_cpu" = ia64; then | |
8804 | # AIX 5 now supports IA64 processor | |
8805 | lt_prog_compiler_static='-Bstatic' | |
8806 | fi | |
8807 | lt_prog_compiler_pic='-fPIC' | |
8808 | ;; | |
8809 | ||
8810 | amigaos*) | |
8811 | case $host_cpu in | |
8812 | powerpc) | |
8813 | # see comment about AmigaOS4 .so support | |
8814 | lt_prog_compiler_pic='-fPIC' | |
8815 | ;; | |
8816 | m68k) | |
8817 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8818 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8819 | # like `-m68040'. | |
8820 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8821 | ;; | |
8822 | esac | |
8823 | ;; | |
8824 | ||
8825 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8826 | # PIC is the default for these OSes. | |
8827 | ;; | |
8828 | ||
8829 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8830 | # This hack is so that the source file can tell whether it is being | |
8831 | # built for inclusion in a dll (and should export symbols for example). | |
8832 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8833 | # (--disable-auto-import) libraries | |
8834 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8835 | ;; | |
8836 | ||
8837 | darwin* | rhapsody*) | |
8838 | # PIC is the default on this platform | |
8839 | # Common symbols not allowed in MH_DYLIB files | |
8840 | lt_prog_compiler_pic='-fno-common' | |
8841 | ;; | |
8842 | ||
8843 | haiku*) | |
8844 | # PIC is the default for Haiku. | |
8845 | # The "-static" flag exists, but is broken. | |
8846 | lt_prog_compiler_static= | |
8847 | ;; | |
8848 | ||
8849 | hpux*) | |
8850 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8851 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8852 | # sets the default TLS model and affects inlining. | |
8853 | case $host_cpu in | |
8854 | hppa*64*) | |
8855 | # +Z the default | |
8856 | ;; | |
8857 | *) | |
8858 | lt_prog_compiler_pic='-fPIC' | |
8859 | ;; | |
8860 | esac | |
8861 | ;; | |
8862 | ||
8863 | interix[3-9]*) | |
8864 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8865 | # Instead, we relocate shared libraries at runtime. | |
8866 | ;; | |
8867 | ||
8868 | msdosdjgpp*) | |
8869 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8870 | # on systems that don't support them. | |
8871 | lt_prog_compiler_can_build_shared=no | |
8872 | enable_shared=no | |
8873 | ;; | |
8874 | ||
8875 | *nto* | *qnx*) | |
8876 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8877 | # it will coredump. | |
8878 | lt_prog_compiler_pic='-fPIC -shared' | |
8879 | ;; | |
8880 | ||
8881 | sysv4*MP*) | |
8882 | if test -d /usr/nec; then | |
8883 | lt_prog_compiler_pic=-Kconform_pic | |
8884 | fi | |
8885 | ;; | |
8886 | ||
8887 | *) | |
8888 | lt_prog_compiler_pic='-fPIC' | |
8889 | ;; | |
8890 | esac | |
8891 | ||
8892 | case $cc_basename in | |
8893 | nvcc*) # Cuda Compiler Driver 2.2 | |
8894 | lt_prog_compiler_wl='-Xlinker ' | |
8895 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8896 | ;; | |
8897 | esac | |
8898 | else | |
8899 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8900 | case $host_os in | |
8901 | aix*) | |
8902 | lt_prog_compiler_wl='-Wl,' | |
8903 | if test "$host_cpu" = ia64; then | |
8904 | # AIX 5 now supports IA64 processor | |
8905 | lt_prog_compiler_static='-Bstatic' | |
8906 | else | |
8907 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8908 | fi | |
8909 | ;; | |
8910 | ||
8911 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8912 | # This hack is so that the source file can tell whether it is being | |
8913 | # built for inclusion in a dll (and should export symbols for example). | |
8914 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8915 | ;; | |
8916 | ||
8917 | hpux9* | hpux10* | hpux11*) | |
8918 | lt_prog_compiler_wl='-Wl,' | |
8919 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8920 | # not for PA HP-UX. | |
8921 | case $host_cpu in | |
8922 | hppa*64*|ia64*) | |
8923 | # +Z the default | |
8924 | ;; | |
8925 | *) | |
8926 | lt_prog_compiler_pic='+Z' | |
8927 | ;; | |
8928 | esac | |
8929 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8930 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8931 | ;; | |
8932 | ||
8933 | irix5* | irix6* | nonstopux*) | |
8934 | lt_prog_compiler_wl='-Wl,' | |
8935 | # PIC (with -KPIC) is the default. | |
8936 | lt_prog_compiler_static='-non_shared' | |
8937 | ;; | |
8938 | ||
8939 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8940 | case $cc_basename in | |
8941 | # old Intel for x86_64 which still supported -KPIC. | |
8942 | ecc*) | |
8943 | lt_prog_compiler_wl='-Wl,' | |
8944 | lt_prog_compiler_pic='-KPIC' | |
8945 | lt_prog_compiler_static='-static' | |
8946 | ;; | |
8947 | # icc used to be incompatible with GCC. | |
8948 | # ICC 10 doesn't accept -KPIC any more. | |
8949 | icc* | ifort*) | |
8950 | lt_prog_compiler_wl='-Wl,' | |
8951 | lt_prog_compiler_pic='-fPIC' | |
8952 | lt_prog_compiler_static='-static' | |
8953 | ;; | |
8954 | # Lahey Fortran 8.1. | |
8955 | lf95*) | |
8956 | lt_prog_compiler_wl='-Wl,' | |
8957 | lt_prog_compiler_pic='--shared' | |
8958 | lt_prog_compiler_static='--static' | |
8959 | ;; | |
8960 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8961 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8962 | # which looks to be a dead project) | |
8963 | lt_prog_compiler_wl='-Wl,' | |
8964 | lt_prog_compiler_pic='-fpic' | |
8965 | lt_prog_compiler_static='-Bstatic' | |
8966 | ;; | |
8967 | ccc*) | |
8968 | lt_prog_compiler_wl='-Wl,' | |
8969 | # All Alpha code is PIC. | |
8970 | lt_prog_compiler_static='-non_shared' | |
8971 | ;; | |
8972 | xl* | bgxl* | bgf* | mpixl*) | |
8973 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8974 | lt_prog_compiler_wl='-Wl,' | |
8975 | lt_prog_compiler_pic='-qpic' | |
8976 | lt_prog_compiler_static='-qstaticlink' | |
8977 | ;; | |
8978 | *) | |
8979 | case `$CC -V 2>&1 | sed 5q` in | |
8980 | *Sun\ F* | *Sun*Fortran*) | |
8981 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8982 | lt_prog_compiler_pic='-KPIC' | |
8983 | lt_prog_compiler_static='-Bstatic' | |
8984 | lt_prog_compiler_wl='' | |
8985 | ;; | |
8986 | *Sun\ C*) | |
8987 | # Sun C 5.9 | |
8988 | lt_prog_compiler_pic='-KPIC' | |
8989 | lt_prog_compiler_static='-Bstatic' | |
8990 | lt_prog_compiler_wl='-Wl,' | |
8991 | ;; | |
8992 | esac | |
8993 | ;; | |
8994 | esac | |
8995 | ;; | |
8996 | ||
8997 | newsos6) | |
8998 | lt_prog_compiler_pic='-KPIC' | |
8999 | lt_prog_compiler_static='-Bstatic' | |
9000 | ;; | |
9001 | ||
9002 | *nto* | *qnx*) | |
9003 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9004 | # it will coredump. | |
9005 | lt_prog_compiler_pic='-fPIC -shared' | |
9006 | ;; | |
9007 | ||
9008 | osf3* | osf4* | osf5*) | |
9009 | lt_prog_compiler_wl='-Wl,' | |
9010 | # All OSF/1 code is PIC. | |
9011 | lt_prog_compiler_static='-non_shared' | |
9012 | ;; | |
9013 | ||
9014 | rdos*) | |
9015 | lt_prog_compiler_static='-non_shared' | |
9016 | ;; | |
9017 | ||
9018 | solaris*) | |
9019 | lt_prog_compiler_pic='-KPIC' | |
9020 | lt_prog_compiler_static='-Bstatic' | |
9021 | case $cc_basename in | |
9022 | f77* | f90* | f95*) | |
9023 | lt_prog_compiler_wl='-Qoption ld ';; | |
9024 | *) | |
9025 | lt_prog_compiler_wl='-Wl,';; | |
9026 | esac | |
9027 | ;; | |
9028 | ||
9029 | sunos4*) | |
9030 | lt_prog_compiler_wl='-Qoption ld ' | |
9031 | lt_prog_compiler_pic='-PIC' | |
9032 | lt_prog_compiler_static='-Bstatic' | |
9033 | ;; | |
9034 | ||
9035 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9036 | lt_prog_compiler_wl='-Wl,' | |
9037 | lt_prog_compiler_pic='-KPIC' | |
9038 | lt_prog_compiler_static='-Bstatic' | |
9039 | ;; | |
9040 | ||
9041 | sysv4*MP*) | |
9042 | if test -d /usr/nec ;then | |
9043 | lt_prog_compiler_pic='-Kconform_pic' | |
9044 | lt_prog_compiler_static='-Bstatic' | |
9045 | fi | |
9046 | ;; | |
9047 | ||
9048 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9049 | lt_prog_compiler_wl='-Wl,' | |
9050 | lt_prog_compiler_pic='-KPIC' | |
9051 | lt_prog_compiler_static='-Bstatic' | |
9052 | ;; | |
9053 | ||
9054 | unicos*) | |
9055 | lt_prog_compiler_wl='-Wl,' | |
9056 | lt_prog_compiler_can_build_shared=no | |
9057 | ;; | |
9058 | ||
9059 | uts4*) | |
9060 | lt_prog_compiler_pic='-pic' | |
9061 | lt_prog_compiler_static='-Bstatic' | |
9062 | ;; | |
9063 | ||
9064 | *) | |
9065 | lt_prog_compiler_can_build_shared=no | |
9066 | ;; | |
9067 | esac | |
9068 | fi | |
9069 | ||
9070 | case $host_os in | |
9071 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9072 | *djgpp*) | |
9073 | lt_prog_compiler_pic= | |
9074 | ;; | |
9075 | *) | |
9076 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9077 | ;; | |
9078 | esac | |
9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9080 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
9081 | ||
9082 | ||
9083 | ||
9084 | ||
9085 | ||
9086 | ||
9087 | # | |
9088 | # Check to make sure the PIC flag actually works. | |
9089 | # | |
9090 | if test -n "$lt_prog_compiler_pic"; then | |
9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9092 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 9093 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
b4c522fa IB |
9094 | $as_echo_n "(cached) " >&6 |
9095 | else | |
9096 | lt_cv_prog_compiler_pic_works=no | |
9097 | ac_outfile=conftest.$ac_objext | |
9098 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9099 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9100 | # Insert the option either (1) after the last *FLAGS variable, or | |
9101 | # (2) before a word containing "conftest.", or (3) at the end. | |
9102 | # Note that $ac_compile itself does not contain backslashes and begins | |
9103 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9104 | # The option is referenced via a variable to avoid confusing sed. | |
9105 | lt_compile=`echo "$ac_compile" | $SED \ | |
9106 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9107 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9108 | -e 's:$: $lt_compiler_flag:'` | |
9109 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9110 | (eval "$lt_compile" 2>conftest.err) | |
9111 | ac_status=$? | |
9112 | cat conftest.err >&5 | |
9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9114 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9115 | # The compiler can only warn and ignore the option if not recognized | |
9116 | # So say no if there are warnings other than the usual output. | |
9117 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9118 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9119 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9120 | lt_cv_prog_compiler_pic_works=yes | |
9121 | fi | |
9122 | fi | |
9123 | $RM conftest* | |
9124 | ||
9125 | fi | |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9127 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9128 | ||
9129 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9130 | case $lt_prog_compiler_pic in | |
9131 | "" | " "*) ;; | |
9132 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9133 | esac | |
9134 | else | |
9135 | lt_prog_compiler_pic= | |
9136 | lt_prog_compiler_can_build_shared=no | |
9137 | fi | |
9138 | ||
9139 | fi | |
9140 | ||
9141 | ||
9142 | ||
9143 | ||
9144 | ||
9145 | ||
9146 | # | |
9147 | # Check to make sure the static flag actually works. | |
9148 | # | |
9149 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9151 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 9152 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
b4c522fa IB |
9153 | $as_echo_n "(cached) " >&6 |
9154 | else | |
9155 | lt_cv_prog_compiler_static_works=no | |
9156 | save_LDFLAGS="$LDFLAGS" | |
9157 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9158 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9159 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9160 | # The linker can only warn and ignore the option if not recognized | |
9161 | # So say no if there are warnings | |
9162 | if test -s conftest.err; then | |
9163 | # Append any errors to the config.log. | |
9164 | cat conftest.err 1>&5 | |
9165 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9166 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9167 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9168 | lt_cv_prog_compiler_static_works=yes | |
9169 | fi | |
9170 | else | |
9171 | lt_cv_prog_compiler_static_works=yes | |
9172 | fi | |
9173 | fi | |
9174 | $RM -r conftest* | |
9175 | LDFLAGS="$save_LDFLAGS" | |
9176 | ||
9177 | fi | |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9179 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9180 | ||
9181 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9182 | : | |
9183 | else | |
9184 | lt_prog_compiler_static= | |
9185 | fi | |
9186 | ||
9187 | ||
9188 | ||
9189 | ||
9190 | ||
9191 | ||
9192 | ||
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9194 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9195 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
b4c522fa IB |
9196 | $as_echo_n "(cached) " >&6 |
9197 | else | |
9198 | lt_cv_prog_compiler_c_o=no | |
9199 | $RM -r conftest 2>/dev/null | |
9200 | mkdir conftest | |
9201 | cd conftest | |
9202 | mkdir out | |
9203 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9204 | ||
9205 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9206 | # Insert the option either (1) after the last *FLAGS variable, or | |
9207 | # (2) before a word containing "conftest.", or (3) at the end. | |
9208 | # Note that $ac_compile itself does not contain backslashes and begins | |
9209 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9210 | lt_compile=`echo "$ac_compile" | $SED \ | |
9211 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9212 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9213 | -e 's:$: $lt_compiler_flag:'` | |
9214 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9215 | (eval "$lt_compile" 2>out/conftest.err) | |
9216 | ac_status=$? | |
9217 | cat out/conftest.err >&5 | |
9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9219 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9220 | then | |
9221 | # The compiler can only warn and ignore the option if not recognized | |
9222 | # So say no if there are warnings | |
9223 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9224 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9225 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9226 | lt_cv_prog_compiler_c_o=yes | |
9227 | fi | |
9228 | fi | |
9229 | chmod u+w . 2>&5 | |
9230 | $RM conftest* | |
9231 | # SGI C++ compiler will create directory out/ii_files/ for | |
9232 | # template instantiation | |
9233 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9234 | $RM out/* && rmdir out | |
9235 | cd .. | |
9236 | $RM -r conftest | |
9237 | $RM conftest* | |
9238 | ||
9239 | fi | |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9241 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9249 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 9250 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
b4c522fa IB |
9251 | $as_echo_n "(cached) " >&6 |
9252 | else | |
9253 | lt_cv_prog_compiler_c_o=no | |
9254 | $RM -r conftest 2>/dev/null | |
9255 | mkdir conftest | |
9256 | cd conftest | |
9257 | mkdir out | |
9258 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9259 | ||
9260 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9261 | # Insert the option either (1) after the last *FLAGS variable, or | |
9262 | # (2) before a word containing "conftest.", or (3) at the end. | |
9263 | # Note that $ac_compile itself does not contain backslashes and begins | |
9264 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9265 | lt_compile=`echo "$ac_compile" | $SED \ | |
9266 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9267 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9268 | -e 's:$: $lt_compiler_flag:'` | |
9269 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9270 | (eval "$lt_compile" 2>out/conftest.err) | |
9271 | ac_status=$? | |
9272 | cat out/conftest.err >&5 | |
9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9274 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9275 | then | |
9276 | # The compiler can only warn and ignore the option if not recognized | |
9277 | # So say no if there are warnings | |
9278 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9279 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9280 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9281 | lt_cv_prog_compiler_c_o=yes | |
9282 | fi | |
9283 | fi | |
9284 | chmod u+w . 2>&5 | |
9285 | $RM conftest* | |
9286 | # SGI C++ compiler will create directory out/ii_files/ for | |
9287 | # template instantiation | |
9288 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9289 | $RM out/* && rmdir out | |
9290 | cd .. | |
9291 | $RM -r conftest | |
9292 | $RM conftest* | |
9293 | ||
9294 | fi | |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9296 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | hard_links="nottested" | |
9302 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9303 | # do not overwrite the value of need_locks provided by the user | |
9304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9305 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9306 | hard_links=yes | |
9307 | $RM conftest* | |
9308 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9309 | touch conftest.a | |
9310 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9311 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9313 | $as_echo "$hard_links" >&6; } | |
9314 | if test "$hard_links" = no; then | |
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9316 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9317 | need_locks=warn | |
9318 | fi | |
9319 | else | |
9320 | need_locks=no | |
9321 | fi | |
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9329 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9330 | ||
9331 | runpath_var= | |
9332 | allow_undefined_flag= | |
9333 | always_export_symbols=no | |
9334 | archive_cmds= | |
9335 | archive_expsym_cmds= | |
9336 | compiler_needs_object=no | |
9337 | enable_shared_with_static_runtimes=no | |
9338 | export_dynamic_flag_spec= | |
9339 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9340 | hardcode_automatic=no | |
9341 | hardcode_direct=no | |
9342 | hardcode_direct_absolute=no | |
9343 | hardcode_libdir_flag_spec= | |
9344 | hardcode_libdir_flag_spec_ld= | |
9345 | hardcode_libdir_separator= | |
9346 | hardcode_minus_L=no | |
9347 | hardcode_shlibpath_var=unsupported | |
9348 | inherit_rpath=no | |
9349 | link_all_deplibs=unknown | |
9350 | module_cmds= | |
9351 | module_expsym_cmds= | |
9352 | old_archive_from_new_cmds= | |
9353 | old_archive_from_expsyms_cmds= | |
9354 | thread_safe_flag_spec= | |
9355 | whole_archive_flag_spec= | |
9356 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9357 | # included in the symbol list | |
9358 | include_expsyms= | |
9359 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9360 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9361 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9362 | # as well as any symbol that contains `d'. | |
9363 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9364 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9365 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9366 | # the symbol is explicitly referenced. Since portable code cannot | |
9367 | # rely on this symbol name, it's probably fine to never include it in | |
9368 | # preloaded symbol tables. | |
9369 | # Exclude shared library initialization/finalization symbols. | |
9370 | extract_expsyms_cmds= | |
9371 | ||
9372 | case $host_os in | |
9373 | cygwin* | mingw* | pw32* | cegcc*) | |
9374 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9375 | # When not using gcc, we currently assume that we are using | |
9376 | # Microsoft Visual C++. | |
9377 | if test "$GCC" != yes; then | |
9378 | with_gnu_ld=no | |
9379 | fi | |
9380 | ;; | |
9381 | interix*) | |
9382 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9383 | with_gnu_ld=yes | |
9384 | ;; | |
9385 | openbsd*) | |
9386 | with_gnu_ld=no | |
9387 | ;; | |
9388 | esac | |
9389 | ||
9390 | ld_shlibs=yes | |
9391 | ||
9392 | # On some targets, GNU ld is compatible enough with the native linker | |
9393 | # that we're better off using the native interface for both. | |
9394 | lt_use_gnu_ld_interface=no | |
9395 | if test "$with_gnu_ld" = yes; then | |
9396 | case $host_os in | |
9397 | aix*) | |
9398 | # The AIX port of GNU ld has always aspired to compatibility | |
9399 | # with the native linker. However, as the warning in the GNU ld | |
9400 | # block says, versions before 2.19.5* couldn't really create working | |
9401 | # shared libraries, regardless of the interface used. | |
9402 | case `$LD -v 2>&1` in | |
9403 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9404 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9405 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9406 | *) | |
9407 | lt_use_gnu_ld_interface=yes | |
9408 | ;; | |
9409 | esac | |
9410 | ;; | |
9411 | *) | |
9412 | lt_use_gnu_ld_interface=yes | |
9413 | ;; | |
9414 | esac | |
9415 | fi | |
9416 | ||
9417 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9418 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9419 | wlarc='${wl}' | |
9420 | ||
9421 | # Set some defaults for GNU ld with shared library support. These | |
9422 | # are reset later if shared libraries are not supported. Putting them | |
9423 | # here allows them to be overridden if necessary. | |
9424 | runpath_var=LD_RUN_PATH | |
9425 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9426 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9427 | # ancient GNU ld didn't support --whole-archive et. al. | |
9428 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9429 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9430 | else | |
9431 | whole_archive_flag_spec= | |
9432 | fi | |
9433 | supports_anon_versioning=no | |
9434 | case `$LD -v 2>&1` in | |
9435 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9436 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9437 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9438 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9439 | *\ 2.11.*) ;; # other 2.11 versions | |
9440 | *) supports_anon_versioning=yes ;; | |
9441 | esac | |
9442 | ||
9443 | # See if GNU ld supports shared libraries. | |
9444 | case $host_os in | |
9445 | aix[3-9]*) | |
9446 | # On AIX/PPC, the GNU linker is very broken | |
9447 | if test "$host_cpu" != ia64; then | |
9448 | ld_shlibs=no | |
9449 | cat <<_LT_EOF 1>&2 | |
9450 | ||
9451 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9452 | *** to be unable to reliably create shared libraries on AIX. | |
9453 | *** Therefore, libtool is disabling shared libraries support. If you | |
9454 | *** really care for shared libraries, you may want to install binutils | |
9455 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9456 | *** You will then need to restart the configuration process. | |
9457 | ||
9458 | _LT_EOF | |
9459 | fi | |
9460 | ;; | |
9461 | ||
9462 | amigaos*) | |
9463 | case $host_cpu in | |
9464 | powerpc) | |
9465 | # see comment about AmigaOS4 .so support | |
9466 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9467 | archive_expsym_cmds='' | |
9468 | ;; | |
9469 | m68k) | |
9470 | 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)' | |
9471 | hardcode_libdir_flag_spec='-L$libdir' | |
9472 | hardcode_minus_L=yes | |
9473 | ;; | |
9474 | esac | |
9475 | ;; | |
9476 | ||
9477 | beos*) | |
9478 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9479 | allow_undefined_flag=unsupported | |
9480 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9481 | # support --undefined. This deserves some investigation. FIXME | |
9482 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9483 | else | |
9484 | ld_shlibs=no | |
9485 | fi | |
9486 | ;; | |
9487 | ||
9488 | cygwin* | mingw* | pw32* | cegcc*) | |
9489 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9490 | # as there is no search path for DLLs. | |
9491 | hardcode_libdir_flag_spec='-L$libdir' | |
9492 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9493 | allow_undefined_flag=unsupported | |
9494 | always_export_symbols=no | |
9495 | enable_shared_with_static_runtimes=yes | |
9496 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9497 | ||
9498 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9499 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9500 | # If the export-symbols file already is a .def file (1st line | |
9501 | # is EXPORTS), use it as is; otherwise, prepend... | |
9502 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9503 | cp $export_symbols $output_objdir/$soname.def; | |
9504 | else | |
9505 | echo EXPORTS > $output_objdir/$soname.def; | |
9506 | cat $export_symbols >> $output_objdir/$soname.def; | |
9507 | fi~ | |
9508 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9509 | else | |
9510 | ld_shlibs=no | |
9511 | fi | |
9512 | ;; | |
9513 | ||
9514 | haiku*) | |
9515 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9516 | link_all_deplibs=yes | |
9517 | ;; | |
9518 | ||
9519 | interix[3-9]*) | |
9520 | hardcode_direct=no | |
9521 | hardcode_shlibpath_var=no | |
9522 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9523 | export_dynamic_flag_spec='${wl}-E' | |
9524 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9525 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9526 | # default) and relocated if they conflict, which is a slow very memory | |
9527 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9528 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9529 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9530 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9531 | 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' | |
9532 | ;; | |
9533 | ||
e9085da5 | 9534 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b4c522fa IB |
9535 | tmp_diet=no |
9536 | if test "$host_os" = linux-dietlibc; then | |
9537 | case $cc_basename in | |
9538 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9539 | esac | |
9540 | fi | |
9541 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9542 | && test "$tmp_diet" = no | |
9543 | then | |
9544 | tmp_addflag=' $pic_flag' | |
9545 | tmp_sharedflag='-shared' | |
9546 | case $cc_basename,$host_cpu in | |
9547 | pgcc*) # Portland Group C compiler | |
9548 | 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' | |
9549 | tmp_addflag=' $pic_flag' | |
9550 | ;; | |
9551 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9552 | # Portland Group f77 and f90 compilers | |
9553 | 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' | |
9554 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9555 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9556 | tmp_addflag=' -i_dynamic' ;; | |
9557 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9558 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9559 | ifc* | ifort*) # Intel Fortran compiler | |
9560 | tmp_addflag=' -nofor_main' ;; | |
9561 | lf95*) # Lahey Fortran 8.1 | |
9562 | whole_archive_flag_spec= | |
9563 | tmp_sharedflag='--shared' ;; | |
9564 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9565 | tmp_sharedflag='-qmkshrobj' | |
9566 | tmp_addflag= ;; | |
9567 | nvcc*) # Cuda Compiler Driver 2.2 | |
9568 | 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' | |
9569 | compiler_needs_object=yes | |
9570 | ;; | |
9571 | esac | |
9572 | case `$CC -V 2>&1 | sed 5q` in | |
9573 | *Sun\ C*) # Sun C 5.9 | |
9574 | 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' | |
9575 | compiler_needs_object=yes | |
9576 | tmp_sharedflag='-G' ;; | |
9577 | *Sun\ F*) # Sun Fortran 8.3 | |
9578 | tmp_sharedflag='-G' ;; | |
9579 | esac | |
9580 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9581 | ||
9582 | if test "x$supports_anon_versioning" = xyes; then | |
9583 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9584 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9585 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9586 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9587 | fi | |
9588 | ||
9589 | case $cc_basename in | |
9590 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9591 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9592 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9593 | hardcode_libdir_flag_spec= | |
9594 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9595 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9596 | if test "x$supports_anon_versioning" = xyes; then | |
9597 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9598 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9599 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9600 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9601 | fi | |
9602 | ;; | |
9603 | esac | |
9604 | else | |
9605 | ld_shlibs=no | |
9606 | fi | |
9607 | ;; | |
9608 | ||
9609 | netbsd*) | |
9610 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9611 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9612 | wlarc= | |
9613 | else | |
9614 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9615 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9616 | fi | |
9617 | ;; | |
9618 | ||
9619 | solaris*) | |
9620 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9621 | ld_shlibs=no | |
9622 | cat <<_LT_EOF 1>&2 | |
9623 | ||
9624 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9625 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9626 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9627 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9628 | *** your PATH or compiler configuration so that the native linker is | |
9629 | *** used, and then restart. | |
9630 | ||
9631 | _LT_EOF | |
9632 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9633 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9634 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9635 | else | |
9636 | ld_shlibs=no | |
9637 | fi | |
9638 | ;; | |
9639 | ||
9640 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9641 | case `$LD -v 2>&1` in | |
9642 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9643 | ld_shlibs=no | |
9644 | cat <<_LT_EOF 1>&2 | |
9645 | ||
9646 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9647 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9648 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9649 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9650 | *** your PATH or compiler configuration so that the native linker is | |
9651 | *** used, and then restart. | |
9652 | ||
9653 | _LT_EOF | |
9654 | ;; | |
9655 | *) | |
9656 | # For security reasons, it is highly recommended that you always | |
9657 | # use absolute paths for naming shared libraries, and exclude the | |
9658 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9659 | # requires that you compile everything twice, which is a pain. | |
9660 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9661 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9662 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9663 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9664 | else | |
9665 | ld_shlibs=no | |
9666 | fi | |
9667 | ;; | |
9668 | esac | |
9669 | ;; | |
9670 | ||
9671 | sunos4*) | |
9672 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9673 | wlarc= | |
9674 | hardcode_direct=yes | |
9675 | hardcode_shlibpath_var=no | |
9676 | ;; | |
9677 | ||
9678 | *) | |
9679 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9680 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9681 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9682 | else | |
9683 | ld_shlibs=no | |
9684 | fi | |
9685 | ;; | |
9686 | esac | |
9687 | ||
9688 | if test "$ld_shlibs" = no; then | |
9689 | runpath_var= | |
9690 | hardcode_libdir_flag_spec= | |
9691 | export_dynamic_flag_spec= | |
9692 | whole_archive_flag_spec= | |
9693 | fi | |
9694 | else | |
9695 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9696 | case $host_os in | |
9697 | aix3*) | |
9698 | allow_undefined_flag=unsupported | |
9699 | always_export_symbols=yes | |
9700 | 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' | |
9701 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9702 | # are no directories specified by -L. | |
9703 | hardcode_minus_L=yes | |
9704 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9705 | # Neither direct hardcoding nor static linking is supported with a | |
9706 | # broken collect2. | |
9707 | hardcode_direct=unsupported | |
9708 | fi | |
9709 | ;; | |
9710 | ||
9711 | aix[4-9]*) | |
9712 | if test "$host_cpu" = ia64; then | |
9713 | # On IA64, the linker does run time linking by default, so we don't | |
9714 | # have to do anything special. | |
9715 | aix_use_runtimelinking=no | |
9716 | exp_sym_flag='-Bexport' | |
9717 | no_entry_flag="" | |
9718 | else | |
9719 | # If we're using GNU nm, then we don't want the "-C" option. | |
9720 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9721 | # Also, AIX nm treats weak defined symbols like other global | |
9722 | # defined symbols, whereas GNU nm marks them as "W". | |
9723 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9724 | 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' | |
9725 | else | |
9726 | 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' | |
9727 | fi | |
9728 | aix_use_runtimelinking=no | |
9729 | ||
9730 | # Test if we are trying to use run time linking or normal | |
9731 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9732 | # need to do runtime linking. | |
9733 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9734 | for ld_flag in $LDFLAGS; do | |
9735 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9736 | aix_use_runtimelinking=yes | |
9737 | break | |
9738 | fi | |
9739 | done | |
9740 | ;; | |
9741 | esac | |
9742 | ||
9743 | exp_sym_flag='-bexport' | |
9744 | no_entry_flag='-bnoentry' | |
9745 | fi | |
9746 | ||
9747 | # When large executables or shared objects are built, AIX ld can | |
9748 | # have problems creating the table of contents. If linking a library | |
9749 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9750 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9751 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9752 | ||
9753 | archive_cmds='' | |
9754 | hardcode_direct=yes | |
9755 | hardcode_direct_absolute=yes | |
9756 | hardcode_libdir_separator=':' | |
9757 | link_all_deplibs=yes | |
9758 | file_list_spec='${wl}-f,' | |
9759 | ||
9760 | if test "$GCC" = yes; then | |
9761 | case $host_os in aix4.[012]|aix4.[012].*) | |
9762 | # We only want to do this on AIX 4.2 and lower, the check | |
9763 | # below for broken collect2 doesn't work under 4.3+ | |
9764 | collect2name=`${CC} -print-prog-name=collect2` | |
9765 | if test -f "$collect2name" && | |
9766 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9767 | then | |
9768 | # We have reworked collect2 | |
9769 | : | |
9770 | else | |
9771 | # We have old collect2 | |
9772 | hardcode_direct=unsupported | |
9773 | # It fails to find uninstalled libraries when the uninstalled | |
9774 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9775 | # to unsupported forces relinking | |
9776 | hardcode_minus_L=yes | |
9777 | hardcode_libdir_flag_spec='-L$libdir' | |
9778 | hardcode_libdir_separator= | |
9779 | fi | |
9780 | ;; | |
9781 | esac | |
9782 | shared_flag='-shared' | |
9783 | if test "$aix_use_runtimelinking" = yes; then | |
9784 | shared_flag="$shared_flag "'${wl}-G' | |
9785 | fi | |
9786 | else | |
9787 | # not using gcc | |
9788 | if test "$host_cpu" = ia64; then | |
9789 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9790 | # chokes on -Wl,-G. The following line is correct: | |
9791 | shared_flag='-G' | |
9792 | else | |
9793 | if test "$aix_use_runtimelinking" = yes; then | |
9794 | shared_flag='${wl}-G' | |
9795 | else | |
9796 | shared_flag='${wl}-bM:SRE' | |
9797 | fi | |
9798 | fi | |
9799 | fi | |
9800 | ||
9801 | export_dynamic_flag_spec='${wl}-bexpall' | |
9802 | # It seems that -bexpall does not export symbols beginning with | |
9803 | # underscore (_), so it is better to generate a list of symbols to export. | |
9804 | always_export_symbols=yes | |
9805 | if test "$aix_use_runtimelinking" = yes; then | |
9806 | # Warning - without using the other runtime loading flags (-brtl), | |
9807 | # -berok will link without error, but may produce a broken library. | |
9808 | allow_undefined_flag='-berok' | |
9809 | # Determine the default libpath from the value encoded in an | |
9810 | # empty executable. | |
9811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9812 | /* end confdefs.h. */ | |
9813 | ||
9814 | int | |
9815 | main () | |
9816 | { | |
9817 | ||
9818 | ; | |
9819 | return 0; | |
9820 | } | |
9821 | _ACEOF | |
9822 | if ac_fn_c_try_link "$LINENO"; then : | |
9823 | ||
9824 | lt_aix_libpath_sed=' | |
9825 | /Import File Strings/,/^$/ { | |
9826 | /^0/ { | |
9827 | s/^0 *\(.*\)$/\1/ | |
9828 | p | |
9829 | } | |
9830 | }' | |
9831 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9832 | # Check for a 64-bit object if we didn't find anything. | |
9833 | if test -z "$aix_libpath"; then | |
9834 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9835 | fi | |
9836 | fi | |
9837 | rm -f core conftest.err conftest.$ac_objext \ | |
9838 | conftest$ac_exeext conftest.$ac_ext | |
9839 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9840 | ||
9841 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9842 | 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" | |
9843 | else | |
9844 | if test "$host_cpu" = ia64; then | |
9845 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9846 | allow_undefined_flag="-z nodefs" | |
9847 | 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" | |
9848 | else | |
9849 | # Determine the default libpath from the value encoded in an | |
9850 | # empty executable. | |
9851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9852 | /* end confdefs.h. */ | |
9853 | ||
9854 | int | |
9855 | main () | |
9856 | { | |
9857 | ||
9858 | ; | |
9859 | return 0; | |
9860 | } | |
9861 | _ACEOF | |
9862 | if ac_fn_c_try_link "$LINENO"; then : | |
9863 | ||
9864 | lt_aix_libpath_sed=' | |
9865 | /Import File Strings/,/^$/ { | |
9866 | /^0/ { | |
9867 | s/^0 *\(.*\)$/\1/ | |
9868 | p | |
9869 | } | |
9870 | }' | |
9871 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9872 | # Check for a 64-bit object if we didn't find anything. | |
9873 | if test -z "$aix_libpath"; then | |
9874 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9875 | fi | |
9876 | fi | |
9877 | rm -f core conftest.err conftest.$ac_objext \ | |
9878 | conftest$ac_exeext conftest.$ac_ext | |
9879 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9880 | ||
9881 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9882 | # Warning - without using the other run time loading flags, | |
9883 | # -berok will link without error, but may produce a broken library. | |
9884 | no_undefined_flag=' ${wl}-bernotok' | |
9885 | allow_undefined_flag=' ${wl}-berok' | |
9886 | if test "$with_gnu_ld" = yes; then | |
9887 | # We only use this code for GNU lds that support --whole-archive. | |
9888 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9889 | else | |
9890 | # Exported symbols can be pulled into shared objects from archives | |
9891 | whole_archive_flag_spec='$convenience' | |
9892 | fi | |
9893 | archive_cmds_need_lc=yes | |
9894 | # This is similar to how AIX traditionally builds its shared libraries. | |
9895 | 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' | |
9896 | fi | |
9897 | fi | |
9898 | ;; | |
9899 | ||
9900 | amigaos*) | |
9901 | case $host_cpu in | |
9902 | powerpc) | |
9903 | # see comment about AmigaOS4 .so support | |
9904 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9905 | archive_expsym_cmds='' | |
9906 | ;; | |
9907 | m68k) | |
9908 | 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)' | |
9909 | hardcode_libdir_flag_spec='-L$libdir' | |
9910 | hardcode_minus_L=yes | |
9911 | ;; | |
9912 | esac | |
9913 | ;; | |
9914 | ||
9915 | bsdi[45]*) | |
9916 | export_dynamic_flag_spec=-rdynamic | |
9917 | ;; | |
9918 | ||
9919 | cygwin* | mingw* | pw32* | cegcc*) | |
9920 | # When not using gcc, we currently assume that we are using | |
9921 | # Microsoft Visual C++. | |
9922 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9923 | # no search path for DLLs. | |
9924 | hardcode_libdir_flag_spec=' ' | |
9925 | allow_undefined_flag=unsupported | |
9926 | # Tell ltmain to make .lib files, not .a files. | |
9927 | libext=lib | |
9928 | # Tell ltmain to make .dll files, not .so files. | |
9929 | shrext_cmds=".dll" | |
9930 | # FIXME: Setting linknames here is a bad hack. | |
9931 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9932 | # The linker will automatically build a .lib file if we build a DLL. | |
9933 | old_archive_from_new_cmds='true' | |
9934 | # FIXME: Should let the user specify the lib program. | |
9935 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9936 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9937 | enable_shared_with_static_runtimes=yes | |
9938 | ;; | |
9939 | ||
9940 | darwin* | rhapsody*) | |
9941 | ||
9942 | ||
9943 | archive_cmds_need_lc=no | |
9944 | hardcode_direct=no | |
9945 | hardcode_automatic=yes | |
9946 | hardcode_shlibpath_var=unsupported | |
9947 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9948 | 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\"`' | |
9949 | else | |
9950 | whole_archive_flag_spec='' | |
9951 | fi | |
9952 | link_all_deplibs=yes | |
9953 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9954 | case $cc_basename in | |
9955 | ifort*) _lt_dar_can_shared=yes ;; | |
9956 | *) _lt_dar_can_shared=$GCC ;; | |
9957 | esac | |
9958 | if test "$_lt_dar_can_shared" = "yes"; then | |
9959 | output_verbose_link_cmd=func_echo_all | |
9960 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9961 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9962 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9963 | 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}" | |
9964 | ||
9965 | else | |
9966 | ld_shlibs=no | |
9967 | fi | |
9968 | ||
9969 | ;; | |
9970 | ||
9971 | dgux*) | |
9972 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9973 | hardcode_libdir_flag_spec='-L$libdir' | |
9974 | hardcode_shlibpath_var=no | |
9975 | ;; | |
9976 | ||
9977 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9978 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9979 | # does not break anything, and helps significantly (at the cost of a little | |
9980 | # extra space). | |
9981 | freebsd2.2*) | |
9982 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9983 | hardcode_libdir_flag_spec='-R$libdir' | |
9984 | hardcode_direct=yes | |
9985 | hardcode_shlibpath_var=no | |
9986 | ;; | |
9987 | ||
9988 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9989 | freebsd2.*) | |
9990 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9991 | hardcode_direct=yes | |
9992 | hardcode_minus_L=yes | |
9993 | hardcode_shlibpath_var=no | |
9994 | ;; | |
9995 | ||
9996 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9997 | freebsd* | dragonfly*) | |
9998 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9999 | hardcode_libdir_flag_spec='-R$libdir' | |
10000 | hardcode_direct=yes | |
10001 | hardcode_shlibpath_var=no | |
10002 | ;; | |
10003 | ||
10004 | hpux9*) | |
10005 | if test "$GCC" = yes; then | |
10006 | 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' | |
10007 | else | |
10008 | 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' | |
10009 | fi | |
10010 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10011 | hardcode_libdir_separator=: | |
10012 | hardcode_direct=yes | |
10013 | ||
10014 | # hardcode_minus_L: Not really in the search PATH, | |
10015 | # but as the default location of the library. | |
10016 | hardcode_minus_L=yes | |
10017 | export_dynamic_flag_spec='${wl}-E' | |
10018 | ;; | |
10019 | ||
10020 | hpux10*) | |
10021 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10022 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10023 | else | |
10024 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10025 | fi | |
10026 | if test "$with_gnu_ld" = no; then | |
10027 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10028 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10029 | hardcode_libdir_separator=: | |
10030 | hardcode_direct=yes | |
10031 | hardcode_direct_absolute=yes | |
10032 | export_dynamic_flag_spec='${wl}-E' | |
10033 | # hardcode_minus_L: Not really in the search PATH, | |
10034 | # but as the default location of the library. | |
10035 | hardcode_minus_L=yes | |
10036 | fi | |
10037 | ;; | |
10038 | ||
10039 | hpux11*) | |
10040 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10041 | case $host_cpu in | |
10042 | hppa*64*) | |
1352bc88 | 10043 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b4c522fa IB |
10044 | ;; |
10045 | ia64*) | |
10046 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10047 | ;; | |
10048 | *) | |
10049 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10050 | ;; | |
10051 | esac | |
10052 | else | |
10053 | case $host_cpu in | |
10054 | hppa*64*) | |
1352bc88 | 10055 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b4c522fa IB |
10056 | ;; |
10057 | ia64*) | |
10058 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10059 | ;; | |
10060 | *) | |
10061 | ||
10062 | # Older versions of the 11.00 compiler do not understand -b yet | |
10063 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10065 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 10066 | if ${lt_cv_prog_compiler__b+:} false; then : |
b4c522fa IB |
10067 | $as_echo_n "(cached) " >&6 |
10068 | else | |
10069 | lt_cv_prog_compiler__b=no | |
10070 | save_LDFLAGS="$LDFLAGS" | |
10071 | LDFLAGS="$LDFLAGS -b" | |
10072 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10073 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10074 | # The linker can only warn and ignore the option if not recognized | |
10075 | # So say no if there are warnings | |
10076 | if test -s conftest.err; then | |
10077 | # Append any errors to the config.log. | |
10078 | cat conftest.err 1>&5 | |
10079 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10080 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10081 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10082 | lt_cv_prog_compiler__b=yes | |
10083 | fi | |
10084 | else | |
10085 | lt_cv_prog_compiler__b=yes | |
10086 | fi | |
10087 | fi | |
10088 | $RM -r conftest* | |
10089 | LDFLAGS="$save_LDFLAGS" | |
10090 | ||
10091 | fi | |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10093 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10094 | ||
10095 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10096 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10097 | else | |
10098 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10099 | fi | |
10100 | ||
10101 | ;; | |
10102 | esac | |
10103 | fi | |
10104 | if test "$with_gnu_ld" = no; then | |
10105 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10106 | hardcode_libdir_separator=: | |
10107 | ||
10108 | case $host_cpu in | |
10109 | hppa*64*|ia64*) | |
10110 | hardcode_direct=no | |
10111 | hardcode_shlibpath_var=no | |
10112 | ;; | |
10113 | *) | |
10114 | hardcode_direct=yes | |
10115 | hardcode_direct_absolute=yes | |
10116 | export_dynamic_flag_spec='${wl}-E' | |
10117 | ||
10118 | # hardcode_minus_L: Not really in the search PATH, | |
10119 | # but as the default location of the library. | |
10120 | hardcode_minus_L=yes | |
10121 | ;; | |
10122 | esac | |
10123 | fi | |
10124 | ;; | |
10125 | ||
10126 | irix5* | irix6* | nonstopux*) | |
10127 | if test "$GCC" = yes; then | |
10128 | 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' | |
10129 | # Try to use the -exported_symbol ld option, if it does not | |
10130 | # work, assume that -exports_file does not work either and | |
10131 | # implicitly export all symbols. | |
10132 | save_LDFLAGS="$LDFLAGS" | |
10133 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10135 | /* end confdefs.h. */ | |
10136 | int foo(void) {} | |
10137 | _ACEOF | |
10138 | if ac_fn_c_try_link "$LINENO"; then : | |
10139 | 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' | |
10140 | ||
10141 | fi | |
10142 | rm -f core conftest.err conftest.$ac_objext \ | |
10143 | conftest$ac_exeext conftest.$ac_ext | |
10144 | LDFLAGS="$save_LDFLAGS" | |
10145 | else | |
10146 | 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' | |
10147 | 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' | |
10148 | fi | |
10149 | archive_cmds_need_lc='no' | |
10150 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10151 | hardcode_libdir_separator=: | |
10152 | inherit_rpath=yes | |
10153 | link_all_deplibs=yes | |
10154 | ;; | |
10155 | ||
10156 | netbsd*) | |
10157 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10158 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10159 | else | |
10160 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10161 | fi | |
10162 | hardcode_libdir_flag_spec='-R$libdir' | |
10163 | hardcode_direct=yes | |
10164 | hardcode_shlibpath_var=no | |
10165 | ;; | |
10166 | ||
10167 | newsos6) | |
10168 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10169 | hardcode_direct=yes | |
10170 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10171 | hardcode_libdir_separator=: | |
10172 | hardcode_shlibpath_var=no | |
10173 | ;; | |
10174 | ||
10175 | *nto* | *qnx*) | |
10176 | ;; | |
10177 | ||
10178 | openbsd*) | |
10179 | if test -f /usr/libexec/ld.so; then | |
10180 | hardcode_direct=yes | |
10181 | hardcode_shlibpath_var=no | |
10182 | hardcode_direct_absolute=yes | |
10183 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10184 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10185 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10186 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10187 | export_dynamic_flag_spec='${wl}-E' | |
10188 | else | |
10189 | case $host_os in | |
10190 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10191 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10192 | hardcode_libdir_flag_spec='-R$libdir' | |
10193 | ;; | |
10194 | *) | |
10195 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10196 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10197 | ;; | |
10198 | esac | |
10199 | fi | |
10200 | else | |
10201 | ld_shlibs=no | |
10202 | fi | |
10203 | ;; | |
10204 | ||
10205 | os2*) | |
10206 | hardcode_libdir_flag_spec='-L$libdir' | |
10207 | hardcode_minus_L=yes | |
10208 | allow_undefined_flag=unsupported | |
10209 | 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' | |
10210 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10211 | ;; | |
10212 | ||
10213 | osf3*) | |
10214 | if test "$GCC" = yes; then | |
10215 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10216 | 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' | |
10217 | else | |
10218 | allow_undefined_flag=' -expect_unresolved \*' | |
10219 | 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' | |
10220 | fi | |
10221 | archive_cmds_need_lc='no' | |
10222 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10223 | hardcode_libdir_separator=: | |
10224 | ;; | |
10225 | ||
10226 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10227 | if test "$GCC" = yes; then | |
10228 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10229 | 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' | |
10230 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10231 | else | |
10232 | allow_undefined_flag=' -expect_unresolved \*' | |
10233 | 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' | |
10234 | 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~ | |
10235 | $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' | |
10236 | ||
10237 | # Both c and cxx compiler support -rpath directly | |
10238 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10239 | fi | |
10240 | archive_cmds_need_lc='no' | |
10241 | hardcode_libdir_separator=: | |
10242 | ;; | |
10243 | ||
10244 | solaris*) | |
10245 | no_undefined_flag=' -z defs' | |
10246 | if test "$GCC" = yes; then | |
10247 | wlarc='${wl}' | |
10248 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10249 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10250 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10251 | else | |
10252 | case `$CC -V 2>&1` in | |
10253 | *"Compilers 5.0"*) | |
10254 | wlarc='' | |
10255 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10256 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10257 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10258 | ;; | |
10259 | *) | |
10260 | wlarc='${wl}' | |
10261 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10262 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10263 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10264 | ;; | |
10265 | esac | |
10266 | fi | |
10267 | hardcode_libdir_flag_spec='-R$libdir' | |
10268 | hardcode_shlibpath_var=no | |
10269 | case $host_os in | |
10270 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10271 | *) | |
10272 | # The compiler driver will combine and reorder linker options, | |
10273 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10274 | # but is careful enough not to reorder. | |
10275 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10276 | if test "$GCC" = yes; then | |
10277 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10278 | else | |
10279 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10280 | fi | |
10281 | ;; | |
10282 | esac | |
10283 | link_all_deplibs=yes | |
10284 | ;; | |
10285 | ||
10286 | sunos4*) | |
10287 | if test "x$host_vendor" = xsequent; then | |
10288 | # Use $CC to link under sequent, because it throws in some extra .o | |
10289 | # files that make .init and .fini sections work. | |
10290 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10291 | else | |
10292 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10293 | fi | |
10294 | hardcode_libdir_flag_spec='-L$libdir' | |
10295 | hardcode_direct=yes | |
10296 | hardcode_minus_L=yes | |
10297 | hardcode_shlibpath_var=no | |
10298 | ;; | |
10299 | ||
10300 | sysv4) | |
10301 | case $host_vendor in | |
10302 | sni) | |
10303 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10304 | hardcode_direct=yes # is this really true??? | |
10305 | ;; | |
10306 | siemens) | |
10307 | ## LD is ld it makes a PLAMLIB | |
10308 | ## CC just makes a GrossModule. | |
10309 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10310 | reload_cmds='$CC -r -o $output$reload_objs' | |
10311 | hardcode_direct=no | |
10312 | ;; | |
10313 | motorola) | |
10314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10315 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10316 | ;; | |
10317 | esac | |
10318 | runpath_var='LD_RUN_PATH' | |
10319 | hardcode_shlibpath_var=no | |
10320 | ;; | |
10321 | ||
10322 | sysv4.3*) | |
10323 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10324 | hardcode_shlibpath_var=no | |
10325 | export_dynamic_flag_spec='-Bexport' | |
10326 | ;; | |
10327 | ||
10328 | sysv4*MP*) | |
10329 | if test -d /usr/nec; then | |
10330 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10331 | hardcode_shlibpath_var=no | |
10332 | runpath_var=LD_RUN_PATH | |
10333 | hardcode_runpath_var=yes | |
10334 | ld_shlibs=yes | |
10335 | fi | |
10336 | ;; | |
10337 | ||
10338 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10339 | no_undefined_flag='${wl}-z,text' | |
10340 | archive_cmds_need_lc=no | |
10341 | hardcode_shlibpath_var=no | |
10342 | runpath_var='LD_RUN_PATH' | |
10343 | ||
10344 | if test "$GCC" = yes; then | |
10345 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10346 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10347 | else | |
10348 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10349 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10350 | fi | |
10351 | ;; | |
10352 | ||
10353 | sysv5* | sco3.2v5* | sco5v6*) | |
10354 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10355 | # link with -lc, and that would cause any symbols used from libc to | |
10356 | # always be unresolved, which means just about no library would | |
10357 | # ever link correctly. If we're not using GNU ld we use -z text | |
10358 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10359 | # as -z defs. | |
10360 | no_undefined_flag='${wl}-z,text' | |
10361 | allow_undefined_flag='${wl}-z,nodefs' | |
10362 | archive_cmds_need_lc=no | |
10363 | hardcode_shlibpath_var=no | |
10364 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10365 | hardcode_libdir_separator=':' | |
10366 | link_all_deplibs=yes | |
10367 | export_dynamic_flag_spec='${wl}-Bexport' | |
10368 | runpath_var='LD_RUN_PATH' | |
10369 | ||
10370 | if test "$GCC" = yes; then | |
10371 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10372 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10373 | else | |
10374 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10375 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10376 | fi | |
10377 | ;; | |
10378 | ||
10379 | uts4*) | |
10380 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10381 | hardcode_libdir_flag_spec='-L$libdir' | |
10382 | hardcode_shlibpath_var=no | |
10383 | ;; | |
10384 | ||
10385 | *) | |
10386 | ld_shlibs=no | |
10387 | ;; | |
10388 | esac | |
10389 | ||
10390 | if test x$host_vendor = xsni; then | |
10391 | case $host in | |
10392 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10393 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10394 | ;; | |
10395 | esac | |
10396 | fi | |
10397 | fi | |
10398 | ||
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10400 | $as_echo "$ld_shlibs" >&6; } | |
10401 | test "$ld_shlibs" = no && can_build_shared=no | |
10402 | ||
10403 | with_gnu_ld=$with_gnu_ld | |
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | # | |
10420 | # Do we need to explicitly link libc? | |
10421 | # | |
10422 | case "x$archive_cmds_need_lc" in | |
10423 | x|xyes) | |
10424 | # Assume -lc should be added | |
10425 | archive_cmds_need_lc=yes | |
10426 | ||
10427 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10428 | case $archive_cmds in | |
10429 | *'~'*) | |
10430 | # FIXME: we may have to deal with multi-command sequences. | |
10431 | ;; | |
10432 | '$CC '*) | |
10433 | # Test whether the compiler implicitly links with -lc since on some | |
10434 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10435 | # to ld, don't add -lc before -lgcc. | |
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10437 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10438 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
b4c522fa IB |
10439 | $as_echo_n "(cached) " >&6 |
10440 | else | |
10441 | $RM conftest* | |
10442 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10443 | ||
10444 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10445 | (eval $ac_compile) 2>&5 | |
10446 | ac_status=$? | |
10447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10448 | test $ac_status = 0; } 2>conftest.err; then | |
10449 | soname=conftest | |
10450 | lib=conftest | |
10451 | libobjs=conftest.$ac_objext | |
10452 | deplibs= | |
10453 | wl=$lt_prog_compiler_wl | |
10454 | pic_flag=$lt_prog_compiler_pic | |
10455 | compiler_flags=-v | |
10456 | linker_flags=-v | |
10457 | verstring= | |
10458 | output_objdir=. | |
10459 | libname=conftest | |
10460 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10461 | allow_undefined_flag= | |
10462 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10463 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10464 | ac_status=$? | |
10465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10466 | test $ac_status = 0; } | |
10467 | then | |
10468 | lt_cv_archive_cmds_need_lc=no | |
10469 | else | |
10470 | lt_cv_archive_cmds_need_lc=yes | |
10471 | fi | |
10472 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10473 | else | |
10474 | cat conftest.err 1>&5 | |
10475 | fi | |
10476 | $RM conftest* | |
10477 | ||
10478 | fi | |
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10480 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10481 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10482 | ;; | |
10483 | esac | |
10484 | fi | |
10485 | ;; | |
10486 | esac | |
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10645 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10646 | ||
10647 | if test "$GCC" = yes; then | |
10648 | case $host_os in | |
10649 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10650 | *) lt_awk_arg="/^libraries:/" ;; | |
10651 | esac | |
10652 | case $host_os in | |
10653 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10654 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10655 | esac | |
10656 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10657 | case $lt_search_path_spec in | |
10658 | *\;*) | |
10659 | # if the path contains ";" then we assume it to be the separator | |
10660 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10661 | # assumed that no part of a normal pathname contains ";" but that should | |
10662 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10663 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10664 | ;; | |
10665 | *) | |
10666 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10667 | ;; | |
10668 | esac | |
10669 | # Ok, now we have the path, separated by spaces, we can step through it | |
10670 | # and add multilib dir if necessary. | |
10671 | lt_tmp_lt_search_path_spec= | |
10672 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10673 | for lt_sys_path in $lt_search_path_spec; do | |
10674 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10675 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10676 | else | |
10677 | test -d "$lt_sys_path" && \ | |
10678 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10679 | fi | |
10680 | done | |
10681 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10682 | BEGIN {RS=" "; FS="/|\n";} { | |
10683 | lt_foo=""; | |
10684 | lt_count=0; | |
10685 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10686 | if ($lt_i != "" && $lt_i != ".") { | |
10687 | if ($lt_i == "..") { | |
10688 | lt_count++; | |
10689 | } else { | |
10690 | if (lt_count == 0) { | |
10691 | lt_foo="/" $lt_i lt_foo; | |
10692 | } else { | |
10693 | lt_count--; | |
10694 | } | |
10695 | } | |
10696 | } | |
10697 | } | |
10698 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10699 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10700 | }'` | |
10701 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10702 | # for these hosts. | |
10703 | case $host_os in | |
10704 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10705 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10706 | esac | |
10707 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10708 | else | |
10709 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10710 | fi | |
10711 | library_names_spec= | |
10712 | libname_spec='lib$name' | |
10713 | soname_spec= | |
10714 | shrext_cmds=".so" | |
10715 | postinstall_cmds= | |
10716 | postuninstall_cmds= | |
10717 | finish_cmds= | |
10718 | finish_eval= | |
10719 | shlibpath_var= | |
10720 | shlibpath_overrides_runpath=unknown | |
10721 | version_type=none | |
10722 | dynamic_linker="$host_os ld.so" | |
10723 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10724 | need_lib_prefix=unknown | |
10725 | hardcode_into_libs=no | |
10726 | ||
10727 | # when you set need_version to no, make sure it does not cause -set_version | |
10728 | # flags to be left without arguments | |
10729 | need_version=unknown | |
10730 | ||
10731 | case $host_os in | |
10732 | aix3*) | |
10733 | version_type=linux | |
10734 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10735 | shlibpath_var=LIBPATH | |
10736 | ||
10737 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10738 | soname_spec='${libname}${release}${shared_ext}$major' | |
10739 | ;; | |
10740 | ||
10741 | aix[4-9]*) | |
10742 | version_type=linux | |
10743 | need_lib_prefix=no | |
10744 | need_version=no | |
10745 | hardcode_into_libs=yes | |
10746 | if test "$host_cpu" = ia64; then | |
10747 | # AIX 5 supports IA64 | |
10748 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10749 | shlibpath_var=LD_LIBRARY_PATH | |
10750 | else | |
10751 | # With GCC up to 2.95.x, collect2 would create an import file | |
10752 | # for dependence libraries. The import file would start with | |
10753 | # the line `#! .'. This would cause the generated library to | |
10754 | # depend on `.', always an invalid library. This was fixed in | |
10755 | # development snapshots of GCC prior to 3.0. | |
10756 | case $host_os in | |
10757 | aix4 | aix4.[01] | aix4.[01].*) | |
10758 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10759 | echo ' yes ' | |
10760 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10761 | : | |
10762 | else | |
10763 | can_build_shared=no | |
10764 | fi | |
10765 | ;; | |
10766 | esac | |
10767 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10768 | # soname into executable. Probably we can add versioning support to | |
10769 | # collect2, so additional links can be useful in future. | |
10770 | if test "$aix_use_runtimelinking" = yes; then | |
10771 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10772 | # instead of lib<name>.a to let people know that these are not | |
10773 | # typical AIX shared libraries. | |
10774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10775 | else | |
10776 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10777 | # and later when we are not doing run time linking. | |
10778 | library_names_spec='${libname}${release}.a $libname.a' | |
10779 | soname_spec='${libname}${release}${shared_ext}$major' | |
10780 | fi | |
10781 | shlibpath_var=LIBPATH | |
10782 | fi | |
10783 | ;; | |
10784 | ||
10785 | amigaos*) | |
10786 | case $host_cpu in | |
10787 | powerpc) | |
10788 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10789 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10791 | ;; | |
10792 | m68k) | |
10793 | library_names_spec='$libname.ixlibrary $libname.a' | |
10794 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10795 | 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' | |
10796 | ;; | |
10797 | esac | |
10798 | ;; | |
10799 | ||
10800 | beos*) | |
10801 | library_names_spec='${libname}${shared_ext}' | |
10802 | dynamic_linker="$host_os ld.so" | |
10803 | shlibpath_var=LIBRARY_PATH | |
10804 | ;; | |
10805 | ||
10806 | bsdi[45]*) | |
10807 | version_type=linux | |
10808 | need_version=no | |
10809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10810 | soname_spec='${libname}${release}${shared_ext}$major' | |
10811 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10812 | shlibpath_var=LD_LIBRARY_PATH | |
10813 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10814 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10815 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10816 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10817 | # libtool to hard-code these into programs | |
10818 | ;; | |
10819 | ||
10820 | cygwin* | mingw* | pw32* | cegcc*) | |
10821 | version_type=windows | |
10822 | shrext_cmds=".dll" | |
10823 | need_version=no | |
10824 | need_lib_prefix=no | |
10825 | ||
10826 | case $GCC,$host_os in | |
10827 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10828 | library_names_spec='$libname.dll.a' | |
10829 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10830 | postinstall_cmds='base_file=`basename \${file}`~ | |
10831 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10832 | dldir=$destdir/`dirname \$dlpath`~ | |
10833 | test -d \$dldir || mkdir -p \$dldir~ | |
10834 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10835 | chmod a+x \$dldir/$dlname~ | |
10836 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10837 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10838 | fi' | |
10839 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10840 | dlpath=$dir/\$dldll~ | |
10841 | $RM \$dlpath' | |
10842 | shlibpath_overrides_runpath=yes | |
10843 | ||
10844 | case $host_os in | |
10845 | cygwin*) | |
10846 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10847 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10848 | ||
10849 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10850 | ;; | |
10851 | mingw* | cegcc*) | |
10852 | # MinGW DLLs use traditional 'lib' prefix | |
10853 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10854 | ;; | |
10855 | pw32*) | |
10856 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10857 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10858 | ;; | |
10859 | esac | |
10860 | ;; | |
10861 | ||
10862 | *) | |
10863 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10864 | ;; | |
10865 | esac | |
10866 | dynamic_linker='Win32 ld.exe' | |
10867 | # FIXME: first we should search . and the directory the executable is in | |
10868 | shlibpath_var=PATH | |
10869 | ;; | |
10870 | ||
10871 | darwin* | rhapsody*) | |
10872 | dynamic_linker="$host_os dyld" | |
10873 | version_type=darwin | |
10874 | need_lib_prefix=no | |
10875 | need_version=no | |
10876 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10877 | soname_spec='${libname}${release}${major}$shared_ext' | |
10878 | shlibpath_overrides_runpath=yes | |
10879 | shlibpath_var=DYLD_LIBRARY_PATH | |
10880 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10881 | ||
10882 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10883 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10884 | ;; | |
10885 | ||
10886 | dgux*) | |
10887 | version_type=linux | |
10888 | need_lib_prefix=no | |
10889 | need_version=no | |
10890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10891 | soname_spec='${libname}${release}${shared_ext}$major' | |
10892 | shlibpath_var=LD_LIBRARY_PATH | |
10893 | ;; | |
10894 | ||
10895 | freebsd* | dragonfly*) | |
10896 | # DragonFly does not have aout. When/if they implement a new | |
10897 | # versioning mechanism, adjust this. | |
10898 | if test -x /usr/bin/objformat; then | |
10899 | objformat=`/usr/bin/objformat` | |
10900 | else | |
10901 | case $host_os in | |
10902 | freebsd[23].*) objformat=aout ;; | |
10903 | *) objformat=elf ;; | |
10904 | esac | |
10905 | fi | |
10906 | version_type=freebsd-$objformat | |
10907 | case $version_type in | |
10908 | freebsd-elf*) | |
10909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10910 | need_version=no | |
10911 | need_lib_prefix=no | |
10912 | ;; | |
10913 | freebsd-*) | |
10914 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10915 | need_version=yes | |
10916 | ;; | |
10917 | esac | |
10918 | shlibpath_var=LD_LIBRARY_PATH | |
10919 | case $host_os in | |
10920 | freebsd2.*) | |
10921 | shlibpath_overrides_runpath=yes | |
10922 | ;; | |
10923 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10924 | shlibpath_overrides_runpath=yes | |
10925 | hardcode_into_libs=yes | |
10926 | ;; | |
10927 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10928 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10929 | shlibpath_overrides_runpath=no | |
10930 | hardcode_into_libs=yes | |
10931 | ;; | |
10932 | *) # from 4.6 on, and DragonFly | |
10933 | shlibpath_overrides_runpath=yes | |
10934 | hardcode_into_libs=yes | |
10935 | ;; | |
10936 | esac | |
10937 | ;; | |
10938 | ||
10939 | gnu*) | |
10940 | version_type=linux | |
10941 | need_lib_prefix=no | |
10942 | need_version=no | |
10943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10944 | soname_spec='${libname}${release}${shared_ext}$major' | |
10945 | shlibpath_var=LD_LIBRARY_PATH | |
10946 | hardcode_into_libs=yes | |
10947 | ;; | |
10948 | ||
10949 | haiku*) | |
10950 | version_type=linux | |
10951 | need_lib_prefix=no | |
10952 | need_version=no | |
10953 | dynamic_linker="$host_os runtime_loader" | |
10954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10955 | soname_spec='${libname}${release}${shared_ext}$major' | |
10956 | shlibpath_var=LIBRARY_PATH | |
10957 | shlibpath_overrides_runpath=yes | |
10958 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10959 | hardcode_into_libs=yes | |
10960 | ;; | |
10961 | ||
10962 | hpux9* | hpux10* | hpux11*) | |
10963 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10964 | # link against other versions. | |
10965 | version_type=sunos | |
10966 | need_lib_prefix=no | |
10967 | need_version=no | |
10968 | case $host_cpu in | |
10969 | ia64*) | |
10970 | shrext_cmds='.so' | |
10971 | hardcode_into_libs=yes | |
10972 | dynamic_linker="$host_os dld.so" | |
10973 | shlibpath_var=LD_LIBRARY_PATH | |
10974 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10976 | soname_spec='${libname}${release}${shared_ext}$major' | |
10977 | if test "X$HPUX_IA64_MODE" = X32; then | |
10978 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10979 | else | |
10980 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10981 | fi | |
10982 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10983 | ;; | |
10984 | hppa*64*) | |
10985 | shrext_cmds='.sl' | |
10986 | hardcode_into_libs=yes | |
10987 | dynamic_linker="$host_os dld.sl" | |
10988 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10989 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10991 | soname_spec='${libname}${release}${shared_ext}$major' | |
10992 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10993 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10994 | ;; | |
10995 | *) | |
10996 | shrext_cmds='.sl' | |
10997 | dynamic_linker="$host_os dld.sl" | |
10998 | shlibpath_var=SHLIB_PATH | |
10999 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11001 | soname_spec='${libname}${release}${shared_ext}$major' | |
11002 | ;; | |
11003 | esac | |
11004 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11005 | postinstall_cmds='chmod 555 $lib' | |
11006 | # or fails outright, so override atomically: | |
11007 | install_override_mode=555 | |
11008 | ;; | |
11009 | ||
11010 | interix[3-9]*) | |
11011 | version_type=linux | |
11012 | need_lib_prefix=no | |
11013 | need_version=no | |
11014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11015 | soname_spec='${libname}${release}${shared_ext}$major' | |
11016 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11017 | shlibpath_var=LD_LIBRARY_PATH | |
11018 | shlibpath_overrides_runpath=no | |
11019 | hardcode_into_libs=yes | |
11020 | ;; | |
11021 | ||
11022 | irix5* | irix6* | nonstopux*) | |
11023 | case $host_os in | |
11024 | nonstopux*) version_type=nonstopux ;; | |
11025 | *) | |
11026 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11027 | version_type=linux | |
11028 | else | |
11029 | version_type=irix | |
11030 | fi ;; | |
11031 | esac | |
11032 | need_lib_prefix=no | |
11033 | need_version=no | |
11034 | soname_spec='${libname}${release}${shared_ext}$major' | |
11035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11036 | case $host_os in | |
11037 | irix5* | nonstopux*) | |
11038 | libsuff= shlibsuff= | |
11039 | ;; | |
11040 | *) | |
11041 | case $LD in # libtool.m4 will add one of these switches to LD | |
11042 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11043 | libsuff= shlibsuff= libmagic=32-bit;; | |
11044 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11045 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11046 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11047 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11048 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11049 | esac | |
11050 | ;; | |
11051 | esac | |
11052 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11053 | shlibpath_overrides_runpath=no | |
11054 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11055 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11056 | hardcode_into_libs=yes | |
11057 | ;; | |
11058 | ||
11059 | # No shared lib support for Linux oldld, aout, or coff. | |
11060 | linux*oldld* | linux*aout* | linux*coff*) | |
11061 | dynamic_linker=no | |
11062 | ;; | |
11063 | ||
11064 | # This must be Linux ELF. | |
e9085da5 MR |
11065 | |
11066 | # uclinux* changes (here and below) have been submitted to the libtool | |
11067 | # project, but have not yet been accepted: they are GCC-local changes | |
11068 | # for the time being. (See | |
11069 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
11070 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
b4c522fa IB |
11071 | version_type=linux |
11072 | need_lib_prefix=no | |
11073 | need_version=no | |
11074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11075 | soname_spec='${libname}${release}${shared_ext}$major' | |
11076 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11077 | shlibpath_var=LD_LIBRARY_PATH | |
11078 | shlibpath_overrides_runpath=no | |
11079 | ||
11080 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 11081 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
b4c522fa IB |
11082 | $as_echo_n "(cached) " >&6 |
11083 | else | |
11084 | lt_cv_shlibpath_overrides_runpath=no | |
11085 | save_LDFLAGS=$LDFLAGS | |
11086 | save_libdir=$libdir | |
11087 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11088 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11090 | /* end confdefs.h. */ | |
11091 | ||
11092 | int | |
11093 | main () | |
11094 | { | |
11095 | ||
11096 | ; | |
11097 | return 0; | |
11098 | } | |
11099 | _ACEOF | |
11100 | if ac_fn_c_try_link "$LINENO"; then : | |
11101 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11102 | lt_cv_shlibpath_overrides_runpath=yes | |
11103 | fi | |
11104 | fi | |
11105 | rm -f core conftest.err conftest.$ac_objext \ | |
11106 | conftest$ac_exeext conftest.$ac_ext | |
11107 | LDFLAGS=$save_LDFLAGS | |
11108 | libdir=$save_libdir | |
11109 | ||
11110 | fi | |
11111 | ||
11112 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11113 | ||
11114 | # This implies no fast_install, which is unacceptable. | |
11115 | # Some rework will be needed to allow for fast_install | |
11116 | # before this can be enabled. | |
11117 | hardcode_into_libs=yes | |
11118 | ||
11119 | # Append ld.so.conf contents to the search path | |
11120 | if test -f /etc/ld.so.conf; then | |
11121 | 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' ' '` | |
11122 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11123 | fi | |
11124 | ||
11125 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11126 | # powerpc, because MkLinux only supported shared libraries with the | |
11127 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11128 | # most powerpc-linux boxes support dynamic linking these days and | |
11129 | # people can always --disable-shared, the test was removed, and we | |
11130 | # assume the GNU/Linux dynamic linker is in use. | |
11131 | dynamic_linker='GNU/Linux ld.so' | |
11132 | ;; | |
11133 | ||
11134 | netbsd*) | |
11135 | version_type=sunos | |
11136 | need_lib_prefix=no | |
11137 | need_version=no | |
11138 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11140 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11141 | dynamic_linker='NetBSD (a.out) ld.so' | |
11142 | else | |
11143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11144 | soname_spec='${libname}${release}${shared_ext}$major' | |
11145 | dynamic_linker='NetBSD ld.elf_so' | |
11146 | fi | |
11147 | shlibpath_var=LD_LIBRARY_PATH | |
11148 | shlibpath_overrides_runpath=yes | |
11149 | hardcode_into_libs=yes | |
11150 | ;; | |
11151 | ||
11152 | newsos6) | |
11153 | version_type=linux | |
11154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11155 | shlibpath_var=LD_LIBRARY_PATH | |
11156 | shlibpath_overrides_runpath=yes | |
11157 | ;; | |
11158 | ||
11159 | *nto* | *qnx*) | |
11160 | version_type=qnx | |
11161 | need_lib_prefix=no | |
11162 | need_version=no | |
11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11164 | soname_spec='${libname}${release}${shared_ext}$major' | |
11165 | shlibpath_var=LD_LIBRARY_PATH | |
11166 | shlibpath_overrides_runpath=no | |
11167 | hardcode_into_libs=yes | |
11168 | dynamic_linker='ldqnx.so' | |
11169 | ;; | |
11170 | ||
11171 | openbsd*) | |
11172 | version_type=sunos | |
11173 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11174 | need_lib_prefix=no | |
11175 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11176 | case $host_os in | |
11177 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11178 | *) need_version=no ;; | |
11179 | esac | |
11180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11181 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11182 | shlibpath_var=LD_LIBRARY_PATH | |
11183 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11184 | case $host_os in | |
11185 | openbsd2.[89] | openbsd2.[89].*) | |
11186 | shlibpath_overrides_runpath=no | |
11187 | ;; | |
11188 | *) | |
11189 | shlibpath_overrides_runpath=yes | |
11190 | ;; | |
11191 | esac | |
11192 | else | |
11193 | shlibpath_overrides_runpath=yes | |
11194 | fi | |
11195 | ;; | |
11196 | ||
11197 | os2*) | |
11198 | libname_spec='$name' | |
11199 | shrext_cmds=".dll" | |
11200 | need_lib_prefix=no | |
11201 | library_names_spec='$libname${shared_ext} $libname.a' | |
11202 | dynamic_linker='OS/2 ld.exe' | |
11203 | shlibpath_var=LIBPATH | |
11204 | ;; | |
11205 | ||
11206 | osf3* | osf4* | osf5*) | |
11207 | version_type=osf | |
11208 | need_lib_prefix=no | |
11209 | need_version=no | |
11210 | soname_spec='${libname}${release}${shared_ext}$major' | |
11211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11212 | shlibpath_var=LD_LIBRARY_PATH | |
11213 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11214 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11215 | ;; | |
11216 | ||
11217 | rdos*) | |
11218 | dynamic_linker=no | |
11219 | ;; | |
11220 | ||
11221 | solaris*) | |
11222 | version_type=linux | |
11223 | need_lib_prefix=no | |
11224 | need_version=no | |
11225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11226 | soname_spec='${libname}${release}${shared_ext}$major' | |
11227 | shlibpath_var=LD_LIBRARY_PATH | |
11228 | shlibpath_overrides_runpath=yes | |
11229 | hardcode_into_libs=yes | |
11230 | # ldd complains unless libraries are executable | |
11231 | postinstall_cmds='chmod +x $lib' | |
11232 | ;; | |
11233 | ||
11234 | sunos4*) | |
11235 | version_type=sunos | |
11236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11237 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11238 | shlibpath_var=LD_LIBRARY_PATH | |
11239 | shlibpath_overrides_runpath=yes | |
11240 | if test "$with_gnu_ld" = yes; then | |
11241 | need_lib_prefix=no | |
11242 | fi | |
11243 | need_version=yes | |
11244 | ;; | |
11245 | ||
11246 | sysv4 | sysv4.3*) | |
11247 | version_type=linux | |
11248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11249 | soname_spec='${libname}${release}${shared_ext}$major' | |
11250 | shlibpath_var=LD_LIBRARY_PATH | |
11251 | case $host_vendor in | |
11252 | sni) | |
11253 | shlibpath_overrides_runpath=no | |
11254 | need_lib_prefix=no | |
11255 | runpath_var=LD_RUN_PATH | |
11256 | ;; | |
11257 | siemens) | |
11258 | need_lib_prefix=no | |
11259 | ;; | |
11260 | motorola) | |
11261 | need_lib_prefix=no | |
11262 | need_version=no | |
11263 | shlibpath_overrides_runpath=no | |
11264 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11265 | ;; | |
11266 | esac | |
11267 | ;; | |
11268 | ||
11269 | sysv4*MP*) | |
11270 | if test -d /usr/nec ;then | |
11271 | version_type=linux | |
11272 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11273 | soname_spec='$libname${shared_ext}.$major' | |
11274 | shlibpath_var=LD_LIBRARY_PATH | |
11275 | fi | |
11276 | ;; | |
11277 | ||
11278 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11279 | version_type=freebsd-elf | |
11280 | need_lib_prefix=no | |
11281 | need_version=no | |
11282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11283 | soname_spec='${libname}${release}${shared_ext}$major' | |
11284 | shlibpath_var=LD_LIBRARY_PATH | |
11285 | shlibpath_overrides_runpath=yes | |
11286 | hardcode_into_libs=yes | |
11287 | if test "$with_gnu_ld" = yes; then | |
11288 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11289 | else | |
11290 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11291 | case $host_os in | |
11292 | sco3.2v5*) | |
11293 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11294 | ;; | |
11295 | esac | |
11296 | fi | |
11297 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11298 | ;; | |
11299 | ||
11300 | tpf*) | |
11301 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11302 | version_type=linux | |
11303 | need_lib_prefix=no | |
11304 | need_version=no | |
11305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11306 | shlibpath_var=LD_LIBRARY_PATH | |
11307 | shlibpath_overrides_runpath=no | |
11308 | hardcode_into_libs=yes | |
11309 | ;; | |
11310 | ||
11311 | uts4*) | |
11312 | version_type=linux | |
11313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11314 | soname_spec='${libname}${release}${shared_ext}$major' | |
11315 | shlibpath_var=LD_LIBRARY_PATH | |
11316 | ;; | |
11317 | ||
11318 | *) | |
11319 | dynamic_linker=no | |
11320 | ;; | |
11321 | esac | |
11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11323 | $as_echo "$dynamic_linker" >&6; } | |
11324 | test "$dynamic_linker" = no && can_build_shared=no | |
11325 | ||
11326 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11327 | if test "$GCC" = yes; then | |
11328 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11329 | fi | |
11330 | ||
11331 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11332 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11333 | fi | |
11334 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11335 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11336 | fi | |
11337 | ||
11338 | ||
11339 | ||
11340 | ||
11341 | ||
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | ||
11351 | ||
11352 | ||
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11430 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11431 | hardcode_action= | |
11432 | if test -n "$hardcode_libdir_flag_spec" || | |
11433 | test -n "$runpath_var" || | |
11434 | test "X$hardcode_automatic" = "Xyes" ; then | |
11435 | ||
11436 | # We can hardcode non-existent directories. | |
11437 | if test "$hardcode_direct" != no && | |
11438 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11439 | # have to relink, otherwise we might link with an installed library | |
11440 | # when we should be linking with a yet-to-be-installed one | |
11441 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11442 | test "$hardcode_minus_L" != no; then | |
11443 | # Linking always hardcodes the temporary library directory. | |
11444 | hardcode_action=relink | |
11445 | else | |
11446 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11447 | hardcode_action=immediate | |
11448 | fi | |
11449 | else | |
11450 | # We cannot hardcode anything, or else we can only hardcode existing | |
11451 | # directories. | |
11452 | hardcode_action=unsupported | |
11453 | fi | |
11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11455 | $as_echo "$hardcode_action" >&6; } | |
11456 | ||
11457 | if test "$hardcode_action" = relink || | |
11458 | test "$inherit_rpath" = yes; then | |
11459 | # Fast installation is not supported | |
11460 | enable_fast_install=no | |
11461 | elif test "$shlibpath_overrides_runpath" = yes || | |
11462 | test "$enable_shared" = no; then | |
11463 | # Fast installation is not necessary | |
11464 | enable_fast_install=needless | |
11465 | fi | |
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | if test "x$enable_dlopen" != xyes; then | |
11473 | enable_dlopen=unknown | |
11474 | enable_dlopen_self=unknown | |
11475 | enable_dlopen_self_static=unknown | |
11476 | else | |
11477 | lt_cv_dlopen=no | |
11478 | lt_cv_dlopen_libs= | |
11479 | ||
11480 | case $host_os in | |
11481 | beos*) | |
11482 | lt_cv_dlopen="load_add_on" | |
11483 | lt_cv_dlopen_libs= | |
11484 | lt_cv_dlopen_self=yes | |
11485 | ;; | |
11486 | ||
11487 | mingw* | pw32* | cegcc*) | |
11488 | lt_cv_dlopen="LoadLibrary" | |
11489 | lt_cv_dlopen_libs= | |
11490 | ;; | |
11491 | ||
11492 | cygwin*) | |
11493 | lt_cv_dlopen="dlopen" | |
11494 | lt_cv_dlopen_libs= | |
11495 | ;; | |
11496 | ||
11497 | darwin*) | |
11498 | # if libdl is installed we need to link against it | |
11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11500 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11501 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
b4c522fa IB |
11502 | $as_echo_n "(cached) " >&6 |
11503 | else | |
11504 | ac_check_lib_save_LIBS=$LIBS | |
11505 | LIBS="-ldl $LIBS" | |
11506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11507 | /* end confdefs.h. */ | |
11508 | ||
11509 | /* Override any GCC internal prototype to avoid an error. | |
11510 | Use char because int might match the return type of a GCC | |
11511 | builtin and then its argument prototype would still apply. */ | |
11512 | #ifdef __cplusplus | |
11513 | extern "C" | |
11514 | #endif | |
11515 | char dlopen (); | |
11516 | int | |
11517 | main () | |
11518 | { | |
11519 | return dlopen (); | |
11520 | ; | |
11521 | return 0; | |
11522 | } | |
11523 | _ACEOF | |
11524 | if ac_fn_c_try_link "$LINENO"; then : | |
11525 | ac_cv_lib_dl_dlopen=yes | |
11526 | else | |
11527 | ac_cv_lib_dl_dlopen=no | |
11528 | fi | |
11529 | rm -f core conftest.err conftest.$ac_objext \ | |
11530 | conftest$ac_exeext conftest.$ac_ext | |
11531 | LIBS=$ac_check_lib_save_LIBS | |
11532 | fi | |
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11534 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11535 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
b4c522fa IB |
11536 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11537 | else | |
11538 | ||
11539 | lt_cv_dlopen="dyld" | |
11540 | lt_cv_dlopen_libs= | |
11541 | lt_cv_dlopen_self=yes | |
11542 | ||
11543 | fi | |
11544 | ||
11545 | ;; | |
11546 | ||
11547 | *) | |
11548 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
22e05272 | 11549 | if test "x$ac_cv_func_shl_load" = xyes; then : |
b4c522fa IB |
11550 | lt_cv_dlopen="shl_load" |
11551 | else | |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11553 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11554 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
b4c522fa IB |
11555 | $as_echo_n "(cached) " >&6 |
11556 | else | |
11557 | ac_check_lib_save_LIBS=$LIBS | |
11558 | LIBS="-ldld $LIBS" | |
11559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11560 | /* end confdefs.h. */ | |
11561 | ||
11562 | /* Override any GCC internal prototype to avoid an error. | |
11563 | Use char because int might match the return type of a GCC | |
11564 | builtin and then its argument prototype would still apply. */ | |
11565 | #ifdef __cplusplus | |
11566 | extern "C" | |
11567 | #endif | |
11568 | char shl_load (); | |
11569 | int | |
11570 | main () | |
11571 | { | |
11572 | return shl_load (); | |
11573 | ; | |
11574 | return 0; | |
11575 | } | |
11576 | _ACEOF | |
11577 | if ac_fn_c_try_link "$LINENO"; then : | |
11578 | ac_cv_lib_dld_shl_load=yes | |
11579 | else | |
11580 | ac_cv_lib_dld_shl_load=no | |
11581 | fi | |
11582 | rm -f core conftest.err conftest.$ac_objext \ | |
11583 | conftest$ac_exeext conftest.$ac_ext | |
11584 | LIBS=$ac_check_lib_save_LIBS | |
11585 | fi | |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11587 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11588 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
b4c522fa IB |
11589 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11590 | else | |
11591 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
22e05272 | 11592 | if test "x$ac_cv_func_dlopen" = xyes; then : |
b4c522fa IB |
11593 | lt_cv_dlopen="dlopen" |
11594 | else | |
11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11596 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11597 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
b4c522fa IB |
11598 | $as_echo_n "(cached) " >&6 |
11599 | else | |
11600 | ac_check_lib_save_LIBS=$LIBS | |
11601 | LIBS="-ldl $LIBS" | |
11602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11603 | /* end confdefs.h. */ | |
11604 | ||
11605 | /* Override any GCC internal prototype to avoid an error. | |
11606 | Use char because int might match the return type of a GCC | |
11607 | builtin and then its argument prototype would still apply. */ | |
11608 | #ifdef __cplusplus | |
11609 | extern "C" | |
11610 | #endif | |
11611 | char dlopen (); | |
11612 | int | |
11613 | main () | |
11614 | { | |
11615 | return dlopen (); | |
11616 | ; | |
11617 | return 0; | |
11618 | } | |
11619 | _ACEOF | |
11620 | if ac_fn_c_try_link "$LINENO"; then : | |
11621 | ac_cv_lib_dl_dlopen=yes | |
11622 | else | |
11623 | ac_cv_lib_dl_dlopen=no | |
11624 | fi | |
11625 | rm -f core conftest.err conftest.$ac_objext \ | |
11626 | conftest$ac_exeext conftest.$ac_ext | |
11627 | LIBS=$ac_check_lib_save_LIBS | |
11628 | fi | |
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11630 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11631 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
b4c522fa IB |
11632 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11633 | else | |
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11635 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11636 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
b4c522fa IB |
11637 | $as_echo_n "(cached) " >&6 |
11638 | else | |
11639 | ac_check_lib_save_LIBS=$LIBS | |
11640 | LIBS="-lsvld $LIBS" | |
11641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11642 | /* end confdefs.h. */ | |
11643 | ||
11644 | /* Override any GCC internal prototype to avoid an error. | |
11645 | Use char because int might match the return type of a GCC | |
11646 | builtin and then its argument prototype would still apply. */ | |
11647 | #ifdef __cplusplus | |
11648 | extern "C" | |
11649 | #endif | |
11650 | char dlopen (); | |
11651 | int | |
11652 | main () | |
11653 | { | |
11654 | return dlopen (); | |
11655 | ; | |
11656 | return 0; | |
11657 | } | |
11658 | _ACEOF | |
11659 | if ac_fn_c_try_link "$LINENO"; then : | |
11660 | ac_cv_lib_svld_dlopen=yes | |
11661 | else | |
11662 | ac_cv_lib_svld_dlopen=no | |
11663 | fi | |
11664 | rm -f core conftest.err conftest.$ac_objext \ | |
11665 | conftest$ac_exeext conftest.$ac_ext | |
11666 | LIBS=$ac_check_lib_save_LIBS | |
11667 | fi | |
11668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11669 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11670 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
b4c522fa IB |
11671 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11672 | else | |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11674 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11675 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
b4c522fa IB |
11676 | $as_echo_n "(cached) " >&6 |
11677 | else | |
11678 | ac_check_lib_save_LIBS=$LIBS | |
11679 | LIBS="-ldld $LIBS" | |
11680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11681 | /* end confdefs.h. */ | |
11682 | ||
11683 | /* Override any GCC internal prototype to avoid an error. | |
11684 | Use char because int might match the return type of a GCC | |
11685 | builtin and then its argument prototype would still apply. */ | |
11686 | #ifdef __cplusplus | |
11687 | extern "C" | |
11688 | #endif | |
11689 | char dld_link (); | |
11690 | int | |
11691 | main () | |
11692 | { | |
11693 | return dld_link (); | |
11694 | ; | |
11695 | return 0; | |
11696 | } | |
11697 | _ACEOF | |
11698 | if ac_fn_c_try_link "$LINENO"; then : | |
11699 | ac_cv_lib_dld_dld_link=yes | |
11700 | else | |
11701 | ac_cv_lib_dld_dld_link=no | |
11702 | fi | |
11703 | rm -f core conftest.err conftest.$ac_objext \ | |
11704 | conftest$ac_exeext conftest.$ac_ext | |
11705 | LIBS=$ac_check_lib_save_LIBS | |
11706 | fi | |
11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11708 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11709 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
b4c522fa IB |
11710 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11711 | fi | |
11712 | ||
11713 | ||
11714 | fi | |
11715 | ||
11716 | ||
11717 | fi | |
11718 | ||
11719 | ||
11720 | fi | |
11721 | ||
11722 | ||
11723 | fi | |
11724 | ||
11725 | ||
11726 | fi | |
11727 | ||
11728 | ;; | |
11729 | esac | |
11730 | ||
11731 | if test "x$lt_cv_dlopen" != xno; then | |
11732 | enable_dlopen=yes | |
11733 | else | |
11734 | enable_dlopen=no | |
11735 | fi | |
11736 | ||
11737 | case $lt_cv_dlopen in | |
11738 | dlopen) | |
11739 | save_CPPFLAGS="$CPPFLAGS" | |
11740 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11741 | ||
11742 | save_LDFLAGS="$LDFLAGS" | |
11743 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11744 | ||
11745 | save_LIBS="$LIBS" | |
11746 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11747 | ||
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11749 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 11750 | if ${lt_cv_dlopen_self+:} false; then : |
b4c522fa IB |
11751 | $as_echo_n "(cached) " >&6 |
11752 | else | |
11753 | if test "$cross_compiling" = yes; then : | |
11754 | lt_cv_dlopen_self=cross | |
11755 | else | |
11756 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11757 | lt_status=$lt_dlunknown | |
11758 | cat > conftest.$ac_ext <<_LT_EOF | |
1352bc88 | 11759 | #line 11759 "configure" |
b4c522fa IB |
11760 | #include "confdefs.h" |
11761 | ||
11762 | #if HAVE_DLFCN_H | |
11763 | #include <dlfcn.h> | |
11764 | #endif | |
11765 | ||
11766 | #include <stdio.h> | |
11767 | ||
11768 | #ifdef RTLD_GLOBAL | |
11769 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11770 | #else | |
11771 | # ifdef DL_GLOBAL | |
11772 | # define LT_DLGLOBAL DL_GLOBAL | |
11773 | # else | |
11774 | # define LT_DLGLOBAL 0 | |
11775 | # endif | |
11776 | #endif | |
11777 | ||
11778 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11779 | find out it does not work in some platform. */ | |
11780 | #ifndef LT_DLLAZY_OR_NOW | |
11781 | # ifdef RTLD_LAZY | |
11782 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11783 | # else | |
11784 | # ifdef DL_LAZY | |
11785 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11786 | # else | |
11787 | # ifdef RTLD_NOW | |
11788 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11789 | # else | |
11790 | # ifdef DL_NOW | |
11791 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11792 | # else | |
11793 | # define LT_DLLAZY_OR_NOW 0 | |
11794 | # endif | |
11795 | # endif | |
11796 | # endif | |
11797 | # endif | |
11798 | #endif | |
11799 | ||
11800 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11801 | correspondingly for the symbols needed. */ | |
11802 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11803 | void fnord () __attribute__((visibility("default"))); | |
11804 | #endif | |
11805 | ||
11806 | void fnord () { int i=42; } | |
11807 | int main () | |
11808 | { | |
11809 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11810 | int status = $lt_dlunknown; | |
11811 | ||
11812 | if (self) | |
11813 | { | |
11814 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11815 | else | |
11816 | { | |
11817 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11818 | else puts (dlerror ()); | |
11819 | } | |
11820 | /* dlclose (self); */ | |
11821 | } | |
11822 | else | |
11823 | puts (dlerror ()); | |
11824 | ||
11825 | return status; | |
11826 | } | |
11827 | _LT_EOF | |
11828 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11829 | (eval $ac_link) 2>&5 | |
11830 | ac_status=$? | |
11831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11832 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11833 | (./conftest; exit; ) >&5 2>/dev/null | |
11834 | lt_status=$? | |
11835 | case x$lt_status in | |
11836 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11837 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11838 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11839 | esac | |
11840 | else : | |
11841 | # compilation failed | |
11842 | lt_cv_dlopen_self=no | |
11843 | fi | |
11844 | fi | |
11845 | rm -fr conftest* | |
11846 | ||
11847 | ||
11848 | fi | |
11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11850 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11851 | ||
11852 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11853 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11855 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 11856 | if ${lt_cv_dlopen_self_static+:} false; then : |
b4c522fa IB |
11857 | $as_echo_n "(cached) " >&6 |
11858 | else | |
11859 | if test "$cross_compiling" = yes; then : | |
11860 | lt_cv_dlopen_self_static=cross | |
11861 | else | |
11862 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11863 | lt_status=$lt_dlunknown | |
11864 | cat > conftest.$ac_ext <<_LT_EOF | |
1352bc88 | 11865 | #line 11865 "configure" |
b4c522fa IB |
11866 | #include "confdefs.h" |
11867 | ||
11868 | #if HAVE_DLFCN_H | |
11869 | #include <dlfcn.h> | |
11870 | #endif | |
11871 | ||
11872 | #include <stdio.h> | |
11873 | ||
11874 | #ifdef RTLD_GLOBAL | |
11875 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11876 | #else | |
11877 | # ifdef DL_GLOBAL | |
11878 | # define LT_DLGLOBAL DL_GLOBAL | |
11879 | # else | |
11880 | # define LT_DLGLOBAL 0 | |
11881 | # endif | |
11882 | #endif | |
11883 | ||
11884 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11885 | find out it does not work in some platform. */ | |
11886 | #ifndef LT_DLLAZY_OR_NOW | |
11887 | # ifdef RTLD_LAZY | |
11888 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11889 | # else | |
11890 | # ifdef DL_LAZY | |
11891 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11892 | # else | |
11893 | # ifdef RTLD_NOW | |
11894 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11895 | # else | |
11896 | # ifdef DL_NOW | |
11897 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11898 | # else | |
11899 | # define LT_DLLAZY_OR_NOW 0 | |
11900 | # endif | |
11901 | # endif | |
11902 | # endif | |
11903 | # endif | |
11904 | #endif | |
11905 | ||
11906 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11907 | correspondingly for the symbols needed. */ | |
11908 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11909 | void fnord () __attribute__((visibility("default"))); | |
11910 | #endif | |
11911 | ||
11912 | void fnord () { int i=42; } | |
11913 | int main () | |
11914 | { | |
11915 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11916 | int status = $lt_dlunknown; | |
11917 | ||
11918 | if (self) | |
11919 | { | |
11920 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11921 | else | |
11922 | { | |
11923 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11924 | else puts (dlerror ()); | |
11925 | } | |
11926 | /* dlclose (self); */ | |
11927 | } | |
11928 | else | |
11929 | puts (dlerror ()); | |
11930 | ||
11931 | return status; | |
11932 | } | |
11933 | _LT_EOF | |
11934 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11935 | (eval $ac_link) 2>&5 | |
11936 | ac_status=$? | |
11937 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11938 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11939 | (./conftest; exit; ) >&5 2>/dev/null | |
11940 | lt_status=$? | |
11941 | case x$lt_status in | |
11942 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11943 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11944 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11945 | esac | |
11946 | else : | |
11947 | # compilation failed | |
11948 | lt_cv_dlopen_self_static=no | |
11949 | fi | |
11950 | fi | |
11951 | rm -fr conftest* | |
11952 | ||
11953 | ||
11954 | fi | |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11956 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11957 | fi | |
11958 | ||
11959 | CPPFLAGS="$save_CPPFLAGS" | |
11960 | LDFLAGS="$save_LDFLAGS" | |
11961 | LIBS="$save_LIBS" | |
11962 | ;; | |
11963 | esac | |
11964 | ||
11965 | case $lt_cv_dlopen_self in | |
11966 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11967 | *) enable_dlopen_self=unknown ;; | |
11968 | esac | |
11969 | ||
11970 | case $lt_cv_dlopen_self_static in | |
11971 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11972 | *) enable_dlopen_self_static=unknown ;; | |
11973 | esac | |
11974 | fi | |
11975 | ||
11976 | ||
11977 | ||
11978 | ||
11979 | ||
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | striplib= | |
11993 | old_striplib= | |
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11995 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11996 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11997 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11998 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12000 | $as_echo "yes" >&6; } | |
12001 | else | |
12002 | # FIXME - insert some real tests, host_os isn't really good enough | |
12003 | case $host_os in | |
12004 | darwin*) | |
12005 | if test -n "$STRIP" ; then | |
12006 | striplib="$STRIP -x" | |
12007 | old_striplib="$STRIP -S" | |
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12009 | $as_echo "yes" >&6; } | |
12010 | else | |
12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12012 | $as_echo "no" >&6; } | |
12013 | fi | |
12014 | ;; | |
12015 | *) | |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12017 | $as_echo "no" >&6; } | |
12018 | ;; | |
12019 | esac | |
12020 | fi | |
12021 | ||
12022 | ||
12023 | ||
12024 | ||
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | # Report which library types will actually be built | |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12035 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12037 | $as_echo "$can_build_shared" >&6; } | |
12038 | ||
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12040 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12041 | test "$can_build_shared" = "no" && enable_shared=no | |
12042 | ||
12043 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12044 | # are all built from PIC. | |
12045 | case $host_os in | |
12046 | aix3*) | |
12047 | test "$enable_shared" = yes && enable_static=no | |
12048 | if test -n "$RANLIB"; then | |
12049 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12050 | postinstall_cmds='$RANLIB $lib' | |
12051 | fi | |
12052 | ;; | |
12053 | ||
12054 | aix[4-9]*) | |
12055 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12056 | test "$enable_shared" = yes && enable_static=no | |
12057 | fi | |
12058 | ;; | |
12059 | esac | |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12061 | $as_echo "$enable_shared" >&6; } | |
12062 | ||
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12064 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12065 | # Make sure either enable_shared or enable_static is yes. | |
12066 | test "$enable_shared" = yes || enable_static=yes | |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12068 | $as_echo "$enable_static" >&6; } | |
12069 | ||
12070 | ||
12071 | ||
12072 | ||
12073 | fi | |
12074 | ac_ext=c | |
12075 | ac_cpp='$CPP $CPPFLAGS' | |
12076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12079 | ||
12080 | CC="$lt_save_CC" | |
12081 | ||
12082 | ||
12083 | ||
12084 | ||
12085 | ||
12086 | ||
12087 | ||
12088 | ||
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ac_config_commands="$ac_config_commands libtool" | |
12095 | ||
12096 | ||
12097 | ||
12098 | ||
12099 | # Only expand once: | |
12100 | ||
12101 | ||
12102 | ||
12103 | ||
12104 | ||
12105 | gdc_save_DFLAGS=$GDCFLAGS | |
12106 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS" | |
12107 | ||
12108 | ||
12109 | # Source file extension for D test sources. | |
12110 | ac_ext=d | |
12111 | ||
12112 | # Object file extension for compiled D test sources. | |
12113 | objext=o | |
12114 | objext_D=$objext | |
12115 | ||
12116 | # Code to be used in simple compile tests | |
9bedfe18 IB |
12117 | lt_simple_compile_test_code="\ |
12118 | module object; | |
12119 | shared int some_variable = 0; | |
12120 | " | |
b4c522fa IB |
12121 | |
12122 | # Code to be used in simple link tests | |
9bedfe18 IB |
12123 | lt_simple_link_test_code="\ |
12124 | module object; | |
12125 | extern(C) int main() { return 0; } | |
12126 | " | |
b4c522fa IB |
12127 | |
12128 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12129 | ||
12130 | ||
12131 | ||
12132 | ||
12133 | ||
12134 | ||
12135 | # If no C compiler was specified, use CC. | |
12136 | LTCC=${LTCC-"$CC"} | |
12137 | ||
12138 | # If no C compiler flags were specified, use CFLAGS. | |
12139 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12140 | ||
12141 | # Allow CC to be a program name with arguments. | |
12142 | compiler=$CC | |
12143 | ||
12144 | ||
12145 | # save warnings/boilerplate of simple test code | |
12146 | ac_outfile=conftest.$ac_objext | |
12147 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12148 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12149 | _lt_compiler_boilerplate=`cat conftest.err` | |
12150 | $RM conftest* | |
12151 | ||
12152 | ac_outfile=conftest.$ac_objext | |
12153 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12154 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12155 | _lt_linker_boilerplate=`cat conftest.err` | |
12156 | $RM -r conftest* | |
12157 | ||
12158 | ||
12159 | # Allow CC to be a program name with arguments. | |
12160 | lt_save_CC=$CC | |
12161 | lt_save_CFLAGS=$CFLAGS | |
b4c522fa IB |
12162 | lt_save_GCC=$GCC |
12163 | GCC=yes | |
12164 | CC=${GDC-"gdc"} | |
b4c522fa IB |
12165 | CFLAGS=$GDCFLAGS |
12166 | compiler=$CC | |
12167 | compiler_D=$CC | |
12168 | LD_D=$CC | |
12169 | for cc_temp in $compiler""; do | |
12170 | case $cc_temp in | |
12171 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12172 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12173 | \-*) ;; | |
12174 | *) break;; | |
12175 | esac | |
12176 | done | |
12177 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12178 | ||
12179 | ||
12180 | # GDC did not exist at the time GCC didn't implicitly link libc in. | |
12181 | archive_cmds_need_lc_D=no | |
12182 | ||
12183 | old_archive_cmds_D=$old_archive_cmds | |
12184 | reload_flag_D=$reload_flag | |
12185 | reload_cmds_D=$reload_cmds | |
12186 | ||
12187 | ## CAVEAT EMPTOR: | |
12188 | ## There is no encapsulation within the following macros, do not change | |
12189 | ## the running order or otherwise move them around unless you know exactly | |
12190 | ## what you are doing... | |
12191 | if test -n "$compiler"; then | |
12192 | ||
12193 | lt_prog_compiler_no_builtin_flag_D= | |
12194 | ||
12195 | if test "$GCC" = yes; then | |
12196 | case $cc_basename in | |
12197 | nvcc*) | |
12198 | lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;; | |
12199 | *) | |
12200 | lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;; | |
12201 | esac | |
12202 | ||
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
12204 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 12205 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
b4c522fa IB |
12206 | $as_echo_n "(cached) " >&6 |
12207 | else | |
12208 | lt_cv_prog_compiler_rtti_exceptions=no | |
12209 | ac_outfile=conftest.$ac_objext | |
12210 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12211 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
12212 | # Insert the option either (1) after the last *FLAGS variable, or | |
12213 | # (2) before a word containing "conftest.", or (3) at the end. | |
12214 | # Note that $ac_compile itself does not contain backslashes and begins | |
12215 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12216 | # The option is referenced via a variable to avoid confusing sed. | |
12217 | lt_compile=`echo "$ac_compile" | $SED \ | |
12218 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12219 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12220 | -e 's:$: $lt_compiler_flag:'` | |
12221 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12222 | (eval "$lt_compile" 2>conftest.err) | |
12223 | ac_status=$? | |
12224 | cat conftest.err >&5 | |
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12226 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12227 | # The compiler can only warn and ignore the option if not recognized | |
12228 | # So say no if there are warnings other than the usual output. | |
12229 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
12230 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12231 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12232 | lt_cv_prog_compiler_rtti_exceptions=yes | |
12233 | fi | |
12234 | fi | |
12235 | $RM conftest* | |
12236 | ||
12237 | fi | |
12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
12239 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
12240 | ||
12241 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
12242 | lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions" | |
12243 | else | |
12244 | : | |
12245 | fi | |
12246 | ||
12247 | fi | |
12248 | ||
12249 | ||
12250 | ||
12251 | lt_prog_compiler_wl_D= | |
12252 | lt_prog_compiler_pic_D= | |
12253 | lt_prog_compiler_static_D= | |
12254 | ||
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
12256 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
12257 | ||
12258 | if test "$GCC" = yes; then | |
12259 | lt_prog_compiler_wl_D='-Wl,' | |
12260 | lt_prog_compiler_static_D='-static' | |
12261 | ||
12262 | case $host_os in | |
12263 | aix*) | |
12264 | # All AIX code is PIC. | |
12265 | if test "$host_cpu" = ia64; then | |
12266 | # AIX 5 now supports IA64 processor | |
12267 | lt_prog_compiler_static_D='-Bstatic' | |
12268 | fi | |
12269 | lt_prog_compiler_pic_D='-fPIC' | |
12270 | ;; | |
12271 | ||
12272 | amigaos*) | |
12273 | case $host_cpu in | |
12274 | powerpc) | |
12275 | # see comment about AmigaOS4 .so support | |
12276 | lt_prog_compiler_pic_D='-fPIC' | |
12277 | ;; | |
12278 | m68k) | |
12279 | # FIXME: we need at least 68020 code to build shared libraries, but | |
12280 | # adding the `-m68020' flag to GCC prevents building anything better, | |
12281 | # like `-m68040'. | |
12282 | lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4' | |
12283 | ;; | |
12284 | esac | |
12285 | ;; | |
12286 | ||
12287 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12288 | # PIC is the default for these OSes. | |
12289 | ;; | |
12290 | ||
12291 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
12292 | # This hack is so that the source file can tell whether it is being | |
12293 | # built for inclusion in a dll (and should export symbols for example). | |
12294 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
12295 | # (--disable-auto-import) libraries | |
12296 | lt_prog_compiler_pic_D='-DDLL_EXPORT' | |
12297 | ;; | |
12298 | ||
12299 | darwin* | rhapsody*) | |
12300 | # PIC is the default on this platform | |
12301 | # Common symbols not allowed in MH_DYLIB files | |
12302 | lt_prog_compiler_pic_D='-fno-common' | |
12303 | ;; | |
12304 | ||
12305 | haiku*) | |
12306 | # PIC is the default for Haiku. | |
12307 | # The "-static" flag exists, but is broken. | |
12308 | lt_prog_compiler_static_D= | |
12309 | ;; | |
12310 | ||
12311 | hpux*) | |
12312 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
12313 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
12314 | # sets the default TLS model and affects inlining. | |
12315 | case $host_cpu in | |
12316 | hppa*64*) | |
12317 | # +Z the default | |
12318 | ;; | |
12319 | *) | |
12320 | lt_prog_compiler_pic_D='-fPIC' | |
12321 | ;; | |
12322 | esac | |
12323 | ;; | |
12324 | ||
12325 | interix[3-9]*) | |
12326 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12327 | # Instead, we relocate shared libraries at runtime. | |
12328 | ;; | |
12329 | ||
12330 | msdosdjgpp*) | |
12331 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
12332 | # on systems that don't support them. | |
12333 | lt_prog_compiler_can_build_shared_D=no | |
12334 | enable_shared=no | |
12335 | ;; | |
12336 | ||
12337 | *nto* | *qnx*) | |
12338 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12339 | # it will coredump. | |
12340 | lt_prog_compiler_pic_D='-fPIC -shared' | |
12341 | ;; | |
12342 | ||
12343 | sysv4*MP*) | |
12344 | if test -d /usr/nec; then | |
12345 | lt_prog_compiler_pic_D=-Kconform_pic | |
12346 | fi | |
12347 | ;; | |
12348 | ||
12349 | *) | |
12350 | lt_prog_compiler_pic_D='-fPIC' | |
12351 | ;; | |
12352 | esac | |
12353 | ||
12354 | case $cc_basename in | |
12355 | nvcc*) # Cuda Compiler Driver 2.2 | |
12356 | lt_prog_compiler_wl_D='-Xlinker ' | |
12357 | lt_prog_compiler_pic_D='-Xcompiler -fPIC' | |
12358 | ;; | |
12359 | esac | |
12360 | else | |
12361 | # PORTME Check for flag to pass linker flags through the system compiler. | |
12362 | case $host_os in | |
12363 | aix*) | |
12364 | lt_prog_compiler_wl_D='-Wl,' | |
12365 | if test "$host_cpu" = ia64; then | |
12366 | # AIX 5 now supports IA64 processor | |
12367 | lt_prog_compiler_static_D='-Bstatic' | |
12368 | else | |
12369 | lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp' | |
12370 | fi | |
12371 | ;; | |
12372 | ||
12373 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
12374 | # This hack is so that the source file can tell whether it is being | |
12375 | # built for inclusion in a dll (and should export symbols for example). | |
12376 | lt_prog_compiler_pic_D='-DDLL_EXPORT' | |
12377 | ;; | |
12378 | ||
12379 | hpux9* | hpux10* | hpux11*) | |
12380 | lt_prog_compiler_wl_D='-Wl,' | |
12381 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12382 | # not for PA HP-UX. | |
12383 | case $host_cpu in | |
12384 | hppa*64*|ia64*) | |
12385 | # +Z the default | |
12386 | ;; | |
12387 | *) | |
12388 | lt_prog_compiler_pic_D='+Z' | |
12389 | ;; | |
12390 | esac | |
12391 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
12392 | lt_prog_compiler_static_D='${wl}-a ${wl}archive' | |
12393 | ;; | |
12394 | ||
12395 | irix5* | irix6* | nonstopux*) | |
12396 | lt_prog_compiler_wl_D='-Wl,' | |
12397 | # PIC (with -KPIC) is the default. | |
12398 | lt_prog_compiler_static_D='-non_shared' | |
12399 | ;; | |
12400 | ||
12401 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12402 | case $cc_basename in | |
12403 | # old Intel for x86_64 which still supported -KPIC. | |
12404 | ecc*) | |
12405 | lt_prog_compiler_wl_D='-Wl,' | |
12406 | lt_prog_compiler_pic_D='-KPIC' | |
12407 | lt_prog_compiler_static_D='-static' | |
12408 | ;; | |
12409 | # icc used to be incompatible with GCC. | |
12410 | # ICC 10 doesn't accept -KPIC any more. | |
12411 | icc* | ifort*) | |
12412 | lt_prog_compiler_wl_D='-Wl,' | |
12413 | lt_prog_compiler_pic_D='-fPIC' | |
12414 | lt_prog_compiler_static_D='-static' | |
12415 | ;; | |
12416 | # Lahey Fortran 8.1. | |
12417 | lf95*) | |
12418 | lt_prog_compiler_wl_D='-Wl,' | |
12419 | lt_prog_compiler_pic_D='--shared' | |
12420 | lt_prog_compiler_static_D='--static' | |
12421 | ;; | |
12422 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
12423 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
12424 | # which looks to be a dead project) | |
12425 | lt_prog_compiler_wl_D='-Wl,' | |
12426 | lt_prog_compiler_pic_D='-fpic' | |
12427 | lt_prog_compiler_static_D='-Bstatic' | |
12428 | ;; | |
12429 | ccc*) | |
12430 | lt_prog_compiler_wl_D='-Wl,' | |
12431 | # All Alpha code is PIC. | |
12432 | lt_prog_compiler_static_D='-non_shared' | |
12433 | ;; | |
12434 | xl* | bgxl* | bgf* | mpixl*) | |
12435 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
12436 | lt_prog_compiler_wl_D='-Wl,' | |
12437 | lt_prog_compiler_pic_D='-qpic' | |
12438 | lt_prog_compiler_static_D='-qstaticlink' | |
12439 | ;; | |
12440 | *) | |
12441 | case `$CC -V 2>&1 | sed 5q` in | |
12442 | *Sun\ F* | *Sun*Fortran*) | |
12443 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
12444 | lt_prog_compiler_pic_D='-KPIC' | |
12445 | lt_prog_compiler_static_D='-Bstatic' | |
12446 | lt_prog_compiler_wl_D='' | |
12447 | ;; | |
12448 | *Sun\ C*) | |
12449 | # Sun C 5.9 | |
12450 | lt_prog_compiler_pic_D='-KPIC' | |
12451 | lt_prog_compiler_static_D='-Bstatic' | |
12452 | lt_prog_compiler_wl_D='-Wl,' | |
12453 | ;; | |
12454 | esac | |
12455 | ;; | |
12456 | esac | |
12457 | ;; | |
12458 | ||
12459 | newsos6) | |
12460 | lt_prog_compiler_pic_D='-KPIC' | |
12461 | lt_prog_compiler_static_D='-Bstatic' | |
12462 | ;; | |
12463 | ||
12464 | *nto* | *qnx*) | |
12465 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
12466 | # it will coredump. | |
12467 | lt_prog_compiler_pic_D='-fPIC -shared' | |
12468 | ;; | |
12469 | ||
12470 | osf3* | osf4* | osf5*) | |
12471 | lt_prog_compiler_wl_D='-Wl,' | |
12472 | # All OSF/1 code is PIC. | |
12473 | lt_prog_compiler_static_D='-non_shared' | |
12474 | ;; | |
12475 | ||
12476 | rdos*) | |
12477 | lt_prog_compiler_static_D='-non_shared' | |
12478 | ;; | |
12479 | ||
12480 | solaris*) | |
12481 | lt_prog_compiler_pic_D='-KPIC' | |
12482 | lt_prog_compiler_static_D='-Bstatic' | |
12483 | case $cc_basename in | |
12484 | f77* | f90* | f95*) | |
12485 | lt_prog_compiler_wl_D='-Qoption ld ';; | |
12486 | *) | |
12487 | lt_prog_compiler_wl_D='-Wl,';; | |
12488 | esac | |
12489 | ;; | |
12490 | ||
12491 | sunos4*) | |
12492 | lt_prog_compiler_wl_D='-Qoption ld ' | |
12493 | lt_prog_compiler_pic_D='-PIC' | |
12494 | lt_prog_compiler_static_D='-Bstatic' | |
12495 | ;; | |
12496 | ||
12497 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
12498 | lt_prog_compiler_wl_D='-Wl,' | |
12499 | lt_prog_compiler_pic_D='-KPIC' | |
12500 | lt_prog_compiler_static_D='-Bstatic' | |
12501 | ;; | |
12502 | ||
12503 | sysv4*MP*) | |
12504 | if test -d /usr/nec ;then | |
12505 | lt_prog_compiler_pic_D='-Kconform_pic' | |
12506 | lt_prog_compiler_static_D='-Bstatic' | |
12507 | fi | |
12508 | ;; | |
12509 | ||
12510 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12511 | lt_prog_compiler_wl_D='-Wl,' | |
12512 | lt_prog_compiler_pic_D='-KPIC' | |
12513 | lt_prog_compiler_static_D='-Bstatic' | |
12514 | ;; | |
12515 | ||
12516 | unicos*) | |
12517 | lt_prog_compiler_wl_D='-Wl,' | |
12518 | lt_prog_compiler_can_build_shared_D=no | |
12519 | ;; | |
12520 | ||
12521 | uts4*) | |
12522 | lt_prog_compiler_pic_D='-pic' | |
12523 | lt_prog_compiler_static_D='-Bstatic' | |
12524 | ;; | |
12525 | ||
12526 | *) | |
12527 | lt_prog_compiler_can_build_shared_D=no | |
12528 | ;; | |
12529 | esac | |
12530 | fi | |
12531 | ||
12532 | case $host_os in | |
12533 | # For platforms which do not support PIC, -DPIC is meaningless: | |
12534 | *djgpp*) | |
12535 | lt_prog_compiler_pic_D= | |
12536 | ;; | |
12537 | *) | |
12538 | lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D" | |
12539 | ;; | |
12540 | esac | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5 | |
12542 | $as_echo "$lt_prog_compiler_pic_D" >&6; } | |
12543 | ||
12544 | ||
12545 | ||
12546 | # | |
12547 | # Check to make sure the PIC flag actually works. | |
12548 | # | |
12549 | if test -n "$lt_prog_compiler_pic_D"; then | |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5 | |
12551 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; } | |
22e05272 | 12552 | if ${lt_cv_prog_compiler_pic_works_D+:} false; then : |
b4c522fa IB |
12553 | $as_echo_n "(cached) " >&6 |
12554 | else | |
12555 | lt_cv_prog_compiler_pic_works_D=no | |
12556 | ac_outfile=conftest.$ac_objext | |
12557 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12558 | lt_compiler_flag="$lt_prog_compiler_pic_D" | |
12559 | # Insert the option either (1) after the last *FLAGS variable, or | |
12560 | # (2) before a word containing "conftest.", or (3) at the end. | |
12561 | # Note that $ac_compile itself does not contain backslashes and begins | |
12562 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12563 | # The option is referenced via a variable to avoid confusing sed. | |
12564 | lt_compile=`echo "$ac_compile" | $SED \ | |
12565 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12566 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12567 | -e 's:$: $lt_compiler_flag:'` | |
12568 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12569 | (eval "$lt_compile" 2>conftest.err) | |
12570 | ac_status=$? | |
12571 | cat conftest.err >&5 | |
12572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12573 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
12574 | # The compiler can only warn and ignore the option if not recognized | |
12575 | # So say no if there are warnings other than the usual output. | |
12576 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
12577 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12578 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12579 | lt_cv_prog_compiler_pic_works_D=yes | |
12580 | fi | |
12581 | fi | |
12582 | $RM conftest* | |
12583 | ||
12584 | fi | |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5 | |
12586 | $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; } | |
12587 | ||
12588 | if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then | |
12589 | case $lt_prog_compiler_pic_D in | |
12590 | "" | " "*) ;; | |
12591 | *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;; | |
12592 | esac | |
12593 | else | |
12594 | lt_prog_compiler_pic_D= | |
12595 | lt_prog_compiler_can_build_shared_D=no | |
12596 | fi | |
12597 | ||
12598 | fi | |
12599 | ||
12600 | ||
12601 | ||
12602 | # | |
12603 | # Check to make sure the static flag actually works. | |
12604 | # | |
12605 | wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\" | |
12606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12607 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 12608 | if ${lt_cv_prog_compiler_static_works_D+:} false; then : |
b4c522fa IB |
12609 | $as_echo_n "(cached) " >&6 |
12610 | else | |
12611 | lt_cv_prog_compiler_static_works_D=no | |
12612 | save_LDFLAGS="$LDFLAGS" | |
12613 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12614 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
12615 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12616 | # The linker can only warn and ignore the option if not recognized | |
12617 | # So say no if there are warnings | |
12618 | if test -s conftest.err; then | |
12619 | # Append any errors to the config.log. | |
12620 | cat conftest.err 1>&5 | |
12621 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
12622 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12623 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12624 | lt_cv_prog_compiler_static_works_D=yes | |
12625 | fi | |
12626 | else | |
12627 | lt_cv_prog_compiler_static_works_D=yes | |
12628 | fi | |
12629 | fi | |
12630 | $RM -r conftest* | |
12631 | LDFLAGS="$save_LDFLAGS" | |
12632 | ||
12633 | fi | |
12634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5 | |
12635 | $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; } | |
12636 | ||
12637 | if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then | |
12638 | : | |
12639 | else | |
12640 | lt_prog_compiler_static_D= | |
12641 | fi | |
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12647 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12648 | if ${lt_cv_prog_compiler_c_o_D+:} false; then : |
b4c522fa IB |
12649 | $as_echo_n "(cached) " >&6 |
12650 | else | |
12651 | lt_cv_prog_compiler_c_o_D=no | |
12652 | $RM -r conftest 2>/dev/null | |
12653 | mkdir conftest | |
12654 | cd conftest | |
12655 | mkdir out | |
12656 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12657 | ||
12658 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12659 | # Insert the option either (1) after the last *FLAGS variable, or | |
12660 | # (2) before a word containing "conftest.", or (3) at the end. | |
12661 | # Note that $ac_compile itself does not contain backslashes and begins | |
12662 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12663 | lt_compile=`echo "$ac_compile" | $SED \ | |
12664 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12665 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12666 | -e 's:$: $lt_compiler_flag:'` | |
12667 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12668 | (eval "$lt_compile" 2>out/conftest.err) | |
12669 | ac_status=$? | |
12670 | cat out/conftest.err >&5 | |
12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12672 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12673 | then | |
12674 | # The compiler can only warn and ignore the option if not recognized | |
12675 | # So say no if there are warnings | |
12676 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12677 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12678 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12679 | lt_cv_prog_compiler_c_o_D=yes | |
12680 | fi | |
12681 | fi | |
12682 | chmod u+w . 2>&5 | |
12683 | $RM conftest* | |
12684 | # SGI C++ compiler will create directory out/ii_files/ for | |
12685 | # template instantiation | |
12686 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12687 | $RM out/* && rmdir out | |
12688 | cd .. | |
12689 | $RM -r conftest | |
12690 | $RM conftest* | |
12691 | ||
12692 | fi | |
12693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5 | |
12694 | $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; } | |
12695 | ||
12696 | ||
12697 | ||
12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12699 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 12700 | if ${lt_cv_prog_compiler_c_o_D+:} false; then : |
b4c522fa IB |
12701 | $as_echo_n "(cached) " >&6 |
12702 | else | |
12703 | lt_cv_prog_compiler_c_o_D=no | |
12704 | $RM -r conftest 2>/dev/null | |
12705 | mkdir conftest | |
12706 | cd conftest | |
12707 | mkdir out | |
12708 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12709 | ||
12710 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12711 | # Insert the option either (1) after the last *FLAGS variable, or | |
12712 | # (2) before a word containing "conftest.", or (3) at the end. | |
12713 | # Note that $ac_compile itself does not contain backslashes and begins | |
12714 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12715 | lt_compile=`echo "$ac_compile" | $SED \ | |
12716 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12717 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12718 | -e 's:$: $lt_compiler_flag:'` | |
12719 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
12720 | (eval "$lt_compile" 2>out/conftest.err) | |
12721 | ac_status=$? | |
12722 | cat out/conftest.err >&5 | |
12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12724 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12725 | then | |
12726 | # The compiler can only warn and ignore the option if not recognized | |
12727 | # So say no if there are warnings | |
12728 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
12729 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12730 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12731 | lt_cv_prog_compiler_c_o_D=yes | |
12732 | fi | |
12733 | fi | |
12734 | chmod u+w . 2>&5 | |
12735 | $RM conftest* | |
12736 | # SGI C++ compiler will create directory out/ii_files/ for | |
12737 | # template instantiation | |
12738 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
12739 | $RM out/* && rmdir out | |
12740 | cd .. | |
12741 | $RM -r conftest | |
12742 | $RM conftest* | |
12743 | ||
12744 | fi | |
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5 | |
12746 | $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; } | |
12747 | ||
12748 | ||
12749 | ||
12750 | ||
12751 | hard_links="nottested" | |
12752 | if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then | |
12753 | # do not overwrite the value of need_locks provided by the user | |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
12755 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
12756 | hard_links=yes | |
12757 | $RM conftest* | |
12758 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12759 | touch conftest.a | |
12760 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12761 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
12763 | $as_echo "$hard_links" >&6; } | |
12764 | if test "$hard_links" = no; then | |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12766 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12767 | need_locks=warn | |
12768 | fi | |
12769 | else | |
12770 | need_locks=no | |
12771 | fi | |
12772 | ||
12773 | ||
12774 | ||
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12776 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12777 | ||
12778 | runpath_var= | |
12779 | allow_undefined_flag_D= | |
12780 | always_export_symbols_D=no | |
12781 | archive_cmds_D= | |
12782 | archive_expsym_cmds_D= | |
12783 | compiler_needs_object_D=no | |
12784 | enable_shared_with_static_runtimes_D=no | |
12785 | export_dynamic_flag_spec_D= | |
12786 | export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12787 | hardcode_automatic_D=no | |
12788 | hardcode_direct_D=no | |
12789 | hardcode_direct_absolute_D=no | |
12790 | hardcode_libdir_flag_spec_D= | |
12791 | hardcode_libdir_flag_spec_ld_D= | |
12792 | hardcode_libdir_separator_D= | |
12793 | hardcode_minus_L_D=no | |
12794 | hardcode_shlibpath_var_D=unsupported | |
12795 | inherit_rpath_D=no | |
12796 | link_all_deplibs_D=unknown | |
12797 | module_cmds_D= | |
12798 | module_expsym_cmds_D= | |
12799 | old_archive_from_new_cmds_D= | |
12800 | old_archive_from_expsyms_cmds_D= | |
12801 | thread_safe_flag_spec_D= | |
12802 | whole_archive_flag_spec_D= | |
12803 | # include_expsyms should be a list of space-separated symbols to be *always* | |
12804 | # included in the symbol list | |
12805 | include_expsyms_D= | |
12806 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
12807 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
12808 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
12809 | # as well as any symbol that contains `d'. | |
12810 | exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
12811 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
12812 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
12813 | # the symbol is explicitly referenced. Since portable code cannot | |
12814 | # rely on this symbol name, it's probably fine to never include it in | |
12815 | # preloaded symbol tables. | |
12816 | # Exclude shared library initialization/finalization symbols. | |
12817 | extract_expsyms_cmds= | |
12818 | ||
12819 | case $host_os in | |
12820 | cygwin* | mingw* | pw32* | cegcc*) | |
12821 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
12822 | # When not using gcc, we currently assume that we are using | |
12823 | # Microsoft Visual C++. | |
12824 | if test "$GCC" != yes; then | |
12825 | with_gnu_ld=no | |
12826 | fi | |
12827 | ;; | |
12828 | interix*) | |
12829 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
12830 | with_gnu_ld=yes | |
12831 | ;; | |
12832 | openbsd*) | |
12833 | with_gnu_ld=no | |
12834 | ;; | |
12835 | esac | |
12836 | ||
12837 | ld_shlibs_D=yes | |
12838 | ||
12839 | # On some targets, GNU ld is compatible enough with the native linker | |
12840 | # that we're better off using the native interface for both. | |
12841 | lt_use_gnu_ld_interface=no | |
12842 | if test "$with_gnu_ld" = yes; then | |
12843 | case $host_os in | |
12844 | aix*) | |
12845 | # The AIX port of GNU ld has always aspired to compatibility | |
12846 | # with the native linker. However, as the warning in the GNU ld | |
12847 | # block says, versions before 2.19.5* couldn't really create working | |
12848 | # shared libraries, regardless of the interface used. | |
12849 | case `$LD -v 2>&1` in | |
12850 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
12851 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
12852 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
12853 | *) | |
12854 | lt_use_gnu_ld_interface=yes | |
12855 | ;; | |
12856 | esac | |
12857 | ;; | |
12858 | *) | |
12859 | lt_use_gnu_ld_interface=yes | |
12860 | ;; | |
12861 | esac | |
12862 | fi | |
12863 | ||
12864 | if test "$lt_use_gnu_ld_interface" = yes; then | |
12865 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12866 | wlarc='${wl}' | |
12867 | ||
12868 | # Set some defaults for GNU ld with shared library support. These | |
12869 | # are reset later if shared libraries are not supported. Putting them | |
12870 | # here allows them to be overridden if necessary. | |
12871 | runpath_var=LD_RUN_PATH | |
12872 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
12873 | export_dynamic_flag_spec_D='${wl}--export-dynamic' | |
12874 | # ancient GNU ld didn't support --whole-archive et. al. | |
12875 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
12876 | whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12877 | else | |
12878 | whole_archive_flag_spec_D= | |
12879 | fi | |
12880 | supports_anon_versioning=no | |
12881 | case `$LD -v 2>&1` in | |
12882 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
12883 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
12884 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
12885 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
12886 | *\ 2.11.*) ;; # other 2.11 versions | |
12887 | *) supports_anon_versioning=yes ;; | |
12888 | esac | |
12889 | ||
12890 | # See if GNU ld supports shared libraries. | |
12891 | case $host_os in | |
12892 | aix[3-9]*) | |
12893 | # On AIX/PPC, the GNU linker is very broken | |
12894 | if test "$host_cpu" != ia64; then | |
12895 | ld_shlibs_D=no | |
12896 | cat <<_LT_EOF 1>&2 | |
12897 | ||
12898 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
12899 | *** to be unable to reliably create shared libraries on AIX. | |
12900 | *** Therefore, libtool is disabling shared libraries support. If you | |
12901 | *** really care for shared libraries, you may want to install binutils | |
12902 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
12903 | *** You will then need to restart the configuration process. | |
12904 | ||
12905 | _LT_EOF | |
12906 | fi | |
12907 | ;; | |
12908 | ||
12909 | amigaos*) | |
12910 | case $host_cpu in | |
12911 | powerpc) | |
12912 | # see comment about AmigaOS4 .so support | |
12913 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12914 | archive_expsym_cmds_D='' | |
12915 | ;; | |
12916 | m68k) | |
12917 | archive_cmds_D='$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)' | |
12918 | hardcode_libdir_flag_spec_D='-L$libdir' | |
12919 | hardcode_minus_L_D=yes | |
12920 | ;; | |
12921 | esac | |
12922 | ;; | |
12923 | ||
12924 | beos*) | |
12925 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12926 | allow_undefined_flag_D=unsupported | |
12927 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12928 | # support --undefined. This deserves some investigation. FIXME | |
12929 | archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12930 | else | |
12931 | ld_shlibs_D=no | |
12932 | fi | |
12933 | ;; | |
12934 | ||
12935 | cygwin* | mingw* | pw32* | cegcc*) | |
12936 | # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless, | |
12937 | # as there is no search path for DLLs. | |
12938 | hardcode_libdir_flag_spec_D='-L$libdir' | |
12939 | export_dynamic_flag_spec_D='${wl}--export-all-symbols' | |
12940 | allow_undefined_flag_D=unsupported | |
12941 | always_export_symbols_D=no | |
12942 | enable_shared_with_static_runtimes_D=yes | |
12943 | export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
12944 | ||
12945 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12946 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12947 | # If the export-symbols file already is a .def file (1st line | |
12948 | # is EXPORTS), use it as is; otherwise, prepend... | |
12949 | archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12950 | cp $export_symbols $output_objdir/$soname.def; | |
12951 | else | |
12952 | echo EXPORTS > $output_objdir/$soname.def; | |
12953 | cat $export_symbols >> $output_objdir/$soname.def; | |
12954 | fi~ | |
12955 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12956 | else | |
12957 | ld_shlibs_D=no | |
12958 | fi | |
12959 | ;; | |
12960 | ||
12961 | haiku*) | |
12962 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12963 | link_all_deplibs_D=yes | |
12964 | ;; | |
12965 | ||
12966 | interix[3-9]*) | |
12967 | hardcode_direct_D=no | |
12968 | hardcode_shlibpath_var_D=no | |
12969 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
12970 | export_dynamic_flag_spec_D='${wl}-E' | |
12971 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12972 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12973 | # default) and relocated if they conflict, which is a slow very memory | |
12974 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12975 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12976 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12977 | archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12978 | archive_expsym_cmds_D='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' | |
12979 | ;; | |
12980 | ||
e9085da5 | 12981 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b4c522fa IB |
12982 | tmp_diet=no |
12983 | if test "$host_os" = linux-dietlibc; then | |
12984 | case $cc_basename in | |
12985 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
12986 | esac | |
12987 | fi | |
12988 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
12989 | && test "$tmp_diet" = no | |
12990 | then | |
12991 | tmp_addflag=' $pic_flag' | |
12992 | tmp_sharedflag='-shared' | |
12993 | case $cc_basename,$host_cpu in | |
12994 | pgcc*) # Portland Group C compiler | |
12995 | whole_archive_flag_spec_D='${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' | |
12996 | tmp_addflag=' $pic_flag' | |
12997 | ;; | |
12998 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
12999 | # Portland Group f77 and f90 compilers | |
13000 | whole_archive_flag_spec_D='${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' | |
13001 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
13002 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13003 | tmp_addflag=' -i_dynamic' ;; | |
13004 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13005 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13006 | ifc* | ifort*) # Intel Fortran compiler | |
13007 | tmp_addflag=' -nofor_main' ;; | |
13008 | lf95*) # Lahey Fortran 8.1 | |
13009 | whole_archive_flag_spec_D= | |
13010 | tmp_sharedflag='--shared' ;; | |
13011 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
13012 | tmp_sharedflag='-qmkshrobj' | |
13013 | tmp_addflag= ;; | |
13014 | nvcc*) # Cuda Compiler Driver 2.2 | |
13015 | whole_archive_flag_spec_D='${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' | |
13016 | compiler_needs_object_D=yes | |
13017 | ;; | |
13018 | esac | |
13019 | case `$CC -V 2>&1 | sed 5q` in | |
13020 | *Sun\ C*) # Sun C 5.9 | |
13021 | whole_archive_flag_spec_D='${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' | |
13022 | compiler_needs_object_D=yes | |
13023 | tmp_sharedflag='-G' ;; | |
13024 | *Sun\ F*) # Sun Fortran 8.3 | |
13025 | tmp_sharedflag='-G' ;; | |
13026 | esac | |
13027 | archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13028 | ||
13029 | if test "x$supports_anon_versioning" = xyes; then | |
13030 | archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~ | |
13031 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13032 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13033 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13034 | fi | |
13035 | ||
13036 | case $cc_basename in | |
13037 | xlf* | bgf* | bgxlf* | mpixlf*) | |
13038 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
13039 | whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive' | |
13040 | hardcode_libdir_flag_spec_D= | |
13041 | hardcode_libdir_flag_spec_ld_D='-rpath $libdir' | |
13042 | archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
13043 | if test "x$supports_anon_versioning" = xyes; then | |
13044 | archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~ | |
13045 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13046 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13047 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
13048 | fi | |
13049 | ;; | |
13050 | esac | |
13051 | else | |
13052 | ld_shlibs_D=no | |
13053 | fi | |
13054 | ;; | |
13055 | ||
13056 | netbsd*) | |
13057 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13058 | archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13059 | wlarc= | |
13060 | else | |
13061 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13062 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13063 | fi | |
13064 | ;; | |
13065 | ||
13066 | solaris*) | |
13067 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
13068 | ld_shlibs_D=no | |
13069 | cat <<_LT_EOF 1>&2 | |
13070 | ||
13071 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
13072 | *** create shared libraries on Solaris systems. Therefore, libtool | |
13073 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13074 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
13075 | *** your PATH or compiler configuration so that the native linker is | |
13076 | *** used, and then restart. | |
13077 | ||
13078 | _LT_EOF | |
13079 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13080 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13081 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13082 | else | |
13083 | ld_shlibs_D=no | |
13084 | fi | |
13085 | ;; | |
13086 | ||
13087 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
13088 | case `$LD -v 2>&1` in | |
13089 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
13090 | ld_shlibs_D=no | |
13091 | cat <<_LT_EOF 1>&2 | |
13092 | ||
13093 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
13094 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
13095 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
13096 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
13097 | *** your PATH or compiler configuration so that the native linker is | |
13098 | *** used, and then restart. | |
13099 | ||
13100 | _LT_EOF | |
13101 | ;; | |
13102 | *) | |
13103 | # For security reasons, it is highly recommended that you always | |
13104 | # use absolute paths for naming shared libraries, and exclude the | |
13105 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13106 | # requires that you compile everything twice, which is a pain. | |
13107 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13108 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13109 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13110 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13111 | else | |
13112 | ld_shlibs_D=no | |
13113 | fi | |
13114 | ;; | |
13115 | esac | |
13116 | ;; | |
13117 | ||
13118 | sunos4*) | |
13119 | archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13120 | wlarc= | |
13121 | hardcode_direct_D=yes | |
13122 | hardcode_shlibpath_var_D=no | |
13123 | ;; | |
13124 | ||
13125 | *) | |
13126 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
13127 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13128 | archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13129 | else | |
13130 | ld_shlibs_D=no | |
13131 | fi | |
13132 | ;; | |
13133 | esac | |
13134 | ||
13135 | if test "$ld_shlibs_D" = no; then | |
13136 | runpath_var= | |
13137 | hardcode_libdir_flag_spec_D= | |
13138 | export_dynamic_flag_spec_D= | |
13139 | whole_archive_flag_spec_D= | |
13140 | fi | |
13141 | else | |
13142 | # PORTME fill in a description of your system's linker (not GNU ld) | |
13143 | case $host_os in | |
13144 | aix3*) | |
13145 | allow_undefined_flag_D=unsupported | |
13146 | always_export_symbols_D=yes | |
13147 | archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
13148 | # Note: this linker hardcodes the directories in LIBPATH if there | |
13149 | # are no directories specified by -L. | |
13150 | hardcode_minus_L_D=yes | |
13151 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
13152 | # Neither direct hardcoding nor static linking is supported with a | |
13153 | # broken collect2. | |
13154 | hardcode_direct_D=unsupported | |
13155 | fi | |
13156 | ;; | |
13157 | ||
13158 | aix[4-9]*) | |
13159 | if test "$host_cpu" = ia64; then | |
13160 | # On IA64, the linker does run time linking by default, so we don't | |
13161 | # have to do anything special. | |
13162 | aix_use_runtimelinking=no | |
13163 | exp_sym_flag='-Bexport' | |
13164 | no_entry_flag="" | |
13165 | else | |
13166 | # If we're using GNU nm, then we don't want the "-C" option. | |
13167 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13168 | # Also, AIX nm treats weak defined symbols like other global | |
13169 | # defined symbols, whereas GNU nm marks them as "W". | |
13170 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13171 | export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13172 | else | |
13173 | export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13174 | fi | |
13175 | aix_use_runtimelinking=no | |
13176 | ||
13177 | # Test if we are trying to use run time linking or normal | |
13178 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
13179 | # need to do runtime linking. | |
13180 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
13181 | for ld_flag in $LDFLAGS; do | |
13182 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
13183 | aix_use_runtimelinking=yes | |
13184 | break | |
13185 | fi | |
13186 | done | |
13187 | ;; | |
13188 | esac | |
13189 | ||
13190 | exp_sym_flag='-bexport' | |
13191 | no_entry_flag='-bnoentry' | |
13192 | fi | |
13193 | ||
13194 | # When large executables or shared objects are built, AIX ld can | |
13195 | # have problems creating the table of contents. If linking a library | |
13196 | # or program results in "error TOC overflow" add -mminimal-toc to | |
13197 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
13198 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
13199 | ||
13200 | archive_cmds_D='' | |
13201 | hardcode_direct_D=yes | |
13202 | hardcode_direct_absolute_D=yes | |
13203 | hardcode_libdir_separator_D=':' | |
13204 | link_all_deplibs_D=yes | |
13205 | file_list_spec_D='${wl}-f,' | |
13206 | ||
13207 | if test "$GCC" = yes; then | |
13208 | case $host_os in aix4.[012]|aix4.[012].*) | |
13209 | # We only want to do this on AIX 4.2 and lower, the check | |
13210 | # below for broken collect2 doesn't work under 4.3+ | |
13211 | collect2name=`${CC} -print-prog-name=collect2` | |
13212 | if test -f "$collect2name" && | |
13213 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
13214 | then | |
13215 | # We have reworked collect2 | |
13216 | : | |
13217 | else | |
13218 | # We have old collect2 | |
13219 | hardcode_direct_D=unsupported | |
13220 | # It fails to find uninstalled libraries when the uninstalled | |
13221 | # path is not listed in the libpath. Setting hardcode_minus_L | |
13222 | # to unsupported forces relinking | |
13223 | hardcode_minus_L_D=yes | |
13224 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13225 | hardcode_libdir_separator_D= | |
13226 | fi | |
13227 | ;; | |
13228 | esac | |
13229 | shared_flag='-shared' | |
13230 | if test "$aix_use_runtimelinking" = yes; then | |
13231 | shared_flag="$shared_flag "'${wl}-G' | |
13232 | fi | |
13233 | else | |
13234 | # not using gcc | |
13235 | if test "$host_cpu" = ia64; then | |
13236 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
13237 | # chokes on -Wl,-G. The following line is correct: | |
13238 | shared_flag='-G' | |
13239 | else | |
13240 | if test "$aix_use_runtimelinking" = yes; then | |
13241 | shared_flag='${wl}-G' | |
13242 | else | |
13243 | shared_flag='${wl}-bM:SRE' | |
13244 | fi | |
13245 | fi | |
13246 | fi | |
13247 | ||
13248 | export_dynamic_flag_spec_D='${wl}-bexpall' | |
13249 | # It seems that -bexpall does not export symbols beginning with | |
13250 | # underscore (_), so it is better to generate a list of symbols to export. | |
13251 | always_export_symbols_D=yes | |
13252 | if test "$aix_use_runtimelinking" = yes; then | |
13253 | # Warning - without using the other runtime loading flags (-brtl), | |
13254 | # -berok will link without error, but may produce a broken library. | |
13255 | allow_undefined_flag_D='-berok' | |
13256 | # Determine the default libpath from the value encoded in an | |
13257 | # empty executable. | |
13258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13259 | /* end confdefs.h. */ | |
13260 | ||
13261 | int | |
13262 | main () | |
13263 | { | |
13264 | ||
13265 | ; | |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
13269 | if ac_fn_c_try_link "$LINENO"; then : | |
13270 | ||
13271 | lt_aix_libpath_sed=' | |
13272 | /Import File Strings/,/^$/ { | |
13273 | /^0/ { | |
13274 | s/^0 *\(.*\)$/\1/ | |
13275 | p | |
13276 | } | |
13277 | }' | |
13278 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13279 | # Check for a 64-bit object if we didn't find anything. | |
13280 | if test -z "$aix_libpath"; then | |
13281 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13282 | fi | |
13283 | fi | |
13284 | rm -f core conftest.err conftest.$ac_objext \ | |
13285 | conftest$ac_exeext conftest.$ac_ext | |
13286 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13287 | ||
13288 | hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13289 | archive_expsym_cmds_D='$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" | |
13290 | else | |
13291 | if test "$host_cpu" = ia64; then | |
13292 | hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib' | |
13293 | allow_undefined_flag_D="-z nodefs" | |
13294 | archive_expsym_cmds_D="\$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" | |
13295 | else | |
13296 | # Determine the default libpath from the value encoded in an | |
13297 | # empty executable. | |
13298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13299 | /* end confdefs.h. */ | |
13300 | ||
13301 | int | |
13302 | main () | |
13303 | { | |
13304 | ||
13305 | ; | |
13306 | return 0; | |
13307 | } | |
13308 | _ACEOF | |
13309 | if ac_fn_c_try_link "$LINENO"; then : | |
13310 | ||
13311 | lt_aix_libpath_sed=' | |
13312 | /Import File Strings/,/^$/ { | |
13313 | /^0/ { | |
13314 | s/^0 *\(.*\)$/\1/ | |
13315 | p | |
13316 | } | |
13317 | }' | |
13318 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13319 | # Check for a 64-bit object if we didn't find anything. | |
13320 | if test -z "$aix_libpath"; then | |
13321 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
13322 | fi | |
13323 | fi | |
13324 | rm -f core conftest.err conftest.$ac_objext \ | |
13325 | conftest$ac_exeext conftest.$ac_ext | |
13326 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13327 | ||
13328 | hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13329 | # Warning - without using the other run time loading flags, | |
13330 | # -berok will link without error, but may produce a broken library. | |
13331 | no_undefined_flag_D=' ${wl}-bernotok' | |
13332 | allow_undefined_flag_D=' ${wl}-berok' | |
13333 | if test "$with_gnu_ld" = yes; then | |
13334 | # We only use this code for GNU lds that support --whole-archive. | |
13335 | whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13336 | else | |
13337 | # Exported symbols can be pulled into shared objects from archives | |
13338 | whole_archive_flag_spec_D='$convenience' | |
13339 | fi | |
13340 | archive_cmds_need_lc_D=yes | |
13341 | # This is similar to how AIX traditionally builds its shared libraries. | |
13342 | archive_expsym_cmds_D="\$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' | |
13343 | fi | |
13344 | fi | |
13345 | ;; | |
13346 | ||
13347 | amigaos*) | |
13348 | case $host_cpu in | |
13349 | powerpc) | |
13350 | # see comment about AmigaOS4 .so support | |
13351 | archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13352 | archive_expsym_cmds_D='' | |
13353 | ;; | |
13354 | m68k) | |
13355 | archive_cmds_D='$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)' | |
13356 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13357 | hardcode_minus_L_D=yes | |
13358 | ;; | |
13359 | esac | |
13360 | ;; | |
13361 | ||
13362 | bsdi[45]*) | |
13363 | export_dynamic_flag_spec_D=-rdynamic | |
13364 | ;; | |
13365 | ||
13366 | cygwin* | mingw* | pw32* | cegcc*) | |
13367 | # When not using gcc, we currently assume that we are using | |
13368 | # Microsoft Visual C++. | |
13369 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
13370 | # no search path for DLLs. | |
13371 | hardcode_libdir_flag_spec_D=' ' | |
13372 | allow_undefined_flag_D=unsupported | |
13373 | # Tell ltmain to make .lib files, not .a files. | |
13374 | libext=lib | |
13375 | # Tell ltmain to make .dll files, not .so files. | |
13376 | shrext_cmds=".dll" | |
13377 | # FIXME: Setting linknames here is a bad hack. | |
13378 | archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
13379 | # The linker will automatically build a .lib file if we build a DLL. | |
13380 | old_archive_from_new_cmds_D='true' | |
13381 | # FIXME: Should let the user specify the lib program. | |
13382 | old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
13383 | fix_srcfile_path_D='`cygpath -w "$srcfile"`' | |
13384 | enable_shared_with_static_runtimes_D=yes | |
13385 | ;; | |
13386 | ||
13387 | darwin* | rhapsody*) | |
13388 | ||
13389 | ||
13390 | archive_cmds_need_lc_D=no | |
13391 | hardcode_direct_D=no | |
13392 | hardcode_automatic_D=yes | |
13393 | hardcode_shlibpath_var_D=unsupported | |
13394 | if test "$lt_cv_ld_force_load" = "yes"; then | |
13395 | whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
13396 | else | |
13397 | whole_archive_flag_spec_D='' | |
13398 | fi | |
13399 | link_all_deplibs_D=yes | |
13400 | allow_undefined_flag_D="$_lt_dar_allow_undefined" | |
13401 | case $cc_basename in | |
13402 | ifort*) _lt_dar_can_shared=yes ;; | |
13403 | *) _lt_dar_can_shared=$GCC ;; | |
13404 | esac | |
13405 | if test "$_lt_dar_can_shared" = "yes"; then | |
13406 | output_verbose_link_cmd=func_echo_all | |
13407 | archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
13408 | module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
13409 | archive_expsym_cmds_D="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
13410 | module_expsym_cmds_D="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}" | |
13411 | ||
13412 | else | |
13413 | ld_shlibs_D=no | |
13414 | fi | |
13415 | ||
13416 | ;; | |
13417 | ||
13418 | dgux*) | |
13419 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13420 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13421 | hardcode_shlibpath_var_D=no | |
13422 | ;; | |
13423 | ||
13424 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
13425 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
13426 | # does not break anything, and helps significantly (at the cost of a little | |
13427 | # extra space). | |
13428 | freebsd2.2*) | |
13429 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
13430 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13431 | hardcode_direct_D=yes | |
13432 | hardcode_shlibpath_var_D=no | |
13433 | ;; | |
13434 | ||
13435 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
13436 | freebsd2.*) | |
13437 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13438 | hardcode_direct_D=yes | |
13439 | hardcode_minus_L_D=yes | |
13440 | hardcode_shlibpath_var_D=no | |
13441 | ;; | |
13442 | ||
13443 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
13444 | freebsd* | dragonfly*) | |
13445 | archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
13446 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13447 | hardcode_direct_D=yes | |
13448 | hardcode_shlibpath_var_D=no | |
13449 | ;; | |
13450 | ||
13451 | hpux9*) | |
13452 | if test "$GCC" = yes; then | |
13453 | archive_cmds_D='$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' | |
13454 | else | |
13455 | archive_cmds_D='$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' | |
13456 | fi | |
13457 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13458 | hardcode_libdir_separator_D=: | |
13459 | hardcode_direct_D=yes | |
13460 | ||
13461 | # hardcode_minus_L: Not really in the search PATH, | |
13462 | # but as the default location of the library. | |
13463 | hardcode_minus_L_D=yes | |
13464 | export_dynamic_flag_spec_D='${wl}-E' | |
13465 | ;; | |
13466 | ||
13467 | hpux10*) | |
13468 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
13469 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13470 | else | |
13471 | archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
13472 | fi | |
13473 | if test "$with_gnu_ld" = no; then | |
13474 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13475 | hardcode_libdir_flag_spec_ld_D='+b $libdir' | |
13476 | hardcode_libdir_separator_D=: | |
13477 | hardcode_direct_D=yes | |
13478 | hardcode_direct_absolute_D=yes | |
13479 | export_dynamic_flag_spec_D='${wl}-E' | |
13480 | # hardcode_minus_L: Not really in the search PATH, | |
13481 | # but as the default location of the library. | |
13482 | hardcode_minus_L_D=yes | |
13483 | fi | |
13484 | ;; | |
13485 | ||
13486 | hpux11*) | |
13487 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
13488 | case $host_cpu in | |
13489 | hppa*64*) | |
1352bc88 | 13490 | archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b4c522fa IB |
13491 | ;; |
13492 | ia64*) | |
13493 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13494 | ;; | |
13495 | *) | |
13496 | archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13497 | ;; | |
13498 | esac | |
13499 | else | |
13500 | case $host_cpu in | |
13501 | hppa*64*) | |
1352bc88 | 13502 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b4c522fa IB |
13503 | ;; |
13504 | ia64*) | |
13505 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
13506 | ;; | |
13507 | *) | |
13508 | archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
13509 | ;; | |
13510 | esac | |
13511 | fi | |
13512 | if test "$with_gnu_ld" = no; then | |
13513 | hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir' | |
13514 | hardcode_libdir_separator_D=: | |
13515 | ||
13516 | case $host_cpu in | |
13517 | hppa*64*|ia64*) | |
13518 | hardcode_direct_D=no | |
13519 | hardcode_shlibpath_var_D=no | |
13520 | ;; | |
13521 | *) | |
13522 | hardcode_direct_D=yes | |
13523 | hardcode_direct_absolute_D=yes | |
13524 | export_dynamic_flag_spec_D='${wl}-E' | |
13525 | ||
13526 | # hardcode_minus_L: Not really in the search PATH, | |
13527 | # but as the default location of the library. | |
13528 | hardcode_minus_L_D=yes | |
13529 | ;; | |
13530 | esac | |
13531 | fi | |
13532 | ;; | |
13533 | ||
13534 | irix5* | irix6* | nonstopux*) | |
13535 | if test "$GCC" = yes; then | |
13536 | archive_cmds_D='$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' | |
13537 | # Try to use the -exported_symbol ld option, if it does not | |
13538 | # work, assume that -exports_file does not work either and | |
13539 | # implicitly export all symbols. | |
13540 | save_LDFLAGS="$LDFLAGS" | |
13541 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
13542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13543 | /* end confdefs.h. */ | |
13544 | int foo(void) {} | |
13545 | _ACEOF | |
13546 | if ac_fn_c_try_link "$LINENO"; then : | |
13547 | archive_expsym_cmds_D='$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' | |
13548 | ||
13549 | fi | |
13550 | rm -f core conftest.err conftest.$ac_objext \ | |
13551 | conftest$ac_exeext conftest.$ac_ext | |
13552 | LDFLAGS="$save_LDFLAGS" | |
13553 | else | |
13554 | archive_cmds_D='$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' | |
13555 | archive_expsym_cmds_D='$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' | |
13556 | fi | |
13557 | archive_cmds_need_lc_D='no' | |
13558 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13559 | hardcode_libdir_separator_D=: | |
13560 | inherit_rpath_D=yes | |
13561 | link_all_deplibs_D=yes | |
13562 | ;; | |
13563 | ||
13564 | netbsd*) | |
13565 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13566 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
13567 | else | |
13568 | archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
13569 | fi | |
13570 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13571 | hardcode_direct_D=yes | |
13572 | hardcode_shlibpath_var_D=no | |
13573 | ;; | |
13574 | ||
13575 | newsos6) | |
13576 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13577 | hardcode_direct_D=yes | |
13578 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13579 | hardcode_libdir_separator_D=: | |
13580 | hardcode_shlibpath_var_D=no | |
13581 | ;; | |
13582 | ||
13583 | *nto* | *qnx*) | |
13584 | ;; | |
13585 | ||
13586 | openbsd*) | |
13587 | if test -f /usr/libexec/ld.so; then | |
13588 | hardcode_direct_D=yes | |
13589 | hardcode_shlibpath_var_D=no | |
13590 | hardcode_direct_absolute_D=yes | |
13591 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13592 | archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13593 | archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
13594 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
13595 | export_dynamic_flag_spec_D='${wl}-E' | |
13596 | else | |
13597 | case $host_os in | |
13598 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
13599 | archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
13600 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13601 | ;; | |
13602 | *) | |
13603 | archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
13604 | hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir' | |
13605 | ;; | |
13606 | esac | |
13607 | fi | |
13608 | else | |
13609 | ld_shlibs_D=no | |
13610 | fi | |
13611 | ;; | |
13612 | ||
13613 | os2*) | |
13614 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13615 | hardcode_minus_L_D=yes | |
13616 | allow_undefined_flag_D=unsupported | |
13617 | archive_cmds_D='$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' | |
13618 | old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
13619 | ;; | |
13620 | ||
13621 | osf3*) | |
13622 | if test "$GCC" = yes; then | |
13623 | allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*' | |
13624 | archive_cmds_D='$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' | |
13625 | else | |
13626 | allow_undefined_flag_D=' -expect_unresolved \*' | |
13627 | archive_cmds_D='$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' | |
13628 | fi | |
13629 | archive_cmds_need_lc_D='no' | |
13630 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13631 | hardcode_libdir_separator_D=: | |
13632 | ;; | |
13633 | ||
13634 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
13635 | if test "$GCC" = yes; then | |
13636 | allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*' | |
13637 | archive_cmds_D='$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' | |
13638 | hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir' | |
13639 | else | |
13640 | allow_undefined_flag_D=' -expect_unresolved \*' | |
13641 | archive_cmds_D='$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' | |
13642 | archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
13643 | $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' | |
13644 | ||
13645 | # Both c and cxx compiler support -rpath directly | |
13646 | hardcode_libdir_flag_spec_D='-rpath $libdir' | |
13647 | fi | |
13648 | archive_cmds_need_lc_D='no' | |
13649 | hardcode_libdir_separator_D=: | |
13650 | ;; | |
13651 | ||
13652 | solaris*) | |
13653 | no_undefined_flag_D=' -z defs' | |
13654 | if test "$GCC" = yes; then | |
13655 | wlarc='${wl}' | |
13656 | archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13657 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13658 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13659 | else | |
13660 | case `$CC -V 2>&1` in | |
13661 | *"Compilers 5.0"*) | |
13662 | wlarc='' | |
13663 | archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13664 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13665 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
13666 | ;; | |
13667 | *) | |
13668 | wlarc='${wl}' | |
13669 | archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13670 | archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13671 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
13672 | ;; | |
13673 | esac | |
13674 | fi | |
13675 | hardcode_libdir_flag_spec_D='-R$libdir' | |
13676 | hardcode_shlibpath_var_D=no | |
13677 | case $host_os in | |
13678 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13679 | *) | |
13680 | # The compiler driver will combine and reorder linker options, | |
13681 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
13682 | # but is careful enough not to reorder. | |
13683 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13684 | if test "$GCC" = yes; then | |
13685 | whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13686 | else | |
13687 | whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract' | |
13688 | fi | |
13689 | ;; | |
13690 | esac | |
13691 | link_all_deplibs_D=yes | |
13692 | ;; | |
13693 | ||
13694 | sunos4*) | |
13695 | if test "x$host_vendor" = xsequent; then | |
13696 | # Use $CC to link under sequent, because it throws in some extra .o | |
13697 | # files that make .init and .fini sections work. | |
13698 | archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
13699 | else | |
13700 | archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
13701 | fi | |
13702 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13703 | hardcode_direct_D=yes | |
13704 | hardcode_minus_L_D=yes | |
13705 | hardcode_shlibpath_var_D=no | |
13706 | ;; | |
13707 | ||
13708 | sysv4) | |
13709 | case $host_vendor in | |
13710 | sni) | |
13711 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13712 | hardcode_direct_D=yes # is this really true??? | |
13713 | ;; | |
13714 | siemens) | |
13715 | ## LD is ld it makes a PLAMLIB | |
13716 | ## CC just makes a GrossModule. | |
13717 | archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
13718 | reload_cmds_D='$CC -r -o $output$reload_objs' | |
13719 | hardcode_direct_D=no | |
13720 | ;; | |
13721 | motorola) | |
13722 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13723 | hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie | |
13724 | ;; | |
13725 | esac | |
13726 | runpath_var='LD_RUN_PATH' | |
13727 | hardcode_shlibpath_var_D=no | |
13728 | ;; | |
13729 | ||
13730 | sysv4.3*) | |
13731 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13732 | hardcode_shlibpath_var_D=no | |
13733 | export_dynamic_flag_spec_D='-Bexport' | |
13734 | ;; | |
13735 | ||
13736 | sysv4*MP*) | |
13737 | if test -d /usr/nec; then | |
13738 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13739 | hardcode_shlibpath_var_D=no | |
13740 | runpath_var=LD_RUN_PATH | |
13741 | hardcode_runpath_var=yes | |
13742 | ld_shlibs_D=yes | |
13743 | fi | |
13744 | ;; | |
13745 | ||
13746 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13747 | no_undefined_flag_D='${wl}-z,text' | |
13748 | archive_cmds_need_lc_D=no | |
13749 | hardcode_shlibpath_var_D=no | |
13750 | runpath_var='LD_RUN_PATH' | |
13751 | ||
13752 | if test "$GCC" = yes; then | |
13753 | archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13754 | archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13755 | else | |
13756 | archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13757 | archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13758 | fi | |
13759 | ;; | |
13760 | ||
13761 | sysv5* | sco3.2v5* | sco5v6*) | |
13762 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13763 | # link with -lc, and that would cause any symbols used from libc to | |
13764 | # always be unresolved, which means just about no library would | |
13765 | # ever link correctly. If we're not using GNU ld we use -z text | |
13766 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13767 | # as -z defs. | |
13768 | no_undefined_flag_D='${wl}-z,text' | |
13769 | allow_undefined_flag_D='${wl}-z,nodefs' | |
13770 | archive_cmds_need_lc_D=no | |
13771 | hardcode_shlibpath_var_D=no | |
13772 | hardcode_libdir_flag_spec_D='${wl}-R,$libdir' | |
13773 | hardcode_libdir_separator_D=':' | |
13774 | link_all_deplibs_D=yes | |
13775 | export_dynamic_flag_spec_D='${wl}-Bexport' | |
13776 | runpath_var='LD_RUN_PATH' | |
13777 | ||
13778 | if test "$GCC" = yes; then | |
13779 | archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13780 | archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13781 | else | |
13782 | archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13783 | archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13784 | fi | |
13785 | ;; | |
13786 | ||
13787 | uts4*) | |
13788 | archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
13789 | hardcode_libdir_flag_spec_D='-L$libdir' | |
13790 | hardcode_shlibpath_var_D=no | |
13791 | ;; | |
13792 | ||
13793 | *) | |
13794 | ld_shlibs_D=no | |
13795 | ;; | |
13796 | esac | |
13797 | ||
13798 | if test x$host_vendor = xsni; then | |
13799 | case $host in | |
13800 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
13801 | export_dynamic_flag_spec_D='${wl}-Blargedynsym' | |
13802 | ;; | |
13803 | esac | |
13804 | fi | |
13805 | fi | |
13806 | ||
13807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5 | |
13808 | $as_echo "$ld_shlibs_D" >&6; } | |
13809 | test "$ld_shlibs_D" = no && can_build_shared=no | |
13810 | ||
13811 | with_gnu_ld_D=$with_gnu_ld | |
13812 | ||
13813 | ||
13814 | ||
13815 | ||
13816 | ||
13817 | ||
13818 | # | |
13819 | # Do we need to explicitly link libc? | |
13820 | # | |
13821 | case "x$archive_cmds_need_lc_D" in | |
13822 | x|xyes) | |
13823 | # Assume -lc should be added | |
13824 | archive_cmds_need_lc_D=yes | |
13825 | ||
13826 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
13827 | case $archive_cmds_D in | |
13828 | *'~'*) | |
13829 | # FIXME: we may have to deal with multi-command sequences. | |
13830 | ;; | |
13831 | '$CC '*) | |
13832 | # Test whether the compiler implicitly links with -lc since on some | |
13833 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
13834 | # to ld, don't add -lc before -lgcc. | |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
13836 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 13837 | if ${lt_cv_archive_cmds_need_lc_D+:} false; then : |
b4c522fa IB |
13838 | $as_echo_n "(cached) " >&6 |
13839 | else | |
13840 | $RM conftest* | |
13841 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13842 | ||
13843 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13844 | (eval $ac_compile) 2>&5 | |
13845 | ac_status=$? | |
13846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13847 | test $ac_status = 0; } 2>conftest.err; then | |
13848 | soname=conftest | |
13849 | lib=conftest | |
13850 | libobjs=conftest.$ac_objext | |
13851 | deplibs= | |
13852 | wl=$lt_prog_compiler_wl_D | |
13853 | pic_flag=$lt_prog_compiler_pic_D | |
13854 | compiler_flags=-v | |
13855 | linker_flags=-v | |
13856 | verstring= | |
13857 | output_objdir=. | |
13858 | libname=conftest | |
13859 | lt_save_allow_undefined_flag=$allow_undefined_flag_D | |
13860 | allow_undefined_flag_D= | |
13861 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
13862 | (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
13863 | ac_status=$? | |
13864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13865 | test $ac_status = 0; } | |
13866 | then | |
13867 | lt_cv_archive_cmds_need_lc_D=no | |
13868 | else | |
13869 | lt_cv_archive_cmds_need_lc_D=yes | |
13870 | fi | |
13871 | allow_undefined_flag_D=$lt_save_allow_undefined_flag | |
13872 | else | |
13873 | cat conftest.err 1>&5 | |
13874 | fi | |
13875 | $RM conftest* | |
13876 | ||
13877 | fi | |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5 | |
13879 | $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; } | |
13880 | archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D | |
13881 | ;; | |
13882 | esac | |
13883 | fi | |
13884 | ;; | |
13885 | esac | |
13886 | ||
13887 | ||
13888 | ||
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | ||
13902 | ||
13903 | ||
13904 | ||
13905 | ||
13906 | ||
13907 | ||
13908 | ||
13909 | ||
13910 | ||
13911 | ||
13912 | ||
13913 | ||
13914 | ||
13915 | ||
13916 | ||
13917 | ||
13918 | ||
13919 | ||
13920 | ||
13921 | ||
13922 | ||
13923 | ||
13924 | ||
13925 | ||
13926 | ||
13927 | ||
13928 | ||
13929 | ||
13930 | ||
13931 | ||
13932 | ||
13933 | ||
13934 | ||
13935 | ||
13936 | ||
13937 | ||
13938 | ||
13939 | ||
13940 | ||
13941 | ||
13942 | ||
13943 | ||
13944 | ||
13945 | ||
13946 | ||
13947 | ||
13948 | ||
13949 | ||
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
13951 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
13952 | hardcode_action_D= | |
13953 | if test -n "$hardcode_libdir_flag_spec_D" || | |
13954 | test -n "$runpath_var_D" || | |
13955 | test "X$hardcode_automatic_D" = "Xyes" ; then | |
13956 | ||
13957 | # We can hardcode non-existent directories. | |
13958 | if test "$hardcode_direct_D" != no && | |
13959 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13960 | # have to relink, otherwise we might link with an installed library | |
13961 | # when we should be linking with a yet-to-be-installed one | |
13962 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no && | |
13963 | test "$hardcode_minus_L_D" != no; then | |
13964 | # Linking always hardcodes the temporary library directory. | |
13965 | hardcode_action_D=relink | |
13966 | else | |
13967 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13968 | hardcode_action_D=immediate | |
13969 | fi | |
13970 | else | |
13971 | # We cannot hardcode anything, or else we can only hardcode existing | |
13972 | # directories. | |
13973 | hardcode_action_D=unsupported | |
13974 | fi | |
13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5 | |
13976 | $as_echo "$hardcode_action_D" >&6; } | |
13977 | ||
13978 | if test "$hardcode_action_D" = relink || | |
13979 | test "$inherit_rpath_D" = yes; then | |
13980 | # Fast installation is not supported | |
13981 | enable_fast_install=no | |
13982 | elif test "$shlibpath_overrides_runpath" = yes || | |
13983 | test "$enable_shared" = no; then | |
13984 | # Fast installation is not necessary | |
13985 | enable_fast_install=needless | |
13986 | fi | |
13987 | ||
13988 | ||
13989 | ||
13990 | ||
13991 | ||
13992 | ||
13993 | ||
13994 | fi | |
13995 | ||
13996 | ac_ext=c | |
13997 | ac_cpp='$CPP $CPPFLAGS' | |
13998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14001 | ||
14002 | ||
14003 | GCC=$lt_save_GCC | |
14004 | CC=$lt_save_CC | |
14005 | CFLAGS=$lt_save_CFLAGS | |
b4c522fa IB |
14006 | |
14007 | GDCFLAGS=$gdc_save_DFLAGS | |
14008 | ||
b4c522fa IB |
14009 | |
14010 | # libtool variables for Phobos shared and position-independent compiles. | |
14011 | # | |
14012 | # Use phobos_compiler_shared_flag to designate the compile-time flags for | |
14013 | # creating shared objects. Default: -fversion=Shared. | |
14014 | # | |
14015 | # Use phobos_compiler_pic_flag to designate the compile-time flags for | |
14016 | # creating position-independent objects. This varies with the target | |
14017 | # hardware and operating system, but is often: -fPIC. | |
14018 | # | |
14019 | # The distinction between pic and shared compilation flags is not present in | |
14020 | # libtool, and so we make it here. How it is handled is that in shared | |
14021 | # compilations the `lt_prog_compiler_pic_D' variable is used to instead | |
14022 | # ensure that conditional compilation of shared runtime code is compiled in. | |
14023 | # The original PIC flags are then used in the compilation of every object. | |
14024 | # | |
14025 | # Why are objects destined for libgphobos.a compiled with -fPIC? | |
14026 | # Because -fPIC is not harmful to use for objects destined for static | |
14027 | # libraries. In addition, using -fPIC will allow the use of static | |
14028 | # libgphobos.a in the creation of other D shared libraries. | |
14029 | if test "$enable_shared" = yes; then | |
14030 | phobos_compiler_pic_flag="$lt_prog_compiler_pic_D" | |
14031 | phobos_compiler_shared_flag="-fversion=Shared" | |
14032 | else | |
14033 | phobos_compiler_pic_flag= | |
14034 | phobos_compiler_shared_flag= | |
14035 | fi | |
14036 | ||
14037 | ||
14038 | ||
14039 | # Override the libtool's pic_flag and pic_mode. | |
14040 | # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT. | |
14041 | # NB: this impacts --with-pic and --without-pic. | |
14042 | lt_prog_compiler_pic_D="$phobos_compiler_shared_flag" | |
14043 | pic_mode='default' | |
14044 | ||
14045 | # Determine what GCC version number to use in filesystem paths. | |
14046 | ||
14047 | get_gcc_base_ver="cat" | |
14048 | ||
14049 | # Check whether --with-gcc-major-version-only was given. | |
14050 | if test "${with_gcc_major_version_only+set}" = set; then : | |
14051 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
14052 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" | |
14053 | fi | |
14054 | ||
14055 | fi | |
14056 | ||
14057 | ||
14058 | ||
14059 | ||
14060 | # libphobos/libdruntime specific options and feature detection | |
14061 | ||
14062 | # These need to be absolute paths, yet at the same time need to | |
14063 | # canonicalize only relative paths, because then amd will not unmount | |
14064 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
14065 | libphobos_builddir=`${PWDCMD-pwd}` | |
14066 | case $srcdir in | |
14067 | \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;; | |
14068 | *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
14069 | esac | |
14070 | ||
14071 | ||
14072 | ||
14073 | ||
14074 | if test ${multilib} = yes; then | |
14075 | multilib_arg="--enable-multilib" | |
14076 | else | |
14077 | multilib_arg= | |
14078 | fi | |
14079 | ||
14080 | ||
14081 | # Check whether --enable-werror was given. | |
14082 | if test "${enable_werror+set}" = set; then : | |
14083 | enableval=$enable_werror; | |
14084 | fi | |
14085 | ||
14086 | WERROR_FLAG="" | |
14087 | if test "x$enable_werror" = "xyes"; then | |
14088 | WERROR_FLAG="-Werror" | |
14089 | fi | |
14090 | ||
b4c522fa | 14091 | |
2493e718 IB |
14092 | druntime_target_cpu_parsed="" |
14093 | case "$target_cpu" in | |
14094 | aarch64*) | |
14095 | druntime_target_cpu_parsed="aarch64" | |
14096 | ;; | |
14097 | arm*) druntime_target_cpu_parsed="arm" | |
14098 | ;; | |
14099 | mips*) druntime_target_cpu_parsed="mips" | |
14100 | ;; | |
8b53086a | 14101 | powerpc*) |
1b0cbe05 | 14102 | druntime_target_cpu_parsed="powerpc" |
2493e718 | 14103 | ;; |
b16f2147 | 14104 | i[34567]86|x86_64) |
2493e718 IB |
14105 | druntime_target_cpu_parsed="x86" |
14106 | ;; | |
88e508f9 RD |
14107 | s390x) |
14108 | druntime_target_cpu_parsed="s390x" | |
14109 | ;; | |
14110 | s390) | |
14111 | druntime_target_cpu_parsed="s390" | |
14112 | ;; | |
2493e718 IB |
14113 | esac |
14114 | if test "$druntime_target_cpu_parsed" = "aarch64"; then | |
14115 | DRUNTIME_CPU_AARCH64_TRUE= | |
14116 | DRUNTIME_CPU_AARCH64_FALSE='#' | |
14117 | else | |
14118 | DRUNTIME_CPU_AARCH64_TRUE='#' | |
14119 | DRUNTIME_CPU_AARCH64_FALSE= | |
14120 | fi | |
14121 | ||
14122 | if test "$druntime_target_cpu_parsed" = "arm"; then | |
14123 | DRUNTIME_CPU_ARM_TRUE= | |
14124 | DRUNTIME_CPU_ARM_FALSE='#' | |
14125 | else | |
14126 | DRUNTIME_CPU_ARM_TRUE='#' | |
14127 | DRUNTIME_CPU_ARM_FALSE= | |
14128 | fi | |
14129 | ||
14130 | if test "$druntime_target_cpu_parsed" = "mips"; then | |
14131 | DRUNTIME_CPU_MIPS_TRUE= | |
14132 | DRUNTIME_CPU_MIPS_FALSE='#' | |
14133 | else | |
14134 | DRUNTIME_CPU_MIPS_TRUE='#' | |
14135 | DRUNTIME_CPU_MIPS_FALSE= | |
14136 | fi | |
14137 | ||
14138 | if test "$druntime_target_cpu_parsed" = "powerpc"; then | |
14139 | DRUNTIME_CPU_POWERPC_TRUE= | |
14140 | DRUNTIME_CPU_POWERPC_FALSE='#' | |
14141 | else | |
14142 | DRUNTIME_CPU_POWERPC_TRUE='#' | |
14143 | DRUNTIME_CPU_POWERPC_FALSE= | |
14144 | fi | |
14145 | ||
2493e718 IB |
14146 | if test "$druntime_target_cpu_parsed" = "x86"; then |
14147 | DRUNTIME_CPU_X86_TRUE= | |
14148 | DRUNTIME_CPU_X86_FALSE='#' | |
14149 | else | |
14150 | DRUNTIME_CPU_X86_TRUE='#' | |
14151 | DRUNTIME_CPU_X86_FALSE= | |
14152 | fi | |
14153 | ||
88e508f9 RD |
14154 | if test "$druntime_target_cpu_parsed" = "s390x"; then |
14155 | DRUNTIME_CPU_SYSTEMZ_TRUE= | |
14156 | DRUNTIME_CPU_SYSTEMZ_FALSE='#' | |
14157 | else | |
14158 | DRUNTIME_CPU_SYSTEMZ_TRUE='#' | |
14159 | DRUNTIME_CPU_SYSTEMZ_FALSE= | |
14160 | fi | |
14161 | ||
14162 | if test "$druntime_target_cpu_parsed" = "s390"; then | |
14163 | DRUNTIME_CPU_S390_TRUE= | |
14164 | DRUNTIME_CPU_S390_FALSE='#' | |
14165 | else | |
14166 | DRUNTIME_CPU_S390_TRUE='#' | |
14167 | DRUNTIME_CPU_S390_FALSE= | |
14168 | fi | |
14169 | ||
2493e718 IB |
14170 | |
14171 | ||
b4c522fa IB |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5 |
14173 | $as_echo_n "checking for target OS... " >&6; } | |
22e05272 | 14174 | if ${druntime_cv_target_os+:} false; then : |
b4c522fa IB |
14175 | $as_echo_n "(cached) " >&6 |
14176 | else | |
14177 | druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'` | |
14178 | fi | |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5 | |
14180 | $as_echo "$druntime_cv_target_os" >&6; } | |
14181 | if test -z "$druntime_cv_target_os"; then : | |
22e05272 | 14182 | as_fn_error $? "can't detect target OS" "$LINENO" 5 |
b4c522fa IB |
14183 | fi |
14184 | ||
14185 | ||
14186 | ||
b4c522fa IB |
14187 | |
14188 | druntime_target_os_parsed="" | |
14189 | case "$druntime_cv_target_os" in | |
14190 | aix*) druntime_target_os_parsed="aix" | |
14191 | ;; | |
14192 | *android*) | |
14193 | druntime_target_os_parsed="android" | |
14194 | ;; | |
14195 | darwin*) druntime_target_os_parsed="darwin" | |
14196 | ;; | |
14197 | dragonfly*) | |
14198 | druntime_target_os_parsed="dragonflybsd" | |
14199 | ;; | |
14200 | freebsd*|k*bsd*-gnu) | |
14201 | druntime_target_os_parsed="freebsd" | |
14202 | ;; | |
14203 | openbsd*) | |
14204 | druntime_target_os_parsed="openbsd" | |
14205 | ;; | |
14206 | netbsd*) | |
14207 | druntime_target_os_parsed="netbsd" | |
14208 | ;; | |
14209 | linux*) druntime_target_os_parsed="linux" | |
14210 | ;; | |
14211 | mingw*) druntime_target_os_parsed="mingw" | |
14212 | ;; | |
14213 | *solaris*) druntime_target_os_parsed="solaris" | |
14214 | esac | |
14215 | if test "$druntime_target_os_parsed" = "aix"; then | |
14216 | DRUNTIME_OS_AIX_TRUE= | |
14217 | DRUNTIME_OS_AIX_FALSE='#' | |
14218 | else | |
14219 | DRUNTIME_OS_AIX_TRUE='#' | |
14220 | DRUNTIME_OS_AIX_FALSE= | |
14221 | fi | |
14222 | ||
14223 | if test "$druntime_target_os_parsed" = "android"; then | |
14224 | DRUNTIME_OS_ANDROID_TRUE= | |
14225 | DRUNTIME_OS_ANDROID_FALSE='#' | |
14226 | else | |
14227 | DRUNTIME_OS_ANDROID_TRUE='#' | |
14228 | DRUNTIME_OS_ANDROID_FALSE= | |
14229 | fi | |
14230 | ||
14231 | if test "$druntime_target_os_parsed" = "darwin"; then | |
14232 | DRUNTIME_OS_DARWIN_TRUE= | |
14233 | DRUNTIME_OS_DARWIN_FALSE='#' | |
14234 | else | |
14235 | DRUNTIME_OS_DARWIN_TRUE='#' | |
14236 | DRUNTIME_OS_DARWIN_FALSE= | |
14237 | fi | |
14238 | ||
14239 | if test "$druntime_target_os_parsed" = "dragonflybsd"; then | |
14240 | DRUNTIME_OS_DRAGONFLYBSD_TRUE= | |
14241 | DRUNTIME_OS_DRAGONFLYBSD_FALSE='#' | |
14242 | else | |
14243 | DRUNTIME_OS_DRAGONFLYBSD_TRUE='#' | |
14244 | DRUNTIME_OS_DRAGONFLYBSD_FALSE= | |
14245 | fi | |
14246 | ||
14247 | if test "$druntime_target_os_parsed" = "freebsd"; then | |
14248 | DRUNTIME_OS_FREEBSD_TRUE= | |
14249 | DRUNTIME_OS_FREEBSD_FALSE='#' | |
14250 | else | |
14251 | DRUNTIME_OS_FREEBSD_TRUE='#' | |
14252 | DRUNTIME_OS_FREEBSD_FALSE= | |
14253 | fi | |
14254 | ||
14255 | if test "$druntime_target_os_parsed" = "netbsd"; then | |
14256 | DRUNTIME_OS_NETBSD_TRUE= | |
14257 | DRUNTIME_OS_NETBSD_FALSE='#' | |
14258 | else | |
14259 | DRUNTIME_OS_NETBSD_TRUE='#' | |
14260 | DRUNTIME_OS_NETBSD_FALSE= | |
14261 | fi | |
14262 | ||
14263 | if test "$druntime_target_os_parsed" = "openbsd"; then | |
14264 | DRUNTIME_OS_OPENBSD_TRUE= | |
14265 | DRUNTIME_OS_OPENBSD_FALSE='#' | |
14266 | else | |
14267 | DRUNTIME_OS_OPENBSD_TRUE='#' | |
14268 | DRUNTIME_OS_OPENBSD_FALSE= | |
14269 | fi | |
14270 | ||
14271 | if test "$druntime_target_os_parsed" = "linux"; then | |
14272 | DRUNTIME_OS_LINUX_TRUE= | |
14273 | DRUNTIME_OS_LINUX_FALSE='#' | |
14274 | else | |
14275 | DRUNTIME_OS_LINUX_TRUE='#' | |
14276 | DRUNTIME_OS_LINUX_FALSE= | |
14277 | fi | |
14278 | ||
14279 | if test "$druntime_target_os_parsed" = "mingw"; then | |
14280 | DRUNTIME_OS_MINGW_TRUE= | |
14281 | DRUNTIME_OS_MINGW_FALSE='#' | |
14282 | else | |
14283 | DRUNTIME_OS_MINGW_TRUE='#' | |
14284 | DRUNTIME_OS_MINGW_FALSE= | |
14285 | fi | |
14286 | ||
14287 | if test "$druntime_target_os_parsed" = "solaris"; then | |
14288 | DRUNTIME_OS_SOLARIS_TRUE= | |
14289 | DRUNTIME_OS_SOLARIS_FALSE='#' | |
14290 | else | |
14291 | DRUNTIME_OS_SOLARIS_TRUE='#' | |
14292 | DRUNTIME_OS_SOLARIS_FALSE= | |
14293 | fi | |
14294 | ||
14295 | ||
72c136c9 IB |
14296 | druntime_target_posix="no" |
14297 | case "$druntime_cv_target_os" in | |
fa9091ad | 14298 | aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*) |
72c136c9 IB |
14299 | druntime_target_posix="yes" |
14300 | ;; | |
14301 | esac | |
14302 | if test "$druntime_target_posix" = "yes"; then | |
14303 | DRUNTIME_OS_POSIX_TRUE= | |
14304 | DRUNTIME_OS_POSIX_FALSE='#' | |
14305 | else | |
14306 | DRUNTIME_OS_POSIX_TRUE='#' | |
14307 | DRUNTIME_OS_POSIX_FALSE= | |
14308 | fi | |
14309 | ||
14310 | ||
b4c522fa IB |
14311 | |
14312 | ||
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5 | |
14314 | $as_echo_n "checking for thread model used by GDC... " >&6; } | |
14315 | d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5 | |
14317 | $as_echo "$d_thread_model" >&6; } | |
14318 | ||
14319 | # Map from thread model to thread interface. | |
14320 | ||
14321 | case $d_thread_model in | |
14322 | aix) DCFG_THREAD_MODEL="Posix" ;; | |
14323 | lynx) DCFG_THREAD_MODEL="Posix" ;; | |
14324 | posix) DCFG_THREAD_MODEL="Posix" ;; | |
14325 | single) DCFG_THREAD_MODEL="Single" ;; | |
14326 | win32) DCFG_THREAD_MODEL="Win32" ;; | |
14327 | # TODO: These targets need porting. | |
14328 | dce|mipssde|rtems|tpf|vxworks) | |
14329 | DCFG_THREAD_MODEL="Single" ;; | |
14330 | *) as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;; | |
14331 | esac | |
14332 | ||
14333 | ||
14334 | ||
14335 | ||
14336 | ac_ext=c | |
14337 | ac_cpp='$CPP $CPPFLAGS' | |
14338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14341 | ||
14342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5 | |
14343 | $as_echo_n "checking for ARM unwinder... " >&6; } | |
14344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14345 | /* end confdefs.h. */ | |
14346 | #include <unwind.h> | |
14347 | int | |
14348 | main () | |
14349 | { | |
14350 | ||
14351 | #if __ARM_EABI_UNWINDER__ | |
14352 | #error Yes, it is. | |
14353 | #endif | |
14354 | ||
14355 | ; | |
14356 | return 0; | |
14357 | } | |
14358 | _ACEOF | |
14359 | if ac_fn_c_try_compile "$LINENO"; then : | |
14360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14361 | $as_echo "no" >&6; } | |
14362 | DCFG_ARM_EABI_UNWINDER=false | |
14363 | else | |
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14365 | $as_echo "yes" >&6; } | |
14366 | DCFG_ARM_EABI_UNWINDER=true | |
14367 | fi | |
14368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14369 | ||
14370 | if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then | |
14371 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE= | |
14372 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#' | |
14373 | else | |
14374 | DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#' | |
14375 | DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE= | |
14376 | fi | |
14377 | ||
14378 | ac_ext=c | |
14379 | ac_cpp='$CPP $CPPFLAGS' | |
14380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14383 | ||
14384 | ||
14385 | ||
14386 | ac_ext=c | |
14387 | ac_cpp='$CPP $CPPFLAGS' | |
14388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14391 | ||
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5 | |
14393 | $as_echo_n "checking for minfo section bracketing... " >&6; } | |
14394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14395 | /* end confdefs.h. */ | |
14396 | ||
14397 | void* module_info_ptr __attribute__((section ("minfo"))); | |
14398 | extern void* __start_minfo __attribute__((visibility ("hidden"))); | |
14399 | extern void* __stop_minfo __attribute__((visibility ("hidden"))); | |
14400 | ||
14401 | int main() | |
14402 | { | |
14403 | // Never run, just to prevent compiler from optimizing access | |
14404 | return &__start_minfo == &__stop_minfo; | |
14405 | } | |
14406 | ||
14407 | _ACEOF | |
14408 | if ac_fn_c_try_link "$LINENO"; then : | |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14410 | $as_echo "yes" >&6; } | |
14411 | DCFG_MINFO_BRACKETING=true | |
14412 | else | |
14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14414 | $as_echo "no" >&6; } | |
14415 | DCFG_MINFO_BRACKETING=false | |
14416 | fi | |
14417 | rm -f core conftest.err conftest.$ac_objext \ | |
14418 | conftest$ac_exeext conftest.$ac_ext | |
14419 | ||
0b6e3127 RO |
14420 | if test "$DCFG_MINFO_BRACKETING" = "true"; then |
14421 | DRUNTIME_OS_MINFO_BRACKETING_TRUE= | |
14422 | DRUNTIME_OS_MINFO_BRACKETING_FALSE='#' | |
14423 | else | |
14424 | DRUNTIME_OS_MINFO_BRACKETING_TRUE='#' | |
14425 | DRUNTIME_OS_MINFO_BRACKETING_FALSE= | |
14426 | fi | |
14427 | ||
b4c522fa IB |
14428 | ac_ext=c |
14429 | ac_cpp='$CPP $CPPFLAGS' | |
14430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14433 | ||
14434 | ||
14435 | ||
235d1c46 RO |
14436 | ac_ext=c |
14437 | ac_cpp='$CPP $CPPFLAGS' | |
14438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14441 | ||
14442 | ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h> | |
14443 | " | |
14444 | if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then : | |
14445 | DCFG_DLPI_TLS_MODID=true | |
14446 | else | |
14447 | DCFG_DLPI_TLS_MODID=false | |
14448 | fi | |
14449 | ||
14450 | ||
14451 | ac_ext=c | |
14452 | ac_cpp='$CPP $CPPFLAGS' | |
14453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14456 | ||
14457 | ||
14458 | ||
ba838aa6 RO |
14459 | case $target in |
14460 | i?86-*-solaris2.* | x86_64-*-solaris2.*) | |
14461 | # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS | |
14462 | # relocs. Work around by disabling TLS transitions. Not necessary | |
14463 | # on 32-bit x86, but cannot be distinguished reliably in specs. | |
14464 | druntime_ld_prog=`$CC -print-prog-name=ld` | |
bca0a321 RO |
14465 | druntime_ld_gld=no |
14466 | druntime_ld_relax_transtls=no | |
ba838aa6 RO |
14467 | if test -n "$druntime_ld_prog" \ |
14468 | && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then | |
bca0a321 | 14469 | druntime_ld_gld=yes |
ba838aa6 | 14470 | else |
bca0a321 RO |
14471 | echo 'int main (void) { return 0; }' > conftest.c |
14472 | save_LDFLAGS="$LDFLAGS" | |
14473 | LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls" | |
14474 | if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then | |
14475 | druntime_ld_relax_transtls=yes | |
14476 | fi | |
14477 | LDFLAGS="$save_LDFLAGS" | |
14478 | rm -f conftest.c conftest | |
14479 | fi | |
14480 | if test "$druntime_ld_relax_transtls" = "yes"; then | |
ba838aa6 RO |
14481 | OS_LINK_SPEC='-z relax=transtls' |
14482 | fi | |
14483 | ;; | |
14484 | esac | |
14485 | ||
14486 | ||
14487 | ||
36d7f151 JP |
14488 | ac_ext=c |
14489 | ac_cpp='$CPP $CPPFLAGS' | |
14490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14493 | ||
14494 | DCFG_HAVE_QSORT_R=false | |
14495 | ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" | |
14496 | if test "x$ac_cv_func_qsort_r" = xyes; then : | |
14497 | DCFG_HAVE_QSORT_R=true | |
14498 | fi | |
14499 | ||
14500 | ||
14501 | ac_ext=c | |
14502 | ac_cpp='$CPP $CPPFLAGS' | |
14503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14506 | ||
14507 | ||
14508 | ||
b4c522fa IB |
14509 | |
14510 | ||
14511 | gdc_save_DFLAGS=$GDCFLAGS | |
14512 | GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS" | |
14513 | ||
14514 | ac_ext=d | |
14515 | ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5' | |
14516 | ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14517 | ac_compiler_gnu=yes | |
14518 | ||
14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5 | |
14520 | $as_echo_n "checking for library containing malloc... " >&6; } | |
22e05272 | 14521 | if ${ac_cv_search_malloc+:} false; then : |
b4c522fa IB |
14522 | $as_echo_n "(cached) " >&6 |
14523 | else | |
14524 | ac_func_search_save_LIBS=$LIBS | |
14525 | cat > conftest.$ac_ext <<_ACEOF | |
14526 | module mod; | |
14527 | extern(C) int malloc(); | |
14528 | ||
14529 | extern(C) int main() { | |
14530 | malloc(); return 0; | |
14531 | } | |
14532 | _ACEOF | |
14533 | for ac_lib in '' c; do | |
14534 | if test -z "$ac_lib"; then | |
14535 | ac_res="none required" | |
14536 | else | |
14537 | ac_res=-l$ac_lib | |
14538 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14539 | fi | |
14540 | if ac_fn_d_try_link "$LINENO"; then : | |
14541 | ac_cv_search_malloc=$ac_res | |
14542 | fi | |
14543 | rm -f core conftest.err conftest.$ac_objext \ | |
14544 | conftest$ac_exeext | |
22e05272 | 14545 | if ${ac_cv_search_malloc+:} false; then : |
b4c522fa IB |
14546 | break |
14547 | fi | |
14548 | done | |
22e05272 | 14549 | if ${ac_cv_search_malloc+:} false; then : |
b4c522fa IB |
14550 | |
14551 | else | |
14552 | ac_cv_search_malloc=no | |
14553 | fi | |
14554 | rm conftest.$ac_ext | |
14555 | LIBS=$ac_func_search_save_LIBS | |
14556 | fi | |
14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5 | |
14558 | $as_echo "$ac_cv_search_malloc" >&6; } | |
14559 | ac_res=$ac_cv_search_malloc | |
14560 | if test "$ac_res" != no; then : | |
14561 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14562 | ||
14563 | fi | |
14564 | ||
6e286c8d | 14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
b4c522fa | 14566 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
22e05272 | 14567 | if ${ac_cv_search_pthread_create+:} false; then : |
b4c522fa IB |
14568 | $as_echo_n "(cached) " >&6 |
14569 | else | |
14570 | ac_func_search_save_LIBS=$LIBS | |
14571 | cat > conftest.$ac_ext <<_ACEOF | |
14572 | module mod; | |
14573 | extern(C) int pthread_create(); | |
14574 | ||
14575 | extern(C) int main() { | |
14576 | pthread_create(); return 0; | |
14577 | } | |
14578 | _ACEOF | |
14579 | for ac_lib in '' pthread; do | |
14580 | if test -z "$ac_lib"; then | |
14581 | ac_res="none required" | |
14582 | else | |
14583 | ac_res=-l$ac_lib | |
14584 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14585 | fi | |
14586 | if ac_fn_d_try_link "$LINENO"; then : | |
14587 | ac_cv_search_pthread_create=$ac_res | |
14588 | fi | |
14589 | rm -f core conftest.err conftest.$ac_objext \ | |
14590 | conftest$ac_exeext | |
22e05272 | 14591 | if ${ac_cv_search_pthread_create+:} false; then : |
b4c522fa IB |
14592 | break |
14593 | fi | |
14594 | done | |
22e05272 | 14595 | if ${ac_cv_search_pthread_create+:} false; then : |
b4c522fa IB |
14596 | |
14597 | else | |
14598 | ac_cv_search_pthread_create=no | |
14599 | fi | |
14600 | rm conftest.$ac_ext | |
14601 | LIBS=$ac_func_search_save_LIBS | |
14602 | fi | |
14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 | |
14604 | $as_echo "$ac_cv_search_pthread_create" >&6; } | |
14605 | ac_res=$ac_cv_search_pthread_create | |
14606 | if test "$ac_res" != no; then : | |
14607 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14608 | ||
b4c522fa IB |
14609 | fi |
14610 | ||
14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5 | |
14612 | $as_echo_n "checking for library containing cosf... " >&6; } | |
22e05272 | 14613 | if ${ac_cv_search_cosf+:} false; then : |
b4c522fa IB |
14614 | $as_echo_n "(cached) " >&6 |
14615 | else | |
14616 | ac_func_search_save_LIBS=$LIBS | |
14617 | cat > conftest.$ac_ext <<_ACEOF | |
14618 | module mod; | |
14619 | extern(C) int cosf(); | |
14620 | ||
14621 | extern(C) int main() { | |
14622 | cosf(); return 0; | |
14623 | } | |
14624 | _ACEOF | |
14625 | for ac_lib in '' m; do | |
14626 | if test -z "$ac_lib"; then | |
14627 | ac_res="none required" | |
14628 | else | |
14629 | ac_res=-l$ac_lib | |
14630 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14631 | fi | |
14632 | if ac_fn_d_try_link "$LINENO"; then : | |
14633 | ac_cv_search_cosf=$ac_res | |
14634 | fi | |
14635 | rm -f core conftest.err conftest.$ac_objext \ | |
14636 | conftest$ac_exeext | |
22e05272 | 14637 | if ${ac_cv_search_cosf+:} false; then : |
b4c522fa IB |
14638 | break |
14639 | fi | |
14640 | done | |
22e05272 | 14641 | if ${ac_cv_search_cosf+:} false; then : |
b4c522fa IB |
14642 | |
14643 | else | |
14644 | ac_cv_search_cosf=no | |
14645 | fi | |
14646 | rm conftest.$ac_ext | |
14647 | LIBS=$ac_func_search_save_LIBS | |
14648 | fi | |
14649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5 | |
14650 | $as_echo "$ac_cv_search_cosf" >&6; } | |
14651 | ac_res=$ac_cv_search_cosf | |
14652 | if test "$ac_res" != no; then : | |
14653 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14654 | ||
14655 | fi | |
14656 | ||
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | |
14658 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | |
22e05272 | 14659 | if ${ac_cv_search_clock_gettime+:} false; then : |
b4c522fa IB |
14660 | $as_echo_n "(cached) " >&6 |
14661 | else | |
14662 | ac_func_search_save_LIBS=$LIBS | |
14663 | cat > conftest.$ac_ext <<_ACEOF | |
14664 | module mod; | |
14665 | extern(C) int clock_gettime(); | |
14666 | ||
14667 | extern(C) int main() { | |
14668 | clock_gettime(); return 0; | |
14669 | } | |
14670 | _ACEOF | |
14671 | for ac_lib in '' rt; do | |
14672 | if test -z "$ac_lib"; then | |
14673 | ac_res="none required" | |
14674 | else | |
14675 | ac_res=-l$ac_lib | |
14676 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14677 | fi | |
14678 | if ac_fn_d_try_link "$LINENO"; then : | |
14679 | ac_cv_search_clock_gettime=$ac_res | |
14680 | fi | |
14681 | rm -f core conftest.err conftest.$ac_objext \ | |
14682 | conftest$ac_exeext | |
22e05272 | 14683 | if ${ac_cv_search_clock_gettime+:} false; then : |
b4c522fa IB |
14684 | break |
14685 | fi | |
14686 | done | |
22e05272 | 14687 | if ${ac_cv_search_clock_gettime+:} false; then : |
b4c522fa IB |
14688 | |
14689 | else | |
14690 | ac_cv_search_clock_gettime=no | |
14691 | fi | |
14692 | rm conftest.$ac_ext | |
14693 | LIBS=$ac_func_search_save_LIBS | |
14694 | fi | |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | |
14696 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | |
14697 | ac_res=$ac_cv_search_clock_gettime | |
14698 | if test "$ac_res" != no; then : | |
14699 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14700 | ||
14701 | fi | |
14702 | ||
14703 | ||
14704 | # This checks to see if the host supports the compiler-generated builtins | |
14705 | # for atomic operations for various integral sizes. Note, this is intended | |
14706 | # to be an all-or-nothing switch, so all the atomic operations that are | |
14707 | # used should be checked. | |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5 | |
14709 | $as_echo_n "checking for atomic builtins for byte... " >&6; } | |
22e05272 | 14710 | if ${druntime_cv_atomic_byte+:} false; then : |
b4c522fa IB |
14711 | $as_echo_n "(cached) " >&6 |
14712 | else | |
14713 | ||
14714 | cat > conftest.$ac_ext <<_ACEOF | |
14715 | module mod; | |
14716 | import gcc.builtins; | |
14717 | ||
14718 | extern(C) int main() { | |
14719 | ||
14720 | shared(byte) c1; | |
14721 | byte c2, c3; | |
14722 | __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5); | |
14723 | __atomic_load_1(&c1, 5); | |
14724 | __atomic_store_1(&c1, c2, 5); | |
14725 | return 0; | |
14726 | ||
14727 | } | |
14728 | _ACEOF | |
14729 | if ac_fn_d_try_link "$LINENO"; then : | |
14730 | druntime_cv_atomic_byte=yes | |
14731 | else | |
14732 | druntime_cv_atomic_byte=no | |
14733 | fi | |
14734 | rm -f core conftest.err conftest.$ac_objext \ | |
14735 | conftest$ac_exeext conftest.$ac_ext | |
14736 | ||
14737 | fi | |
14738 | ||
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5 | |
14740 | $as_echo "$druntime_cv_atomic_byte" >&6; } | |
14741 | ||
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5 | |
14743 | $as_echo_n "checking for atomic builtins for short... " >&6; } | |
22e05272 | 14744 | if ${druntime_cv_atomic_short+:} false; then : |
b4c522fa IB |
14745 | $as_echo_n "(cached) " >&6 |
14746 | else | |
14747 | ||
14748 | cat > conftest.$ac_ext <<_ACEOF | |
14749 | module mod; | |
14750 | import gcc.builtins; | |
14751 | ||
14752 | extern(C) int main() { | |
14753 | ||
14754 | shared(short) c1; | |
14755 | short c2, c3; | |
14756 | __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5); | |
14757 | __atomic_load_2(&c1, 5); | |
14758 | __atomic_store_2(&c1, c2, 5); | |
14759 | return 0; | |
14760 | ||
14761 | } | |
14762 | _ACEOF | |
14763 | if ac_fn_d_try_link "$LINENO"; then : | |
14764 | druntime_cv_atomic_short=yes | |
14765 | else | |
14766 | druntime_cv_atomic_short=no | |
14767 | fi | |
14768 | rm -f core conftest.err conftest.$ac_objext \ | |
14769 | conftest$ac_exeext conftest.$ac_ext | |
14770 | ||
14771 | fi | |
14772 | ||
14773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5 | |
14774 | $as_echo "$druntime_cv_atomic_short" >&6; } | |
14775 | ||
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5 | |
14777 | $as_echo_n "checking for atomic builtins for int... " >&6; } | |
22e05272 | 14778 | if ${druntime_cv_atomic_int+:} false; then : |
b4c522fa IB |
14779 | $as_echo_n "(cached) " >&6 |
14780 | else | |
14781 | ||
14782 | cat > conftest.$ac_ext <<_ACEOF | |
14783 | module mod; | |
14784 | import gcc.builtins; | |
14785 | ||
14786 | extern(C) int main() { | |
14787 | ||
14788 | shared(int) c1; | |
14789 | int c2, c3; | |
14790 | __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5); | |
14791 | __atomic_load_4(&c1, 5); | |
14792 | __atomic_store_4(&c1, c2, 5); | |
14793 | return 0; | |
14794 | ||
14795 | } | |
14796 | _ACEOF | |
14797 | if ac_fn_d_try_link "$LINENO"; then : | |
14798 | druntime_cv_atomic_int=yes | |
14799 | else | |
14800 | druntime_cv_atomic_int=no | |
14801 | fi | |
14802 | rm -f core conftest.err conftest.$ac_objext \ | |
14803 | conftest$ac_exeext conftest.$ac_ext | |
14804 | ||
14805 | fi | |
14806 | ||
14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5 | |
14808 | $as_echo "$druntime_cv_atomic_int" >&6; } | |
14809 | ||
14810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5 | |
14811 | $as_echo_n "checking for atomic builtins for long... " >&6; } | |
22e05272 | 14812 | if ${druntime_cv_atomic_long+:} false; then : |
b4c522fa IB |
14813 | $as_echo_n "(cached) " >&6 |
14814 | else | |
14815 | ||
14816 | cat > conftest.$ac_ext <<_ACEOF | |
14817 | module mod; | |
14818 | import gcc.builtins; | |
14819 | ||
14820 | extern(C) int main() { | |
14821 | ||
14822 | shared(long) c1; | |
14823 | long c2, c3; | |
14824 | __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5); | |
14825 | __atomic_load_8(&c1, 5); | |
14826 | __atomic_store_8(&c1, c2, 5); | |
14827 | return 0; | |
14828 | ||
14829 | } | |
14830 | _ACEOF | |
14831 | if ac_fn_d_try_link "$LINENO"; then : | |
14832 | druntime_cv_atomic_long=yes | |
14833 | else | |
14834 | druntime_cv_atomic_long=no | |
14835 | fi | |
14836 | rm -f core conftest.err conftest.$ac_objext \ | |
14837 | conftest$ac_exeext conftest.$ac_ext | |
14838 | ||
14839 | fi | |
14840 | ||
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5 | |
14842 | $as_echo "$druntime_cv_atomic_long" >&6; } | |
14843 | ||
14844 | # Have atomic builtin support if all but the long test above passes. | |
14845 | DCFG_HAVE_ATOMIC_BUILTINS=false | |
14846 | if test "$druntime_cv_atomic_byte" = yes \ | |
14847 | && test "$druntime_cv_atomic_short" = yes \ | |
14848 | && test "$druntime_cv_atomic_int" = yes; then \ | |
14849 | DCFG_HAVE_ATOMIC_BUILTINS=true | |
14850 | fi | |
14851 | ||
14852 | # Have 64-bit atomic support if the long test above passes. | |
14853 | DCFG_HAVE_64BIT_ATOMICS=false | |
14854 | if test "$druntime_cv_atomic_long" = yes; then | |
14855 | DCFG_HAVE_64BIT_ATOMICS=true | |
14856 | fi | |
14857 | ||
14858 | ||
14859 | ||
14860 | ||
14861 | ac_ext=c | |
14862 | ac_cpp='$CPP $CPPFLAGS' | |
14863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14866 | ||
14867 | ||
14868 | GDCFLAGS=$gdc_save_DFLAGS | |
14869 | ||
14870 | ||
14871 | ||
14872 | ||
14873 | # Check whether --with-libatomic was given. | |
14874 | if test "${with_libatomic+set}" = set; then : | |
14875 | withval=$with_libatomic; | |
14876 | fi | |
14877 | ||
14878 | ||
14879 | DCFG_HAVE_LIBATOMIC=false | |
14880 | LIBATOMIC= | |
14881 | if test "x$with_libatomic" != "xno"; then : | |
14882 | ||
14883 | DCFG_HAVE_LIBATOMIC=true | |
14884 | LIBATOMIC=../../libatomic/libatomic_convenience.la | |
14885 | ||
14886 | else | |
14887 | ||
14888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5 | |
14889 | $as_echo_n "checking for libatomic... " >&6; } | |
14890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
14891 | $as_echo "disabled" >&6; } | |
14892 | ||
14893 | fi | |
14894 | ||
14895 | ||
14896 | ||
14897 | ||
14898 | ||
14899 | ac_ext=c | |
14900 | ac_cpp='$CPP $CPPFLAGS' | |
14901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14904 | ||
14905 | BACKTRACE_SUPPORTED=false | |
14906 | BACKTRACE_USES_MALLOC=false | |
14907 | BACKTRACE_SUPPORTS_THREADS=false | |
14908 | LIBBACKTRACE="" | |
14909 | ||
14910 | ||
14911 | # Check whether --with-libbacktrace was given. | |
14912 | if test "${with_libbacktrace+set}" = set; then : | |
14913 | withval=$with_libbacktrace; | |
14914 | fi | |
14915 | ||
14916 | ||
14917 | if test "x$with_libbacktrace" != "xno"; then : | |
14918 | ||
14919 | LIBBACKTRACE=../../libbacktrace/libbacktrace.la | |
14920 | ||
14921 | gdc_save_CPPFLAGS=$CPPFLAGS | |
5d71d6f2 | 14922 | CPPFLAGS="$CPPFLAGS -I../libbacktrace " |
b4c522fa IB |
14923 | |
14924 | ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default" | |
22e05272 | 14925 | if test "x$ac_cv_header_backtrace_supported_h" = xyes; then : |
b4c522fa IB |
14926 | have_libbacktrace_h=true |
14927 | else | |
14928 | have_libbacktrace_h=false | |
14929 | fi | |
14930 | ||
14931 | ||
14932 | ||
14933 | if $have_libbacktrace_h; then | |
14934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5 | |
14935 | $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; } | |
14936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14937 | /* end confdefs.h. */ | |
14938 | ||
14939 | #include <backtrace-supported.h> | |
14940 | #if BACKTRACE_SUPPORTED | |
14941 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14942 | #endif | |
14943 | ||
14944 | _ACEOF | |
14945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14946 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14947 | BACKTRACE_SUPPORTED=true | |
14948 | else | |
14949 | BACKTRACE_SUPPORTED=false | |
14950 | fi | |
14951 | rm -f conftest* | |
14952 | ||
14953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5 | |
14954 | $as_echo "$BACKTRACE_SUPPORTED" >&6; } | |
14955 | ||
14956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5 | |
14957 | $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; } | |
14958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14959 | /* end confdefs.h. */ | |
14960 | ||
14961 | #include <backtrace-supported.h> | |
14962 | #if BACKTRACE_USES_MALLOC | |
14963 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14964 | #endif | |
14965 | ||
14966 | _ACEOF | |
14967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14968 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14969 | BACKTRACE_USES_MALLOC=true | |
14970 | else | |
14971 | BACKTRACE_USES_MALLOC=false | |
14972 | fi | |
14973 | rm -f conftest* | |
14974 | ||
14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5 | |
14976 | $as_echo "$BACKTRACE_USES_MALLOC" >&6; } | |
14977 | ||
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5 | |
14979 | $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; } | |
14980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14981 | /* end confdefs.h. */ | |
14982 | ||
14983 | #include <backtrace-supported.h> | |
14984 | #if BACKTRACE_SUPPORTS_THREADS | |
14985 | FOUND_LIBBACKTRACE_RESULT_GDC | |
14986 | #endif | |
14987 | ||
14988 | _ACEOF | |
14989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14990 | $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then : | |
14991 | BACKTRACE_SUPPORTS_THREADS=true | |
14992 | else | |
14993 | BACKTRACE_SUPPORTS_THREADS=false | |
14994 | fi | |
14995 | rm -f conftest* | |
14996 | ||
14997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5 | |
14998 | $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; } | |
14999 | fi | |
15000 | CPPFLAGS=$gdc_save_CPPFLAGS | |
15001 | ||
15002 | else | |
15003 | ||
15004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5 | |
15005 | $as_echo_n "checking for libbacktrace... " >&6; } | |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
15007 | $as_echo "disabled" >&6; } | |
15008 | ||
15009 | fi | |
15010 | ||
15011 | ||
15012 | ||
15013 | ||
15014 | ||
15015 | ac_ext=c | |
15016 | ac_cpp='$CPP $CPPFLAGS' | |
15017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15020 | ||
15021 | ||
15022 | ||
15023 | # Libtool has already checked this, so re-use the inferred dlopen lib. | |
15024 | if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then : | |
15025 | ||
15026 | LIBS="$LIBS $lt_cv_dlopen_libs" | |
15027 | ||
15028 | fi | |
15029 | ||
15030 | ||
5e7f8c55 IB |
15031 | druntime_check_both=no |
15032 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | |
1d679134 | 15033 | if test "x$ac_cv_func_connect" = xyes; then : |
1d679134 | 15034 | |
5e7f8c55 IB |
15035 | else |
15036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | |
15037 | $as_echo_n "checking for connect in -lsocket... " >&6; } | |
15038 | if ${ac_cv_lib_socket_connect+:} false; then : | |
1d679134 RO |
15039 | $as_echo_n "(cached) " >&6 |
15040 | else | |
15041 | ac_check_lib_save_LIBS=$LIBS | |
15042 | LIBS="-lsocket $LIBS" | |
15043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15044 | /* end confdefs.h. */ | |
15045 | ||
5e7f8c55 IB |
15046 | /* Override any GCC internal prototype to avoid an error. |
15047 | Use char because int might match the return type of a GCC | |
15048 | builtin and then its argument prototype would still apply. */ | |
15049 | #ifdef __cplusplus | |
15050 | extern "C" | |
15051 | #endif | |
15052 | char connect (); | |
1d679134 RO |
15053 | int |
15054 | main () | |
15055 | { | |
5e7f8c55 | 15056 | return connect (); |
1d679134 RO |
15057 | ; |
15058 | return 0; | |
15059 | } | |
15060 | _ACEOF | |
15061 | if ac_fn_c_try_link "$LINENO"; then : | |
5e7f8c55 | 15062 | ac_cv_lib_socket_connect=yes |
1d679134 | 15063 | else |
5e7f8c55 | 15064 | ac_cv_lib_socket_connect=no |
1d679134 RO |
15065 | fi |
15066 | rm -f core conftest.err conftest.$ac_objext \ | |
15067 | conftest$ac_exeext conftest.$ac_ext | |
15068 | LIBS=$ac_check_lib_save_LIBS | |
15069 | fi | |
5e7f8c55 IB |
15070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
15071 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
15072 | if test "x$ac_cv_lib_socket_connect" = xyes; then : | |
15073 | LIBS="$LIBS -lsocket" | |
1d679134 RO |
15074 | else |
15075 | druntime_check_both=yes | |
15076 | fi | |
15077 | ||
5e7f8c55 IB |
15078 | fi |
15079 | ||
15080 | if test "$druntime_check_both" = "yes"; then | |
15081 | druntime_old_libs=$LIBS | |
15082 | LIBS="$LIBS -lsocket -lnsl" | |
15083 | ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" | |
1d679134 | 15084 | if test "x$ac_cv_func_accept" = xyes; then : |
5e7f8c55 IB |
15085 | |
15086 | else | |
15087 | LIBS=$druntime_old_libs | |
1d679134 RO |
15088 | fi |
15089 | ||
5e7f8c55 IB |
15090 | fi |
15091 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | |
1d679134 RO |
15092 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
15093 | ||
15094 | else | |
5e7f8c55 IB |
15095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
15096 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
15097 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | |
1d679134 RO |
15098 | $as_echo_n "(cached) " >&6 |
15099 | else | |
15100 | ac_check_lib_save_LIBS=$LIBS | |
15101 | LIBS="-lnsl $LIBS" | |
15102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15103 | /* end confdefs.h. */ | |
15104 | ||
5e7f8c55 IB |
15105 | /* Override any GCC internal prototype to avoid an error. |
15106 | Use char because int might match the return type of a GCC | |
15107 | builtin and then its argument prototype would still apply. */ | |
15108 | #ifdef __cplusplus | |
15109 | extern "C" | |
15110 | #endif | |
15111 | char gethostbyname (); | |
1d679134 RO |
15112 | int |
15113 | main () | |
15114 | { | |
5e7f8c55 | 15115 | return gethostbyname (); |
1d679134 RO |
15116 | ; |
15117 | return 0; | |
15118 | } | |
15119 | _ACEOF | |
15120 | if ac_fn_c_try_link "$LINENO"; then : | |
5e7f8c55 | 15121 | ac_cv_lib_nsl_gethostbyname=yes |
1d679134 | 15122 | else |
5e7f8c55 | 15123 | ac_cv_lib_nsl_gethostbyname=no |
1d679134 RO |
15124 | fi |
15125 | rm -f core conftest.err conftest.$ac_objext \ | |
15126 | conftest$ac_exeext conftest.$ac_ext | |
15127 | LIBS=$ac_check_lib_save_LIBS | |
15128 | fi | |
5e7f8c55 IB |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
15130 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
15131 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | |
15132 | LIBS="$LIBS -lnsl" | |
1d679134 RO |
15133 | fi |
15134 | ||
15135 | fi | |
15136 | ||
15137 | ||
1d679134 | 15138 | |
ac1a0a38 IB |
15139 | # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to |
15140 | # "yes" for targets that have 'version = AsmExternal'. | |
15141 | druntime_fiber_asm_external=no | |
15142 | case "$target_cpu" in | |
15143 | aarch64* | \ | |
15144 | arm* | \ | |
15145 | i[34567]86|x86_64 | \ | |
15146 | powerpc) | |
15147 | druntime_fiber_asm_external=yes | |
15148 | ;; | |
15149 | esac | |
15150 | if test "$druntime_fiber_asm_external" = no; then | |
15151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5 | |
15152 | $as_echo_n "checking for library containing swapcontext... " >&6; } | |
15153 | if ${ac_cv_search_swapcontext+:} false; then : | |
15154 | $as_echo_n "(cached) " >&6 | |
15155 | else | |
15156 | ac_func_search_save_LIBS=$LIBS | |
15157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15158 | /* end confdefs.h. */ | |
15159 | ||
15160 | /* Override any GCC internal prototype to avoid an error. | |
15161 | Use char because int might match the return type of a GCC | |
15162 | builtin and then its argument prototype would still apply. */ | |
15163 | #ifdef __cplusplus | |
15164 | extern "C" | |
15165 | #endif | |
15166 | char swapcontext (); | |
15167 | int | |
15168 | main () | |
15169 | { | |
15170 | return swapcontext (); | |
15171 | ; | |
15172 | return 0; | |
15173 | } | |
15174 | _ACEOF | |
15175 | for ac_lib in '' c ucontext; do | |
15176 | if test -z "$ac_lib"; then | |
15177 | ac_res="none required" | |
15178 | else | |
15179 | ac_res=-l$ac_lib | |
15180 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15181 | fi | |
15182 | if ac_fn_c_try_link "$LINENO"; then : | |
15183 | ac_cv_search_swapcontext=$ac_res | |
15184 | fi | |
15185 | rm -f core conftest.err conftest.$ac_objext \ | |
15186 | conftest$ac_exeext | |
15187 | if ${ac_cv_search_swapcontext+:} false; then : | |
15188 | break | |
15189 | fi | |
15190 | done | |
15191 | if ${ac_cv_search_swapcontext+:} false; then : | |
15192 | ||
15193 | else | |
15194 | ac_cv_search_swapcontext=no | |
15195 | fi | |
15196 | rm conftest.$ac_ext | |
15197 | LIBS=$ac_func_search_save_LIBS | |
15198 | fi | |
15199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5 | |
15200 | $as_echo "$ac_cv_search_swapcontext" >&6; } | |
15201 | ac_res=$ac_cv_search_swapcontext | |
15202 | if test "$ac_res" != no; then : | |
15203 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15204 | ||
15205 | else | |
15206 | as_fn_error $? "swapcontext required but not found" "$LINENO" 5 | |
15207 | fi | |
15208 | ||
15209 | fi | |
15210 | ||
15211 | ||
bb50312e IB |
15212 | ac_ext=c |
15213 | ac_cpp='$CPP $CPPFLAGS' | |
15214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15217 | ||
15218 | LIBZ="" | |
15219 | ||
b4c522fa IB |
15220 | |
15221 | # Check whether --with-target-system-zlib was given. | |
15222 | if test "${with_target_system_zlib+set}" = set; then : | |
15223 | withval=$with_target_system_zlib; | |
bb50312e IB |
15224 | else |
15225 | with_target_system_zlib=no | |
b4c522fa IB |
15226 | fi |
15227 | ||
15228 | ||
bb50312e IB |
15229 | case "$with_target_system_zlib" in |
15230 | yes|no|auto) ;; | |
15231 | *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;; | |
15232 | esac | |
b4c522fa | 15233 | |
bb50312e IB |
15234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5 |
15235 | $as_echo_n "checking for system zlib... " >&6; } | |
15236 | save_LIBS=$LIBS | |
15237 | LIBS="$LIBS -lz" | |
15238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b4c522fa | 15239 | /* end confdefs.h. */ |
bb50312e | 15240 | #include <zlib.h> |
b4c522fa IB |
15241 | int |
15242 | main () | |
15243 | { | |
bb50312e | 15244 | gzopen("none", "rb") |
b4c522fa IB |
15245 | ; |
15246 | return 0; | |
15247 | } | |
15248 | _ACEOF | |
15249 | if ac_fn_c_try_link "$LINENO"; then : | |
b4c522fa | 15250 | |
bb50312e IB |
15251 | if test "$cross_compiling" = yes; then : |
15252 | system_zlib_found=no | |
b4c522fa IB |
15253 | |
15254 | else | |
bb50312e IB |
15255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15256 | /* end confdefs.h. */ | |
b4c522fa | 15257 | |
bb50312e IB |
15258 | #include <zlib.h> |
15259 | int main() { | |
15260 | gzFile file = gzopen("none", "rb"); | |
15261 | return 0; | |
15262 | } | |
b4c522fa | 15263 | |
bb50312e IB |
15264 | _ACEOF |
15265 | if ac_fn_c_try_run "$LINENO"; then : | |
15266 | system_zlib_found=yes | |
15267 | else | |
15268 | system_zlib_found=no | |
15269 | fi | |
15270 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15271 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b4c522fa IB |
15272 | fi |
15273 | ||
15274 | ||
15275 | else | |
bb50312e IB |
15276 | system_zlib_found=no |
15277 | fi | |
15278 | rm -f core conftest.err conftest.$ac_objext \ | |
15279 | conftest$ac_exeext conftest.$ac_ext | |
15280 | LIBS=$save_LIBS | |
15281 | ||
15282 | if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then | |
15283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
15284 | $as_echo "found" >&6; } | |
15285 | LIBS="$LIBS -lz" | |
15286 | elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then | |
15287 | as_fn_error $? "system zlib required but not found" "$LINENO" 5 | |
15288 | else | |
b4c522fa IB |
15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
15290 | $as_echo "just compiled" >&6; } | |
bb50312e IB |
15291 | LIBZ=../../zlib/libz_convenience.la |
15292 | fi | |
b4c522fa | 15293 | |
b4c522fa | 15294 | |
bb50312e IB |
15295 | ac_ext=c |
15296 | ac_cpp='$CPP $CPPFLAGS' | |
15297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4c522fa IB |
15300 | |
15301 | ||
15302 | ||
15303 | ||
15304 | ||
15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5 | |
15306 | $as_echo_n "checking D GCC version... " >&6; } | |
15307 | gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER` | |
15308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5 | |
15309 | $as_echo "$gcc_version" >&6; } | |
15310 | ||
15311 | ||
15312 | ||
15313 | # Check whether --with-cross-host was given. | |
15314 | if test "${with_cross_host+set}" = set; then : | |
15315 | withval=$with_cross_host; | |
15316 | fi | |
15317 | ||
15318 | ||
ac67752d IB |
15319 | libphobos_toolexecdir=no |
15320 | libphobos_toolexeclibdir=no | |
b4c522fa | 15321 | |
ac67752d IB |
15322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
15323 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
15324 | # Check whether --enable-version-specific-runtime-libs was given. | |
15325 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
15326 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
15327 | yes) version_specific_libs=yes ;; | |
15328 | no) version_specific_libs=no ;; | |
15329 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; | |
15330 | esac | |
15331 | else | |
b4c522fa | 15332 | version_specific_libs=no |
ac67752d IB |
15333 | fi |
15334 | ||
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
15336 | $as_echo "$version_specific_libs" >&6; } | |
b4c522fa | 15337 | |
e8e66971 MR |
15338 | |
15339 | # Check whether --with-toolexeclibdir was given. | |
15340 | if test "${with_toolexeclibdir+set}" = set; then : | |
15341 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
15342 | /) | |
15343 | ;; | |
15344 | */) | |
15345 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
15346 | ;; | |
15347 | esac | |
15348 | else | |
15349 | with_toolexeclibdir=no | |
15350 | fi | |
15351 | ||
15352 | ||
15353 | ||
b4c522fa IB |
15354 | # Version-specific runtime libs processing. |
15355 | if test $version_specific_libs = yes; then | |
ac67752d IB |
15356 | libphobos_toolexecdir='${libdir}/gcc/${host_alias}' |
15357 | libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)' | |
b4c522fa | 15358 | else |
ac67752d IB |
15359 | # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir |
15360 | # Install a library built with a cross compiler in tooldir, not libdir. | |
15361 | if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then | |
15362 | libphobos_toolexecdir='${exec_prefix}/${host_alias}' | |
e8e66971 MR |
15363 | case ${with_toolexeclibdir} in |
15364 | no) | |
15365 | libphobos_toolexeclibdir='${toolexecdir}/lib' | |
15366 | ;; | |
15367 | *) | |
15368 | libphobos_toolexeclibdir=${with_toolexeclibdir} | |
15369 | ;; | |
15370 | esac | |
ac67752d IB |
15371 | else |
15372 | libphobos_toolexecdir='${libdir}/gcc/${host_alias}' | |
15373 | libphobos_toolexeclibdir='${libdir}' | |
15374 | fi | |
15375 | multi_os_directory=`$GDC -print-multi-os-directory` | |
15376 | case $multi_os_directory in | |
15377 | .) ;; # Avoid trailing /. | |
15378 | *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;; | |
15379 | esac | |
b4c522fa IB |
15380 | fi |
15381 | ||
15382 | ||
15383 | ||
15384 | # Default case for install directory for D sources files. | |
15385 | gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d' | |
15386 | ||
15387 | ||
15388 | ||
bca0a321 RO |
15389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5 |
15390 | $as_echo_n "checking for --enable-libphobos... " >&6; } | |
15391 | # Check whether --enable-libphobos was given. | |
15392 | if test "${enable_libphobos+set}" = set; then : | |
15393 | enableval=$enable_libphobos; | |
15394 | fi | |
15395 | ||
15396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5 | |
15397 | $as_echo "$enable_libphobos" >&6; } | |
15398 | ||
261bd78d IB |
15399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5 |
15400 | $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; } | |
15401 | ||
371d1011 IB |
15402 | # Check whether --with-libphobos-druntime-only was given. |
15403 | if test "${with_libphobos_druntime_only+set}" = set; then : | |
15404 | withval=$with_libphobos_druntime_only; | |
261bd78d | 15405 | else |
371d1011 | 15406 | with_libphobos_druntime_only=auto |
261bd78d IB |
15407 | fi |
15408 | ||
371d1011 IB |
15409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5 |
15410 | $as_echo "$with_libphobos_druntime_only" >&6; } | |
261bd78d | 15411 | |
371d1011 | 15412 | case "$with_libphobos_druntime_only" in |
261bd78d IB |
15413 | yes|no|auto) ;; |
15414 | *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;; | |
15415 | esac | |
15416 | ||
bca0a321 RO |
15417 | # See if supported. |
15418 | unset LIBPHOBOS_SUPPORTED | |
261bd78d | 15419 | unset LIBDRUNTIME_ONLY |
bca0a321 RO |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5 |
15421 | $as_echo_n "checking for host support for libphobos... " >&6; } | |
15422 | . ${srcdir}/configure.tgt | |
15423 | case ${host} in | |
15424 | x86_64-*-solaris2.* | i?86-*-solaris2.*) | |
15425 | # libphobos doesn't compile with the Solaris/x86 assembler due to a | |
15426 | # relatively low linelength limit. | |
15427 | as_prog=`$CC -print-prog-name=as` | |
15428 | if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
15429 | druntime_cv_use_gas=yes; | |
15430 | else | |
15431 | druntime_cv_use_gas=no; | |
15432 | fi | |
15433 | rm -f a.out | |
15434 | if test x$druntime_cv_use_gas = xno; then | |
15435 | LIBPHOBOS_SUPPORTED=no | |
15436 | fi | |
15437 | # 64-bit D execution fails with Solaris ld without -z relax=transtls support. | |
15438 | if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then | |
15439 | LIBPHOBOS_SUPPORTED=no | |
15440 | fi | |
15441 | ;; | |
15442 | esac | |
15443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5 | |
15444 | $as_echo "$LIBPHOBOS_SUPPORTED" >&6; } | |
15445 | ||
15446 | # Decide if it's usable. | |
15447 | case $LIBPHOBOS_SUPPORTED:$enable_libphobos in | |
15448 | *:no) use_libphobos=no ;; | |
15449 | *:yes) use_libphobos=yes ;; | |
15450 | yes:*) use_libphobos=yes ;; | |
15451 | *:*) use_libphobos=no ;; | |
15452 | esac | |
15453 | if test x$use_libphobos = xyes; then | |
15454 | ENABLE_LIBPHOBOS_TRUE= | |
15455 | ENABLE_LIBPHOBOS_FALSE='#' | |
15456 | else | |
15457 | ENABLE_LIBPHOBOS_TRUE='#' | |
15458 | ENABLE_LIBPHOBOS_FALSE= | |
15459 | fi | |
15460 | ||
15461 | ||
261bd78d | 15462 | # Decide if only libdruntime should be built. |
371d1011 | 15463 | case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in |
261bd78d IB |
15464 | *:no) only_libdruntime=no ;; |
15465 | *:yes) only_libdruntime=yes ;; | |
15466 | yes:*) only_libdruntime=yes ;; | |
15467 | *:*) only_libdruntime=no ;; | |
15468 | esac | |
15469 | if test x$only_libdruntime = xyes; then | |
15470 | ENABLE_LIBDRUNTIME_ONLY_TRUE= | |
15471 | ENABLE_LIBDRUNTIME_ONLY_FALSE='#' | |
15472 | else | |
15473 | ENABLE_LIBDRUNTIME_ONLY_TRUE='#' | |
15474 | ENABLE_LIBDRUNTIME_ONLY_FALSE= | |
15475 | fi | |
15476 | ||
15477 | ||
c0dbfbd7 IB |
15478 | # Enable expensive internal checks |
15479 | # Check whether --enable-libphobos-checking was given. | |
15480 | if test "${enable_libphobos_checking+set}" = set; then : | |
15481 | enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}" | |
15482 | else | |
15483 | ac_checking_flags=release | |
15484 | fi | |
15485 | ||
15486 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," | |
15487 | for check in release $ac_checking_flags | |
15488 | do | |
15489 | case $check in | |
15490 | # These set all the flags to specific states | |
15491 | yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;; | |
15492 | no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;; | |
15493 | # These enable particular checks | |
15494 | assert) ASSERT_FLAG="-fassert" ;; | |
15495 | # Accept | |
15496 | *) ;; | |
15497 | esac | |
15498 | done | |
15499 | IFS="$ac_save_IFS" | |
15500 | CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG" | |
15501 | ||
15502 | ||
0b6e3127 RO |
15503 | # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec |
15504 | if test "$DCFG_MINFO_BRACKETING" = "false"; then | |
15505 | DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec | |
15506 | else | |
15507 | DRTSTUFF_SPEC=/dev/null | |
15508 | fi | |
15509 | ||
15510 | ||
b4c522fa IB |
15511 | # Add dependencies for libgphobos.spec file |
15512 | SPEC_PHOBOS_DEPS="$LIBS" | |
15513 | ||
15514 | ||
15515 | # Libdruntime / phobos soname version | |
be616904 | 15516 | libtool_VERSION=2:0:0 |
b4c522fa IB |
15517 | |
15518 | ||
15519 | # Set default flags (after DRUNTIME_WERROR!) | |
15520 | if test -z "$GDCFLAGS"; then | |
c0dbfbd7 | 15521 | GDCFLAGS="-g -O2" |
b4c522fa IB |
15522 | fi |
15523 | ||
15524 | ||
38c3017f IB |
15525 | WARN_DFLAGS="-Wall $WERROR_FLAG" |
15526 | ||
15527 | ||
b4c522fa IB |
15528 | # Sanity check for the cross-compilation case: |
15529 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" | |
22e05272 | 15530 | if test "x$ac_cv_header_stdio_h" = xyes; then : |
b4c522fa IB |
15531 | : |
15532 | else | |
22e05272 | 15533 | as_fn_error $? "cannot find stdio.h." "$LINENO" 5 |
b4c522fa IB |
15534 | fi |
15535 | ||
15536 | ||
15537 | ||
ac67752d | 15538 | ac_config_files="$ac_config_files Makefile" |
b4c522fa IB |
15539 | |
15540 | ||
15541 | ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d" | |
15542 | ||
15543 | ac_config_files="$ac_config_files src/libgphobos.spec" | |
15544 | ||
15545 | ac_config_files="$ac_config_files testsuite/testsuite_flags" | |
15546 | ||
15547 | ||
ac67752d IB |
15548 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so |
15549 | # that multilib installs will end up installed in the correct place. | |
15550 | # The testsuite needs it for multilib-aware ABI baseline files. | |
15551 | # To work around this not being passed down from config-ml.in -> | |
15552 | # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually | |
15553 | # append it here. Only modify Makefiles that have just been created. | |
15554 | # | |
15555 | # Also, get rid of this simulated-VPATH thing that automake does. | |
15556 | ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile" | |
b4c522fa IB |
15557 | |
15558 | ||
15559 | cat >confcache <<\_ACEOF | |
15560 | # This file is a shell script that caches the results of configure | |
15561 | # tests run on this system so they can be shared between configure | |
15562 | # scripts and configure runs, see configure's option --config-cache. | |
15563 | # It is not useful on other systems. If it contains results you don't | |
15564 | # want to keep, you may remove or edit it. | |
15565 | # | |
15566 | # config.status only pays attention to the cache file if you give it | |
15567 | # the --recheck option to rerun configure. | |
15568 | # | |
15569 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15570 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15571 | # following values. | |
15572 | ||
15573 | _ACEOF | |
15574 | ||
15575 | # The following way of writing the cache mishandles newlines in values, | |
15576 | # but we know of no workaround that is simple, portable, and efficient. | |
15577 | # So, we kill variables containing newlines. | |
15578 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15579 | # and sets the high bit in the cache file unless we assign to the vars. | |
15580 | ( | |
15581 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15582 | eval ac_val=\$$ac_var | |
15583 | case $ac_val in #( | |
15584 | *${as_nl}*) | |
15585 | case $ac_var in #( | |
15586 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15587 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15588 | esac | |
15589 | case $ac_var in #( | |
15590 | _ | IFS | as_nl) ;; #( | |
15591 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15592 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15593 | esac ;; | |
15594 | esac | |
15595 | done | |
15596 | ||
15597 | (set) 2>&1 | | |
15598 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15599 | *${as_nl}ac_space=\ *) | |
15600 | # `set' does not quote correctly, so add quotes: double-quote | |
15601 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15602 | sed -n \ | |
15603 | "s/'/'\\\\''/g; | |
15604 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15605 | ;; #( | |
15606 | *) | |
15607 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15608 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15609 | ;; | |
15610 | esac | | |
15611 | sort | |
15612 | ) | | |
15613 | sed ' | |
15614 | /^ac_cv_env_/b end | |
15615 | t clear | |
15616 | :clear | |
15617 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15618 | t end | |
15619 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15620 | :end' >>confcache | |
15621 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15622 | if test -w "$cache_file"; then | |
22e05272 | 15623 | if test "x$cache_file" != "x/dev/null"; then |
b4c522fa IB |
15624 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15625 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15626 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15627 | cat confcache >"$cache_file" | |
15628 | else | |
15629 | case $cache_file in #( | |
15630 | */* | ?:*) | |
15631 | mv -f confcache "$cache_file"$$ && | |
15632 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15633 | *) | |
15634 | mv -f confcache "$cache_file" ;; | |
15635 | esac | |
15636 | fi | |
15637 | fi | |
b4c522fa IB |
15638 | else |
15639 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15640 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15641 | fi | |
15642 | fi | |
15643 | rm -f confcache | |
15644 | ||
15645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15646 | # Let make expand exec_prefix. | |
15647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15648 | ||
15649 | DEFS=-DHAVE_CONFIG_H | |
15650 | ||
15651 | ac_libobjs= | |
15652 | ac_ltlibobjs= | |
22e05272 | 15653 | U= |
b4c522fa IB |
15654 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15655 | # 1. Remove the extension, and $U if already installed. | |
15656 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15657 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15658 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15659 | # will be set to the directory where LIBOBJS objects are built. | |
15660 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15661 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15662 | done | |
15663 | LIBOBJS=$ac_libobjs | |
15664 | ||
15665 | LTLIBOBJS=$ac_ltlibobjs | |
15666 | ||
15667 | ||
22e05272 JM |
15668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15669 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15670 | if test -n "$am_sleep_pid"; then | |
15671 | # Hide warnings about reused PIDs. | |
15672 | wait $am_sleep_pid 2>/dev/null | |
15673 | fi | |
15674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15675 | $as_echo "done" >&6; } | |
b4c522fa IB |
15676 | if test -n "$EXEEXT"; then |
15677 | am__EXEEXT_TRUE= | |
15678 | am__EXEEXT_FALSE='#' | |
15679 | else | |
15680 | am__EXEEXT_TRUE='#' | |
15681 | am__EXEEXT_FALSE= | |
15682 | fi | |
15683 | ||
15684 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
22e05272 | 15685 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
b4c522fa IB |
15686 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15687 | fi | |
2493e718 IB |
15688 | if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then |
15689 | as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined. | |
15690 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15691 | fi | |
15692 | if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then | |
15693 | as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined. | |
15694 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15695 | fi | |
15696 | if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then | |
15697 | as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined. | |
15698 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15699 | fi | |
15700 | if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then | |
15701 | as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined. | |
15702 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15703 | fi | |
2493e718 IB |
15704 | if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then |
15705 | as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined. | |
15706 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15707 | fi | |
88e508f9 RD |
15708 | if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then |
15709 | as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined. | |
15710 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15711 | fi | |
15712 | if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then | |
15713 | as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined. | |
15714 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15715 | fi | |
b4c522fa | 15716 | if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then |
22e05272 | 15717 | as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined. |
b4c522fa IB |
15718 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15719 | fi | |
15720 | if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then | |
22e05272 | 15721 | as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined. |
b4c522fa IB |
15722 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15723 | fi | |
15724 | if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then | |
22e05272 | 15725 | as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined. |
b4c522fa IB |
15726 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15727 | fi | |
15728 | if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then | |
22e05272 | 15729 | as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined. |
b4c522fa IB |
15730 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15731 | fi | |
15732 | if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then | |
22e05272 | 15733 | as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined. |
b4c522fa IB |
15734 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15735 | fi | |
15736 | if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then | |
22e05272 | 15737 | as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined. |
b4c522fa IB |
15738 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15739 | fi | |
15740 | if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then | |
22e05272 | 15741 | as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined. |
b4c522fa IB |
15742 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15743 | fi | |
15744 | if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then | |
22e05272 | 15745 | as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined. |
b4c522fa IB |
15746 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15747 | fi | |
15748 | if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then | |
22e05272 | 15749 | as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined. |
b4c522fa IB |
15750 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15751 | fi | |
15752 | if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then | |
22e05272 | 15753 | as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined. |
b4c522fa IB |
15754 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15755 | fi | |
72c136c9 IB |
15756 | if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then |
15757 | as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined. | |
15758 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15759 | fi | |
b4c522fa | 15760 | if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then |
22e05272 | 15761 | as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined. |
b4c522fa IB |
15762 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15763 | fi | |
0b6e3127 RO |
15764 | if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then |
15765 | as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined. | |
15766 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15767 | fi | |
bca0a321 RO |
15768 | if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then |
15769 | as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined. | |
15770 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15771 | fi | |
261bd78d IB |
15772 | if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then |
15773 | as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined. | |
15774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15775 | fi | |
b4c522fa | 15776 | |
22e05272 | 15777 | : "${CONFIG_STATUS=./config.status}" |
b4c522fa IB |
15778 | ac_write_fail=0 |
15779 | ac_clean_files_save=$ac_clean_files | |
15780 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15781 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15782 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15783 | as_write_fail=0 | |
15784 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15785 | #! $SHELL | |
15786 | # Generated by $as_me. | |
15787 | # Run this file to recreate the current configuration. | |
15788 | # Compiler output produced by configure, useful for debugging | |
15789 | # configure, is in config.log if it exists. | |
15790 | ||
15791 | debug=false | |
15792 | ac_cs_recheck=false | |
15793 | ac_cs_silent=false | |
15794 | ||
15795 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15796 | export SHELL | |
15797 | _ASEOF | |
15798 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15799 | ## -------------------- ## | |
15800 | ## M4sh Initialization. ## | |
15801 | ## -------------------- ## | |
15802 | ||
15803 | # Be more Bourne compatible | |
15804 | DUALCASE=1; export DUALCASE # for MKS sh | |
15805 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15806 | emulate sh | |
15807 | NULLCMD=: | |
15808 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15809 | # is contrary to our usage. Disable this feature. | |
15810 | alias -g '${1+"$@"}'='"$@"' | |
15811 | setopt NO_GLOB_SUBST | |
15812 | else | |
15813 | case `(set -o) 2>/dev/null` in #( | |
15814 | *posix*) : | |
15815 | set -o posix ;; #( | |
15816 | *) : | |
15817 | ;; | |
15818 | esac | |
15819 | fi | |
15820 | ||
15821 | ||
15822 | as_nl=' | |
15823 | ' | |
15824 | export as_nl | |
15825 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15826 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15827 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15828 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15829 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15830 | # but without wasting forks for bash or zsh. | |
15831 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15832 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15833 | as_echo='print -r --' | |
15834 | as_echo_n='print -rn --' | |
15835 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15836 | as_echo='printf %s\n' | |
15837 | as_echo_n='printf %s' | |
15838 | else | |
15839 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15840 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15841 | as_echo_n='/usr/ucb/echo -n' | |
15842 | else | |
15843 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15844 | as_echo_n_body='eval | |
15845 | arg=$1; | |
15846 | case $arg in #( | |
15847 | *"$as_nl"*) | |
15848 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15849 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15850 | esac; | |
15851 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15852 | ' | |
15853 | export as_echo_n_body | |
15854 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15855 | fi | |
15856 | export as_echo_body | |
15857 | as_echo='sh -c $as_echo_body as_echo' | |
15858 | fi | |
15859 | ||
15860 | # The user is always right. | |
15861 | if test "${PATH_SEPARATOR+set}" != set; then | |
15862 | PATH_SEPARATOR=: | |
15863 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15864 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15865 | PATH_SEPARATOR=';' | |
15866 | } | |
15867 | fi | |
15868 | ||
15869 | ||
15870 | # IFS | |
15871 | # We need space, tab and new line, in precisely that order. Quoting is | |
15872 | # there to prevent editors from complaining about space-tab. | |
15873 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15874 | # splitting by setting IFS to empty value.) | |
15875 | IFS=" "" $as_nl" | |
15876 | ||
15877 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 15878 | as_myself= |
b4c522fa IB |
15879 | case $0 in #(( |
15880 | *[\\/]* ) as_myself=$0 ;; | |
15881 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15882 | for as_dir in $PATH | |
15883 | do | |
15884 | IFS=$as_save_IFS | |
15885 | test -z "$as_dir" && as_dir=. | |
15886 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15887 | done | |
15888 | IFS=$as_save_IFS | |
15889 | ||
15890 | ;; | |
15891 | esac | |
15892 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15893 | # in which case we are not to be found in the path. | |
15894 | if test "x$as_myself" = x; then | |
15895 | as_myself=$0 | |
15896 | fi | |
15897 | if test ! -f "$as_myself"; then | |
15898 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15899 | exit 1 | |
15900 | fi | |
15901 | ||
15902 | # Unset variables that we do not need and which cause bugs (e.g. in | |
15903 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15904 | # suppresses any "Segmentation fault" message there. '((' could | |
15905 | # trigger a bug in pdksh 5.2.14. | |
15906 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15907 | do eval test x\${$as_var+set} = xset \ | |
15908 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15909 | done | |
15910 | PS1='$ ' | |
15911 | PS2='> ' | |
15912 | PS4='+ ' | |
15913 | ||
15914 | # NLS nuisances. | |
15915 | LC_ALL=C | |
15916 | export LC_ALL | |
15917 | LANGUAGE=C | |
15918 | export LANGUAGE | |
15919 | ||
15920 | # CDPATH. | |
15921 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15922 | ||
15923 | ||
22e05272 JM |
15924 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15925 | # ---------------------------------------- | |
b4c522fa IB |
15926 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15927 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 15928 | # script with STATUS, using 1 if that was 0. |
b4c522fa IB |
15929 | as_fn_error () |
15930 | { | |
22e05272 JM |
15931 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15932 | if test "$4"; then | |
15933 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15934 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b4c522fa | 15935 | fi |
22e05272 | 15936 | $as_echo "$as_me: error: $2" >&2 |
b4c522fa IB |
15937 | as_fn_exit $as_status |
15938 | } # as_fn_error | |
15939 | ||
15940 | ||
15941 | # as_fn_set_status STATUS | |
15942 | # ----------------------- | |
15943 | # Set $? to STATUS, without forking. | |
15944 | as_fn_set_status () | |
15945 | { | |
15946 | return $1 | |
15947 | } # as_fn_set_status | |
15948 | ||
15949 | # as_fn_exit STATUS | |
15950 | # ----------------- | |
15951 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15952 | as_fn_exit () | |
15953 | { | |
15954 | set +e | |
15955 | as_fn_set_status $1 | |
15956 | exit $1 | |
15957 | } # as_fn_exit | |
15958 | ||
15959 | # as_fn_unset VAR | |
15960 | # --------------- | |
15961 | # Portably unset VAR. | |
15962 | as_fn_unset () | |
15963 | { | |
15964 | { eval $1=; unset $1;} | |
15965 | } | |
15966 | as_unset=as_fn_unset | |
15967 | # as_fn_append VAR VALUE | |
15968 | # ---------------------- | |
15969 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15970 | # advantage of any shell optimizations that allow amortized linear growth over | |
15971 | # repeated appends, instead of the typical quadratic growth present in naive | |
15972 | # implementations. | |
15973 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15974 | eval 'as_fn_append () | |
15975 | { | |
15976 | eval $1+=\$2 | |
15977 | }' | |
15978 | else | |
15979 | as_fn_append () | |
15980 | { | |
15981 | eval $1=\$$1\$2 | |
15982 | } | |
15983 | fi # as_fn_append | |
15984 | ||
15985 | # as_fn_arith ARG... | |
15986 | # ------------------ | |
15987 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15988 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15989 | # must be portable across $(()) and expr. | |
15990 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15991 | eval 'as_fn_arith () | |
15992 | { | |
15993 | as_val=$(( $* )) | |
15994 | }' | |
15995 | else | |
15996 | as_fn_arith () | |
15997 | { | |
15998 | as_val=`expr "$@" || test $? -eq 1` | |
15999 | } | |
16000 | fi # as_fn_arith | |
16001 | ||
16002 | ||
16003 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16004 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16005 | as_expr=expr | |
16006 | else | |
16007 | as_expr=false | |
16008 | fi | |
16009 | ||
16010 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16011 | as_basename=basename | |
16012 | else | |
16013 | as_basename=false | |
16014 | fi | |
16015 | ||
16016 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16017 | as_dirname=dirname | |
16018 | else | |
16019 | as_dirname=false | |
16020 | fi | |
16021 | ||
16022 | as_me=`$as_basename -- "$0" || | |
16023 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16024 | X"$0" : 'X\(//\)$' \| \ | |
16025 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16026 | $as_echo X/"$0" | | |
16027 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16028 | s//\1/ | |
16029 | q | |
16030 | } | |
16031 | /^X\/\(\/\/\)$/{ | |
16032 | s//\1/ | |
16033 | q | |
16034 | } | |
16035 | /^X\/\(\/\).*/{ | |
16036 | s//\1/ | |
16037 | q | |
16038 | } | |
16039 | s/.*/./; q'` | |
16040 | ||
16041 | # Avoid depending upon Character Ranges. | |
16042 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16043 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16044 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16045 | as_cr_digits='0123456789' | |
16046 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16047 | ||
16048 | ECHO_C= ECHO_N= ECHO_T= | |
16049 | case `echo -n x` in #((((( | |
16050 | -n*) | |
16051 | case `echo 'xy\c'` in | |
16052 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16053 | xy) ECHO_C='\c';; | |
16054 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16055 | ECHO_T=' ';; | |
16056 | esac;; | |
16057 | *) | |
16058 | ECHO_N='-n';; | |
16059 | esac | |
16060 | ||
16061 | rm -f conf$$ conf$$.exe conf$$.file | |
16062 | if test -d conf$$.dir; then | |
16063 | rm -f conf$$.dir/conf$$.file | |
16064 | else | |
16065 | rm -f conf$$.dir | |
16066 | mkdir conf$$.dir 2>/dev/null | |
16067 | fi | |
16068 | if (echo >conf$$.file) 2>/dev/null; then | |
16069 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16070 | as_ln_s='ln -s' | |
16071 | # ... but there are two gotchas: | |
16072 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16073 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 16074 | # In both cases, we have to default to `cp -pR'. |
b4c522fa | 16075 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 16076 | as_ln_s='cp -pR' |
b4c522fa IB |
16077 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16078 | as_ln_s=ln | |
16079 | else | |
22e05272 | 16080 | as_ln_s='cp -pR' |
b4c522fa IB |
16081 | fi |
16082 | else | |
22e05272 | 16083 | as_ln_s='cp -pR' |
b4c522fa IB |
16084 | fi |
16085 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16086 | rmdir conf$$.dir 2>/dev/null | |
16087 | ||
16088 | ||
16089 | # as_fn_mkdir_p | |
16090 | # ------------- | |
16091 | # Create "$as_dir" as a directory, including parents if necessary. | |
16092 | as_fn_mkdir_p () | |
16093 | { | |
16094 | ||
16095 | case $as_dir in #( | |
16096 | -*) as_dir=./$as_dir;; | |
16097 | esac | |
16098 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16099 | as_dirs= | |
16100 | while :; do | |
16101 | case $as_dir in #( | |
16102 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16103 | *) as_qdir=$as_dir;; | |
16104 | esac | |
16105 | as_dirs="'$as_qdir' $as_dirs" | |
16106 | as_dir=`$as_dirname -- "$as_dir" || | |
16107 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16108 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16109 | X"$as_dir" : 'X\(//\)$' \| \ | |
16110 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16111 | $as_echo X"$as_dir" | | |
16112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16113 | s//\1/ | |
16114 | q | |
16115 | } | |
16116 | /^X\(\/\/\)[^/].*/{ | |
16117 | s//\1/ | |
16118 | q | |
16119 | } | |
16120 | /^X\(\/\/\)$/{ | |
16121 | s//\1/ | |
16122 | q | |
16123 | } | |
16124 | /^X\(\/\).*/{ | |
16125 | s//\1/ | |
16126 | q | |
16127 | } | |
16128 | s/.*/./; q'` | |
16129 | test -d "$as_dir" && break | |
16130 | done | |
16131 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 16132 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b4c522fa IB |
16133 | |
16134 | ||
16135 | } # as_fn_mkdir_p | |
16136 | if mkdir -p . 2>/dev/null; then | |
16137 | as_mkdir_p='mkdir -p "$as_dir"' | |
16138 | else | |
16139 | test -d ./-p && rmdir ./-p | |
16140 | as_mkdir_p=false | |
16141 | fi | |
16142 | ||
22e05272 JM |
16143 | |
16144 | # as_fn_executable_p FILE | |
16145 | # ----------------------- | |
16146 | # Test if FILE is an executable regular file. | |
16147 | as_fn_executable_p () | |
16148 | { | |
16149 | test -f "$1" && test -x "$1" | |
16150 | } # as_fn_executable_p | |
16151 | as_test_x='test -x' | |
16152 | as_executable_p=as_fn_executable_p | |
b4c522fa IB |
16153 | |
16154 | # Sed expression to map a string onto a valid CPP name. | |
16155 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16156 | ||
16157 | # Sed expression to map a string onto a valid variable name. | |
16158 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16159 | ||
16160 | ||
16161 | exec 6>&1 | |
16162 | ## ----------------------------------- ## | |
16163 | ## Main body of $CONFIG_STATUS script. ## | |
16164 | ## ----------------------------------- ## | |
16165 | _ASEOF | |
16166 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16167 | ||
16168 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16169 | # Save the log message, to keep $0 and so on meaningful, and to | |
16170 | # report actual input values of CONFIG_FILES etc. instead of their | |
16171 | # values after options handling. | |
16172 | ac_log=" | |
16173 | This file was extended by package-unused $as_me version-unused, which was | |
22e05272 | 16174 | generated by GNU Autoconf 2.69. Invocation command line was |
b4c522fa IB |
16175 | |
16176 | CONFIG_FILES = $CONFIG_FILES | |
16177 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16178 | CONFIG_LINKS = $CONFIG_LINKS | |
16179 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16180 | $ $0 $@ | |
16181 | ||
16182 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16183 | " | |
16184 | ||
16185 | _ACEOF | |
16186 | ||
16187 | case $ac_config_files in *" | |
16188 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16189 | esac | |
16190 | ||
16191 | case $ac_config_headers in *" | |
16192 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16193 | esac | |
16194 | ||
16195 | ||
16196 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16197 | # Files that config.status was made for. | |
16198 | config_files="$ac_config_files" | |
16199 | config_headers="$ac_config_headers" | |
16200 | config_commands="$ac_config_commands" | |
16201 | ||
16202 | _ACEOF | |
16203 | ||
16204 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16205 | ac_cs_usage="\ | |
16206 | \`$as_me' instantiates files and other configuration actions | |
16207 | from templates according to the current configuration. Unless the files | |
16208 | and actions are specified as TAGs, all are instantiated by default. | |
16209 | ||
16210 | Usage: $0 [OPTION]... [TAG]... | |
16211 | ||
16212 | -h, --help print this help, then exit | |
16213 | -V, --version print version number and configuration settings, then exit | |
22e05272 | 16214 | --config print configuration, then exit |
b4c522fa IB |
16215 | -q, --quiet, --silent |
16216 | do not print progress messages | |
16217 | -d, --debug don't remove temporary files | |
16218 | --recheck update $as_me by reconfiguring in the same conditions | |
16219 | --file=FILE[:TEMPLATE] | |
16220 | instantiate the configuration file FILE | |
16221 | --header=FILE[:TEMPLATE] | |
16222 | instantiate the configuration header FILE | |
16223 | ||
16224 | Configuration files: | |
16225 | $config_files | |
16226 | ||
16227 | Configuration headers: | |
16228 | $config_headers | |
16229 | ||
16230 | Configuration commands: | |
16231 | $config_commands | |
16232 | ||
16233 | Report bugs to the package provider." | |
16234 | ||
16235 | _ACEOF | |
16236 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16237 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b4c522fa IB |
16238 | ac_cs_version="\\ |
16239 | package-unused config.status version-unused | |
22e05272 JM |
16240 | configured by $0, generated by GNU Autoconf 2.69, |
16241 | with options \\"\$ac_cs_config\\" | |
b4c522fa | 16242 | |
0b6e3127 | 16243 | Copyright (C) 2012 Free Software Foundation, Inc. |
b4c522fa IB |
16244 | This config.status script is free software; the Free Software Foundation |
16245 | gives unlimited permission to copy, distribute and modify it." | |
16246 | ||
16247 | ac_pwd='$ac_pwd' | |
16248 | srcdir='$srcdir' | |
16249 | INSTALL='$INSTALL' | |
16250 | MKDIR_P='$MKDIR_P' | |
16251 | AWK='$AWK' | |
16252 | test -n "\$AWK" || AWK=awk | |
16253 | _ACEOF | |
16254 | ||
16255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16256 | # The default lists apply if the user does not specify any file. | |
16257 | ac_need_defaults=: | |
16258 | while test $# != 0 | |
16259 | do | |
16260 | case $1 in | |
22e05272 | 16261 | --*=?*) |
b4c522fa IB |
16262 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16263 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16264 | ac_shift=: | |
16265 | ;; | |
22e05272 JM |
16266 | --*=) |
16267 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16268 | ac_optarg= | |
16269 | ac_shift=: | |
16270 | ;; | |
b4c522fa IB |
16271 | *) |
16272 | ac_option=$1 | |
16273 | ac_optarg=$2 | |
16274 | ac_shift=shift | |
16275 | ;; | |
16276 | esac | |
16277 | ||
16278 | case $ac_option in | |
16279 | # Handling of the options. | |
16280 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16281 | ac_cs_recheck=: ;; | |
16282 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16283 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
16284 | --config | --confi | --conf | --con | --co | --c ) |
16285 | $as_echo "$ac_cs_config"; exit ;; | |
b4c522fa IB |
16286 | --debug | --debu | --deb | --de | --d | -d ) |
16287 | debug=: ;; | |
16288 | --file | --fil | --fi | --f ) | |
16289 | $ac_shift | |
16290 | case $ac_optarg in | |
16291 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 16292 | '') as_fn_error $? "missing file argument" ;; |
b4c522fa IB |
16293 | esac |
16294 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16295 | ac_need_defaults=false;; | |
16296 | --header | --heade | --head | --hea ) | |
16297 | $ac_shift | |
16298 | case $ac_optarg in | |
16299 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16300 | esac | |
16301 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16302 | ac_need_defaults=false;; | |
16303 | --he | --h) | |
16304 | # Conflict between --help and --header | |
22e05272 | 16305 | as_fn_error $? "ambiguous option: \`$1' |
b4c522fa IB |
16306 | Try \`$0 --help' for more information.";; |
16307 | --help | --hel | -h ) | |
16308 | $as_echo "$ac_cs_usage"; exit ;; | |
16309 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16310 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16311 | ac_cs_silent=: ;; | |
16312 | ||
16313 | # This is an error. | |
22e05272 | 16314 | -*) as_fn_error $? "unrecognized option: \`$1' |
b4c522fa IB |
16315 | Try \`$0 --help' for more information." ;; |
16316 | ||
16317 | *) as_fn_append ac_config_targets " $1" | |
16318 | ac_need_defaults=false ;; | |
16319 | ||
16320 | esac | |
16321 | shift | |
16322 | done | |
16323 | ||
16324 | ac_configure_extra_args= | |
16325 | ||
16326 | if $ac_cs_silent; then | |
16327 | exec 6>/dev/null | |
16328 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16329 | fi | |
16330 | ||
16331 | _ACEOF | |
16332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16333 | if \$ac_cs_recheck; then | |
22e05272 | 16334 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
b4c522fa IB |
16335 | shift |
16336 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16337 | CONFIG_SHELL='$SHELL' | |
16338 | export CONFIG_SHELL | |
16339 | exec "\$@" | |
16340 | fi | |
16341 | ||
16342 | _ACEOF | |
16343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16344 | exec 5>>config.log | |
16345 | { | |
16346 | echo | |
16347 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16348 | ## Running $as_me. ## | |
16349 | _ASBOX | |
16350 | $as_echo "$ac_log" | |
16351 | } >&5 | |
16352 | ||
16353 | _ACEOF | |
16354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16355 | # | |
16356 | # INIT-COMMANDS | |
16357 | # | |
16358 | ||
16359 | srcdir="$srcdir" | |
16360 | host="$host" | |
16361 | target="$target" | |
16362 | with_multisubdir="$with_multisubdir" | |
16363 | with_multisrctop="$with_multisrctop" | |
16364 | with_target_subdir="$with_target_subdir" | |
16365 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
16366 | multi_basedir="$multi_basedir" | |
16367 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
16368 | CC="$CC" | |
16369 | CXX="$CXX" | |
16370 | GFORTRAN="$GFORTRAN" | |
16371 | GDC="$GDC" | |
16372 | ||
16373 | ||
16374 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16375 | # if CDPATH is set. | |
16376 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16377 | ||
16378 | sed_quote_subst='$sed_quote_subst' | |
16379 | double_quote_subst='$double_quote_subst' | |
16380 | delay_variable_subst='$delay_variable_subst' | |
16381 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16382 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16383 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16384 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16385 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16386 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16387 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16388 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16389 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16390 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16391 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16392 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16393 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16394 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16395 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16396 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16397 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16398 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16399 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16400 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16401 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16402 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16403 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16404 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16405 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16406 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16407 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16408 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16409 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16410 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16411 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16412 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16413 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16414 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16415 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16416 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16417 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16418 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16419 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16420 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16421 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16422 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16423 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16424 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16425 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16426 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16427 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16428 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16429 | 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"`' | |
16430 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16431 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16432 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16433 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16434 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16435 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16436 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16437 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16438 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16439 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16440 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16441 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16442 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16443 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16444 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16445 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16446 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16447 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16448 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16449 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16450 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16451 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16452 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16453 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16454 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16455 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16456 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16457 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16458 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16459 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16460 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16461 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
16462 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16463 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16464 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16465 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16466 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16467 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16468 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16469 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16470 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
16471 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16472 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16473 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16474 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16475 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16476 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16477 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16478 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16479 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16480 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16481 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16482 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16483 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16484 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16485 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16486 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16487 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16488 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16489 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16490 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16491 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16492 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16493 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16494 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16495 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16496 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16497 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16498 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16499 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16500 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
16501 | LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`' | |
16502 | reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`' | |
16503 | reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16504 | old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16505 | compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`' | |
16506 | GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`' | |
16507 | lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`' | |
16508 | lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`' | |
16509 | lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`' | |
16510 | lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`' | |
16511 | lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`' | |
16512 | archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`' | |
16513 | enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`' | |
16514 | export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16515 | whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16516 | compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`' | |
16517 | old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16518 | old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16519 | archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16520 | archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16521 | module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16522 | module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16523 | with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`' | |
16524 | allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`' | |
16525 | no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`' | |
16526 | hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`' | |
16527 | hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`' | |
16528 | hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`' | |
16529 | hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`' | |
16530 | hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`' | |
16531 | hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`' | |
16532 | hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`' | |
16533 | hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`' | |
16534 | inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`' | |
16535 | link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`' | |
16536 | fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`' | |
16537 | always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`' | |
16538 | export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16539 | exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`' | |
16540 | include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`' | |
16541 | prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`' | |
16542 | file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`' | |
16543 | hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`' | |
16544 | ||
16545 | LTCC='$LTCC' | |
16546 | LTCFLAGS='$LTCFLAGS' | |
16547 | compiler='$compiler_DEFAULT' | |
16548 | ||
16549 | # A function that is used when there is no print builtin or printf. | |
16550 | func_fallback_echo () | |
16551 | { | |
16552 | eval 'cat <<_LTECHO_EOF | |
16553 | \$1 | |
16554 | _LTECHO_EOF' | |
16555 | } | |
16556 | ||
16557 | # Quote evaled strings. | |
16558 | for var in SHELL \ | |
16559 | ECHO \ | |
16560 | SED \ | |
16561 | GREP \ | |
16562 | EGREP \ | |
16563 | FGREP \ | |
16564 | LD \ | |
16565 | NM \ | |
16566 | LN_S \ | |
16567 | lt_SP2NL \ | |
16568 | lt_NL2SP \ | |
16569 | reload_flag \ | |
16570 | OBJDUMP \ | |
16571 | deplibs_check_method \ | |
16572 | file_magic_cmd \ | |
16573 | AR \ | |
16574 | AR_FLAGS \ | |
16575 | STRIP \ | |
16576 | RANLIB \ | |
16577 | CC \ | |
16578 | CFLAGS \ | |
16579 | compiler \ | |
16580 | lt_cv_sys_global_symbol_pipe \ | |
16581 | lt_cv_sys_global_symbol_to_cdecl \ | |
16582 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16583 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16584 | lt_prog_compiler_no_builtin_flag \ | |
16585 | lt_prog_compiler_wl \ | |
16586 | lt_prog_compiler_pic \ | |
16587 | lt_prog_compiler_static \ | |
16588 | lt_cv_prog_compiler_c_o \ | |
16589 | need_locks \ | |
16590 | DSYMUTIL \ | |
16591 | NMEDIT \ | |
16592 | LIPO \ | |
16593 | OTOOL \ | |
16594 | OTOOL64 \ | |
16595 | shrext_cmds \ | |
16596 | export_dynamic_flag_spec \ | |
16597 | whole_archive_flag_spec \ | |
16598 | compiler_needs_object \ | |
16599 | with_gnu_ld \ | |
16600 | allow_undefined_flag \ | |
16601 | no_undefined_flag \ | |
16602 | hardcode_libdir_flag_spec \ | |
16603 | hardcode_libdir_flag_spec_ld \ | |
16604 | hardcode_libdir_separator \ | |
16605 | fix_srcfile_path \ | |
16606 | exclude_expsyms \ | |
16607 | include_expsyms \ | |
16608 | file_list_spec \ | |
16609 | variables_saved_for_relink \ | |
16610 | libname_spec \ | |
16611 | library_names_spec \ | |
16612 | soname_spec \ | |
16613 | install_override_mode \ | |
16614 | finish_eval \ | |
16615 | old_striplib \ | |
16616 | striplib \ | |
16617 | LD_D \ | |
16618 | reload_flag_D \ | |
16619 | compiler_D \ | |
16620 | lt_prog_compiler_no_builtin_flag_D \ | |
16621 | lt_prog_compiler_wl_D \ | |
16622 | lt_prog_compiler_pic_D \ | |
16623 | lt_prog_compiler_static_D \ | |
16624 | lt_cv_prog_compiler_c_o_D \ | |
16625 | export_dynamic_flag_spec_D \ | |
16626 | whole_archive_flag_spec_D \ | |
16627 | compiler_needs_object_D \ | |
16628 | with_gnu_ld_D \ | |
16629 | allow_undefined_flag_D \ | |
16630 | no_undefined_flag_D \ | |
16631 | hardcode_libdir_flag_spec_D \ | |
16632 | hardcode_libdir_flag_spec_ld_D \ | |
16633 | hardcode_libdir_separator_D \ | |
16634 | fix_srcfile_path_D \ | |
16635 | exclude_expsyms_D \ | |
16636 | include_expsyms_D \ | |
16637 | file_list_spec_D; do | |
16638 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16639 | *[\\\\\\\`\\"\\\$]*) | |
16640 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
16641 | ;; | |
16642 | *) | |
16643 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16644 | ;; | |
16645 | esac | |
16646 | done | |
16647 | ||
16648 | # Double-quote double-evaled strings. | |
16649 | for var in reload_cmds \ | |
16650 | old_postinstall_cmds \ | |
16651 | old_postuninstall_cmds \ | |
16652 | old_archive_cmds \ | |
16653 | extract_expsyms_cmds \ | |
16654 | old_archive_from_new_cmds \ | |
16655 | old_archive_from_expsyms_cmds \ | |
16656 | archive_cmds \ | |
16657 | archive_expsym_cmds \ | |
16658 | module_cmds \ | |
16659 | module_expsym_cmds \ | |
16660 | export_symbols_cmds \ | |
16661 | prelink_cmds \ | |
16662 | postinstall_cmds \ | |
16663 | postuninstall_cmds \ | |
16664 | finish_cmds \ | |
16665 | sys_lib_search_path_spec \ | |
16666 | sys_lib_dlsearch_path_spec \ | |
16667 | reload_cmds_D \ | |
16668 | old_archive_cmds_D \ | |
16669 | old_archive_from_new_cmds_D \ | |
16670 | old_archive_from_expsyms_cmds_D \ | |
16671 | archive_cmds_D \ | |
16672 | archive_expsym_cmds_D \ | |
16673 | module_cmds_D \ | |
16674 | module_expsym_cmds_D \ | |
16675 | export_symbols_cmds_D \ | |
16676 | prelink_cmds_D; do | |
16677 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16678 | *[\\\\\\\`\\"\\\$]*) | |
16679 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
16680 | ;; | |
16681 | *) | |
16682 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16683 | ;; | |
16684 | esac | |
16685 | done | |
16686 | ||
16687 | ac_aux_dir='$ac_aux_dir' | |
16688 | xsi_shell='$xsi_shell' | |
16689 | lt_shell_append='$lt_shell_append' | |
16690 | ||
16691 | # See if we are running on zsh, and set the options which allow our | |
16692 | # commands through without removal of \ escapes INIT. | |
16693 | if test -n "\${ZSH_VERSION+set}" ; then | |
16694 | setopt NO_GLOB_SUBST | |
16695 | fi | |
16696 | ||
16697 | ||
16698 | PACKAGE='$PACKAGE' | |
16699 | VERSION='$VERSION' | |
16700 | TIMESTAMP='$TIMESTAMP' | |
16701 | RM='$RM' | |
16702 | ofile='$ofile' | |
16703 | ||
16704 | ||
16705 | ||
16706 | ||
16707 | ||
16708 | ||
b4c522fa IB |
16709 | _ACEOF |
16710 | ||
16711 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16712 | ||
16713 | # Handling of arguments. | |
16714 | for ac_config_target in $ac_config_targets | |
16715 | do | |
16716 | case $ac_config_target in | |
16717 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
16718 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
16719 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16720 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
b4c522fa IB |
16721 | "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;; |
16722 | "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;; | |
16723 | "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;; | |
16724 | "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;; | |
ac67752d IB |
16725 | "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;; |
16726 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
16727 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
b4c522fa | 16728 | |
22e05272 | 16729 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b4c522fa IB |
16730 | esac |
16731 | done | |
16732 | ||
16733 | ||
16734 | # If the user did not use the arguments to specify the items to instantiate, | |
16735 | # then the envvar interface is used. Set only those that are not. | |
16736 | # We use the long form for the default assignment because of an extremely | |
16737 | # bizarre bug on SunOS 4.1.3. | |
16738 | if $ac_need_defaults; then | |
16739 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16740 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16741 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16742 | fi | |
16743 | ||
16744 | # Have a temporary directory for convenience. Make it in the build tree | |
16745 | # simply because there is no reason against having it here, and in addition, | |
16746 | # creating and moving files from /tmp can sometimes cause problems. | |
16747 | # Hook for its removal unless debugging. | |
16748 | # Note that there is a small window in which the directory will not be cleaned: | |
16749 | # after its creation but before its name has been assigned to `$tmp'. | |
16750 | $debug || | |
16751 | { | |
22e05272 | 16752 | tmp= ac_tmp= |
b4c522fa | 16753 | trap 'exit_status=$? |
22e05272 JM |
16754 | : "${ac_tmp:=$tmp}" |
16755 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
b4c522fa IB |
16756 | ' 0 |
16757 | trap 'as_fn_exit 1' 1 2 13 15 | |
16758 | } | |
16759 | # Create a (secure) tmp directory for tmp files. | |
16760 | ||
16761 | { | |
16762 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22e05272 | 16763 | test -d "$tmp" |
b4c522fa IB |
16764 | } || |
16765 | { | |
16766 | tmp=./conf$$-$RANDOM | |
16767 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
16768 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16769 | ac_tmp=$tmp | |
b4c522fa IB |
16770 | |
16771 | # Set up the scripts for CONFIG_FILES section. | |
16772 | # No need to generate them if there are no CONFIG_FILES. | |
16773 | # This happens for instance with `./config.status config.h'. | |
16774 | if test -n "$CONFIG_FILES"; then | |
16775 | ||
0b6e3127 RO |
16776 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
16777 | ac_cs_awk_getline=: | |
16778 | ac_cs_awk_pipe_init= | |
16779 | ac_cs_awk_read_file=' | |
16780 | while ((getline aline < (F[key])) > 0) | |
16781 | print(aline) | |
16782 | close(F[key])' | |
16783 | ac_cs_awk_pipe_fini= | |
16784 | else | |
16785 | ac_cs_awk_getline=false | |
16786 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16787 | ac_cs_awk_read_file=' | |
16788 | print "|#_!!_#|" | |
16789 | print "cat " F[key] " &&" | |
16790 | '$ac_cs_awk_pipe_init | |
16791 | # The final `:' finishes the AND list. | |
16792 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16793 | fi | |
b4c522fa IB |
16794 | ac_cr=`echo X | tr X '\015'` |
16795 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16796 | # But we know of no other shell where ac_cr would be empty at this | |
16797 | # point, so we can use a bashism as a fallback. | |
16798 | if test "x$ac_cr" = x; then | |
16799 | eval ac_cr=\$\'\\r\' | |
16800 | fi | |
16801 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16802 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 16803 | ac_cs_awk_cr='\\r' |
b4c522fa IB |
16804 | else |
16805 | ac_cs_awk_cr=$ac_cr | |
16806 | fi | |
16807 | ||
22e05272 | 16808 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
b4c522fa IB |
16809 | _ACEOF |
16810 | ||
0b6e3127 RO |
16811 | # Create commands to substitute file output variables. |
16812 | { | |
16813 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
16814 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && | |
16815 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
16816 | echo "_ACAWK" && | |
16817 | echo "_ACEOF" | |
16818 | } >conf$$files.sh && | |
16819 | . ./conf$$files.sh || | |
16820 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16821 | rm -f conf$$files.sh | |
b4c522fa IB |
16822 | |
16823 | { | |
16824 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16825 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16826 | echo "_ACEOF" | |
16827 | } >conf$$subs.sh || | |
22e05272 JM |
16828 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16829 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
b4c522fa IB |
16830 | ac_delim='%!_!# ' |
16831 | for ac_last_try in false false false false false :; do | |
16832 | . ./conf$$subs.sh || | |
22e05272 | 16833 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
b4c522fa IB |
16834 | |
16835 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16836 | if test $ac_delim_n = $ac_delim_num; then | |
16837 | break | |
16838 | elif $ac_last_try; then | |
22e05272 | 16839 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
b4c522fa IB |
16840 | else |
16841 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16842 | fi | |
16843 | done | |
16844 | rm -f conf$$subs.sh | |
16845 | ||
16846 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16847 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
b4c522fa IB |
16848 | _ACEOF |
16849 | sed -n ' | |
16850 | h | |
16851 | s/^/S["/; s/!.*/"]=/ | |
16852 | p | |
16853 | g | |
16854 | s/^[^!]*!// | |
16855 | :repl | |
16856 | t repl | |
16857 | s/'"$ac_delim"'$// | |
16858 | t delim | |
16859 | :nl | |
16860 | h | |
22e05272 | 16861 | s/\(.\{148\}\)..*/\1/ |
b4c522fa IB |
16862 | t more1 |
16863 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16864 | p | |
16865 | n | |
16866 | b repl | |
16867 | :more1 | |
16868 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16869 | p | |
16870 | g | |
16871 | s/.\{148\}// | |
16872 | t nl | |
16873 | :delim | |
16874 | h | |
22e05272 | 16875 | s/\(.\{148\}\)..*/\1/ |
b4c522fa IB |
16876 | t more2 |
16877 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16878 | p | |
16879 | b | |
16880 | :more2 | |
16881 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16882 | p | |
16883 | g | |
16884 | s/.\{148\}// | |
16885 | t delim | |
16886 | ' <conf$$subs.awk | sed ' | |
16887 | /^[^""]/{ | |
16888 | N | |
16889 | s/\n// | |
16890 | } | |
16891 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16892 | rm -f conf$$subs.awk | |
16893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16894 | _ACAWK | |
22e05272 | 16895 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
b4c522fa IB |
16896 | for (key in S) S_is_set[key] = 1 |
16897 | FS = "\a" | |
0b6e3127 | 16898 | \$ac_cs_awk_pipe_init |
b4c522fa IB |
16899 | } |
16900 | { | |
16901 | line = $ 0 | |
16902 | nfields = split(line, field, "@") | |
16903 | substed = 0 | |
16904 | len = length(field[1]) | |
16905 | for (i = 2; i < nfields; i++) { | |
16906 | key = field[i] | |
16907 | keylen = length(key) | |
16908 | if (S_is_set[key]) { | |
16909 | value = S[key] | |
16910 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16911 | len += length(value) + length(field[++i]) | |
16912 | substed = 1 | |
16913 | } else | |
16914 | len += 1 + keylen | |
16915 | } | |
0b6e3127 RO |
16916 | if (nfields == 3 && !substed) { |
16917 | key = field[2] | |
16918 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16919 | \$ac_cs_awk_read_file | |
16920 | next | |
16921 | } | |
16922 | } | |
b4c522fa IB |
16923 | print line |
16924 | } | |
0b6e3127 | 16925 | \$ac_cs_awk_pipe_fini |
b4c522fa IB |
16926 | _ACAWK |
16927 | _ACEOF | |
16928 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16929 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16930 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16931 | else | |
16932 | cat | |
22e05272 JM |
16933 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16934 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b4c522fa IB |
16935 | _ACEOF |
16936 | ||
22e05272 JM |
16937 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16938 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
b4c522fa IB |
16939 | # trailing colons and then remove the whole line if VPATH becomes empty |
16940 | # (actually we leave an empty line to preserve line numbers). | |
16941 | if test "x$srcdir" = x.; then | |
22e05272 JM |
16942 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16943 | h | |
16944 | s/// | |
16945 | s/^/:/ | |
16946 | s/[ ]*$/:/ | |
16947 | s/:\$(srcdir):/:/g | |
16948 | s/:\${srcdir}:/:/g | |
16949 | s/:@srcdir@:/:/g | |
16950 | s/^:*// | |
b4c522fa | 16951 | s/:*$// |
22e05272 JM |
16952 | x |
16953 | s/\(=[ ]*\).*/\1/ | |
16954 | G | |
16955 | s/\n// | |
b4c522fa IB |
16956 | s/^[^=]*=[ ]*$// |
16957 | }' | |
16958 | fi | |
16959 | ||
16960 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16961 | fi # test -n "$CONFIG_FILES" | |
16962 | ||
16963 | # Set up the scripts for CONFIG_HEADERS section. | |
16964 | # No need to generate them if there are no CONFIG_HEADERS. | |
16965 | # This happens for instance with `./config.status Makefile'. | |
16966 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 16967 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
b4c522fa IB |
16968 | BEGIN { |
16969 | _ACEOF | |
16970 | ||
16971 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16972 | # here-document in config.status, that substitutes the proper values into | |
16973 | # config.h.in to produce config.h. | |
16974 | ||
16975 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16976 | # handling of long lines. | |
16977 | ac_delim='%!_!# ' | |
16978 | for ac_last_try in false false :; do | |
22e05272 JM |
16979 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16980 | if test -z "$ac_tt"; then | |
b4c522fa IB |
16981 | break |
16982 | elif $ac_last_try; then | |
22e05272 | 16983 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
b4c522fa IB |
16984 | else |
16985 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16986 | fi | |
16987 | done | |
16988 | ||
16989 | # For the awk script, D is an array of macro values keyed by name, | |
16990 | # likewise P contains macro parameters if any. Preserve backslash | |
16991 | # newline sequences. | |
16992 | ||
16993 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16994 | sed -n ' | |
16995 | s/.\{148\}/&'"$ac_delim"'/g | |
16996 | t rset | |
16997 | :rset | |
16998 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16999 | t def | |
17000 | d | |
17001 | :def | |
17002 | s/\\$// | |
17003 | t bsnl | |
17004 | s/["\\]/\\&/g | |
17005 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17006 | D["\1"]=" \3"/p | |
17007 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17008 | d | |
17009 | :bsnl | |
17010 | s/["\\]/\\&/g | |
17011 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17012 | D["\1"]=" \3\\\\\\n"\\/p | |
17013 | t cont | |
17014 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17015 | t cont | |
17016 | d | |
17017 | :cont | |
17018 | n | |
17019 | s/.\{148\}/&'"$ac_delim"'/g | |
17020 | t clear | |
17021 | :clear | |
17022 | s/\\$// | |
17023 | t bsnlc | |
17024 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17025 | d | |
17026 | :bsnlc | |
17027 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17028 | b cont | |
17029 | ' <confdefs.h | sed ' | |
17030 | s/'"$ac_delim"'/"\\\ | |
17031 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17032 | ||
17033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17034 | for (key in D) D_is_set[key] = 1 | |
17035 | FS = "\a" | |
17036 | } | |
17037 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17038 | line = \$ 0 | |
17039 | split(line, arg, " ") | |
17040 | if (arg[1] == "#") { | |
17041 | defundef = arg[2] | |
17042 | mac1 = arg[3] | |
17043 | } else { | |
17044 | defundef = substr(arg[1], 2) | |
17045 | mac1 = arg[2] | |
17046 | } | |
17047 | split(mac1, mac2, "(") #) | |
17048 | macro = mac2[1] | |
17049 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17050 | if (D_is_set[macro]) { | |
17051 | # Preserve the white space surrounding the "#". | |
17052 | print prefix "define", macro P[macro] D[macro] | |
17053 | next | |
17054 | } else { | |
17055 | # Replace #undef with comments. This is necessary, for example, | |
17056 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17057 | # on some systems where configure will not decide to define it. | |
17058 | if (defundef == "undef") { | |
17059 | print "/*", prefix defundef, macro, "*/" | |
17060 | next | |
17061 | } | |
17062 | } | |
17063 | } | |
17064 | { print } | |
17065 | _ACAWK | |
17066 | _ACEOF | |
17067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 17068 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
b4c522fa IB |
17069 | fi # test -n "$CONFIG_HEADERS" |
17070 | ||
17071 | ||
17072 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
17073 | shift | |
17074 | for ac_tag | |
17075 | do | |
17076 | case $ac_tag in | |
17077 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17078 | esac | |
17079 | case $ac_mode$ac_tag in | |
17080 | :[FHL]*:*);; | |
22e05272 | 17081 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
b4c522fa IB |
17082 | :[FH]-) ac_tag=-:-;; |
17083 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17084 | esac | |
17085 | ac_save_IFS=$IFS | |
17086 | IFS=: | |
17087 | set x $ac_tag | |
17088 | IFS=$ac_save_IFS | |
17089 | shift | |
17090 | ac_file=$1 | |
17091 | shift | |
17092 | ||
17093 | case $ac_mode in | |
17094 | :L) ac_source=$1;; | |
17095 | :[FH]) | |
17096 | ac_file_inputs= | |
17097 | for ac_f | |
17098 | do | |
17099 | case $ac_f in | |
22e05272 | 17100 | -) ac_f="$ac_tmp/stdin";; |
b4c522fa IB |
17101 | *) # Look for the file first in the build tree, then in the source tree |
17102 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17103 | # because $ac_f cannot contain `:'. | |
17104 | test -f "$ac_f" || | |
17105 | case $ac_f in | |
17106 | [\\/$]*) false;; | |
17107 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17108 | esac || | |
22e05272 | 17109 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
b4c522fa IB |
17110 | esac |
17111 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17112 | as_fn_append ac_file_inputs " '$ac_f'" | |
17113 | done | |
17114 | ||
17115 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17116 | # use $as_me), people would be surprised to read: | |
17117 | # /* config.h. Generated by config.status. */ | |
17118 | configure_input='Generated from '` | |
17119 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17120 | `' by configure.' | |
17121 | if test x"$ac_file" != x-; then | |
17122 | configure_input="$ac_file. $configure_input" | |
17123 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17124 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17125 | fi | |
17126 | # Neutralize special characters interpreted by sed in replacement strings. | |
17127 | case $configure_input in #( | |
17128 | *\&* | *\|* | *\\* ) | |
17129 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17130 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17131 | *) ac_sed_conf_input=$configure_input;; | |
17132 | esac | |
17133 | ||
17134 | case $ac_tag in | |
22e05272 JM |
17135 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17136 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
b4c522fa IB |
17137 | esac |
17138 | ;; | |
17139 | esac | |
17140 | ||
17141 | ac_dir=`$as_dirname -- "$ac_file" || | |
17142 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17143 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17144 | X"$ac_file" : 'X\(//\)$' \| \ | |
17145 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17146 | $as_echo X"$ac_file" | | |
17147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17148 | s//\1/ | |
17149 | q | |
17150 | } | |
17151 | /^X\(\/\/\)[^/].*/{ | |
17152 | s//\1/ | |
17153 | q | |
17154 | } | |
17155 | /^X\(\/\/\)$/{ | |
17156 | s//\1/ | |
17157 | q | |
17158 | } | |
17159 | /^X\(\/\).*/{ | |
17160 | s//\1/ | |
17161 | q | |
17162 | } | |
17163 | s/.*/./; q'` | |
17164 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17165 | ac_builddir=. | |
17166 | ||
17167 | case "$ac_dir" in | |
17168 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17169 | *) | |
17170 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17171 | # A ".." for each directory in $ac_dir_suffix. | |
17172 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17173 | case $ac_top_builddir_sub in | |
17174 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17175 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17176 | esac ;; | |
17177 | esac | |
17178 | ac_abs_top_builddir=$ac_pwd | |
17179 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17180 | # for backward compatibility: | |
17181 | ac_top_builddir=$ac_top_build_prefix | |
17182 | ||
17183 | case $srcdir in | |
17184 | .) # We are building in place. | |
17185 | ac_srcdir=. | |
17186 | ac_top_srcdir=$ac_top_builddir_sub | |
17187 | ac_abs_top_srcdir=$ac_pwd ;; | |
17188 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17189 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17190 | ac_top_srcdir=$srcdir | |
17191 | ac_abs_top_srcdir=$srcdir ;; | |
17192 | *) # Relative name. | |
17193 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17194 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17195 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17196 | esac | |
17197 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17198 | ||
17199 | ||
17200 | case $ac_mode in | |
17201 | :F) | |
17202 | # | |
17203 | # CONFIG_FILE | |
17204 | # | |
17205 | ||
17206 | case $INSTALL in | |
17207 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17208 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17209 | esac | |
17210 | ac_MKDIR_P=$MKDIR_P | |
17211 | case $MKDIR_P in | |
17212 | [\\/$]* | ?:[\\/]* ) ;; | |
17213 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17214 | esac | |
17215 | _ACEOF | |
17216 | ||
17217 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17218 | # If the template does not know about datarootdir, expand it. | |
17219 | # FIXME: This hack should be removed a few years after 2.60. | |
17220 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17221 | ac_sed_dataroot=' | |
17222 | /datarootdir/ { | |
17223 | p | |
17224 | q | |
17225 | } | |
17226 | /@datadir@/p | |
17227 | /@docdir@/p | |
17228 | /@infodir@/p | |
17229 | /@localedir@/p | |
17230 | /@mandir@/p' | |
17231 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17232 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17233 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17235 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17236 | _ACEOF | |
17237 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17238 | ac_datarootdir_hack=' | |
17239 | s&@datadir@&$datadir&g | |
17240 | s&@docdir@&$docdir&g | |
17241 | s&@infodir@&$infodir&g | |
17242 | s&@localedir@&$localedir&g | |
17243 | s&@mandir@&$mandir&g | |
17244 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17245 | esac | |
17246 | _ACEOF | |
17247 | ||
17248 | # Neutralize VPATH when `$srcdir' = `.'. | |
17249 | # Shell code in configure.ac might set extrasub. | |
17250 | # FIXME: do we really want to maintain this feature? | |
17251 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17252 | ac_sed_extra="$ac_vpsub | |
17253 | $extrasub | |
17254 | _ACEOF | |
17255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17256 | :t | |
17257 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17258 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17259 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17260 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17261 | s&@srcdir@&$ac_srcdir&;t t | |
17262 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17263 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17264 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17265 | s&@builddir@&$ac_builddir&;t t | |
17266 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17267 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17268 | s&@INSTALL@&$ac_INSTALL&;t t | |
17269 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17270 | $ac_datarootdir_hack | |
17271 | " | |
0b6e3127 RO |
17272 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
17273 | if $ac_cs_awk_getline; then | |
17274 | $AWK -f "$ac_tmp/subs.awk" | |
17275 | else | |
17276 | $AWK -f "$ac_tmp/subs.awk" | $SHELL | |
17277 | fi \ | |
22e05272 | 17278 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
b4c522fa IB |
17279 | |
17280 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
17281 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17282 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17283 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
b4c522fa | 17284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17285 | which seems to be undefined. Please make sure it is defined" >&5 |
b4c522fa | 17286 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17287 | which seems to be undefined. Please make sure it is defined" >&2;} |
b4c522fa | 17288 | |
22e05272 | 17289 | rm -f "$ac_tmp/stdin" |
b4c522fa | 17290 | case $ac_file in |
22e05272 JM |
17291 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17292 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
b4c522fa | 17293 | esac \ |
22e05272 | 17294 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
b4c522fa IB |
17295 | ;; |
17296 | :H) | |
17297 | # | |
17298 | # CONFIG_HEADER | |
17299 | # | |
17300 | if test x"$ac_file" != x-; then | |
17301 | { | |
17302 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
17303 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17304 | } >"$ac_tmp/config.h" \ | |
17305 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17306 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
b4c522fa IB |
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
17308 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
17309 | else | |
17310 | rm -f "$ac_file" | |
22e05272 JM |
17311 | mv "$ac_tmp/config.h" "$ac_file" \ |
17312 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
b4c522fa IB |
17313 | fi |
17314 | else | |
17315 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
17316 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17317 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
b4c522fa IB |
17318 | fi |
17319 | # Compute "$ac_file"'s index in $config_headers. | |
17320 | _am_arg="$ac_file" | |
17321 | _am_stamp_count=1 | |
17322 | for _am_header in $config_headers :; do | |
17323 | case $_am_header in | |
17324 | $_am_arg | $_am_arg:* ) | |
17325 | break ;; | |
17326 | * ) | |
17327 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17328 | esac | |
17329 | done | |
17330 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17331 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17332 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17333 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17334 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17335 | $as_echo X"$_am_arg" | | |
17336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17337 | s//\1/ | |
17338 | q | |
17339 | } | |
17340 | /^X\(\/\/\)[^/].*/{ | |
17341 | s//\1/ | |
17342 | q | |
17343 | } | |
17344 | /^X\(\/\/\)$/{ | |
17345 | s//\1/ | |
17346 | q | |
17347 | } | |
17348 | /^X\(\/\).*/{ | |
17349 | s//\1/ | |
17350 | q | |
17351 | } | |
17352 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17353 | ;; | |
17354 | ||
17355 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17356 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17357 | ;; | |
17358 | esac | |
17359 | ||
17360 | ||
17361 | case $ac_file$ac_mode in | |
17362 | "default-1":C) | |
17363 | # Only add multilib support code if we just rebuilt the top-level | |
17364 | # Makefile. | |
17365 | case " $CONFIG_FILES " in | |
17366 | *" Makefile "*) | |
17367 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
17368 | ;; | |
17369 | esac ;; | |
17370 | "libtool":C) | |
17371 | ||
17372 | # See if we are running on zsh, and set the options which allow our | |
17373 | # commands through without removal of \ escapes. | |
17374 | if test -n "${ZSH_VERSION+set}" ; then | |
17375 | setopt NO_GLOB_SUBST | |
17376 | fi | |
17377 | ||
17378 | cfgfile="${ofile}T" | |
17379 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17380 | $RM "$cfgfile" | |
17381 | ||
17382 | cat <<_LT_EOF >> "$cfgfile" | |
17383 | #! $SHELL | |
17384 | ||
17385 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17386 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17387 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17388 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17389 | # | |
0b6e3127 RO |
17390 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
17391 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
b4c522fa IB |
17392 | # Written by Gordon Matzigkeit, 1996 |
17393 | # | |
17394 | # This file is part of GNU Libtool. | |
17395 | # | |
17396 | # GNU Libtool is free software; you can redistribute it and/or | |
17397 | # modify it under the terms of the GNU General Public License as | |
17398 | # published by the Free Software Foundation; either version 2 of | |
17399 | # the License, or (at your option) any later version. | |
17400 | # | |
17401 | # As a special exception to the GNU General Public License, | |
17402 | # if you distribute this file as part of a program or library that | |
17403 | # is built using GNU Libtool, you may include this file under the | |
17404 | # same distribution terms that you use for the rest of that program. | |
17405 | # | |
17406 | # GNU Libtool is distributed in the hope that it will be useful, | |
17407 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17408 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17409 | # GNU General Public License for more details. | |
17410 | # | |
17411 | # You should have received a copy of the GNU General Public License | |
17412 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17413 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17414 | # obtained by writing to the Free Software Foundation, Inc., | |
17415 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17416 | ||
17417 | ||
17418 | # The names of the tagged configurations supported by this script. | |
17419 | available_tags="D " | |
17420 | ||
17421 | # ### BEGIN LIBTOOL CONFIG | |
17422 | ||
17423 | # Which release of libtool.m4 was used? | |
17424 | macro_version=$macro_version | |
17425 | macro_revision=$macro_revision | |
17426 | ||
17427 | # Whether or not to build shared libraries. | |
17428 | build_libtool_libs=$enable_shared | |
17429 | ||
17430 | # Whether or not to build static libraries. | |
17431 | build_old_libs=$enable_static | |
17432 | ||
17433 | # What type of objects to build. | |
17434 | pic_mode=$pic_mode | |
17435 | ||
17436 | # Whether or not to optimize for fast installation. | |
17437 | fast_install=$enable_fast_install | |
17438 | ||
17439 | # Shell to use when invoking shell scripts. | |
17440 | SHELL=$lt_SHELL | |
17441 | ||
17442 | # An echo program that protects backslashes. | |
17443 | ECHO=$lt_ECHO | |
17444 | ||
17445 | # The host system. | |
17446 | host_alias=$host_alias | |
17447 | host=$host | |
17448 | host_os=$host_os | |
17449 | ||
17450 | # The build system. | |
17451 | build_alias=$build_alias | |
17452 | build=$build | |
17453 | build_os=$build_os | |
17454 | ||
17455 | # A sed program that does not truncate output. | |
17456 | SED=$lt_SED | |
17457 | ||
17458 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17459 | Xsed="\$SED -e 1s/^X//" | |
17460 | ||
17461 | # A grep program that handles long lines. | |
17462 | GREP=$lt_GREP | |
17463 | ||
17464 | # An ERE matcher. | |
17465 | EGREP=$lt_EGREP | |
17466 | ||
17467 | # A literal string matcher. | |
17468 | FGREP=$lt_FGREP | |
17469 | ||
17470 | # A BSD- or MS-compatible name lister. | |
17471 | NM=$lt_NM | |
17472 | ||
17473 | # Whether we need soft or hard links. | |
17474 | LN_S=$lt_LN_S | |
17475 | ||
17476 | # What is the maximum length of a command? | |
17477 | max_cmd_len=$max_cmd_len | |
17478 | ||
17479 | # Object file suffix (normally "o"). | |
17480 | objext=$ac_objext | |
17481 | ||
17482 | # Executable file suffix (normally ""). | |
17483 | exeext=$exeext | |
17484 | ||
17485 | # whether the shell understands "unset". | |
17486 | lt_unset=$lt_unset | |
17487 | ||
17488 | # turn spaces into newlines. | |
17489 | SP2NL=$lt_lt_SP2NL | |
17490 | ||
17491 | # turn newlines into spaces. | |
17492 | NL2SP=$lt_lt_NL2SP | |
17493 | ||
17494 | # An object symbol dumper. | |
17495 | OBJDUMP=$lt_OBJDUMP | |
17496 | ||
17497 | # Method to check whether dependent libraries are shared objects. | |
17498 | deplibs_check_method=$lt_deplibs_check_method | |
17499 | ||
17500 | # Command to use when deplibs_check_method == "file_magic". | |
17501 | file_magic_cmd=$lt_file_magic_cmd | |
17502 | ||
17503 | # The archiver. | |
17504 | AR=$lt_AR | |
17505 | AR_FLAGS=$lt_AR_FLAGS | |
17506 | ||
17507 | # A symbol stripping program. | |
17508 | STRIP=$lt_STRIP | |
17509 | ||
17510 | # Commands used to install an old-style archive. | |
17511 | RANLIB=$lt_RANLIB | |
17512 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17513 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17514 | ||
17515 | # Whether to use a lock for old archive extraction. | |
17516 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17517 | ||
17518 | # A C compiler. | |
17519 | LTCC=$lt_CC | |
17520 | ||
17521 | # LTCC compiler flags. | |
17522 | LTCFLAGS=$lt_CFLAGS | |
17523 | ||
17524 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17525 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17526 | ||
17527 | # Transform the output of nm in a proper C declaration. | |
17528 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17529 | ||
17530 | # Transform the output of nm in a C name address pair. | |
17531 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17532 | ||
17533 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17534 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17535 | ||
17536 | # The name of the directory that contains temporary libtool files. | |
17537 | objdir=$objdir | |
17538 | ||
17539 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17540 | MAGIC_CMD=$MAGIC_CMD | |
17541 | ||
17542 | # Must we lock files when doing compilation? | |
17543 | need_locks=$lt_need_locks | |
17544 | ||
17545 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17546 | DSYMUTIL=$lt_DSYMUTIL | |
17547 | ||
17548 | # Tool to change global to local symbols on Mac OS X. | |
17549 | NMEDIT=$lt_NMEDIT | |
17550 | ||
17551 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17552 | LIPO=$lt_LIPO | |
17553 | ||
17554 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17555 | OTOOL=$lt_OTOOL | |
17556 | ||
17557 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17558 | OTOOL64=$lt_OTOOL64 | |
17559 | ||
17560 | # Old archive suffix (normally "a"). | |
17561 | libext=$libext | |
17562 | ||
17563 | # Shared library suffix (normally ".so"). | |
17564 | shrext_cmds=$lt_shrext_cmds | |
17565 | ||
17566 | # The commands to extract the exported symbol list from a shared archive. | |
17567 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17568 | ||
17569 | # Variables whose values should be saved in libtool wrapper scripts and | |
17570 | # restored at link time. | |
17571 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
17572 | ||
17573 | # Do we need the "lib" prefix for modules? | |
17574 | need_lib_prefix=$need_lib_prefix | |
17575 | ||
17576 | # Do we need a version for libraries? | |
17577 | need_version=$need_version | |
17578 | ||
17579 | # Library versioning type. | |
17580 | version_type=$version_type | |
17581 | ||
17582 | # Shared library runtime path variable. | |
17583 | runpath_var=$runpath_var | |
17584 | ||
17585 | # Shared library path variable. | |
17586 | shlibpath_var=$shlibpath_var | |
17587 | ||
17588 | # Is shlibpath searched before the hard-coded library search path? | |
17589 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17590 | ||
17591 | # Format of library name prefix. | |
17592 | libname_spec=$lt_libname_spec | |
17593 | ||
17594 | # List of archive names. First name is the real one, the rest are links. | |
17595 | # The last name is the one that the linker finds with -lNAME | |
17596 | library_names_spec=$lt_library_names_spec | |
17597 | ||
17598 | # The coded name of the library, if different from the real name. | |
17599 | soname_spec=$lt_soname_spec | |
17600 | ||
17601 | # Permission mode override for installation of shared libraries. | |
17602 | install_override_mode=$lt_install_override_mode | |
17603 | ||
17604 | # Command to use after installation of a shared archive. | |
17605 | postinstall_cmds=$lt_postinstall_cmds | |
17606 | ||
17607 | # Command to use after uninstallation of a shared archive. | |
17608 | postuninstall_cmds=$lt_postuninstall_cmds | |
17609 | ||
17610 | # Commands used to finish a libtool library installation in a directory. | |
17611 | finish_cmds=$lt_finish_cmds | |
17612 | ||
17613 | # As "finish_cmds", except a single script fragment to be evaled but | |
17614 | # not shown. | |
17615 | finish_eval=$lt_finish_eval | |
17616 | ||
17617 | # Whether we should hardcode library paths into libraries. | |
17618 | hardcode_into_libs=$hardcode_into_libs | |
17619 | ||
17620 | # Compile-time system search path for libraries. | |
17621 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17622 | ||
17623 | # Run-time system search path for libraries. | |
17624 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17625 | ||
17626 | # Whether dlopen is supported. | |
17627 | dlopen_support=$enable_dlopen | |
17628 | ||
17629 | # Whether dlopen of programs is supported. | |
17630 | dlopen_self=$enable_dlopen_self | |
17631 | ||
17632 | # Whether dlopen of statically linked programs is supported. | |
17633 | dlopen_self_static=$enable_dlopen_self_static | |
17634 | ||
17635 | # Commands to strip libraries. | |
17636 | old_striplib=$lt_old_striplib | |
17637 | striplib=$lt_striplib | |
17638 | ||
17639 | ||
17640 | # The linker used to build libraries. | |
17641 | LD=$lt_LD | |
17642 | ||
17643 | # How to create reloadable object files. | |
17644 | reload_flag=$lt_reload_flag | |
17645 | reload_cmds=$lt_reload_cmds | |
17646 | ||
17647 | # Commands used to build an old-style archive. | |
17648 | old_archive_cmds=$lt_old_archive_cmds | |
17649 | ||
17650 | # A language specific compiler. | |
17651 | CC=$lt_compiler | |
17652 | ||
17653 | # Is the compiler the GNU compiler? | |
17654 | with_gcc=$GCC | |
17655 | ||
17656 | # Compiler flag to turn off builtin functions. | |
17657 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17658 | ||
17659 | # How to pass a linker flag through the compiler. | |
17660 | wl=$lt_lt_prog_compiler_wl | |
17661 | ||
17662 | # Additional compiler flags for building library objects. | |
17663 | pic_flag=$lt_lt_prog_compiler_pic | |
17664 | ||
17665 | # Compiler flag to prevent dynamic linking. | |
17666 | link_static_flag=$lt_lt_prog_compiler_static | |
17667 | ||
17668 | # Does compiler simultaneously support -c and -o options? | |
17669 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17670 | ||
17671 | # Whether or not to add -lc for building shared libraries. | |
17672 | build_libtool_need_lc=$archive_cmds_need_lc | |
17673 | ||
17674 | # Whether or not to disallow shared libs when runtime libs are static. | |
17675 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17676 | ||
17677 | # Compiler flag to allow reflexive dlopens. | |
17678 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17679 | ||
17680 | # Compiler flag to generate shared objects directly from archives. | |
17681 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17682 | ||
17683 | # Whether the compiler copes with passing no objects directly. | |
17684 | compiler_needs_object=$lt_compiler_needs_object | |
17685 | ||
17686 | # Create an old-style archive from a shared archive. | |
17687 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17688 | ||
17689 | # Create a temporary old-style archive to link instead of a shared archive. | |
17690 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17691 | ||
17692 | # Commands used to build a shared archive. | |
17693 | archive_cmds=$lt_archive_cmds | |
17694 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17695 | ||
17696 | # Commands used to build a loadable module if different from building | |
17697 | # a shared archive. | |
17698 | module_cmds=$lt_module_cmds | |
17699 | module_expsym_cmds=$lt_module_expsym_cmds | |
17700 | ||
17701 | # Whether we are building with GNU ld or not. | |
17702 | with_gnu_ld=$lt_with_gnu_ld | |
17703 | ||
17704 | # Flag that allows shared libraries with undefined symbols to be built. | |
17705 | allow_undefined_flag=$lt_allow_undefined_flag | |
17706 | ||
17707 | # Flag that enforces no undefined symbols. | |
17708 | no_undefined_flag=$lt_no_undefined_flag | |
17709 | ||
17710 | # Flag to hardcode \$libdir into a binary during linking. | |
17711 | # This must work even if \$libdir does not exist | |
17712 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17713 | ||
17714 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17715 | # during linking. This must work even if \$libdir does not exist. | |
17716 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17717 | ||
17718 | # Whether we need a single "-rpath" flag with a separated argument. | |
17719 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17720 | ||
17721 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17722 | # DIR into the resulting binary. | |
17723 | hardcode_direct=$hardcode_direct | |
17724 | ||
17725 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17726 | # DIR into the resulting binary and the resulting library dependency is | |
17727 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17728 | # library is relocated. | |
17729 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17730 | ||
17731 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17732 | # into the resulting binary. | |
17733 | hardcode_minus_L=$hardcode_minus_L | |
17734 | ||
17735 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17736 | # into the resulting binary. | |
17737 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17738 | ||
17739 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17740 | # into the library and all subsequent libraries and executables linked | |
17741 | # against it. | |
17742 | hardcode_automatic=$hardcode_automatic | |
17743 | ||
17744 | # Set to yes if linker adds runtime paths of dependent libraries | |
17745 | # to runtime path list. | |
17746 | inherit_rpath=$inherit_rpath | |
17747 | ||
17748 | # Whether libtool must link a program against all its dependency libraries. | |
17749 | link_all_deplibs=$link_all_deplibs | |
17750 | ||
17751 | # Fix the shell variable \$srcfile for the compiler. | |
17752 | fix_srcfile_path=$lt_fix_srcfile_path | |
17753 | ||
17754 | # Set to "yes" if exported symbols are required. | |
17755 | always_export_symbols=$always_export_symbols | |
17756 | ||
17757 | # The commands to list exported symbols. | |
17758 | export_symbols_cmds=$lt_export_symbols_cmds | |
17759 | ||
17760 | # Symbols that should not be listed in the preloaded symbols. | |
17761 | exclude_expsyms=$lt_exclude_expsyms | |
17762 | ||
17763 | # Symbols that must always be exported. | |
17764 | include_expsyms=$lt_include_expsyms | |
17765 | ||
17766 | # Commands necessary for linking programs (against libraries) with templates. | |
17767 | prelink_cmds=$lt_prelink_cmds | |
17768 | ||
17769 | # Specify filename containing input files. | |
17770 | file_list_spec=$lt_file_list_spec | |
17771 | ||
17772 | # How to hardcode a shared library path into an executable. | |
17773 | hardcode_action=$hardcode_action | |
17774 | ||
17775 | # ### END LIBTOOL CONFIG | |
17776 | ||
17777 | _LT_EOF | |
17778 | ||
17779 | case $host_os in | |
17780 | aix3*) | |
17781 | cat <<\_LT_EOF >> "$cfgfile" | |
17782 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17783 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17784 | # vanish in a puff of smoke. | |
17785 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17786 | COLLECT_NAMES= | |
17787 | export COLLECT_NAMES | |
17788 | fi | |
17789 | _LT_EOF | |
17790 | ;; | |
17791 | esac | |
17792 | ||
17793 | ||
17794 | ltmain="$ac_aux_dir/ltmain.sh" | |
17795 | ||
17796 | ||
17797 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17798 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17799 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17800 | # is reportedly fixed, but why not run on old versions too? | |
17801 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17802 | || (rm -f "$cfgfile"; exit 1) | |
17803 | ||
17804 | case $xsi_shell in | |
17805 | yes) | |
17806 | cat << \_LT_EOF >> "$cfgfile" | |
17807 | ||
17808 | # func_dirname file append nondir_replacement | |
17809 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17810 | # otherwise set result to NONDIR_REPLACEMENT. | |
17811 | func_dirname () | |
17812 | { | |
17813 | case ${1} in | |
17814 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17815 | * ) func_dirname_result="${3}" ;; | |
17816 | esac | |
17817 | } | |
17818 | ||
17819 | # func_basename file | |
17820 | func_basename () | |
17821 | { | |
17822 | func_basename_result="${1##*/}" | |
17823 | } | |
17824 | ||
17825 | # func_dirname_and_basename file append nondir_replacement | |
17826 | # perform func_basename and func_dirname in a single function | |
17827 | # call: | |
17828 | # dirname: Compute the dirname of FILE. If nonempty, | |
17829 | # add APPEND to the result, otherwise set result | |
17830 | # to NONDIR_REPLACEMENT. | |
17831 | # value returned in "$func_dirname_result" | |
17832 | # basename: Compute filename of FILE. | |
17833 | # value retuned in "$func_basename_result" | |
17834 | # Implementation must be kept synchronized with func_dirname | |
17835 | # and func_basename. For efficiency, we do not delegate to | |
17836 | # those functions but instead duplicate the functionality here. | |
17837 | func_dirname_and_basename () | |
17838 | { | |
17839 | case ${1} in | |
17840 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17841 | * ) func_dirname_result="${3}" ;; | |
17842 | esac | |
17843 | func_basename_result="${1##*/}" | |
17844 | } | |
17845 | ||
17846 | # func_stripname prefix suffix name | |
17847 | # strip PREFIX and SUFFIX off of NAME. | |
17848 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17849 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17850 | # dot (in which case that matches only a dot). | |
17851 | func_stripname () | |
17852 | { | |
17853 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
17854 | # positional parameters, so assign one to ordinary parameter first. | |
17855 | func_stripname_result=${3} | |
17856 | func_stripname_result=${func_stripname_result#"${1}"} | |
17857 | func_stripname_result=${func_stripname_result%"${2}"} | |
17858 | } | |
17859 | ||
17860 | # func_opt_split | |
17861 | func_opt_split () | |
17862 | { | |
17863 | func_opt_split_opt=${1%%=*} | |
17864 | func_opt_split_arg=${1#*=} | |
17865 | } | |
17866 | ||
17867 | # func_lo2o object | |
17868 | func_lo2o () | |
17869 | { | |
17870 | case ${1} in | |
17871 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
17872 | *) func_lo2o_result=${1} ;; | |
17873 | esac | |
17874 | } | |
17875 | ||
17876 | # func_xform libobj-or-source | |
17877 | func_xform () | |
17878 | { | |
17879 | func_xform_result=${1%.*}.lo | |
17880 | } | |
17881 | ||
17882 | # func_arith arithmetic-term... | |
17883 | func_arith () | |
17884 | { | |
17885 | func_arith_result=$(( $* )) | |
17886 | } | |
17887 | ||
17888 | # func_len string | |
17889 | # STRING may not start with a hyphen. | |
17890 | func_len () | |
17891 | { | |
17892 | func_len_result=${#1} | |
17893 | } | |
17894 | ||
17895 | _LT_EOF | |
17896 | ;; | |
17897 | *) # Bourne compatible functions. | |
17898 | cat << \_LT_EOF >> "$cfgfile" | |
17899 | ||
17900 | # func_dirname file append nondir_replacement | |
17901 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17902 | # otherwise set result to NONDIR_REPLACEMENT. | |
17903 | func_dirname () | |
17904 | { | |
17905 | # Extract subdirectory from the argument. | |
17906 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
17907 | if test "X$func_dirname_result" = "X${1}"; then | |
17908 | func_dirname_result="${3}" | |
17909 | else | |
17910 | func_dirname_result="$func_dirname_result${2}" | |
17911 | fi | |
17912 | } | |
17913 | ||
17914 | # func_basename file | |
17915 | func_basename () | |
17916 | { | |
17917 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
17918 | } | |
17919 | ||
17920 | ||
17921 | # func_stripname prefix suffix name | |
17922 | # strip PREFIX and SUFFIX off of NAME. | |
17923 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17924 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17925 | # dot (in which case that matches only a dot). | |
17926 | # func_strip_suffix prefix name | |
17927 | func_stripname () | |
17928 | { | |
17929 | case ${2} in | |
17930 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
17931 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
17932 | esac | |
17933 | } | |
17934 | ||
17935 | # sed scripts: | |
17936 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
17937 | my_sed_long_arg='1s/^-[^=]*=//' | |
17938 | ||
17939 | # func_opt_split | |
17940 | func_opt_split () | |
17941 | { | |
17942 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
17943 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
17944 | } | |
17945 | ||
17946 | # func_lo2o object | |
17947 | func_lo2o () | |
17948 | { | |
17949 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
17950 | } | |
17951 | ||
17952 | # func_xform libobj-or-source | |
17953 | func_xform () | |
17954 | { | |
17955 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
17956 | } | |
17957 | ||
17958 | # func_arith arithmetic-term... | |
17959 | func_arith () | |
17960 | { | |
17961 | func_arith_result=`expr "$@"` | |
17962 | } | |
17963 | ||
17964 | # func_len string | |
17965 | # STRING may not start with a hyphen. | |
17966 | func_len () | |
17967 | { | |
17968 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
17969 | } | |
17970 | ||
17971 | _LT_EOF | |
17972 | esac | |
17973 | ||
17974 | case $lt_shell_append in | |
17975 | yes) | |
17976 | cat << \_LT_EOF >> "$cfgfile" | |
17977 | ||
17978 | # func_append var value | |
17979 | # Append VALUE to the end of shell variable VAR. | |
17980 | func_append () | |
17981 | { | |
17982 | eval "$1+=\$2" | |
17983 | } | |
17984 | _LT_EOF | |
17985 | ;; | |
17986 | *) | |
17987 | cat << \_LT_EOF >> "$cfgfile" | |
17988 | ||
17989 | # func_append var value | |
17990 | # Append VALUE to the end of shell variable VAR. | |
17991 | func_append () | |
17992 | { | |
17993 | eval "$1=\$$1\$2" | |
17994 | } | |
17995 | ||
17996 | _LT_EOF | |
17997 | ;; | |
17998 | esac | |
17999 | ||
18000 | ||
18001 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18002 | || (rm -f "$cfgfile"; exit 1) | |
18003 | ||
18004 | mv -f "$cfgfile" "$ofile" || | |
18005 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18006 | chmod +x "$ofile" | |
18007 | ||
18008 | ||
18009 | cat <<_LT_EOF >> "$ofile" | |
18010 | ||
18011 | # ### BEGIN LIBTOOL TAG CONFIG: D | |
18012 | ||
18013 | # The linker used to build libraries. | |
18014 | LD=$lt_LD_D | |
18015 | ||
18016 | # How to create reloadable object files. | |
18017 | reload_flag=$lt_reload_flag_D | |
18018 | reload_cmds=$lt_reload_cmds_D | |
18019 | ||
18020 | # Commands used to build an old-style archive. | |
18021 | old_archive_cmds=$lt_old_archive_cmds_D | |
18022 | ||
18023 | # A language specific compiler. | |
18024 | CC=$lt_compiler_D | |
18025 | ||
18026 | # Is the compiler the GNU compiler? | |
18027 | with_gcc=$GCC_D | |
18028 | ||
18029 | # Compiler flag to turn off builtin functions. | |
18030 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D | |
18031 | ||
18032 | # How to pass a linker flag through the compiler. | |
18033 | wl=$lt_lt_prog_compiler_wl_D | |
18034 | ||
18035 | # Additional compiler flags for building library objects. | |
18036 | pic_flag=$lt_lt_prog_compiler_pic_D | |
18037 | ||
18038 | # Compiler flag to prevent dynamic linking. | |
18039 | link_static_flag=$lt_lt_prog_compiler_static_D | |
18040 | ||
18041 | # Does compiler simultaneously support -c and -o options? | |
18042 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D | |
18043 | ||
18044 | # Whether or not to add -lc for building shared libraries. | |
18045 | build_libtool_need_lc=$archive_cmds_need_lc_D | |
18046 | ||
18047 | # Whether or not to disallow shared libs when runtime libs are static. | |
18048 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D | |
18049 | ||
18050 | # Compiler flag to allow reflexive dlopens. | |
18051 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D | |
18052 | ||
18053 | # Compiler flag to generate shared objects directly from archives. | |
18054 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_D | |
18055 | ||
18056 | # Whether the compiler copes with passing no objects directly. | |
18057 | compiler_needs_object=$lt_compiler_needs_object_D | |
18058 | ||
18059 | # Create an old-style archive from a shared archive. | |
18060 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D | |
18061 | ||
18062 | # Create a temporary old-style archive to link instead of a shared archive. | |
18063 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D | |
18064 | ||
18065 | # Commands used to build a shared archive. | |
18066 | archive_cmds=$lt_archive_cmds_D | |
18067 | archive_expsym_cmds=$lt_archive_expsym_cmds_D | |
18068 | ||
18069 | # Commands used to build a loadable module if different from building | |
18070 | # a shared archive. | |
18071 | module_cmds=$lt_module_cmds_D | |
18072 | module_expsym_cmds=$lt_module_expsym_cmds_D | |
18073 | ||
18074 | # Whether we are building with GNU ld or not. | |
18075 | with_gnu_ld=$lt_with_gnu_ld_D | |
18076 | ||
18077 | # Flag that allows shared libraries with undefined symbols to be built. | |
18078 | allow_undefined_flag=$lt_allow_undefined_flag_D | |
18079 | ||
18080 | # Flag that enforces no undefined symbols. | |
18081 | no_undefined_flag=$lt_no_undefined_flag_D | |
18082 | ||
18083 | # Flag to hardcode \$libdir into a binary during linking. | |
18084 | # This must work even if \$libdir does not exist | |
18085 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D | |
18086 | ||
18087 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18088 | # during linking. This must work even if \$libdir does not exist. | |
18089 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D | |
18090 | ||
18091 | # Whether we need a single "-rpath" flag with a separated argument. | |
18092 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_D | |
18093 | ||
18094 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18095 | # DIR into the resulting binary. | |
18096 | hardcode_direct=$hardcode_direct_D | |
18097 | ||
18098 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18099 | # DIR into the resulting binary and the resulting library dependency is | |
18100 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18101 | # library is relocated. | |
18102 | hardcode_direct_absolute=$hardcode_direct_absolute_D | |
18103 | ||
18104 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18105 | # into the resulting binary. | |
18106 | hardcode_minus_L=$hardcode_minus_L_D | |
18107 | ||
18108 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18109 | # into the resulting binary. | |
18110 | hardcode_shlibpath_var=$hardcode_shlibpath_var_D | |
18111 | ||
18112 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18113 | # into the library and all subsequent libraries and executables linked | |
18114 | # against it. | |
18115 | hardcode_automatic=$hardcode_automatic_D | |
18116 | ||
18117 | # Set to yes if linker adds runtime paths of dependent libraries | |
18118 | # to runtime path list. | |
18119 | inherit_rpath=$inherit_rpath_D | |
18120 | ||
18121 | # Whether libtool must link a program against all its dependency libraries. | |
18122 | link_all_deplibs=$link_all_deplibs_D | |
18123 | ||
18124 | # Fix the shell variable \$srcfile for the compiler. | |
18125 | fix_srcfile_path=$lt_fix_srcfile_path_D | |
18126 | ||
18127 | # Set to "yes" if exported symbols are required. | |
18128 | always_export_symbols=$always_export_symbols_D | |
18129 | ||
18130 | # The commands to list exported symbols. | |
18131 | export_symbols_cmds=$lt_export_symbols_cmds_D | |
18132 | ||
18133 | # Symbols that should not be listed in the preloaded symbols. | |
18134 | exclude_expsyms=$lt_exclude_expsyms_D | |
18135 | ||
18136 | # Symbols that must always be exported. | |
18137 | include_expsyms=$lt_include_expsyms_D | |
18138 | ||
18139 | # Commands necessary for linking programs (against libraries) with templates. | |
18140 | prelink_cmds=$lt_prelink_cmds_D | |
18141 | ||
18142 | # Specify filename containing input files. | |
18143 | file_list_spec=$lt_file_list_spec_D | |
18144 | ||
18145 | # How to hardcode a shared library path into an executable. | |
18146 | hardcode_action=$hardcode_action_D | |
18147 | ||
18148 | # ### END LIBTOOL TAG CONFIG: D | |
18149 | _LT_EOF | |
18150 | ||
18151 | ;; | |
18152 | "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;; | |
ac67752d IB |
18153 | "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF |
18154 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
b4c522fa | 18155 | _EOF |
ac67752d IB |
18156 | sed -f vpsed$$ $ac_file > tmp$$ |
18157 | mv tmp$$ $ac_file | |
18158 | rm vpsed$$ | |
18159 | echo 'MULTISUBDIR =' >> $ac_file | |
18160 | ml_norecursion=yes | |
18161 | . ${multi_basedir}/config-ml.in | |
18162 | { ml_norecursion=; unset ml_norecursion;} | |
18163 | ;; | |
18164 | "src/Makefile":F) cat > vpsed$$ << \_EOF | |
18165 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
18166 | _EOF | |
18167 | sed -f vpsed$$ $ac_file > tmp$$ | |
18168 | mv tmp$$ $ac_file | |
18169 | rm vpsed$$ | |
18170 | echo 'MULTISUBDIR =' >> $ac_file | |
18171 | ml_norecursion=yes | |
18172 | . ${multi_basedir}/config-ml.in | |
18173 | { ml_norecursion=; unset ml_norecursion;} | |
18174 | ;; | |
18175 | "testsuite/Makefile":F) cat > vpsed$$ << \_EOF | |
18176 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
18177 | _EOF | |
18178 | sed -f vpsed$$ $ac_file > tmp$$ | |
18179 | mv tmp$$ $ac_file | |
18180 | rm vpsed$$ | |
18181 | echo 'MULTISUBDIR =' >> $ac_file | |
18182 | ml_norecursion=yes | |
18183 | . ${multi_basedir}/config-ml.in | |
18184 | { ml_norecursion=; unset ml_norecursion;} | |
b4c522fa IB |
18185 | ;; |
18186 | ||
18187 | esac | |
18188 | done # for ac_tag | |
18189 | ||
18190 | ||
18191 | as_fn_exit 0 | |
18192 | _ACEOF | |
18193 | ac_clean_files=$ac_clean_files_save | |
18194 | ||
18195 | test $ac_write_fail = 0 || | |
22e05272 | 18196 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
b4c522fa IB |
18197 | |
18198 | ||
18199 | # configure is writing to config.log, and then calls config.status. | |
18200 | # config.status does its own redirection, appending to config.log. | |
18201 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18202 | # by configure, so config.status won't be able to write to it; its | |
18203 | # output is simply discarded. So we exec the FD to /dev/null, | |
18204 | # effectively closing config.log, so it can be properly (re)opened and | |
18205 | # appended to by config.status. When coming back to configure, we | |
18206 | # need to make the FD available again. | |
18207 | if test "$no_create" != yes; then | |
18208 | ac_cs_success=: | |
18209 | ac_config_status_args= | |
18210 | test "$silent" = yes && | |
18211 | ac_config_status_args="$ac_config_status_args --quiet" | |
18212 | exec 5>/dev/null | |
18213 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18214 | exec 5>>config.log | |
18215 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18216 | # would make configure fail if this is the last instruction. | |
22e05272 | 18217 | $ac_cs_success || as_fn_exit 1 |
b4c522fa IB |
18218 | fi |
18219 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18221 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18222 | fi | |
18223 |